Hi
Any suggestion/examples for UDEV rules to enumerate both CAN interfaces from the IPEH-004061 device such /dev/PCAN1 and /dev/PCAN2?
Thanks
Linux UDEV rules for IPEH-004061 hardware
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: Linux UDEV rules for IPEH-004061 hardware
Hello,
You could could create you own syslinks for the devices:
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
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
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
Marvin Heidemann
PEAK-Support Team