PCAN-UDS change the used COB-ID

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
Alfred
Posts: 3
Joined: Tue 9. Oct 2018, 10:48

PCAN-UDS change the used COB-ID

Post by Alfred » Wed 17. Oct 2018, 13:51

I use the PCAN-UDS interface and I set in all messages:
SA=0xF1
TA=0
The resulting COB-ID is internal set to 0x18.0xDA.0x00(=TA).0xF1(=SA).
How I can change the front part to other values?

F.Vergnaud
Software Development
Software Development
Posts: 305
Joined: Mon 9. Sep 2013, 12:21

Re: PCAN-UDS change the used COB-ID

Post by F.Vergnaud » Wed 17. Oct 2018, 14:05

Dear Alfred,

You're UDS communication is using 29 BIT CAN ID, FIXED NORMAL addressing (see TPUDSProtocol: PUDS_PROTOCOL_ISO_15765_2_29B). The CAN Identifier is therefore standardized and automatically generated.

If you wish to change the priority (first 3 bits in the CAN ID), please configure it by using funtion UDS_SetValue and the parameter PCANTP_PARAM_J1939_PRIORITY.
If you want to define your own CAN ID with a specific Network Addressing Information, use a different TPUDSProtocol value like PUDS_PROTOCOL_ISO_15765_2_29B_NORMAL, but you will have to configure mappings (see parameter PUDS_PARAM_MAPPING_ADD).
Best regards,
Fabrice

Post Reply