0

I have a testing system Ubuntu 22.04.1 LTS that uses more than one pcan device,
each pcan device is connected to one testing unit.
to connect to the pcan devices I use python python-can module.

my system was rebooted, and all the mapping was scrambled...
as for other USB devices, I was able to solve it via udev rules.

But I'm not able to find a way to:
either predefined the PCAN channel name (e.g. instead of PCAN_USBBUS1 get U1_PCAN_USBBUS)
or to create synonyms (e.g. PCAN_USBBUS1 -> U1_PCAN_USBBUS)

any ideas?


I have tried to play around with udev rules, although I saw that I have pointers to the dev (e.g. /dev/pcanusbbus0)
I didn't find a way to change the channel name.

please help

0 Answers0