Page 1 of 1
how to set server address by PUDS_PARAM_SERVER_ADDRESS
Posted: Tue 14. Apr 2015, 08:16
by SnakuLee
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?
Re: how to set server address by PUDS_PARAM_SERVER_ADDRESS
Posted: Tue 14. Apr 2015, 09:25
by K.Wagner
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++.
Re: how to set server address by PUDS_PARAM_SERVER_ADDRESS
Posted: Wed 15. Apr 2015, 06:43
by SnakuLee
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