UDS Mapping
Posted: Mon 13. Jan 2025, 22:36
Here one Point I am struggeling:
To use the UDS procs I need to tell them the ids of the communication partners.
This I do by adding uds_mapping for sent and recive messages on a initializeted tphandle.
Why do I have to set uds_msgconfig config with similar information additionally to use uds function like testerpresent?
And does .PUDS_MSGPROTOCOL_ISO_15765_2_11B_NORMAL works without mapping, since this adresses are pre Mapped ?
To use the UDS procs I need to tell them the ids of the communication partners.
This I do by adding uds_mapping for sent and recive messages on a initializeted tphandle.
Why do I have to set uds_msgconfig config with similar information additionally to use uds function like testerpresent?
Code: Select all
requestMapping.can_id = 0x18DA017E;
requestMapping.can_id_flow_ctrl = 0x18DA7E01;
requestMapping.can_msgtype = cantp_can_msgtype.PCANTP_CAN_MSGTYPE_STANDARD;
requestMapping.nai.extension_addr = 0;
requestMapping.nai.protocol = uds_msgprotocol.PUDS_MSGPROTOCOL_ISO_15765_2_29B_NORMAL;
requestMapping.can_tx_dlc = 8;
requestMapping.nai.source_addr = (UInt16)uds_address.PUDS_ADDRESS_ISO_15765_4_ADDR_TEST_EQUIPMENT;
requestMapping.nai.target_addr = (UInt16)uds_address.PUDS_ADDRESS_ISO_15765_4_ADDR_ECU_1;
requestMapping.nai.target_type = cantp_isotp_addressing.PCANTP_ISOTP_ADDRESSING_PHYSICAL;
....
config.can_id = (UInt32)0xFFFFFFFF;
config.can_msgtype = cantp_can_msgtype.PCANTP_CAN_MSGTYPE_STANDARD;
config.nai.protocol = uds_msgprotocol.PUDS_MSGPROTOCOL_ISO_15765_2_29B_NORMAL;
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;