Code: Select all
config.can_id = (UInt32)0x18DA2EF9;
config.can_msgtype = cantp_can_msgtype.PCANTP_CAN_MSGTYPE_STANDARD;
config.nai.protocol = uds_msgprotocol.PUDS_MSGPROTOCOL_ISO_15765_2_29B_FIXED_NORMAL; //1019
config.nai.extension_addr = 0x0;
config.nai.target_type = cantp_isotp_addressing.PCANTP_ISOTP_ADDRESSING_PHYSICAL;
config.type = uds_msgtype.PUDS_MSGTYPE_USDT;
config.nai.source_addr = (UInt16)uds_address.PUDS_ADDRESS_ISO_15765_4_ADDR_TEST_EQUIPMENT;
config.nai.target_addr = (UInt16)uds_address.PUDS_ADDRESS_ISO_15765_4_ADDR_ECU_1;
testReadDataByIdentifier(client_handle, config);
We expected to get the following message:TX/RX ID DLC Data Byte(s)
TX 0x18DA2EF9 8 03 22 F1 90 00 00 00 00
RX 0x18DAF91E 4 03 7F 22 78
RX 0x18DAF91E 8 10 14 62 F1 90 00 00 00
TX 0x18DA2EF9 8 30 00 00 55 55 55 55 55
Could you help to point out the cause of the error or where it needs to be corrected?TX/RX ID DLC Data Byte(s)
TX 0x18DA2EF9 8 03 22 F1 90 00 00 00 00
RX 0x18DAF91E 4 03 7F 22 78
RX 0x18DAF91E 8 10 14 62 F1 90 00 00 00
TX 0x18DA2EF9 8 30 00 14 00 00 00 00 00
RX 0x18DAF91E 8 21 00 00 00 00 00 00 00
RX 0x18DAF91E 8 22 00 00 00 00 00 00 00
By the way, do we need to "AddMapping_2013" before using "SvcReadDataByIdentifier_2013" API ?
Thx