Hi,

or you can use my enhanced 3g patch. It was not accepted yet, but I am
hard-working on it :) This script identify your serial modem by asking
modem directly. You can get CIMI, networkid or IMEI and it will link
that serial device to right place. More info here:
https://forum.openwrt.org/viewtopic.php?id=26539
with regars,
Lukas

Benjamin Henrion píše v Po 25. 10. 2010 v 14:21 +0200:
> On Mon, Oct 25, 2010 at 1:58 PM, Daniel Golle <daniel.go...@gmail.com> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > hi everybody!
> > for my current project i need to reliably identify/distinguish several
> > USB-to-serial devices connected to a 4-port hub. in a desktop
> > environment, i would use hal over dbus (or in future probably device-kit
> > over dbus) to select the device by
> > vendor/product/serialno/connected-port. i was thinking of using udev to
> > create symbolic links, but even udev seems like taking a sledgehammer to
> > crack a nut to me...
> > my problem is that, depending on whether i cold-start or reboot the
> > system (a fon2202 btw), the different USB-to-serial gadgets end up to be
> > different ttyUSBx devices. especially the huawei 3g/umts wwan seems to
> > take a greatly varying amount of time before it becomes ready, so on a
> > reboot it becomes visible to the system as ttyUSB0 & ttyUSB1, in a
> > cold-start it's ttyUSB2 & ttyUSB3...
> > what way do you suggest to solve the problem?
> 
> Address the devices by going into the /dev/serial/by-id :
> 
> zoo...@buzek /dev/serial/by-id [18]$ l
> total 0
> lrwxrwxrwx 1 root root 13 2010-10-25 09:17
> usb-Dell_Dell_Wireless_5530_HSPA_Mobile_Broadband_Minicard_Device_3558620231349960-if01
> -> ../../ttyACM0
> lrwxrwxrwx 1 root root 13 2010-10-25 09:17
> usb-Dell_Dell_Wireless_5530_HSPA_Mobile_Broadband_Minicard_Device_3558620231349960-if03
> -> ../../ttyACM1
> lrwxrwxrwx 1 root root 13 2010-10-25 09:17
> usb-Dell_Dell_Wireless_5530_HSPA_Mobile_Broadband_Minicard_Device_3558620231349960-if09
> -> ../../ttyACM2
> 
> The path there should be unique.
> 
> Try to insert all the adaptors, and send me the output of "ls -l
> /dev/serial/by-id".
> 
> --
> Benjamin Henrion <bhenrion at ffii.org>
> FFII Brussels - +32-484-566109 - +32-2-4148403
> "In July 2005, after several failed attempts to legalise software
> patents in Europe, the patent establishment changed its strategy.
> Instead of explicitly seeking to sanction the patentability of
> software, they are now seeking to create a central European patent
> court, which would establish and enforce patentability rules in their
> favor, without any possibility of correction by competing courts or
> democratically elected legislators."
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to