Linux UDEV rules for IPEH-004061 hardware

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
jptalledo
Posts: 3
Joined: Fri 18. May 2012, 21:46

Linux UDEV rules for IPEH-004061 hardware

Post by jptalledo » Thu 21. Jan 2021, 17:55

Hi

Any suggestion/examples for UDEV rules to enumerate both CAN interfaces from the IPEH-004061 device such /dev/PCAN1 and /dev/PCAN2?

Thanks

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

Re: Linux UDEV rules for IPEH-004061 hardware

Post by M.Heidemann » Fri 22. Jan 2021, 09:40

Hello,

You could could create you own syslinks for the devices:

Code: Select all

sudo ln -s /dev/pcanusbfd32 /dev/pcan1

Code: Select all

sudo ln -s /dev/pcanusbfd33 /dev/pcan2
But beware, this has to be done after the driver has been loaded (You could use the crontab-file to have this automatically run), as the udev rules are created on the fly with the loading of the driver.

Furthermore this will be in conflict with "pcanpcifd" devices, if present.
You can choose to overwrite the syslink (see ln --help), but you will have to create
new syslinks for the replaced ones.

Can you tell us, for which purpose you want to change the syslinks?

Maybe there are other solutions for your purpose , which are more suited.

Please let us know.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply