Windows: How are multiple PCAN-USB adapters numbered

This forum covers issues concerning multiple software products.
Locked
MiKo17
Posts: 2
Joined: Wed 21. May 2025, 15:56

Windows: How are multiple PCAN-USB adapters numbered

Post by MiKo17 » Thu 22. May 2025, 19:05

Hi Peak-CAN experts,

we have several PCs with at least one Peak CAN USB adapter attached. https://www.peak-system.com/PCAN-USB.199.0.html
Some of those PCs have to USB adapters.

We have different PC applications which address those two adapters by its handle, for example
- TPCANHandle PCAN_USBBUS1 = 0x51
- TPCANHandle PCAN_USBBUS2 = 0x52

Sometimes after reboot of the PCs the adapters are swapped! We also assigned different hardware IDs (instead of 0xFF) to the adapters.

How does the Windows driver map the different Peak CAN interfaces to those handles?
How can we ensure that a certain USB adapter is always accessed with the same TPCANHandle?

Many thanks for any hints.
michaeL

MiKo17
Posts: 2
Joined: Wed 21. May 2025, 15:56

Re: Windows: How are multiple PCAN-USB adapters numbered

Post by MiKo17 » Thu 22. May 2025, 19:20

Sorry, after talking to a colleague, we found what we were looking for:

viewtopic.php?f=120&t=125

This request can be closed.

Locked