Page 2 of 3

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 11:13
by K.Wagner
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 4530 times
.

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 11:33
by K1890350
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 4529 times
Should there not be more bytes of data according to the size of HEAVY.DATA.SIZE.

Best,
K1890350

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 12:32
by K1890350
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 4526 times

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 12:45
by K.Wagner
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 4526 times

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 13:31
by K1890350
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

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 13:32
by K.Wagner
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.

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 13:42
by K1890350
Hi,

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

Best,
K1890350

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 13:43
by K1890350
Also, as soon as I run the application, the status changes from OK to BUSHEAVY on both devices.

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 13:55
by K.Wagner
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

Re: PCAN ISO-TP Multi-Frame Example

Posted: Mon 14. Mar 2022, 15:05
by K1890350
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