Adaper identifying

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
Lysander
Posts: 2
Joined: Mon 27. Sep 2010, 09:26

Adaper identifying

Post by Lysander » Fri 1. Oct 2010, 09:34

Hi,

I would like to identify PCAN adapters unambiguously.

Is there any way to get the serial number of PCAN adapter using PCANBasic?
I know devicenumber but it is not enough unique for me.

And what if I use canapi2.dll instead of PCANBasic?

Thanks,
David Fulop

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

Re: Adaper identifying

Post by M.Maidhof » Fri 1. Oct 2010, 11:52

Hi,

with the PCANBasic API you can set and check the devicenumber (1byte) of the PCAN-USB. With the canapi2.dll its also possible to set a serialnumber (32bit) and an "user string" with up to 250bytes. By default there is no serialnumber set in the PCAN-USB modules ( default: 0xFFFFFFFF). Setting those data will effect the life time of the flash memory of the device, so you shouldn't use it as an application memory ;)

regards

Michael

Post Reply