Using 3G modem on Asus N13U B1

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ralink SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Sun Feb 05, 2012 14:43    Post subject: Using 3G modem on Asus N13U B1 Reply with quote
I recently bought a Lava 720G 3G modem. I have been able to use it on my PC running Linux, without any problem.
I tried running it on the router but it doesn't seem to connect at all.
I searched for possible how-to's and solutions but to no avail.
Can anyone guide me on how to get started with troubleshooting?
Sponsor
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Sun Feb 05, 2012 17:38    Post subject: Reply with quote
So, after going through some troubleshooting with friends, one of whom uses the same router model, same firmware, same connection but Huawei modem and is able to connect. Thus, it seems that the problem is that my 3G modem isn't supported.
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Sun Feb 05, 2012 17:49    Post subject: Reply with quote
In case it helps the devs here's is the required information about the modem

Vendor id - 0x1c9e
Product id - 0x9605

Code:
# dmesg | grep -i gsm
<6>drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
<6>drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1


Code:
# dmesg | grep usb
<7>usb-storage: device scan complete
<6>drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
<6>usbcore: registered new interface driver option
<6>drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
<4>usb 1-1: usbfs: process 1087 (usb_modeswitch) did not claim interface 0 before use
<6>usb 1-1: USB disconnect, address 2
<6>usb 1-1: new high speed USB device using dwc_otg and address 3
<6>usb 1-1: configuration #1 chosen from 1 choice
<7>usb-storage: device found at 3
<7>usb-storage: waiting for device to settle before scanning
<7>usb-storage: device scan complete
<6>drivers/usb/serial/usb-serial.c: USB Serial support registered for Sierra USB modem
<6>usbcore: registered new interface driver sierra
<6>drivers/usb/serial/sierra.c: USB Driver for Sierra Wireless USB modems: v.1.7.0
<6>usb 1-1: USB disconnect, address 3
<6>usb 1-1: new high speed USB device using dwc_otg and address 4
<6>usb 1-1: configuration #1 chosen from 1 choice
<7>usb-storage: device found at 4
<7>usb-storage: waiting for device to settle before scanning
<7>usb-storage: device scan complete
<4>usb 1-1: usbfs: process 2599 (usb_modeswitch) did not claim interface 0 before use
<6>usb 1-1: USB disconnect, address 4
<6>usb 1-1: new high speed USB device using dwc_otg and address 5
<6>usb 1-1: configuration #1 chosen from 1 choice
<7>usb-storage: device found at 5
<7>usb-storage: waiting for device to settle before scanning
<7>usb-storage: device scan complete
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7047

PostPosted: Mon Feb 06, 2012 0:46    Post subject: Reply with quote
mehulved wrote:
In case it helps the devs here's is the required information about the modem

Vendor id - 0x1c9e
Product id - 0x9605



The vendor id is for the Chinese mfgr Longcheer/Longsung
who makes "white label" sticks and Lava is one of many re-branders.

The product id 0x9605 was included in the dd-wwrt build tree only 5 days ago so your stick should be supported in the next public dd-wrt release.
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Mon Feb 06, 2012 5:14    Post subject: Reply with quote
LOM wrote:
mehulved wrote:
In case it helps the devs here's is the required information about the modem

Vendor id - 0x1c9e
Product id - 0x9605



The vendor id is for the Chinese mfgr Longcheer/Longsung
who makes "white label" sticks and Lava is one of many re-branders.

The product id 0x9605 was included in the dd-wwrt build tree only 5 days ago so your stick should be supported in the next public dd-wrt release.

Thank you for the information. I'll await the next release.(Hopefully it's soon)
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Thu Mar 22, 2012 18:53    Post subject: Reply with quote
LOM wrote:
The product id 0x9605 was included in the dd-wwrt build tree only 5 days ago so your stick should be supported in the next public dd-wrt release.

It's still not supported in the latest release? I flashed build 18777 today but I am still at the same point.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7047

PostPosted: Fri Mar 23, 2012 16:08    Post subject: Reply with quote
mehulved wrote:
LOM wrote:
The product id 0x9605 was included in the dd-wwrt build tree only 5 days ago so your stick should be supported in the next public dd-wrt release.

It's still not supported in the latest release? I flashed build 18777 today but I am still at the same point.


The product id is supported now so it must be a driver problem.

give me the output from cat /proc/bus/usb/devices or cat /sys/kernel/debug/usb/devices

and output from dmesg.
dmesg should show the stick first being detected with vid:pid 1c9e:f000, should show that a usb_modeswitch is done to switch the stick from cd-rom mode to modem mode, and finally show that the stick is re-detected with new vid:pid 1c9e:9605.

do also give me the output from lsmod so I can see what drivers has been loaded.
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Fri Mar 23, 2012 17:14    Post subject: Reply with quote
LOM wrote:


The product id is supported now so it must be a driver problem.

give me the output from cat /proc/bus/usb/devices or cat /sys/kernel/debug/usb/devices


# cat /proc/bus/usb/devices
Code:

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.12-rc1-svn18774 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms


LOM wrote:

and output from dmesg.
dmesg should show the stick first being detected with vid:pid 1c9e:f000, should show that a usb_modeswitch is done to switch the stick from cd-rom mode to modem mode, and finally show that the stick is re-detected with new vid:pid 1c9e:9605.


Only new line I see added to dmesg when I plug in the USB data card is
Code:

<6>usb 1-1: new high-speed USB device number 2 using dwc_otg


LOM wrote:

do also give me the output from lsmod so I can see what drivers has been loaded.


#lsmod

Code:

