Open stko opened 8 years ago
Scary: When running the two tests in sequence in the simulator, the simulator and also candump shows a multiframe coming from the canbus simulator, when the second script gets started
pybot scripts/lib/udsASCIITest.rst webUI/epaLoading.rst
But why on hell the firmware generates this (notice that the can-simulator says a Service 62 is received) ?
can-simulator:
Received: can_id=7df, can_dlc=8, data=b'\x10#b\xffTABC' received: 0x7DF 8 10 23 62 FF 54 41 42 43 1.0 First Frame, expecting 35 Bytes {'d': [48, 48, 15, 0], 'e': 0, 't': 2} sended: 0x7DF 8 30 30 0F 00 00 00 00 00 pid: 2362 2362 not found, send default next step: 0 len 4 slice Received: can_id=7df, can_dlc=8, data=b'!<KZix\x87\x96' received: 0x7DF 8 21 3C 4B 5A 69 78 87 96 2.0 Consecutive Frame, bytes remaining: 22 pid: 2362 2362 not found, send default next step: 0 len 4 slice Received: can_id=7df, can_dlc=8, data=b'"\xa5\xb4\xc3\xd2\xe1\xf0Q' received: 0x7DF 8 22 A5 B4 C3 D2 E1 F0 51 2.0 Consecutive Frame, bytes remaining: 15 pid: 2362 2362 not found, send default next step: 0 len 4 slice Received: can_id=7df, can_dlc=8, data=b'#RSTUVWX' received: 0x7DF 8 23 52 53 54 55 56 57 58 2.0 Consecutive Frame, bytes remaining: 8 pid: 2362 2362 not found, send default next step: 0 len 4 slice Received: can_id=7df, can_dlc=8, data=b'$YZABCDE' received: 0x7DF 8 24 59 5A 41 42 43 44 45 2.0 Consecutive Frame, bytes remaining: 1 pid: 2362 2362 not found, send default next step: 0 len 4 slice Received: can_id=7df, can_dlc=8, data=b'%F\x00\x00\x00\x00\x00\x00' received: 0x7DF 8 25 46 00 00 00 00 00 00 2.0 Consecutive Frame, bytes remaining: -6 last Consecutive frame received, sending answer pid: 2362 2362 not found, send default next step: 1 len 4 slice {'d': [7, 127, 34, 51, 68, 85, 102, 119], 'e': 0, 't': 5} sended: 0x7DF 8 07 7F 22 33 44 55 66 77
candump:
oobdcan0 7DF [8] 10 23 62 FF 54 41 42 43 oobdcan0 7DF [8] 30 30 0F 00 00 00 00 00 oobdcan0 7DF [8] 21 3C 4B 5A 69 78 87 96 oobdcan0 7DF [8] 22 A5 B4 C3 D2 E1 F0 51 oobdcan0 7DF [8] 23 52 53 54 55 56 57 58 oobdcan0 7DF [8] 24 59 5A 41 42 43 44 45 oobdcan0 7DF [8] 25 46 00 00 00 00 00 00 oobdcan0 7DF [8] 07 7F 22 33 44 55 66 77
OOBDPosix:
> [file mc_can.c, line 141]: CAN- Send Buffer with len 8 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received p 0 0 [file ../../../../../OOBD/v1/odp_uds.c, line 487]: FlowControl received [file ../../../../../OOBD/v1/odp_uds.c, line 502]: Blocksize received with 49 ticks [file ../../../../../OOBD/v1/odp_uds.c, line 521]: FlowControl Delay received with 16 ticks [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 16 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 15 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 14 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 13 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 12 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 11 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 10 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 9 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 8 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 7 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 6 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 5 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 4 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 3 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 2 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 1 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 971]: Reloaded CF Waitticks: 16 , remainingBytes: 29 [file ../../../../../OOBD/v1/odp_uds.c, line 994]: Remaining bytes: 29 [file mc_can.c, line 141]: CAN- Send Buffer with len 8 [file ../../../../../OOBD/v1/odp_uds.c, line 1013]: Blocksize REDUCED to 48 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 16 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 15 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 14 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 13 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 12 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 11 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 10 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 9 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 8 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 7 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 6 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 5 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 4 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 3 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 2 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 1 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 971]: Reloaded CF Waitticks: 16 , remainingBytes: 22 [file ../../../../../OOBD/v1/odp_uds.c, line 994]: Remaining bytes: 22 [file mc_can.c, line 141]: CAN- Send Buffer with len 8 [file ../../../../../OOBD/v1/odp_uds.c, line 1013]: Blocksize REDUCED to 47 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 16 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 15 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 14 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 13 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 12 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 11 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 10 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 9 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 8 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 7 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 6 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 5 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 4 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 3 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 2 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 1 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 971]: Reloaded CF Waitticks: 16 , remainingBytes: 15 [file ../../../../../OOBD/v1/odp_uds.c, line 994]: Remaining bytes: 15 [file mc_can.c, line 141]: CAN- Send Buffer with len 8 [file ../../../../../OOBD/v1/odp_uds.c, line 1013]: Blocksize REDUCED to 46 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 16 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 15 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 14 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 13 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 12 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 11 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 10 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 9 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 8 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 7 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 6 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 5 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 4 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 3 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 2 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 1 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 971]: Reloaded CF Waitticks: 16 , remainingBytes: 8 [file ../../../../../OOBD/v1/odp_uds.c, line 994]: Remaining bytes: 8 [file mc_can.c, line 141]: CAN- Send Buffer with len 8 [file ../../../../../OOBD/v1/odp_uds.c, line 1013]: Blocksize REDUCED to 45 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 16 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 15 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 14 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 13 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 12 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 11 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 10 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 9 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 8 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 7 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 6 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 5 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 4 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 3 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 2 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 959]: Remaining CF Waitticks: 1 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 971]: Reloaded CF Waitticks: 16 , remainingBytes: 1 [file ../../../../../OOBD/v1/odp_uds.c, line 994]: Remaining bytes: 1 [file mc_can.c, line 141]: CAN- Send Buffer with len 8 [file ../../../../../OOBD/v1/odp_uds.c, line 1013]: Blocksize REDUCED to 44 [file ../../../../../OOBD/v1/odp_uds.c, line 692]: Single Frame with 7 Bytes [file ../../../../../OOBD/v1/od_ilm.c, line 172]: ILM Handler: MSG_EVENT_PROTOCOL_RECEIVED event received 7f223344556677 . [file ../../../../../OOBD/v1/od_serial.c, line 434]: Wakeup again input task. STATE_INIT=4 >p 0 0 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file mc_sys.c, line 80]: sys specific parameter received: 0 / 0 OOBD POSIX firmwarekiller2-dirty POSIX Sun, 22 Nov 2015 09:36:01 +0100 . >p 0 0 [file ../../../../../OOBD/v1/od_serial.c, line 314]: FB: 0 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file mc_sys.c, line 80]: sys specific parameter received: 0 / 0 OOBD POSIX firmwarekiller2-dirty POSIX Sun, 22 Nov 2015 09:36:01 +0100 . >p 0 0 [file ../../../../../OOBD/v1/od_serial.c, line 314]: FB: 0 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file mc_sys.c, line 80]: sys specific parameter received: 0 / 0 OOBD POSIX firmwarekiller2-dirty POSIX Sun, 22 Nov 2015 09:36:01 +0100 . >p 1 1 1 0 [file ../../../../../OOBD/v1/od_serial.c, line 314]: FB: 1 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file ../../../../../OOBD/v1/odp_uds.c, line 877]: Stop Protocol [file ../../../../../OOBD/v1/odp_uds.c, line 207]: remove all Tester Present Buffers [file ../../../../../OOBD/v1/mc_sys_generic.c, line 186]: *** 'prot' Task created *** [file ../../../../../OOBD/v1/odp_uds.c, line 421]: Start Bus nr 0 . >p 8 2 0 [file ../../../../../OOBD/v1/od_serial.c, line 314]: FB: 8 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file ../../../../../OOBD/v1/odp_uds.c, line 750]: protocol parameter received 8 2 0 [file ../../../../../OOBD/v1/odp_uds.c, line 869]: Reset Protocol [file ../../../../../OOBD/v1/od_ilm.c, line 183]: ILM Handler: MSG_EVENT_BUS_MODE event received . >p 1 1 1 0 [file ../../../../../OOBD/v1/od_serial.c, line 314]: FB: 1 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file ../../../../../OOBD/v1/odp_uds.c, line 877]: Stop Protocol [file ../../../../../OOBD/v1/odp_uds.c, line 207]: remove all Tester Present Buffers [file ../../../../../OOBD/v1/mc_sys_generic.c, line 186]: *** 'prot' Task created *** [file ../../../../../OOBD/v1/odp_uds.c, line 421]: Start Bus nr 0 . >p 8 2 3 [file ../../../../../OOBD/v1/od_serial.c, line 314]: FB: 8 [file ../../../../../OOBD/v1/od_ilm.c, line 197]: ILM Handler: MSG_EVENT_CMDLINE event received [file ../../../../../OOBD/v1/odp_uds.c, line 750]: protocol parameter received 8 2 3 [file ../../../../../OOBD/v1/odp_uds.c, line 869]: Reset Protocol [file ../../../../../OOBD/v1/od_ilm.c, line 183]: ILM Handler: MSG_EVENT_BUS_MODE event received .
For better Multiframe isotp readability use https://github.com/hartkopp/can-isotp-modules
Scary: When running the two tests in sequence in the simulator, the simulator and also candump shows a multiframe coming from the canbus simulator, when the second script gets started
But why on hell the firmware generates this (notice that the can-simulator says a Service 62 is received) ?
can-simulator:
candump:
OOBDPosix: