Using TPCANParameter.PCAN_DEVICE_GUID.

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
LudovicC
Posts: 9
Joined: Thu 19. Sep 2024, 16:44

Using TPCANParameter.PCAN_DEVICE_GUID.

Post by LudovicC » Fri 20. Dec 2024, 11:25

Hello everyone,

I have updated to the latest 4.6 drivers.
I am trying to use the new parameter TPCANParameter.PCAN_DEVICE_GUID, the same way as described in the documentation:

Code: Select all

StringBuilder strBuffer = new StringBuilder(256);
var status = PCANBasic.GetValue(PCANBasic.PCAN_USBBUS1, TPCANParameter.PCAN_DEVICE_GUID, strBuffer, 256);
However I get in status: PCAN_ERROR_ILLPARAMTYPE.

I guess, this is due to my PCAN device firmware. I have tried with the same results on two devices:
  • PCAN-USB Pro FD => FW version 3.2.0
  • PCAN-USB FD => FW version 3.4.3
I can see in the documentation that we need minimum FW version 3.5.1.
But even when I check on Peak website, both devices don't have version 3.5.1:
  • PCAN-USB Pro FD => Most recent downloadable version is 3.4.7.
  • PCAN-USB FD => Most recent downloadable version is 3.4.3 (same as my device which was purchased recently)
Is there a mistake somewhere?

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

Re: Using TPCANParameter.PCAN_DEVICE_GUID.

Post by K.Wagner » Fri 20. Dec 2024, 11:44

Hello,

there is no mistake. The PCAN-Basic supports now this feature that "will be" available for PCAN-USB FD and PCAN-USB Pro FD devices with firmware version 3.5.1. The firmware release timing is different. This will happen in January.
Best regards,
Keneth

LudovicC
Posts: 9
Joined: Thu 19. Sep 2024, 16:44

Re: Using TPCANParameter.PCAN_DEVICE_GUID.

Post by LudovicC » Mon 13. Jan 2025, 14:21

Hello Keneth,

Do you think it would be possible to get this new firmware as a pre-release now for the PCAN-USB FD?
My company needs to deliver a test bench to our customer end of next week, where 9 PCAN-USB FD are connected to one PC.
So this PCAN_DEVICE_GUID would be very useful to have a proper mapping of the devices.

I have already noticed that another way is explained in the forum using the registry, but I would rather not lose time trying to use this old way if I could directly implement the PCAN_DEVICE_GUID.

Thank you in advance!

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

Re: Using TPCANParameter.PCAN_DEVICE_GUID.

Post by K.Wagner » Mon 13. Jan 2025, 15:55

Hello,

please send us an e-mail to support[at]peak-system.com making reference to this post. We will check, if we can provide you with a pre-release.
Best regards,
Keneth

Post Reply