This commit is contained in:
Anders Sandstrom
2021-03-03 16:34:50 +01:00
parent 963aba576e
commit b9115a6581
2 changed files with 75 additions and 2 deletions

View File

@@ -171,6 +171,8 @@ r 0x583 [8] 0x80 0x00 0x00 0x00 0x00 0x00 0x02 0x06
# Seems to work
Need to write new frameEqual func
CHECK THE TOGGKLE WHEN Reciving data frames!
data[0]: 24
data[1]: 36
data[2]: 14
@@ -199,3 +201,74 @@ data[24]: 170
data[25]: 192
data[26]: 0
data[27]: 5000
# "Complete log"
readStates_ = WAIT_FOR_REQ_CONF!!!
w 0x603 [8] 0x40 0x40 0x26 0x00 0x00 0x00 0x00 0x00
readStates_ = WAIT_FOR_DATA!!!
r 0x583 [8] 0x41 0x40 0x26 0x00 0x38 0x00 0x00 0x00
w 0x701 [1] 0x05
w 0x080 [0]
w 0x7E5 [0]
w 0x603 [8] 0x61 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 7!!!
r 0x583 [8] 0x00 0x18 0x00 0x24 0x00 0x0E 0x00 0x0A
w 0x603 [8] 0x71 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 14!!!
r 0x583 [8] 0x10 0x00 0x00 0x00 0xC2 0x00 0x00 0x00
w 0x603 [8] 0x61 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 21!!!
r 0x583 [8] 0x00 0xC2 0x01 0x00 0x00 0x00 0x00 0x35
w 0x603 [8] 0x71 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 28!!!
r 0x583 [8] 0x10 0x1C 0x84 0x02 0x46 0x1A 0x3C 0x49
w 0x603 [8] 0x61 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 35!!!
r 0x583 [8] 0x00 0xC2 0x01 0x00 0x00 0x00 0x00 0x00
w 0x603 [8] 0x71 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 42!!!
r 0x583 [8] 0x10 0x00 0xC8 0x48 0x51 0x2F 0x00 0x00
w 0x603 [8] 0x61 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 49!!!
r 0x583 [8] 0x00 0x5C 0x2D 0x81 0x14 0x67 0x0D 0xA9
w 0x603 [8] 0x71 0x40 0x26 0x00 0x00 0x00 0x00 0x00
recivedBytes = 56!!!
All data transfered
data[0]: 24
data[1]: 36
data[2]: 14
data[3]: 10
data[4]: 0
data[5]: 194
data[6]: 0
data[7]: 450
data[8]: 0
data[9]: 0
data[10]: 7221
data[11]: 644
data[12]: 6726
data[13]: 18748
data[14]: 450
data[15]: 0
data[16]: 0
data[17]: 0
data[18]: 18632
data[19]: 12113
data[20]: 0
data[21]: 11612
data[22]: 5249
data[23]: 3431
data[24]: 169
data[25]: 191
data[26]: 0
data[27]: 5000
r 0x583 [8] 0x11 0x00 0xBF 0x00 0x00 0x00 0x88 0x13
r 0x280 [0]
r 0x703 [1] 0x05
r 0x280 [0]
w 0x701 [1] 0x05
w 0x080 [0]
w 0x7E5 [0]

View File

@@ -200,7 +200,7 @@ int ecmcCANOpenSDO::frameEqual(can_frame *frame1,can_frame *frame2) {
return 1;
}
return 0;
//return memcmp(frame1,frame2, sizeof(can_frame)) == 0;
//return memcmp(frame1,frame2, sizeof(can_frame)) == 0; Why not working, union??!?
}
void ecmcCANOpenSDO::printBuffer() {
@@ -235,4 +235,4 @@ void ecmcCANOpenSDO::printBuffer() {
//# r 0x583 [8] 0x00 0xC2 0x01 0x00 0x00 0x00 0x00 0x00
//# r 0x583 [8] 0x10 0x00 0xC8 0x48 0x51 0x2F 0x00 0x00
//# r 0x583 [8] 0x00 0x5C 0x2D 0x81 0x14 0x67 0x0D 0xA6
//
//