[Solved] USB 3G modem & Buffalo WZR-HP-G300NH Huawei E17

Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros based Hardware
Author Message
ScottsBloke
DD-WRT Novice


Joined: 04 Dec 2012
Posts: 5

PostPosted: Sat Dec 15, 2012 22:01    Post subject: [Solved] USB 3G modem & Buffalo WZR-HP-G300NH Huawei E17 Reply with quote
Hello everyone- after a couple of months of living with several DD-WRT installs, time for my first post. Smile

I bought a Buffalo WZR-HP-G300NH and flashed it to the latest build that I could find:

ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/10-12-12-r20119-testing/buffalo_wzr-hp-g300nh/wzr-hp-g300nh-dd-wrt-webupgrade-MULTI.bin

root@WZR-HP-G300NH:~# uname -a
Linux WZR-HP-G300NH 3.5.7-rc1-svn20118 #1656 Fri Oct 12 02:55:05 CEST 2012 mips GNU/Linux

I wish to try to setup a 3G USB dongle as the WAN isp.

I am in the UK so bought an O2 dongle with data sim.

I have read as much as I can find about setting up USB modem inluding the wiki page
'Cellular Phone/USB Modem as WAN connection'
http://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection

and supported devices page:
http://www.dd-wrt.com/wiki/index.php/Mobile_Broadband#HUAWEI

In fact there are a wide variety of Huawei devices sold with the name 'E173'. Inside the sim cover this one is marked as E173u

Device ids are 12d1:1446

As is the norm these days, the USB dongle in fact is a multifunction device containing:-
A flash drive with windows driver,
micro SD card slot,
(atheros?) WiFi device,
2G (gprs) modem,
3G modem,
plus 'UI' device,
and 'API access' devices.

