PCAN UDS Security Access

A free API for the communication with control devices according to UDS (ISO 14229-1)
Post Reply
aibi00
Posts: 1
Joined: Mon 26. Sep 2022, 10:56

PCAN UDS Security Access

Post by aibi00 » Mon 26. Sep 2022, 12:39

Hello to all,

im writing you, because im struggling with UDS libary. Im developing a flashing software for ECUs
structure
structure
1.PNG (50.87 KiB) Viewed 2566 times
(structurre in attached picture). I know the steps i have to programm to flash an ECU but im having some troubles writing them.
Step 1.) Request Seed with Security Access
Step 2.) Read Response with Seed from ECU
Step 3.) some calculation
Step 4.) Send calculated Key with Security Access

At the moment im stuck at step 2 because i dont know how to read the response. What is mapping for? How do i set the config? All i know is that request address is 0x10A and response address is 0x10B. And the ECUs have a remote address.
The response message is only address 0x10B but i dont kow how to read only messages with this address because the ECU is also sending measured values with other address (0x101 - 0x109) over CAN.

im sorry for my broken english but im looking forward hearing from you
best regards
Adam

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

Re: PCAN UDS Security Access

Post by K.Wagner » Mon 26. Sep 2022, 15:23

Hello,
aibi00 wrote:
Mon 26. Sep 2022, 12:39
What is mapping for? How do i set the config?
Mappings are the way how the underlying transport protocol, ISO-TP, use different CAN-ID for communication. More information in the 4.4. of the PCAN-ISO-TP documentation.
PCAN-UDS already defines several mappings aautomatically. Please check the chapter 4.3 of the PCAN-UDS documentation for more information. If the CAN-IDs you want to use are not defined there, then you will need to create a new mapping for those values. For this, please check the chapter 3.7.11 of the PCAN-UDS documentation .
aibi00 wrote:
Mon 26. Sep 2022, 12:39
At the moment im stuck at step 2 because i dont know how to read the response.
The PCAN-UDS API package contains several sample projects in different programming languages. Please look at the sample called "06_client_all_request" of your preferred programming language. In there, you will find a function called "testSecurityAccess" in where you can see how to send this request and how to wait and get its response.
Best regards,
Keneth

Post Reply