Open yk-snyvi opened 2 years ago
can you show the code around the function and which mode you're using, simulation/pass thru ,. 404 etc?
The version used is 0404 Write the response in the configuration file, and add bytes at the end after the simulator returns.
Here are LG: 0000000000: Load 57 PIDs answers in j25342emu.ini 0000000001: Open DeviceID=006CDB52 0000000001: Version DevID=006CDB52 0000000001: Connect DevID=006CDB52 ProtID=00008005 Flags=00000900 BaudRate=500000 0000000002: Protocol=ISO15765_PS 0000000002: CAN_29BIT_ID=29bit CAN_ID_BOTH=11bit & 29bit 0000000002: ISO9141_NO_CHECKSUM=Interface ISO9141_K_LINE_ONLY=L-line & K-line 0000000002: Ioctl SET_CONFIG 0000000002: J1962_PINS=1550 0000000002: LOOPBACK=1 0000000002: CAN_MIXED_FORMAT=1 0000000002: Ioctl CLEAR_MSG_FILTERS 0000000003: StartMsgFilter ChannelID=00000001 FilterType=FLOW_CONTROL_FILTER FilterID=00000001 0000000003: PtID=00008005 Rx=00000000 Tx=00000040 Time=00000000 DataSize=00000004 ExData=00000000 0000000003: MaskMsg:FF FF FF FF 0000000003: PtID=00008005 Rx=00000000 Tx=00000040 Time=00000000 DataSize=00000004 ExData=00000000 0000000003: PatternMsg:00 00 07 EA 0000000010: Ioctl CLEAR_RX_BUFFER 0000000095: WriteMsgs ChID=00000001 Nummsg=1 0000000095: PtID=00008005 Rx=00000000 Tx=00000040 Time=00000000 DataSize=00000006 ExData=00000000 0000000095: (TO=30000) TxD[0]:00 00 07 E2 1A CC 0000000095: ReadMsgs ChID=00000001 Request Nummsg=1 0000000095: PtID=00008005 Rx=00000001 Tx=00000040 Time=A098C718 DataSize=00000007 ExData=00000000 0000000095: (TO=500) RxD[0]:00 00 07 E2 1A CC CF 0000000096: TOTAL Nummsg=1 Result=STATUS_NOERROR 0000000096: ReadMsgs ChID=00000001 Request Nummsg=1 0000000186: PtID=00008005 Rx=00000000 Tx=00000000 Time=A098CB00 DataSize=0000000B ExData=0000000A 0000000186: (TO=500) RxD[0]:00 00 07 EA 5A CC 01 6E DF 89 EE 0000000186: TOTAL Nummsg=1 Result=STATUS_NOERROR 0000000188: Ioctl CLEAR_RX_BUFFER 0000000273: WriteMsgs ChID=00000001 Nummsg=1 0000000273: PtID=00008005 Rx=00000000 Tx=00000040 Time=00000000 DataSize=00000006 ExData=00000000 0000000273: (TO=30000) TxD[0]:00 00 07 E2 1A BC 0000000273: ReadMsgs ChID=00000001 Request Nummsg=1 0000000273: PtID=00008005 Rx=00000001 Tx=00000040 Time=A09B7E68 DataSize=00000007 ExData=00000000 0000000273: (TO=500) RxD[0]:00 00 07 E2 1A BC BF 0000000274: TOTAL Nummsg=1 Result=STATUS_NOERROR 0000000274: ReadMsgs ChID=00000001 Request Nummsg=1 0000000364: PtID=00008005 Rx=00000000 Tx=00000000 Time=A09B8250 DataSize=0000000B ExData=0000000A 0000000364: (TO=500) RxD[0]:00 00 07 EA 5A BC 01 6E DF 89 DE 0000000364: TOTAL Nummsg=1 Result=STATUS_NOERROR 0000000365: DisConnect ChannelID=00000001 0000000370: Close DeviceID=006CDB52
so you don't mean the SIMULATION_MODE setting in this code?
the code path for the non simulator is just returning the data it receives from the original j2534 DLL . the only time this code changes it is when you compile it with SIMULATION_MODE
the data length is 0xB which seems to match the data being sent?
Hello, thank you very much for your software. During my simulation, I found that when the simulator returned, a random byte would be added at the end. How to solve this problem?