Page 1 of 1
Device Enumeration Order
Posted: Fri 31. May 2019, 15:42
by daniel.trevitz
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.
Re: Device Enumeration Order
Posted: Mon 3. Jun 2019, 09:33
by K.Wagner
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.
Re: Device Enumeration Order
Posted: Mon 3. Jun 2019, 14:40
by daniel.trevitz
Awesome! Thank you!
Re: Device Enumeration Order
Posted: Wed 26. May 2021, 23:20
by ithix
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
Re: Device Enumeration Order
Posted: Thu 27. May 2021, 06:53
by M.Heidemann
Hello,
Which operating system do you currently use?
Please let us know.
Best regards
Marvin
Re: Device Enumeration Order
Posted: Thu 27. May 2021, 09:55
by ithix
hey marvin,
we use ubuntu 18.04 with build-in drivers
Re: Device Enumeration Order
Posted: Thu 27. May 2021, 10:47
by M.Heidemann
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