PCAN ISO-TP Multi-Frame Example

A free API for the transfer of data packages according to ISO-TP (ISO 15765-2)
K.Wagner
Software Development
Software Development
Posts: 1080
Joined: Wed 22. Sep 2010, 13:36

Re: PCAN ISO-TP Multi-Frame Example

Post by K.Wagner » Mon 14. Mar 2022, 11:13

Hello,

please share the first screenshot (both PCAN-Views) again, but showing their status bars
PCAN-View status bar
PCAN-View status bar
Status.PNG (30.47 KiB) Viewed 4526 times
.
Best regards,
Keneth

K1890350
Posts: 20
Joined: Mon 7. Mar 2022, 13:13

Re: PCAN ISO-TP Multi-Frame Example

Post by K1890350 » Mon 14. Mar 2022, 11:33

Hi,

This is the output using the latest version of ISO-TP from your website.
MicrosoftTeams-image (2).png
MicrosoftTeams-image (2).png (88.28 KiB) Viewed 4525 times
Should there not be more bytes of data according to the size of HEAVY.DATA.SIZE.

Best,
K1890350

K1890350
Posts: 20
Joined: Mon 7. Mar 2022, 13:13

Re: PCAN ISO-TP Multi-Frame Example

Post by K1890350 » Mon 14. Mar 2022, 12:32

Hi,

This is the full screenshot that includes the status of each PCAN USB.
MicrosoftTeams-image (3).png
MicrosoftTeams-image (3).png (157.24 KiB) Viewed 4522 times

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

Re: PCAN ISO-TP Multi-Frame Example

Post by K.Wagner » Mon 14. Mar 2022, 12:45

Hello,

please note:
  1. You are not using the latest version of the API, v3.2.0.
  2. You are using a modified 06_isotp_segmented_read_write sample since the words "last bytes + [DATA]" are not used in the original code
  3. The percent of message sent is going from 0% to 100%. This is not possible in the way this sample is configured.
Again, to check that it work as expected, you need to have two PCAN devices connected to each other, and well terminated. Compiling and starting the original 06_isotp_segmented_read_write example with this physical configuration should show the sending of a large message. Please use the latest version of the APIs. A well output looks like this:
Normal.PNG
Normal.PNG (44.7 KiB) Viewed 4522 times
Best regards,
Keneth

K1890350
Posts: 20
Joined: Mon 7. Mar 2022, 13:13

Re: PCAN ISO-TP Multi-Frame Example

Post by K1890350 » Mon 14. Mar 2022, 13:31

Hi,

I have downloaded the latest version of the ISO-TP API from your website, but when I execute the application, the command prompt still shows v3.1. It's worth noting that the .dll files are still from the v3.1 packages. Could that be the cause to why I'm still seeing an older version despite running the most latest version of the application?

Best,
K1890350

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

Re: PCAN ISO-TP Multi-Frame Example

Post by K.Wagner » Mon 14. Mar 2022, 13:32

Hello again,

threre is something I forgot to check. Please use the PCAN-View to see the firmware version of the PCAN devices you are using (Tab "PCAN-USB"). There is a feature needed for ISO-TP to work that is not available in all firmware version. If your devices have the firmware version 2.8, then this is the cause of your problem.

To solve this, please downlaod and start the PEAK-Flash software, and follow the instructions to update your devices.
Best regards,
Keneth

K1890350
Posts: 20
Joined: Mon 7. Mar 2022, 13:13

Re: PCAN ISO-TP Multi-Frame Example

Post by K1890350 » Mon 14. Mar 2022, 13:42

Hi,

Are these the latest firmware versions for this device?
MicrosoftTeams-image (4).png
MicrosoftTeams-image (4).png (148.15 KiB) Viewed 4521 times
Are the .dll files from version to version the same, (referring to my previous message)?

Best,
K1890350

K1890350
Posts: 20
Joined: Mon 7. Mar 2022, 13:13

Re: PCAN ISO-TP Multi-Frame Example

Post by K1890350 » Mon 14. Mar 2022, 13:43

Also, as soon as I run the application, the status changes from OK to BUSHEAVY on both devices.

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

Re: PCAN ISO-TP Multi-Frame Example

Post by K.Wagner » Mon 14. Mar 2022, 13:55

Hello,
K1890350 wrote:
Mon 14. Mar 2022, 13:31
It's worth noting that the .dll files are still from the v3.1 packages.
I have just checked the online package from our website. It is the right version, v3.2.0
  1. Check that your browser is not giving you a cached file.
  2. Check that you are copying the right dll file (64 vs 32 bit) into the right system folder (Windows/system32 vs Windows/SysWOW64 folder), or
  3. Check that the dll file copied into your output folder matches the platform of your project (64 vs 32 bit)
K1890350 wrote:
Mon 14. Mar 2022, 13:42
Are these the latest firmware versions for this device?
No, there are newer. Check this link https://www.peak-system.com/PCAN-USB-S- ... 472.0.html
K1890350 wrote:
Mon 14. Mar 2022, 13:42
Are the .dll files from version to version the same, (referring to my previous message)?
Of course not, each release has its own file with own version. Current version is 3.2.0.
K1890350 wrote:
Mon 14. Mar 2022, 13:43
Also, as soon as I run the application, the status changes from OK to BUSHEAVY on both devices.
Then you have obviosly a physical problem. Bitrate doesn't match, wrong termination is being used, or similar. If you think your device is defect, please contact our support using support[at]peak-system.com. They may help you cheking the device
Best regards,
Keneth

K1890350
Posts: 20
Joined: Mon 7. Mar 2022, 13:13

Re: PCAN ISO-TP Multi-Frame Example

Post by K1890350 » Mon 14. Mar 2022, 15:05

Hi,

Just to confirm, the 64-bit .dll should go into Sys32 and the 32-bit .dll should go in the SysWOW, right? I tried it the other way around and the application was throwing me errors.

Best,
K1890350

Locked