use ID of hardware instead of PUDS_USBBUS1

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
User avatar
barry
Posts: 16
Joined: Mon 18. May 2015, 14:17

use ID of hardware instead of PUDS_USBBUS1

Post by barry » Tue 30. Jun 2015, 09:56

Dear,

I have 2 peak usb connected to one pc.
It seems from time to time they switch USB ID 0x51 <=> 0x52.

This is annoying because then you don't know what pcan usb you are dealing with.

I know you can set a hardware ID (0x00 to 0xFF) and read this out from the device.
But then you already need to be connected before you can decide what adapter to use.

Is there a way to initialize the adapter using the HW ID instead of the USB adapter BUS 0x51/0x52 ?

regards

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

Re: use ID of hardware instead of PUDS_USBBUS1

Post by K.Wagner » Tue 30. Jun 2015, 10:10

Hello,

the channel number is determined by the system at plug-in time. That is why adapters sometimes get a different channel when the computer boots.

This post shows a workaround to avoid this problem.
Best regards,
Keneth

Post Reply