Hello to all,
im writing you, because im struggling with UDS libary. Im developing a flashing software for ECUs (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
PCAN UDS Security Access
Re: PCAN UDS Security Access
Hello,
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 .
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 .
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
Keneth