Hi guys.
I'm trying to use OpenWRT with a tp-link with usb mr3020 [1] for more
than one USB to Serial adapter [2]
The problem i have at this time is about how can i make always the same
/dev/ttyUSB?? become usable when i plug one of those adapters.
First i start reading about Hotplug[3] but i did not find any informatin
about this problem. Looks like Hotplug is only for execute some scripts
after a device is plugged in like name inform :S
I'm following some guides from internet and see about this:
1. need to install "udev" package for rule creation
2. run |udevadm info -a -n /dev/ttyUSB1 | grep '{serial}'|
Using this command i get wrong information when i execute on OpenWRT.
If i run in Ubuntu 14.04 this is the output => |ATTRS{serial}=="A6008isP"`|
But if i run on OpenWRT A.A. i get this =>
ATTRS{serial}=="ehci-platform"
3. Create a rule using the information from point 2. using [4]
|SUBSYSTEM=="tty", ATTRS{idVendor}=="some id", ATTRS{idProduct}=="some id",
ATTRS{serial}=="this ehci-plataform", SYMLINK+="ttyUSB10 or whatever"
|
I don't know how to get the correct information from udevadm or if i can
do another thing to solve this.
Maybe i can use the position of the USB device in the hub [5] but this
can be tedius if you move the device from another hub.
thanks for read this thread.
Best regards.
Emiliano
[1] http://wiki.openwrt.org/toh/tp-link/tl-mr3020
[2]
http://www.ebay.com/itm/USB-to-RS232-Serial-Port-9-Pin-DB9-Cable-Serial-COM-Port-Adapter-Convertor-Blue-/310707198888?pt=US_Parallel_Serial_PS_2_Cables_Adapters&hash=item4857979ba8
[3] http://wiki.openwrt.org/doc/techref/hotplug
[4] http://reactivated.net/writing_udev_rules.html
[5] http://www.linux-usb.org/FAQ.html#i6
--
Emiliano Vazquez | PcCentro Informatica & CCTV
Office: +54 (11) 4635-3218 y Rotativas
Movil: 011-15-6253-7165
Mail: [email protected]
Web: http://www.pccentro.com.ar
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users