I can see the device(s) being detected when I insert the dongle into the USB port and tail -f /var/log/messages

Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.630000] usb 1-1: new high-speed USB device number 3 using ar71xx-ehci
Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.810000] usb 1-1: New USB device found, idVendor=12d1, idProduct=1446
Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.810000] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.820000] usb 1-1: Product: HUAWEI Mobile
Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.830000] usb 1-1: Manufacturer: HUAWEI Technology
Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.830000] scsi7 : usb-storage 1-1:1.0
Jan 1 00:17:48 WZR-HP-G300NH kern.info kernel: [ 1074.860000] scsi8 : usb-storage 1-1:1.1
Jan 1 00:17:49 WZR-HP-G300NH kern.notice kernel: [ 1075.840000] scsi 7:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Jan 1 00:17:49 WZR-HP-G300NH kern.warn kernel: [ 1075.850000] sr0: scsi-1 drive
Jan 1 00:17:49 WZR-HP-G300NH kern.debug kernel: [ 1075.850000] sr 7:0:0:0: Attached scsi CD-ROM sr0
Jan 1 00:17:49 WZR-HP-G300NH kern.notice kernel: [ 1075.850000] sr 7:0:0:0: Attached scsi generic sg0 type 5
Jan 1 00:17:49 WZR-HP-G300NH kern.notice kernel: [ 1075.870000] scsi 8:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Jan 1 00:17:49 WZR-HP-G300NH kern.notice kernel: [ 1075.870000] sd 8:0:0:0: Attached scsi generic sg1 type 0
Jan 1 00:17:49 WZR-HP-G300NH kern.notice kernel: [ 1075.880000] sd 8:0:0:0: [sda] Attached SCSI removable disk
Jan 1 00:18:02 WZR-HP-G300NH kern.warn kernel: [ 1088.920000] usb 1-1: usbfs: process 5539 (usb_modeswitch) did not claim interface 0 before use
Jan 1 00:18:02 WZR-HP-G300NH kern.info kernel: [ 1088.940000] usb 1-1: USB disconnect, device number 3
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.060000] usb 1-1: new high-speed USB device number 4 using ar71xx-ehci
Jan 1 00:18:06 WZR-HP-G300NH daemon.notice pppd[5616]: pppd 2.4.5 started by root, uid 0
Jan 1 00:18:06 WZR-HP-G300NH daemon.info pppd[5616]: Exit.
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.390000] usb 1-1: New USB device found, idVendor=12d1, idProduct=1436
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.390000] usb 1-1: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.400000] usb 1-1: Product: HUAWEI Mobile
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.400000] usb 1-1: Manufacturer: HUAWEI Technology
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.420000] option 1-1:1.0: GSM modem (1-port) converter detected
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.420000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.430000] option 1-1:1.3: GSM modem (1-port) converter detected
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.440000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.500000] option 1-1:1.4: GSM modem (1-port) converter detected
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.510000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.540000] scsi14 : usb-storage 1-1:1.5
Jan 1 00:18:06 WZR-HP-G300NH kern.info kernel: [ 1093.550000] scsi15 : usb-storage 1-1:1.6
Jan 1 00:18:07 WZR-HP-G300NH kern.notice kernel: [ 1094.540000] scsi 14:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Jan 1 00:18:07 WZR-HP-G300NH kern.notice kernel: [ 1094.550000] scsi 15:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Jan 1 00:18:07 WZR-HP-G300NH kern.notice kernel: [ 1094.560000] sd 15:0:0:0: Attached scsi generic sg0 type 0
Jan 1 00:18:07 WZR-HP-G300NH kern.warn kernel: [ 1094.570000] sr0: scsi-1 drive
Jan 1 00:18:07 WZR-HP-G300NH kern.debug kernel: [ 1094.570000] sr 14:0:0:0: Attached scsi CD-ROM sr0
Jan 1 00:18:07 WZR-HP-G300NH kern.notice kernel: [ 1094.570000] sr 14:0:0:0: Attached scsi generic sg1 type 5
Jan 1 00:18:07 WZR-HP-G300NH kern.notice kernel: [ 1094.580000] sd 15:0:0:0: [sda] Attached SCSI removable disk
Jan 1 00:18:38 WZR-HP-G300NH daemon.notice pppd[5700]: pppd 2.4.5 started by root, uid 0
Jan 1 00:18:42 WZR-HP-G300NH daemon.info pppd[5700]: Exit.
Jan 1 00:19:10 WZR-HP-G300NH daemon.notice pppd[5746]: pppd 2.4.5 started by root, uid 0
Jan 1 00:19:14 WZR-HP-G300NH daemon.info pppd[5746]: Exit.

The pppd errors keep repeating after that.

To me, It appears that modem device(s) is(are?) detected, as well as the usb-storage.

Can anybody help me with this final step of userspace configuration?

I am by no expert in this, I can't even see where the usb_modeswitch configuration is lurking. Sad

I can provide lsusb for the dongle on Fedora17 if that would help.
Although F17 NetworkManager does seem to recognise it- I have been able to configure it using the authentication settings from the (working) windows installation.
I have not been able to get it to connect.

root@WZR-HP-G300NH:~# cat /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 1/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.05
S: Manufacturer=Linux 3.5.7-rc1-svn20118 ehci_hcd
S: Product=Atheros AR91xx built-in EHCI controller
S: SerialNumber=platform
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#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1436 Rev= 0.00
S: Manufacturer=HUAWEI Technology
S: Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA
A: FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
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= 1 Cls=02(comm.) Sub=06 Prot=ff Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Any help at all will be greatly appreciated- even if just links to somewhere where I can read and hopefully understand and progress some more.
Wink


Last edited by ScottsBloke on Sun Dec 23, 2012 17:09; edited 1 time in total
Sponsor
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7646

PostPosted: Sun Dec 16, 2012 2:58    Post subject: Re: using USB 3G modem with Buffalo WZR-HP-G300NH Huawei E1 Reply with quote
ScottsBloke wrote:

Although F17 NetworkManager does seem to recognise it- I have been able to configure it using the authentication settings from the (working) windows installation.
I have not been able to get it to connect.



Your stick does not only have a serial modem interface for ppp, it does also have direct ethernet interface (those 2 with "Driver=(none)" ) which will create a new eth device in your OS when the correct drivers are used.
dd-wrt does currently only support the traditional serial interface for ppp.
You'll have to find out if windows uses the stick in direct ip (eth) mode or in ppp mode and if the windows authentication settings are the same in both modes.
dd-wrt has done the mode switching of the stick from 12d1:1446 to 12d1:1436 and the option driver has attached to the serial ppp interface so the problem is elsewhere.
It is probably easier for you to do the troubleshooting in Fedora where you have better logging facilities, make sure that you have a recent version of usb_modeswitch and that network manager sees the stick as 12d1:1436.

_________________
Kernel panic: Aiee, killing interrupt handler!
ScottsBloke
DD-WRT Novice


Joined: 04 Dec 2012
Posts: 5

PostPosted: Sun Dec 16, 2012 21:29    Post subject: switched to an older supported modem Huawei E160 Reply with quote
@LOM
Thankyou for your quick, useful and informative reply.

It has provided me with enough extra information to go off and increase my understanding. Smile

I see now that Fedora attempts to connect a usb ethernet driver 'cdc_ether' to the modem rather than a serial driver for ppp.

Since DD-WRT currently only supports serial PPP connection I have instead begun experimenting with a 4 year old USB dongle the Huawei E160

Originally this was of no use to me as it was 'locked' to a different operators network, but with a few hours googling and the use of minicom to issue some simple AT commands, I have been able to unlock it. (I hope)

For the benefit of anyone else who needs to unlock a Huawei 3g modem I shall record the 2 most useful links that I used here:

HUAWEI MODEM CODE CALCULATOR
http://www.wintechmobiles.com/tools/huawei-code-calculator/

Unlock your Huawei E160
http://alaninkenya.org/2010/09/29/unlock-your-huawei-e160

Now that I am using an unlocked 'old' modem that utilises serial connection over usb and is listed as supported, I should have some chance to get pppd connected. Smile


BTW, I see from Fedora17 device identification
[root@lappy ~]# lsusb -d 12d1:1003
Bus 001 Device 010: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270 HSDPA/HSUPA Modem

Which would appear to agree with the supported devices table:
http://www.dd-wrt.com/wiki/index.php/3G_/_3.5G#HUAWEI

all of E160 E220 E230/E270 are shown as ids 12d1:1003 and 12d1:1003


Unfortunately whenever I press 'connect' on the 'Status / WAN' page, my telnet and ssh sessions are closed.

Is there a better way to debug this part of the process?

In DD-WRT is there some equivalent to minicom that I can use to probe the modem, issue AT commands etc?

Judging from dmesg and lsmod - setup seems to progress a lot better than before. Smile

