Identify PCIe CAN FD device on Linux

This forum covers issues concerning multiple hardware products.
Post Reply
Pawel_G
Posts: 2
Joined: Tue 16. Feb 2021, 11:10

Identify PCIe CAN FD device on Linux

Post by Pawel_G » Wed 3. Mar 2021, 11:20

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

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

Re: Identify PCIe CAN FD device on Linux

Post by M.Heidemann » Wed 3. Mar 2021, 12:50

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

Post Reply