Page 1 of 1

Labeling usb interfaces

Posted: Tue 17. Mar 2015, 16:00
by lepalom
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

Re: Labeling usb interfaces

Posted: Tue 17. Mar 2015, 17:23
by M.Maidhof
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

Re: Labeling usb interfaces

Posted: Thu 19. Mar 2015, 11:12
by lepalom
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