Jan 1 00:00:10 WZR-HP-G300NH kern.info kernel: [ 12.060000] cfg80211: Calling CRDA for country: GB
Jan 1 00:00:10 WZR-HP-G300NH user.info syslog: telnetd : telnet daemon successfully started
Jan 1 00:00:11 WZR-HP-G300NH user.info syslog: wland : WLAN daemon successfully started
Jan 1 00:00:11 WZR-HP-G300NH user.info syslog: cron : cron daemon successfully started
Jan 1 00:00:11 WZR-HP-G300NH cron.info cron[908]: (CRON) STARTUP (fork ok)
Jan 1 00:00:11 WZR-HP-G300NH cron.info cron[908]: (crontabs) ORPHAN (no passwd entry)
Jan 1 00:00:11 WZR-HP-G300NH user.info syslog: dnsmasq : dnsmasq daemon successfully started
Jan 1 00:00:11 WZR-HP-G300NH user.info syslog: dropbear : ssh daemon successfully started
Jan 1 00:00:11 WZR-HP-G300NH authpriv.info dropbear[935]: Running in background
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.120000] usbcore: registered new interface driver cdc_acm
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.120000] cdc_acm: USB Abstract Control Model driver for USB modems and
ISDN adapters
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.270000] usbcore: registered new interface driver usbserial
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.280000] usbcore: registered new interface driver usbserial_generic
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.280000] USB Serial support registered for generic
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.290000] usbserial: USB Serial Driver core
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.430000] usbcore: registered new interface driver sierra
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.440000] USB Serial support registered for Sierra USB modem
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.490000] usbcore: registered new interface driver option
Jan 1 00:00:12 WZR-HP-G300NH kern.info kernel: [ 18.490000] USB Serial support registered for GSM modem (1-port)
Jan 1 00:00:13 WZR-HP-G300NH user.info syslog: ppp_redial : redial process successfully started
Jan 1 00:00:13 WZR-HP-G300NH user.info syslog: ttraff : traffic counter daemon successfully started
Jan 1 00:00:13 WZR-HP-G300NH user.info syslog: klogd : kernel log daemon successfully stopped
Jan 1 00:00:13 WZR-HP-G300NH kern.notice kernel: klogd: exiting
Jan 1 00:00:13 WZR-HP-G300NH user.info syslog: httpd : http daemon successfully stopped
Jan 1 00:00:16 WZR-HP-G300NH user.info syslog: klogd : kernel log daemon hanging, send SIGKILL
Jan 1 00:00:16 WZR-HP-G300NH user.info syslog: syslogd : syslog daemon successfully stopped
Jan 1 00:00:16 WZR-HP-G300NH syslog.info syslogd exiting
Jan 1 00:00:16 WZR-HP-G300NH syslog.info syslogd started: BusyBox v1.20.2
Jan 1 00:00:16 WZR-HP-G300NH user.info syslog: klogd : klog daemon successfully started
Jan 1 00:00:16 WZR-HP-G300NH kern.notice kernel: klogd started: BusyBox v1.20.2 (2012-10-12 03:37:38 CEST)
Jan 1 00:00:16 WZR-HP-G300NH kern.info kernel: [ 20.020000] etherip: Ethernet over IPv4 tunneling driver
Jan 1 00:02:00 WZR-HP-G300NH user.info syslog: process_monitor successfully started
Jan 1 00:02:00 WZR-HP-G300NH daemon.err process_monitor[1483]: Last update failed, we need to re-update after 30 seconds
Jan 1 00:02:00 WZR-HP-G300NH daemon.debug process_monitor[1483]: We need to re-update after 3600 seconds
Jan 1 00:02:00 WZR-HP-G300NH daemon.info process_monitor[1483]: set timer: 3600 seconds, callback: ntp_main()
Jan 1 00:56:21 WZR-HP-G300NH auth.info login[5931]: root login on 'pts/0'
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.020000] usb 1-1: new high-speed USB device number 2 using ar71xx-ehci
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.180000] usb 1-1: New USB device found, idVendor=12d1, idProduct=1003
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.180000] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumb
er=0
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.190000] usb 1-1: Product: HUAWEI Mobile
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.200000] usb 1-1: Manufacturer: HUAWEI Technology
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.210000] scsi0 : usb-storage 1-1:1.0
Jan 1 00:56:43 WZR-HP-G300NH kern.info kernel: [ 3409.210000] usb 1-1: USB disconnect, device number 2
Jan 1 00:57:18 WZR-HP-G300NH kern.info kernel: [ 3444.780000] usb 1-1: new high-speed USB device number 3 using ar71xx-ehci
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3444.940000] usb 1-1: New USB device found, idVendor=12d1, idProduct=1003
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3444.950000] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumb
er=0
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3444.950000] usb 1-1: Product: HUAWEI Mobile
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3444.960000] usb 1-1: Manufacturer: HUAWEI Technology
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3444.970000] option 1-1:1.0: GSM modem (1-port) converter detected
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3444.970000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3445.010000] option 1-1:1.1: GSM modem (1-port) converter detected
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3445.020000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3445.050000] scsi3 : usb-storage 1-1:1.2
Jan 1 00:57:19 WZR-HP-G300NH kern.info kernel: [ 3445.060000] scsi4 : usb-storage 1-1:1.3
Jan 1 00:57:20 WZR-HP-G300NH kern.notice kernel: [ 3446.050000] scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2
.31 PQ: 0 ANSI: 2
Jan 1 00:57:20 WZR-HP-G300NH kern.notice kernel: [ 3446.060000] scsi 4:0:0:0: Direct-Access HUAWEI MMC Storage 2
.31 PQ: 0 ANSI: 2
Jan 1 00:57:20 WZR-HP-G300NH kern.notice kernel: [ 3446.070000] sd 4:0:0:0: Attached scsi generic sg0 type 0
Jan 1 00:57:20 WZR-HP-G300NH kern.warn kernel: [ 3446.080000] sr0: scsi-1 drive
Jan 1 00:57:20 WZR-HP-G300NH kern.info kernel: [ 3446.090000] cdrom: Uniform CD-ROM driver Revision: 3.20
Jan 1 00:57:20 WZR-HP-G300NH kern.debug kernel: [ 3446.090000] sr 3:0:0:0: Attached scsi CD-ROM sr0
Jan 1 00:57:20 WZR-HP-G300NH kern.notice kernel: [ 3446.090000] sr 3:0:0:0: Attached scsi generic sg1 type 5
Jan 1 00:57:20 WZR-HP-G300NH kern.notice kernel: [ 3446.130000] sd 4:0:0:0: [sda] Attached SCSI removable disk
Jan 1 00:58:53 WZR-HP-G300NH user.info syslog: dnsmasq : dnsmasq daemon successfully stopped
Jan 1 00:58:55 WZR-HP-G300NH user.info syslog: dnsmasq : dnsmasq daemon hanging, send SIGKILL
Jan 1 00:58:55 WZR-HP-G300NH user.info syslog: cron : cron daemon successfully stopped
Jan 1 00:58:58 WZR-HP-G300NH user.info syslog: cron : cron daemon hanging, send SIGKILL
Jan 1 00:58:58 WZR-HP-G300NH user.info syslog: klogd : kernel log daemon successfully stopped
Jan 1 00:58:58 WZR-HP-G300NH kern.notice kernel: klogd: exiting
Jan 1 00:59:00 WZR-HP-G300NH user.info syslog: klogd : kernel log daemon hanging, send SIGKILL
Jan 1 00:59:00 WZR-HP-G300NH user.info syslog: syslogd : syslog daemon successfully stopped
Jan 1 00:59:00 WZR-HP-G300NH syslog.info syslogd exiting
Jan 1 00:59:35 WZR-HP-G300NH syslog.info syslogd started: BusyBox v1.20.2
Jan 1 00:59:35 WZR-HP-G300NH user.info syslog: klogd : klog daemon successfully started
Jan 1 00:59:35 WZR-HP-G300NH user.info syslog: dropbear : ssh daemon successfully started
Jan 1 00:59:35 WZR-HP-G300NH authpriv.info dropbear[6904]: Running in background
Jan 1 00:59:35 WZR-HP-G300NH user.info syslog: wland : WLAN daemon successfully started
Jan 1 00:59:36 WZR-HP-G300NH user.info syslog: dnsmasq : dnsmasq daemon successfully started
Jan 1 00:59:36 WZR-HP-G300NH kern.notice kernel: klogd started: BusyBox v1.20.2 (2012-10-12 03:37:38 CEST)
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3570.140000] device eth0 left promiscuous mode
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3570.140000] br0: port 1(eth0) entered disabled state
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3570.150000] device eth1 left promiscuous mode
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3570.160000] br0: port 2(eth1) entered disabled state
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.040000] eth0: link down
Jan 1 00:59:36 WZR-HP-G300NH kern.debug kernel: [ 3575.060000] ar71xx: pll_reg 0xb8050014: 0x1e000100
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.060000] eth0: link up (1000Mbps/Full duplex)
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.070000] eth0: link down
Jan 1 00:59:36 WZR-HP-G300NH kern.debug kernel: [ 3575.090000] ar71xx: pll_reg 0xb8050014: 0x1e000100
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.090000] eth0: link up (1000Mbps/Full duplex)
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.100000] device eth0 entered promiscuous mode
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.100000] br0: port 1(eth0) entered forwarding state
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.110000] br0: port 1(eth0) entered forwarding state
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3575.160000] device eth1 entered promiscuous mode
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3577.110000] br0: port 1(eth0) entered forwarding state
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3577.480000] cfg80211: Calling CRDA to update world regulatory domain
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3577.520000] cfg80211: World regulatory domain updated:
Jan 1 00:59:36 WZR-HP-G300NH kern.info kernel: [ 3577.530000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna
_gain, max_eirp)

... skipped radio stuff

Jan 1 00:59:36 WZR-HP-G300NH kern.err kernel: [ 3577.710000] ath: phy0: Unable to set channel
Jan 1 00:59:36 WZR-HP-G300NH user.info syslog: cron : cron daemon successfully started
Jan 1 00:59:36 WZR-HP-G300NH cron.info cron[6938]: (CRON) STARTUP (fork ok)
Jan 1 00:59:36 WZR-HP-G300NH cron.info cron[6938]: (crontabs) ORPHAN (no passwd entry)
Jan 1 01:00:05 WZR-HP-G300NH auth.info login[7194]: root login on 'pts/0'
Jan 1 01:01:05 WZR-HP-G300NH daemon.notice pppd[7298]: pppd 2.4.5 started by root, uid 0
Jan 1 01:01:05 WZR-HP-G300NH user.info syslog: ppp_redial : redial process successfully started
Jan 1 01:01:05 WZR-HP-G300NH user.info syslog: ttraff : traffic counter daemon successfully started
Jan 1 01:01:06 WZR-HP-G300NH user.info syslog: klogd : kernel log daemon successfully stopped
Jan 1 01:01:06 WZR-HP-G300NH kern.notice kernel: klogd: exiting
Jan 1 01:01:06 WZR-HP-G300NH user.info syslog: httpd : http daemon successfully stopped
Jan 1 01:01:08 WZR-HP-G300NH user.info syslog: klogd : kernel log daemon hanging, send SIGKILL
Jan 1 01:01:08 WZR-HP-G300NH user.info syslog: syslogd : syslog daemon successfully stopped
Jan 1 01:01:08 WZR-HP-G300NH syslog.info syslogd exiting
Jan 1 01:01:08 WZR-HP-G300NH syslog.info syslogd started: BusyBox v1.20.2
Jan 1 01:01:36 WZR-HP-G300NH user.info syslog: pppd : PPP daemon successfully stopped
Jan 1 01:01:38 WZR-HP-G300NH user.info syslog: pppd : PPP daemon hanging, send SIGKILL
Jan 1 01:02:55 WZR-HP-G300NH daemon.notice pppd[7649]: pppd 2.4.5 started by root, uid 0
Jan 1 01:03:12 WZR-HP-G300NH daemon.info pppd[7649]: Exit.
Jan 1 01:03:29 WZR-HP-G300NH daemon.notice pppd[7749]: pppd 2.4.5 started by root, uid 0
Jan 1 01:03:47 WZR-HP-G300NH daemon.info pppd[7749]: Exit.

