how to set server address by PUDS_PARAM_SERVER_ADDRESS

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
SnakuLee
Posts: 2
Joined: Tue 14. Apr 2015, 08:02

how to set server address by PUDS_PARAM_SERVER_ADDRESS

Post by SnakuLee » Tue 14. Apr 2015, 08:16

Hi, I am using PCAN_UDS API as a UDS Tester, I don't know how to specify 11 bits server/client CAN ID to PCAN_UDS. I saw the example of the user guide, if the NETADDRINFO.SA=0xF1 and NETADDRINFO.TA=0x01, then the default tester address is 0x7E8, and the server physical address is 0x7E0. But how do I set a specific 11 bits address like 0x123 or 0x456 to the server/client address?

K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: how to set server address by PUDS_PARAM_SERVER_ADDRESS

Post by K.Wagner » Tue 14. Apr 2015, 09:25

Hello,

you want to use a custom communication setting. This can be achieved by defining an address mapping for those IDs you want to use, within the underlaying ISO-TP API.

Read the chapter 4.3, UDS and ISO-TP Network Addressing Information, of the PCAN-UDS help (page 335) to get information about Addressing mapping, and the chapter 3.7.4, CANTP_AddMapping, of the PCAN-ISO-TP help, for information on adding an address mapping. Within the last one you will find some sample code for address mapping in C++.
Best regards,
Keneth

SnakuLee
Posts: 2
Joined: Tue 14. Apr 2015, 08:02

Re: how to set server address by PUDS_PARAM_SERVER_ADDRESS

Post by SnakuLee » Wed 15. Apr 2015, 06:43

Hi K.Wagner,
Yes, now I can use PCAN-ISO-TP API to add the address map with my custom CAN ID for the PCAN-UDS client/server.
Thanks for your quickly response.
Snaku

Post Reply