pcan-usb Device number
Posted: Sun 12. Feb 2017, 21:03
When I plug in a PCAN-USB device and run dmesg, Linux recognizes the device number that is flashed to it and correlates it with a can network device number. Is there any way I can programatically get this info (can0 -> device 8)? It would be useful when I attached multiple PCAN-USB devices.
*Note, I am using the preinstalled Linux kernel drivers for use with SocketCAN.
See the attached image: dmesg says can0 is attached to device 8
*Note, I am using the preinstalled Linux kernel drivers for use with SocketCAN.
See the attached image: dmesg says can0 is attached to device 8