Re: Mapping USB-ports "by slot" rather than by "usb attributes"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Ajay Garg <ajaygargnsit@xxxxxxxxx> writes:
> Hi All.
>
> Till now, we had a single usb-serial-cable, that we needed to
> associate to a static tty-name.
> http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/
> worked perfect for our purpose (till now).
>
>
> However, we now require that multiple "identical" usb-serial-cables be
> inserted in our device, and we want to associate static tty-names to
> slots, something like ::
>
> slot-1 ==> always /dev/ttyUSB0
> slot-2 ==> always /dev/ttyUSB1
>
> and so on ...
>
> Since all slots will contain "identical" usb-serial-cables, so the
> solution at http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/
> (if I am not wrong) breaks.

They should still have separate Serial Numbers, right? Anyway, it's not
hard to find a device without Serial number.

> So, is there a solution to our requirement (probably via udev-rules)?
> If yes, I will be grateful to receive any pointers.

You can use the symlinks in /dev/serial/by-path/. See if that's enough
for you.

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux