Posted: Sat Apr 30, 2016 14:20 Post subject: Asus WL-500GPV2 + Huawei e3276 usb modem: is there any hope?
Hello everyone,
I've recently bought Asus WL-500G Premium V2 router, as it seems to be well supported by dd-wrt, and has 2 USB ports. I'm trying to set it up to use my LTE modem and share the connection.
Unfortunately, I can't get dd-wrt to spawn /dev/ttyUSB* (or any tty) devices with it. My question is - is it even theoretically possible to get it to work with v24, and if it's not, is there any build I should use? After going through the forum it seems that k26 should work much better, but people get bricked devices on WL-500GpV2 with it.
Below I'm pasting general info:
- router: Asus WL-500G Premium V2
- dd-wrt: v24-sp2 (08/07/10) mega - build 14896 (the highest supported build for that from what I found)
- usb modem: Huawei e3276 (recognized with ID 12d1:14fe)
What I did so far:
- I flashed without trouble, using the wiki tutorial, and mega image
- I enabled ssh, jffs, ipkg and usb
- I installed packages for libusb, lsusb and usb_modeswitch (manually, by copying packages, as I don't have a net connection on the router)
- I managed to switch the modem from 12d1:14fe device ID to 12d1:1506 (that seems to be the modem mode, and that's how I use it from my laptop)
- I loaded acm.o module according to the guide on the wiki (https://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection ), but didn't get any result (/dev/ttyACM* should show up, but it doesn't)
- I loaded usbserial.o module (that's what I figure is needed for ttyUSB), with no results either
- I tried randomly other illogical things, with no result (putting/taking out sd card, rebooting, different usb-modeswitch configs)
root@DD-WRT:/# dmesg | tail
hub.c: new USB device 00:03.1-1.2, assigned address 16
Vendor: HUAWEI Model: Mass Storage Rev: 2.31
Type: CD-ROM ANSI SCSI revision: 02
USB device connected to the SCSI subsystem
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 16
Unable to connect USB device to the SCSI subsystem
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 16
SCSI device sdb: 1995776 512-byte hdwr sectors (1022 MB)
sdb: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: p1
root@DD-WRT:/# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
Bus 001 Device 009: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
[b]Bus 001 Device 016: ID 12d1:14fe Huawei Technologies Co., Ltd.[/b]
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.5 (C) Josua Dietze 2008
* Works with libusb 0.1.12 and probably other versions
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found ("usb-storage")
OK, Driver "usb-storage" successfully detached
Setting up communication with device
Trying to send the message
OK, message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
root@DD-WRT:/opt/confs# dmesg | tail
USB device disconnected from the SCSI subsystem
usb.c: USB disconnect on device 00:03.1-1.2 address 16
USB device disconnected from the SCSI subsystem
hub.c: new USB device 00:03.1-1.2, assigned address 17
Vendor: HUAWEI Model: TF CARD Storage Rev: 2.31
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
SCSI device sdb: 1995776 512-byte hdwr sectors (1022 MB)
sdb: Write Protect is off
/dev/scsi/host3/bus0/target0/lun0: p1
USB device connected to the SCSI subsystem
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 17
root@DD-WRT:/opt/confs# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
Bus 001 Device 009: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 001 Device 017: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
# I even tried removing and loading modules:
root@DD-WRT:/opt/modules# rmmod usbserial
root@DD-WRT:/opt/modules# rmmod acm
root@DD-WRT:/opt/modules# insmod usb/serial/usbserial.o
root@DD-WRT:/opt/modules# insmod usb/acm.o
root@DD-WRT:/opt/modules# dmesg | tail
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 17
usb.c: deregistering driver acm
usbserial.c: USB Serial deregistering driver Generic
usb.c: deregistering driver serial
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters
Right now I'm a little stuck. I've spent a while googling/going through the forum, but even despite these 2 devices are quite common, I didn't find anyone writing about a similar setup, or similar issue. I'd greatly appreciate any advice/hints. It's not a matter of life and death, but it's buggering me. If I succeed I can create a guide/wiki article from my notes.
Posted: Sat Jul 09, 2016 7:58 Post subject: Re: Asus WL-500GPV2 + Huawei e3276 usb modem: is there any h
You can manually create the ttyACM0 device file with this (since the module has been loaded):
mknod /dev/ttyACM0 c 166 0; chmod 660 /dev/ttyACM0
jreare wrote:
Hello everyone,
System info:
[code]root@DD-WRT:/opt/confs# uname -a
Linux DD-WRT 2.4.37 #13201 Sat Aug 7 02:24:26 CEST 2010 mips unknown
root@DD-WRT:/opt/confs# lsmod
Module Size Used by
usbserial 26444 0 (unused)
hid 19796 0 (unused)
scanner 13356 0 (unused)
acm 6492 0 (unused)
Posted: Sat Jul 09, 2016 9:08 Post subject: Re: Asus WL-500GPV2 + Huawei e3276 usb modem: is there any h
tou.manokat@gmail.com wrote:
You can manually create the ttyACM0 device file with this (since the module has been loaded):
mknod /dev/ttyACM0 c 166 0; chmod 660 /dev/ttyACM0
Why?
cdc_acm will create the ttyACM device(s) as soon as it binds to a usb interface that should be driven by it.
If cdc_acm is loaded but no devices generated then it won't help to create them manually, they will not be connected to a usb interface on the dongle.
Completely useless.. _________________ Kernel panic: Aiee, killing interrupt handler!
Sometimes it does happen, when the character special files are not created automatically at the time the modules are loaded, in which case, I need to create the character special files by hand.
LOM wrote:
tou.manokat@gmail.com wrote:
You can manually create the ttyACM0 device file with this (since the module has been loaded):
mknod /dev/ttyACM0 c 166 0; chmod 660 /dev/ttyACM0
Why?
cdc_acm will create the ttyACM device(s) as soon as it binds to a usb interface that should be driven by it.
If cdc_acm is loaded but no devices generated then it won't help to create them manually, they will not be connected to a usb interface on the dongle.
Completely useless..
I've recently bought Asus WL-500G Premium V2 router, as it seems to be well supported by dd-wrt, and has 2 USB ports. I'm trying to set it up to use my LTE modem and share the connection.
Unfortunately, I can't get dd-wrt to spawn /dev/ttyUSB* (or any tty) devices with it. My question is - is it even theoretically possible to get it to work with v24, and if it's not, is there any build I should use? After going through the forum it seems that k26 should work much better, but people get bricked devices on WL-500GpV2 with it.
Below I'm pasting general info:
- router: Asus WL-500G Premium V2
- dd-wrt: v24-sp2 (08/07/10) mega - build 14896 (the highest supported build for that from what I found)
- usb modem: Huawei e3276 (recognized with ID 12d1:14fe)
What I did so far:
- I flashed without trouble, using the wiki tutorial, and mega image
- I enabled ssh, jffs, ipkg and usb
- I installed packages for libusb, lsusb and usb_modeswitch (manually, by copying packages, as I don't have a net connection on the router)
- I managed to switch the modem from 12d1:14fe device ID to 12d1:1506 (that seems to be the modem mode, and that's how I use it from my laptop)
- I loaded acm.o module according to the guide on the wiki (https://www.dd-wrt.com/wiki/index.php/Cellular_Phone/USB_Modem_as_WAN_connection ), but didn't get any result (/dev/ttyACM* should show up, but it doesn't)
- I loaded usbserial.o module (that's what I figure is needed for ttyUSB), with no results either
- I tried randomly other illogical things, with no result (putting/taking out sd card, rebooting, different usb-modeswitch configs)
root@DD-WRT:/# dmesg | tail
hub.c: new USB device 00:03.1-1.2, assigned address 16
Vendor: HUAWEI Model: Mass Storage Rev: 2.31
Type: CD-ROM ANSI SCSI revision: 02
USB device connected to the SCSI subsystem
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 16
Unable to connect USB device to the SCSI subsystem
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 16
SCSI device sdb: 1995776 512-byte hdwr sectors (1022 MB)
sdb: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: p1
root@DD-WRT:/# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
Bus 001 Device 009: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
[b]Bus 001 Device 016: ID 12d1:14fe Huawei Technologies Co., Ltd.[/b]
* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 0.9.5 (C) Josua Dietze 2008
* Works with libusb 0.1.12 and probably other versions
Looking for default devices
Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
OK, driver found ("usb-storage")
OK, Driver "usb-storage" successfully detached
Setting up communication with device
Trying to send the message
OK, message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
root@DD-WRT:/opt/confs# dmesg | tail
USB device disconnected from the SCSI subsystem
usb.c: USB disconnect on device 00:03.1-1.2 address 16
USB device disconnected from the SCSI subsystem
hub.c: new USB device 00:03.1-1.2, assigned address 17
Vendor: HUAWEI Model: TF CARD Storage Rev: 2.31
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
SCSI device sdb: 1995776 512-byte hdwr sectors (1022 MB)
sdb: Write Protect is off
/dev/scsi/host3/bus0/target0/lun0: p1
USB device connected to the SCSI subsystem
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 17
root@DD-WRT:/opt/confs# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
Bus 001 Device 009: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 001 Device 017: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
# I even tried removing and loading modules:
root@DD-WRT:/opt/modules# rmmod usbserial
root@DD-WRT:/opt/modules# rmmod acm
root@DD-WRT:/opt/modules# insmod usb/serial/usbserial.o
root@DD-WRT:/opt/modules# insmod usb/acm.o
root@DD-WRT:/opt/modules# dmesg | tail
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 17
usb.c: deregistering driver acm
usbserial.c: USB Serial deregistering driver Generic
usb.c: deregistering driver serial
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters
Right now I'm a little stuck. I've spent a while googling/going through the forum, but even despite these 2 devices are quite common, I didn't find anyone writing about a similar setup, or similar issue. I'd greatly appreciate any advice/hints. It's not a matter of life and death, but it's buggering me. If I succeed I can create a guide/wiki article from my notes.
Posted: Sat Jul 09, 2016 15:33 Post subject: Re: Asus WL-500GPV2 + Huawei e3276 usb modem: is there any h
tou.manokat@gmail.com wrote:
Sometimes it does happen, when the character special files are not created automatically at the time the modules are loaded, in which case, I need to create the character special files by hand.
It is not the loading of a driver module that creates device nodes, it is a successful binding of the driver to the hardware that creates them.
Creating them manually means that they will be hanging in the air with no connection to the hardware.
All of this is moot anyway since E3276 is not a dongle with cdc_acm interfaces so you can not get the cdc_acm driver to bind to it. Your manually created ttyACM device nodes will be a dead end road. _________________ Kernel panic: Aiee, killing interrupt handler!
Posted: Sat Jul 09, 2016 17:00 Post subject: Re: Asus WL-500GPV2 + Huawei e3276 usb modem: is there any h
LOM wrote:
tou.manokat@gmail.com wrote:
Sometimes it does happen, when the character special files are not created automatically at the time the modules are loaded, in which case, I need to create the character special files by hand.
It is not the loading of a driver module that creates device nodes, it is a successful binding of the driver to the hardware that creates them.
Creating them manually means that they will be hanging in the air with no connection to the hardware.
All of this is moot anyway since E3276 is not a dongle with cdc_acm interfaces so you can not get the cdc_acm driver to bind to it. Your manually created ttyACM device nodes will be a dead end road.
Not all GSM pieces of hardware perform analog functions to exchange raw data via abstract control model (ACM), some GSM devices use software only USB stack, of course with additional constraints put onto the CPU. So, the hardware for those using software only USB stack would not bind to cdc_acm, and would not create the nodes. Some HUAWEI GSM dongles do this, like E1691.
"it is a successful binding of the driver to the hardware that creates them." Of course, it is Device Driver Development 101.
That is why I put the prerequisite, that the device should at least show up in "/proc/devices" as 188 ttyACM or 188 ttyUSB. If it does not show up there, then there is no point in moving ahead. _________________ Linksys 54G v2
Linksys 54G v6
Linksys 54GS v6
Linksys 120N
Linksys Valet-M10 Tomato v132
Linksys Valet-M20 Tomato V132
Netgear WNR3400 Advanced Tomato
Netgear WNR3400 Advanced Tomato
TRENDNet TEW-632BRP DD-WRT r22118
TRENDNet TEW-632BRP DD-WRT r22118
Buffalo G300NH DD-WRT r22118
TPLINK WNDR1043ND DD-WRT r22118
TPLINK WNDR1042ND Stock
TPLINK WNDR841ND r22118
DLINK DIR-835 A1 r22118
DLINK DIR-835 A1 r22118
DLINK DIR-835 A1 r22118
DLINK DIR-501 Stock firmware
DLINK WBR-2310 Stock firmware
Linksys E3000 Shibby Tomato
Linksys E2500 Advanced Tomato
Netis WF-2404 Stock
Netis WF-2404 Stcck
Belkin N600 Extender (Bricked on its own)
Posted: Sat Jul 09, 2016 19:09 Post subject: Re: Asus WL-500GPV2 + Huawei e3276 usb modem: is there any h
You might want to flash a newer DD-WRT build. 14896 is just too old, and was compiled from 2.4 sources.
Upgrade to newer firmware and edit the device set in PPPDaemon option file. Change "/dev/usb/acm/0" to "/dev/ttyUSB0":
sed -i -e 's/\/dev\/usb\/acm\/0/\/dev\/ttyUSB0/g' /jffs/etc/ppp/peers/isp
jreare wrote:
Hello everyone,
Right now I'm a little stuck. I've spent a while googling/going through the forum, but even despite these 2 devices are quite common, I didn't find anyone writing about a similar setup, or similar issue. I'd greatly appreciate any advice/hints. It's not a matter of life and death, but it's buggering me. If I succeed I can create a guide/wiki article from my notes.