Page 1 of 1

Adaper identifying

Posted: Fri 1. Oct 2010, 09:34
by Lysander
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

Re: Adaper identifying

Posted: Fri 1. Oct 2010, 11:52
by M.Maidhof
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