Device Enumeration Order

6-Channel CAN FD Interface for High-Speed USB 2.0
Post Reply
daniel.trevitz
Posts: 2
Joined: Fri 31. May 2019, 15:26

Device Enumeration Order

Post by daniel.trevitz » Fri 31. May 2019, 15:42

Will the 6 CAN ports always enumerate in the same order?
For example, port 1 will always be PCAN_USBBUS1, etc., etc.
I am assuming no other PCAN USB products are installed on the PC.

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

Re: Device Enumeration Order

Post by K.Wagner » Mon 3. Jun 2019, 09:33

Hello,

yes, it will always enumerate in the same order. If no other PCAN-USB based device is attached to the computer, the channels 1 to 6 of the PCAN-USB X6 are PCAN_USBBUS1 to PCAN_USBUS6 respectively.
Best regards,
Keneth

daniel.trevitz
Posts: 2
Joined: Fri 31. May 2019, 15:26

Re: Device Enumeration Order

Post by daniel.trevitz » Mon 3. Jun 2019, 14:40

Awesome! Thank you!

ithix
Posts: 3
Joined: Wed 5. May 2021, 13:02

Re: Device Enumeration Order

Post by ithix » Wed 26. May 2021, 23:20

Hello,

we have 2 pcan-usb x6. After reboot the ports sometimes does not enumerate in the same order.

Is there any way to configure the interfaces according to the usb-ports or something else?

thx

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Device Enumeration Order

Post by M.Heidemann » Thu 27. May 2021, 06:53

Hello,

Which operating system do you currently use?

Please let us know.

Best regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

ithix
Posts: 3
Joined: Wed 5. May 2021, 13:02

Re: Device Enumeration Order

Post by ithix » Thu 27. May 2021, 09:55

hey marvin,

we use ubuntu 18.04 with build-in drivers

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Device Enumeration Order

Post by M.Heidemann » Thu 27. May 2021, 10:47

Hello,

the mainline kernel driver does not allow for fixed enumeration.

Please use the proprietary PCAN-Linux driver package and build for NetDev-mode (Compatible with SocketCAN):

https://www.peak-system.com/fileadmin/m ... 2.0.tar.gz

Please see the PCAN-Linux documentation, chapter 3 -"Installation" for information on how to build the driver
in NetDev mode:

https://www.peak-system.com/fileadmin/m ... an_eng.pdf

You can set the channel number according to the device number, a detailed description for setting the device-number and
use the "assign" parameter to have the channel-number adhere to this device number is detailed in the following forum post:

viewtopic.php?f=7&t=1861

For further information on the assign paramter, please see the PCAN-Linux documentation on page 39:

https://www.peak-system.com/fileadmin/m ... an_eng.pdf

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply