OpenWrt Forum Archive

Topic: about the 3g modem on ausu wl330n3g

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

the response of cat /proc/bus/usb/devices

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05c6 ProdID=1000 Rev= 0.00
S:  Manufacturer=USBModem
S:  Product=Qualcomm CDMA Technologies MSM
S:  SerialNumber=355477043037788
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms


the response of dmesg

[   13.950000] usbcore: registered new interface driver usbfs
[   13.960000] usbcore: registered new interface driver hub
[   13.970000] usbcore: registered new device driver usb
[   14.710000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT305X.eeprom'.
[   14.890000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   14.900000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[   14.920000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.920000] Registered led device: rt2800pci-phy0::radio
[   14.920000] Registered led device: rt2800pci-phy0::assoc
[   14.920000] Registered led device: rt2800pci-phy0::quality
[   14.980000] PPP generic driver version 2.4.2
[   15.180000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.440000] NET: Registered protocol family 24
[   15.470000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   16.490000] rt3883-ehci rt3883-ehci: Ralink RT3883 built-in EHCI controller
[   16.500000] rt3883-ehci rt3883-ehci: new USB bus registered, assigned bus number 1
[   16.550000] rt3883-ehci rt3883-ehci: irq 26, io mem 0x101c0000
[   16.580000] rt3883-ehci rt3883-ehci: USB 2.0 started, EHCI 1.00
[   16.590000] hub 1-0:1.0: USB hub found
[   16.600000] hub 1-0:1.0: 1 port detected
[   16.630000] nf_conntrack version 0.5.0 (468 buckets, 1872 max)
[   16.930000] usb 1-1: new high-speed USB device number 2 using rt3883-ehci
[   17.130000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   17.140000] rt3883-ohci rt3883-ohci: Ralink RT3883 built-in OHCI controller
[   17.150000] rt3883-ohci rt3883-ohci: new USB bus registered, assigned bus number 2
[   17.170000] rt3883-ohci rt3883-ohci: irq 26, io mem 0x101c1000
[   17.240000] hub 2-0:1.0: USB hub found
[   17.250000] hub 2-0:1.0: 1 port detected
[   17.330000] usbcore: registered new interface driver cdc_acm
[   17.340000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   17.470000] usbcore: registered new interface driver usbserial
[   17.480000] USB Serial support registered for generic
[   17.490000] usbcore: registered new interface driver usbserial_generic
[   17.510000] usbserial: USB Serial Driver core
[   17.620000] USB Serial support registered for Qualcomm USB modem
[   17.640000] usbcore: registered new interface driver qcserial
[   24.180000] device eth0.1 entered promiscuous mode
[   24.190000] device eth0 entered promiscuous mode


please give me some advise ,the usb-serial driver had installed。

thanks!

usb-modeswitch-data contains information about this modem

use the usb-modeswitch-data it‘s sucessed
got the message:

Dec  1 12:05:10 OpenWrt user.notice usb-modeswitch: 1-0:1.0: Manufacturer=Linux_3.3.8_ehci_hcd Product=Ralink_RT3883_built-in_EHCI_controller Serial=rt3883-ehci
Dec  1 12:05:11 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 12:05:11 OpenWrt user.notice usb-modeswitch: 1-1:1.1: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 12:05:11 OpenWrt user.notice usb-modeswitch: 1-1:1.2: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 12:05:11 OpenWrt user.notice usb-modeswitch: 1-1:1.3: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 12:05:12 OpenWrt user.notice usb-modeswitch: 1-1:1.4: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788

then I type the:cat /proc/bus/usb/devices

got messagT:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05c6 ProdID=6000 Rev= 0.00
S:  Manufacturer=USBModem
S:  Product=Qualcomm CDMA Technologies MSM
S:  SerialNumber=355477043037788
C:* #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
e



but , I add the


usbserial  Vendor=05c6 ProdID=6000
in file
/etc/modules.d/60-usb-serial

there is not have any message of attach of ttyUSB or ttyACM
help,plZ!

put in /etc/modules.d/60-usb-serial

usbserial vendor=0x05c6 product=0x6000

and restart router.

If this not help, try load this device by load it to option driver

echo '05c6 6000' > /sys/bus/usb-serial/drivers/option1/new_id

the boot message

Dec  1 13:09:07 OpenWrt kern.info kernel: [   15.500000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.520000] rt3883-ehci rt3883-ehci: Ralink RT3883 built-in EHCI controller
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.530000] rt3883-ehci rt3883-ehci: new USB bus registered, assigned bus number 1
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.580000] rt3883-ehci rt3883-ehci: irq 26, io mem 0x101c0000
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.610000] rt3883-ehci rt3883-ehci: USB 2.0 started, EHCI 1.00
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.620000] hub 1-0:1.0: USB hub found
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.630000] hub 1-0:1.0: 1 port detected
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.660000] nf_conntrack version 0.5.0 (468 buckets, 1872 max)
Dec  1 13:09:07 OpenWrt kern.info kernel: [   16.960000] usb 1-1: new high-speed USB device number 2 using rt3883-ehci
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.150000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.160000] rt3883-ohci rt3883-ohci: Ralink RT3883 built-in OHCI controller
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.180000] rt3883-ohci rt3883-ohci: new USB bus registered, assigned bus number 2
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.190000] rt3883-ohci rt3883-ohci: irq 26, io mem 0x101c1000
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.260000] hub 2-0:1.0: USB hub found
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.270000] hub 2-0:1.0: 1 port detected
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.380000] usbcore: registered new interface driver cdc_acm
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.390000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.490000] usbcore: registered new interface driver usbserial
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.500000] USB Serial support registered for generic
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.510000] usbcore: registered new interface driver usbserial_generic
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.530000] usbserial: USB Serial Driver core
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.640000] USB Serial support registered for Qualcomm USB modem
Dec  1 13:09:07 OpenWrt kern.info kernel: [   17.660000] usbcore: registered new interface driver qcserial
Dec  1 13:09:10 OpenWrt user.notice usb-modeswitch: 1-0:1.0: Manufacturer=Linux_3.3.8_ehci_hcd Product=Ralink_RT3883_built-in_EHCI_controller Serial=rt3883-ehci
Dec  1 13:09:10 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 13:09:10 OpenWrt user.notice usb-modeswitch: 1-1:1.1: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 13:09:11 OpenWrt user.notice usb-modeswitch: 1-1:1.2: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 13:09:11 OpenWrt user.notice usb-modeswitch: 1-1:1.3: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 13:09:11 OpenWrt user.notice usb-modeswitch: 1-1:1.4: Manufacturer=USBModem Product=Qualcomm_CDMA_Technologies_MSM Serial=355477043037788
Dec  1 13:09:12 OpenWrt user.notice usb-modeswitch: 2-0:1.0: Manufacturer=Linux_3.3.8_ohci_hcd Product=Ralink_RT3883_built-in_OHCI_controller Serial=rt3883-ohci
Dec  1 13:09:12 OpenWrt kern.info kernel: [   24.820000] device eth0.1 entered promiscuous mode

then I type
echo '05c6 6000' > /sys/bus/usb-serial/drivers/option1/new_id
thers is no option1 direct in drivers
there is a qcserial direct in it,  so i type

echo '05c6 6000' > /sys/bus/usb-serial/drivers/qcserial/new_id


then I got the message like :


[  997.920000] usb 1-1: unknown number of interfaces: 5
[  997.930000] usb 1-1: unknown number of interfaces: 5
[  997.940000] usb 1-1: unknown number of interfaces: 5
[  997.950000] usb 1-1: unknown number of interfaces: 5
[  997.960000] usb 1-1: unknown number of interfaces: 5


there is still do not found the ttyUSB    sad

thank you very much neryba!

thank you very much neryba!

at last , I install a kmod-usb-serial-option pkg
it work!

You are very great , thank you for the kindly help!

there is new problem


Dec  1 15:00:18 OpenWrt local2.info chat[835]: AT+CGDCONT=1,"IP","3GNET"^M^M
Dec  1 15:00:18 OpenWrt local2.info chat[835]: OK
Dec  1 15:00:18 OpenWrt local2.info chat[835]:  -- got it
Dec  1 15:00:18 OpenWrt local2.info chat[835]: send (ATD*99***1#^M)
Dec  1 15:00:18 OpenWrt local2.info chat[835]: expect (CONNECT)
Dec  1 15:00:18 OpenWrt local2.info chat[835]: ^M
Dec  1 15:00:18 OpenWrt local2.info chat[835]: ATD*99***1#^M^M
Dec  1 15:00:18 OpenWrt local2.info chat[835]: CONNECT
Dec  1 15:00:18 OpenWrt local2.info chat[835]:  -- got it
Dec  1 15:00:18 OpenWrt local2.info chat[835]: send ( ^M)
Dec  1 15:00:18 OpenWrt daemon.info pppd[729]: Serial connection established.
Dec  1 15:00:18 OpenWrt daemon.info pppd[729]: Using interface 3g-wan3G
Dec  1 15:00:18 OpenWrt daemon.notice pppd[729]: Connect: 3g-wan3G <--> /dev/ttyUSB1
Dec  1 15:00:49 OpenWrt daemon.warn pppd[729]: LCP: timeout sending Config-Requests
Dec  1 15:00:49 OpenWrt daemon.notice pppd[729]: Connection terminated.
Dec  1 15:00:50 OpenWrt daemon.notice pppd[729]: Modem hangup
Dec  1 15:00:50 OpenWrt daemon.info pppd[729]: Exit.

go throw all ttyUSBX interfaces by gcom.

gcom -d /dev/ttyUSB2

Find all what answer with your network information and edit network configuration to right ttyUSBX. It also could print error messages about PIN or some others.

it's working now.
at first ,I try the ttyUSB0 ,There is an error message returned.
So I turn to ttyUSB1 and get the LCP: timeout message.
after read you answer, I try ttyUSB0 again , it work.

thank you for the help. You are so nice!

Well i Really appreciate this post. It’s hard to sort the good from the bad sometimes, but I think you’ve nailed it!

The discussion might have continued from here.