Labeling usb interfaces

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
lepalom
Posts: 15
Joined: Mon 16. Mar 2015, 17:22

Labeling usb interfaces

Post by lepalom » Tue 17. Mar 2015, 16:00

Hi,

we have two USBCAN connectors from peak. Two identical: same model, bought in same date. Our problem is that we would like to distinguish them in some manner because the udev system could not recognize them in a unique manner, so sometimes pcan0 is one and another is pcan1.

I have been playing with the udev rules, trying to find the serial number, but I have not had any success.

Any idea about how to do that?

Thanks,

Leopold

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Labeling usb interfaces

Post by M.Maidhof » Tue 17. Mar 2015, 17:23

Hi,

it is possible to set an unique device number to the PCAN-USB modules with the linux pcan-settings tool or with the PCAN-View tool under Windows. Please read the linux driver manual on page 32 to 34 on how to use those device numbers with udev (driver version 7.13 or higher):

http://www.peak-system.com/fileadmin/me ... ng_7.x.pdf

regards

Michael

lepalom
Posts: 15
Joined: Mon 16. Mar 2015, 17:22

Re: Labeling usb interfaces

Post by lepalom » Thu 19. Mar 2015, 11:12

Thanks,

it was more or less what I was looking for. I would preferred to have the option to put some name "string", not a number of a device in a subdir inside /dev, but it's ok.

Best regards,

Leopold

Post Reply