Trouble with the integration of the library PCAN-UDS

This forum covers issues concerning multiple software products.
Post Reply
Benoit_V
Posts: 7
Joined: Thu 7. Nov 2024, 13:40

Trouble with the integration of the library PCAN-UDS

Post by Benoit_V » Fri 28. Feb 2025, 09:10

Hello,

I have some trouble with the integration of the library PCAN-UDS.

In my use case, I need to commmunicate with my system with specific CAN Frame and I need UDS CAN too in the same time.

I use Qt5 for my application.
Sometimes, a multiframe UDS is not transmitted entirely.

For example, the service UDS_SvcRequestDownload_2013:
18DA01F1 8 10 0B 34 00 44 00 00 00 // Sent from my application
18DAF101 8 30 00 00 00 00 00 00 00 // Answer from my system (Acknowledge)
18DA01F1 8 21 01 00 00 00 A0 55 55 // End of multiframe.
18DAF101 8 03 74 10 82 00 00 00 00 // Continue the next step


For example, the service UDS_SvcRequestDownload_2013:
In case all is OK:

18DA01F1 8 10 0B 34 00 44 00 00 00 // Sent from my application
18DAF101 8 30 00 00 00 00 00 00 00 // Answer from my system (Acknowledge)
18DA01F1 8 21 01 00 00 00 A0 55 55 // End of multiframe.

0000F8FE 8 01 01 00 00 07 02 00 02 // Specific frame (not UDS)
000500FE 8 05 00 00 00 00 00 00 00 // Specific frame (not UDS)
000501FE 8 00 00 00 00 00 00 00 00 // Specific frame (not UDS)

18DAF101 8 03 74 10 82 00 00 00 00 // Continue the next step UDS

In case of trouble:

18DA01F1 8 10 0B 34 00 44 00 00 00 // Sent from my application
18DAF101 8 30 00 00 00 00 00 00 00 // Answer from my system (Acknowledge)
....... // Not end of multiframe


0000F8FE 8 01 01 00 00 07 02 00 02 // Specific frame (not UDS)
000500FE 8 05 00 00 00 00 00 00 00 // Specific frame (not UDS)
000501FE 8 00 00 00 00 00 00 00 00 // Specific frame (not UDS)

Do you have an idea what is the potential problem?

Best regards.

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Trouble with the integration of the library PCAN-UDS

Post by M.Maidhof » Tue 4. Mar 2025, 09:22

Hi,

as a first step, please check that you use the latest available dll files for PCANBasic, PCAN-ISO-TP and PCAN-UDS. You can use the sysinfo tool to check your system, and send the result to our support email address so that we can have a look on your system:

https://www.peak-system.com/fileadmin/m ... ysInfo.zip

Do you call CAN_Read() from PCANBasic while you use the PCAN_UDS API?

regards

Michael

Post Reply