Page 1 of 1

Identify PCIe CAN FD device on Linux

Posted: Wed 3. Mar 2021, 11:20
by Pawel_G
Hi!
According to this topic:
viewtopic.php?f=120&t=5914

I am wondering:
1. Is there any possibility to achieve the same on Linux system?
2. If not, does PCIe CAN FD device have any unique identifier that can be red from, for example, sysfs? / How to identify a device on Linux?

Best regards, Paweł Gmurczyk

Re: Identify PCIe CAN FD device on Linux

Posted: Wed 3. Mar 2021, 12:50
by M.Heidemann
Hello,

Yes, this can also be achieved using our PCAN-Linux driver package under Linux.

In this case the assign parameter is used, which is described in the PCAN-Linux Driver documentation, page 39:

http://www.peak-system.com/fileadmin/me ... an_eng.pdf

To set the device ID via pcan-settings (described on page 31), the PCAN-Driver has to be used in CharDev-mode. Once the device has a device-id set the CharDriver can be uninstalled and the NetDev driver can be installed (If SocketCAN support is needed).

An example for the usage is given in this forum post ( example for NetDev, although the same principle applies to Chardev as well, refer to the PCAN Linux documentation to see the specifcs regarding the assign parameter)

viewtopic.php?f=59&t=6259

Best Regards

Marvin