Summary: | [usbdevs] [patch] Huawei E303 USB 3G modem support | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Peter Sopko <peter.sopko> | ||||
Component: | usb | Assignee: | freebsd-usb (Nobody) <usb> | ||||
Status: | Closed Overcome By Events | ||||||
Severity: | Affects Only Me | CC: | bugmeister, clarkema, fastgoldfish, garga, hop, linimon, mohammad, peter.sopko+freebsd.org | ||||
Priority: | Normal | ||||||
Version: | 9.1-RELEASE | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Peter Sopko
2013-05-19 16:40:02 UTC
Responsible Changed From-To: freebsd-bugs->freebsd-usb Over to maintainer(s). State Changed From-To: open->feedback These product IDs were added as Huawei E3131 in r238493, can you confirm this works with your device? They are both in 10-STABLES and 9-STABLE. Sorry for the delay in processing this PR! Responsible Changed From-To: freebsd-usb->brueffer These product IDs were added as Huawei E3131 in r238493, can you confirm this works with your device? They are both in 10-STABLES and 9-STABLE. Sorry for the delay in processing this PR! Hello, I can confirm that the Huawei E303 is not recognised by the u3g module on the following platform: root@chernobyl:~ # uname -a FreeBSD chernobyl.rogueconf.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r263769M: Wed Mar 26 18:19:38 EET 2014 root@barnswallow.local:/usr/obj/mips.mips/usr/src/sys/ROUTERSTATION mips The usb_modeswitch command with the parameters specified above works. What bugs me is that the product id is not getting changed to 0x1506 but to 0x1c05 instead. Device description without the u3g module loaded: root@chernobyl:~ # usbconfig -u 0 -a 6 dump_device_desc ugen0.6: <HUAWEI Mobile HUAWEI> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x14fe bcdDevice = 0x0102 iManufacturer = 0x0002 <HUAWEI> iProduct = 0x0001 <HUAWEI Mobile> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 Device description with the u3g module loaded: root@chernobyl:~ # usbconfig -u 0 -a 6 dump_device_desc ugen0.6: <HUAWEI Mobile HUAWEI> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x1c05 bcdDevice = 0x0102 iManufacturer = 0x0002 <HUAWEI> iProduct = 0x0001 <HUAWEI Mobile> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 dmesg output after the device is connected while the u3g module is loaded: ugen0.6: <HUAWEI> at usbus0 ugen0.6: <HUAWEI> at usbus0 (disconnected) ugen0.6: <HUAWEI> at usbus0 umass2: <HUAWEI HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 6> on usbus0 umass2: SCSI over Bulk-Only; quirks = 0x0000 umass2:2:2: Attached to scbus2 umass3: <HUAWEI HUAWEI Mobile, class 0/0, rev 2.00/1.02, addr 6> on usbus0 umass3: SCSI over Bulk-Only; quirks = 0x0000 umass3:3:3: Attached to scbus3 da2 at umass-sim3 bus 3 scbus3 target 0 lun 0 da2: <HUAWEI SD Storage 2.31> Removable Direct Access SCSI-2 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da2: quirks=0x2<NO_6_BYTE> Observed the same behaviour on x86_64. I have the same trouble that bordjukov@gmail.com. My system is 9.2 and no option to update/upgrade since no copper or fiber connection in my home. The hardware is old PIII/i443BX used as a testbench. My versions of u3g.c (v.253292), usb_serial.h (v.244813) and usb_serial.c (v.248085) differ from latest ones in https://svnweb.freebsd.org/base/release/9.2.0/sys/dev/usb/serial/ only with version string in comments. The dongle was "modeswitched" to serial mode on Windows PC, and it works fine with it. On FreeBSD "usbconfig dump_device_desc" reports: ugen0.2: <HUAWEI HiLink HUAWEI> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x12d1 idProduct = 0x1c05 bcdDevice = 0x0102 iManufacturer = 0x0002 <HUAWEI> iProduct = 0x0001 <HUAWEI HiLink> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 These USB VID&PID are present in /usr/src/sys/dev/usb/usbdevs, but PID 0x1c05 belongs to HUAWEI E173. Both ucom and u3g are compiled into kernel, "kldstat -v" shows "uhub/u3g" but ucom is not shown, attempt to "kldload ucom" results in "can't load ucom: File exists". In /dev are found: cuau0 cuau0.init cuau0.lock cuau1 cuau1.init cuau1.lock ttyu0 ttyu0.init ttyu0.lock ttyu1 ttyu1.init ttyu1.lock Attempt to send "AT" with cu or tip gives no result, usbdump sees no data exchande at all. I did usbdump when plugging the dongle in and when doing "usbconfig dump_device_desc": usbdump -b e303_plug-in.bin -w e303_plug-in.raw -vvv >& e303_plug-in.txt usbdump -b e303_dump_device_desc.bin -w e303_dump_device_desc.raw -vvv >& e303_dump_device_desc.txt These files are available on https://cloud.mail.ru/public/b4843b2fb3ab/e303.zip I will be glad to run any commands that might help solving this issue. Best regards! I made a dump under Windows XP using SnoopyPro (http://sourceforge.net/projects/usbsnoop/). The dump files with brief description of actions performed are available at https://cloud.mail.ru/public/ad591ee4b470/Huawei_E303_dump.zip Hope this can help. I've just gone through the process of getting my E303 working with 10.1 on a Soekris net6501: $ uname -a FreeBSD 10.1-RELEASE FreeBSD 10.1-RELEASE #4: Mon Mar 23 11:12:41 GMT 2015 clarkema@loki:/usr/obj/nanobsd.sk6501/usr/src/sys/SK6501 amd64 I can confirm the E303 didn't work out of the box; it showed up as a SCSI CD drive. Equally, the patch given in the original post didn't do the trick; it may be that I have a newer version of the E303 with different IDs. Mine is an E303s-2. I added the following lines to /sys/dev/usb/usbdevs: product HUAWEI E303_INIT 0x1f01 3G modem initial product HUAWEI E303 0x1001 3G modem The patch to /sys/dev/usb/serial/u3g.c is as the original post. I'm happy to help out with any further testing or diagnostics to help close this. ^Triage: this does not currently appear to be "in progress". To submitter: is this antique PR still relevant? ^Triage: to submitter: is this aging PR still relevant? I have no way to check as I don't have any running FreeBSD 9.x or 10.x machine any more and don't have the Huawei USB modem as well.... but since it's been more than 10 years and most probably the device is not even sold or used much anymore I don't think it should be considered relevant anymore. ^Triage: mark as overcome by events. |