We are currently developing a tester using your APIs and we have some problems setting the correct mappings with the ISO-TP API.
Following setup:
Source (tester):
* CAN ID: 0x4F1
* UDS Address: 0x01 (not important for us, since we use the CAN IDs)
Target (ECU):
* CAN ID: 0x2F1
* UDS Address: 0x02 (not important for us, since we use the CAN IDs)
Mapping call:
Code: Select all
// Tester to ECU
TPCANTPStatus s = CANTP_AddMapping( ch, 0x2F1, 0x4F1,
PCANTP_ID_CAN_11BIT,
PCANTP_FORMAT_NORMAL,
PCANTP_MESSAGE_DIAGNOSTIC,
0x01, 0x02,
PCANTP_ADDRESSING_PHYSICAL,
remoteUds );
// ECU to Tester
s = CANTP_AddMapping( ch, 0x4F1, 0x2F1,
PCANTP_ID_CAN_11BIT,
PCANTP_FORMAT_NORMAL,
PCANTP_MESSAGE_DIAGNOSTIC,
0x02, 0x01,
PCANTP_ADDRESSING_PHYSICAL,
remoteUds );
Here some exmaple trace for the EcuReset service:
Code: Select all
; Start time: 07.09.2015 11:35:03.360.0
;
; Message Number
; | Time Offset (ms)
; | | Type
; | | | ID (hex)
; | | | | Data Length Code
; | | | | | Data Bytes (hex) ...
; | | | | | |
;---+-- ----+---- --+-- ----+--- + -+ -- -- -- -- -- -- --
1) 2442.7 Rx 02F1 8 02 11 01 00 00 00 00 00
2) 2468.1 Rx 04F1 8 03 7F 11 78 FF FF FF FF
3) 2524.4 Rx 04F1 8 02 51 01 FF FF FF FF FF
Best Regards,
Tobias
P.S.: We are using the August release of the APIs.