... ppd message repeated


root@WZR-HP-G300NH:~# lsmod
Module Size Used by
cifs 236026 0
md4 3028 0
etherip 4500 0
option 15796 0
sierra 6708 0
usb_wwan 6331 1 option
usbserial 22336 3 option,sierra,usb_wwan
cdc_acm 11812 0
jffs2 87848 0
lzma_decompress 8957 1 jffs2
lzma_compress 29211 1 jffs2
scsi_wait_scan 388 0
ath9k 102792 0
ath9k_common 1433 1 ath9k
ath9k_hw 331167 2 ath9k,ath9k_common
ath 13135 3 ath9k,ath9k_common,ath9k_hw
mac80211 215590 1 ath9k
cfg80211 144651 2 ath9k,mac80211
compat 2140 5 ath9k,ath9k_common,ath9k_hw,mac80211,cfg80211
ag71xx 18453 0

root@WZR-HP-G300NH:~# cat /proc/bus/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 1/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.05
S: Manufacturer=Linux 3.5.7-rc1-svn20118 ehci_hcd
S: Product=Atheros AR91xx built-in EHCI controller
S: SerialNumber=platform
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=12d1 ProdID=1003 Rev= 0.00
S: Manufacturer=HUAWEI Technology
S: Product=HUAWEI Mobile
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
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=option
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=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Once again thankyou for your attention and any advice or suggestions will be gratefully received.

