Page 1 of 1

PCAN-UDS change the used COB-ID

Posted: Wed 17. Oct 2018, 13:51
by Alfred
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?

Re: PCAN-UDS change the used COB-ID

Posted: Wed 17. Oct 2018, 14:05
by F.Vergnaud
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).