SocketCAN device mapping to hardware CAN port
Posted: Tue 17. Nov 2020, 12:01
Hi,
until now i had a single PCI Express Peak CAN device which i use with the kernel main line driver and SocketCan. This works pretty smooth!
Now we add another physically separated CAN bus which results either in two PCI Express CAN cards or in one PCI Express CAN card with two ports.
How can i now ensure that a certain SocketCAN network device (e.g. can0) is consitently mapped to the same hardware CAN port?
cheers,
Bernhard
until now i had a single PCI Express Peak CAN device which i use with the kernel main line driver and SocketCan. This works pretty smooth!
Now we add another physically separated CAN bus which results either in two PCI Express CAN cards or in one PCI Express CAN card with two ports.
How can i now ensure that a certain SocketCAN network device (e.g. can0) is consitently mapped to the same hardware CAN port?
cheers,
Bernhard