attached text file is Fedora17 output of lsusb -v
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7646

PostPosted: Tue Dec 18, 2012 13:27    Post subject: Reply with quote
Huawei E160 is a stick which should work and there is nothing wrong with the mode switching or the driver and port assignment.

You can probably not use the same authentication settings for a ppp connection as for a direct ip ethernet connection.
The dial strings ending in a number will use stick pre-stored profiles containing among others the APN.
It is probably easiest for you to install the modem under windows first and make it run there before moving it over to the router.
The connection program installed from the sticks cd-rom does sometimes have option for editing the connection profiles, I assume that the default profile still contains APN and maybe username/password/PIN for the network it was previously used on.

_________________
Kernel panic: Aiee, killing interrupt handler!
ScottsBloke
DD-WRT Novice


Joined: 04 Dec 2012
Posts: 5

PostPosted: Tue Dec 18, 2012 19:27    Post subject: Reply with quote
@LOM
Once again I would like to say a heartfelt 'thankyou' to you for taking the time to reply, it has been very helpful to me. Smile

I now have the Huawei E160G working under DD-WRT Smile

For the sake of completeness, and as a breadcrumb trail for anyone else attempting to use a forum search for help with getting a 3G modem working, I shall briefly record some of what I have learned.

1) On Windows I was thwarted and hindered by the carrier provided connection software. I suggest to not waste your time with it, other than to initially prove that you can get connected with a 'stock' windows setup. Sad It has been artificially disabled to only a work with the carrier provided devices, carrier specific SIMs and of course, only the carriers network.

Use the freely available Huawei written generic dashboard. You can freely experiment with different profiles, devices and carriers and see what actually works.

This was also very useful for distinguishing between 2g and 3g connection types available at my specific (rural) location.

As you mentioned, in fact the 'windows' mode uses a completely different login from the usb serial device mode.

I also learnt that there are 2 types of 'ethernet networking' or 'Windows mode'.
When Fedora17 NetworkManager failed to be able to connect using the usb driver cdc_ether I read up about that and attempted a step by step manual connection.

Thus I discovered that there is a bug in the E173u-2 firmware.
After modemManager has switched your device from 12d1:1446 to mode 12d1:1436 use
'#ifconfig -a'

If the reported mac address is 00:01:02:03:04:05 you probably have the bugged firmware.
Incidentally you can see that this number has been erroneously copied from the usb id seen with
'#lsusb -v -d 12d1:1436'

This does not affect the windows installation because it does not use the mode 1436 which Huawei have nicely used to provide a usb ethernet device for unix compatibility.

Windows uses mode 12d1:140c
This uses QMI.- Qualcomm Mobile Data Modem (MDM) Interface

As good fortune would have it, Linus has just released the new mainline kernel 3.7 which now includes a driver qmi_wwan

And Greg KH has added a patch to blacklist my device with the bugged firmware mode for Linux 3.7.1

Bjørn Mork (1):

USB: option: blacklist network interface on Huawei E173
http://www.kernelhub.org/?msg=180830&p=2

So - once distros catch up and modemManager is updated 3G 'windows mode' should be available for all desktop Linux users too. Smile
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Qualcomm Atheros 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