Module                  Size  Used by
rt2860v2_ap           470608  1
option                 14880  0
sierra                  6656  0
usb_wwan                6496  1 option
usbserial              20800  3 option,sierra,usb_wwan
usb_libusual            8032  0
dwc_otg                58640  0
usbcore                96256  7 option,sierra,usb_wwan,usbserial,usb_libusual,dwc_otg
usb_common               480  1 usbcore
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7047

PostPosted: Fri Mar 23, 2012 18:02    Post subject: Reply with quote
mehulved wrote:

# cat /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.02
S: Manufacturer=Linux 3.2.12-rc1-svn18774 dwc_otg_hcd
S: Product=DWC OTG Controller
S: SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms



The 3G stick should had been there also, either with its cd-rom id 1c9e:f000 or its modem id 1c9e:9605
That is only the USB controller in the router.


mehulved wrote:


Only new line I see added to dmesg when I plug in the USB data card is
Code:

<6>usb 1-1: new high-speed USB device number 2 using dwc_otg



Can you please post the complete dmesg, there is something fishy here.
Do also check if the 3G modules still gets loaded when you reboot without the modem connected, the modules are option, sierra, usb_wwan, and usbserial, they get loaded when a 3G modem is detected but shouldn't be there otherwise.
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Sat Mar 24, 2012 17:19    Post subject: Reply with quote
LOM wrote:

The 3G stick should had been there also, either with its cd-rom id 1c9e:f000 or its modem id 1c9e:9605
That is only the USB controller in the router.


Oops! I did post this before the 3G stick was inserted.
Here's the correct output
Code:

# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.12-rc1-svn18774 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1c9e ProdID=f000 Rev= 0.00
S:  Manufacturer=USB Modem
S:  Product=USB Modem
S:  SerialNumber=1234567890ABCDEF
C:* #Ifs= 1 Cfg#= 1 Atr=e0 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


LOM wrote:

Can you please post the complete dmesg, there is something fishy here.


Here's the complete dmesg log http://pastebin.com/690gxLvm

LOM wrote:

Do also check if the 3G modules still gets loaded when you reboot without the modem connected, the modules are option, sierra, usb_wwan, and usbserial, they get loaded when a 3G modem is detected but shouldn't be there otherwise.

The output was just after the modem was booted up. I didn't load any modules manually.

Another thing I tried is running usb_modeswitch myself. Here's what I did and results I got.
Code:

# usb_modeswitch -v 1c9e -p f000

Looking for default devices ...
 Found devices in default mode or class (1)
Accessing device 003 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: USBModem
   Model String: Disk           
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: USB Modem
     Product: USB Modem
  Serial No.: 1234567890ABCDEF
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.

Code:

# usb_modeswitch -v 1c9e -p f000 -V 1c9e -P 9605

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode or class (1)
Accessing device 003 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("dummy")
 OK, driver "dummy" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: USBModem
   Model String: Disk           
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: USB Modem
     Product: USB Modem
  Serial No.: 1234567890ABCDEF
-------------------------
Warning: no switching method given.
-> Run lsusb to note any changes. Bye.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7047

PostPosted: Sat Mar 24, 2012 17:55    Post subject: Reply with quote
You need a message string for your manual usb_modeswitch command:

usb_modeswitch -v 0x1c9e -p 0xf000 -V 0x1c9e -P 0x9605 -M "55534243123456780000000000000011062000000100000000000000000000"

If you get a successful modeswitch then

insmod usbserial vendor=0x1c9e product=0x9605
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Sat Mar 24, 2012 18:04    Post subject: Reply with quote
I am not familiar with message string. Should I be giving the same one as you provided or is there a way to find out what is required for my 3G stick?
Here's what I get when I run the command provided by you, as-is.
Code:

# usb_modeswitch -v 0x1c9e -p 0xf000 -V 0x1c9e -P 0x9605 -M "55534243123456780000000000000011062000
000100000000000000000000"

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode or class (1)
Accessing device 004 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 No driver found. Either detached before or never attached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: USBModem
   Model String: Disk           
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: USB Modem
     Product: USB Modem
  Serial No.: 1234567890ABCDEF
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7047

PostPosted: Sat Mar 24, 2012 18:07    Post subject: Reply with quote
mehulved wrote:

Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.
[/code]


This should be a successful switch (Device is gone).

cat /proc/bus/usb/devices should now show you the device with its modem id and a much longer list of interfaces then previously.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7047

PostPosted: Sat Mar 24, 2012 18:11    Post subject: Reply with quote
Sorry, I gave you a switch msg for a Huawei stick Shocked

-M "55534243123456788000000080000606f50402527000000000000000000000"

is the right one.

You can probably also find the modeswitch cmd which dd-wrt should had sent out in /tmp/usb_modeswitch.conf and it should be the same one as I gave you.

If so, then you can call usb_modeswitch with a config file option instead:

usb_modeswitch -c /tmp/usb_modeswitch.conf


Last edited by LOM on Sat Mar 24, 2012 18:13; edited 1 time in total
mehulved
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 26

PostPosted: Sat Mar 24, 2012 18:13    Post subject: Reply with quote
No, don't see any changes. It's still the same.
Code:

# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.02
S:  Manufacturer=Linux 3.2.12-rc1-svn18774 dwc_otg_hcd
S:  Product=DWC OTG Controller
S:  SerialNumber=lm0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  6 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1c9e ProdID=f000 Rev= 0.00
S:  Manufacturer=USB Modem
S:  Product=USB Modem
S:  SerialNumber=1234567890ABCDEF
C:* #Ifs= 1 Cfg#= 1 Atr=e0 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
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum