On Tue, Sep 13, 2016 at 11:02:52AM +0530, Ajay Garg wrote: > 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. > > So, is there a solution to our requirement (probably via udev-rules)? > If yes, I will be grateful to receive any pointers. Have you looked at the symlinks in /dev/serial/ ? They should provide the "USB slot" mapping that you are looking for here. hope this helps, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html