Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
RollnThndr
Posts: 3
Joined: 21 Jul 2010, 07:07

DD-WRT and Huawei e182e

Post by RollnThndr » 21 Jul 2010, 14:49

Hi,

Not sure if this is the right place to ask but thought I would give it a shot. I've asked over at the DD_WRT forums but haven't really had any replies.

I'm having issues getting my e182e to be used as a modem on my router. I know that it works in Ubuntu so I was hoping that it should work in DD-WRT. Here are my specs and the error I get when I try to run usb_modeswitch

- Linksys WRT610N v2
- DD-WRT v24-sp2 (04/23/10) mega - build 14311
- Telus Huawei e182e 3g
- vendor id 0x12d1
- product id 0x1446

This is the error I get when I try to do this..


root@DD-WRT:~# usb_modeswitch -v 0x12d1 -p 0x1446 -H

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for default devices ...
Found default devices (1)
Accessing device 002 on bus 002 ...
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

Received inquiry data (detailed identification)
-------------------------
Vendor String: HUAWEI
Product String: Mass Storage
Revision String: 2.31
-------------------------

Device description data (identification)
-------------------------
Manufacturer: Huawei Technologies
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Sending Huawei control message ...
Error: sending Huawei control message failed (error -32). Aborting.

Any insight would be great!

Josh
Site Admin
Posts: 6591
Joined: 03 Nov 2007, 00:30

Post by Josh » 21 Jul 2010, 18:57

You are exactly in the right place for your question ...

The newer Huawei modems do not use the control message anymore.
Instead, there is a bulk message for switching:

Code: Select all

usb_modeswitch -I -v 0x12d1 -p 0x1446 -M "55534243123456780000000000000011060000000000000000000000000000"
The -I option prevents probing of the device which is useless since it is well known.

Remember to re-plug your modem before each manual switching attempt.


RollnThndr
Posts: 3
Joined: 21 Jul 2010, 07:07

Post by RollnThndr » 21 Jul 2010, 23:18

ok.. ran that and got the message say that it sent the message ok and that i should run lsusb. does this mean it should have succeded?

there was also something that said no driver found, was datched or never attached. is this normal?

sorry, i'm on my phone and can't copy/paste the output.

RollnThndr
Posts: 3
Joined: 21 Jul 2010, 07:07

Post by RollnThndr » 22 Jul 2010, 00:52

Ok, here is the out of command..
root@DD-WRT:~# usb_modeswitch -I -v 0x12d1 -p 0x1446 -M "55534243123456780000000
000000011060000000000000000000000000000"

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for default devices ...
Found default devices (1)
Accessing device 002 on bus 002 ...

Device description data (identification)
-------------------------
Manufacturer: Huawei Technologies
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
OK, message successfully sent
-> Run lsusb to note any changes. Bye.

Josh
Site Admin
Posts: 6591
Joined: 03 Nov 2007, 00:30

Post by Josh » 22 Jul 2010, 20:18

If you dont have "lsusb", see the content of "/proc/bus/usb/devices".

12d1:1446 should be gone after switching and some other 12d1 device added. That is your modem.

ossuskeeper
Posts: 1
Joined: 24 Aug 2010, 15:39

Post by ossuskeeper » 24 Aug 2010, 15:51

I also want to use a huawei modem with ddwrt , but i dont know how to compile properly . will it work on the router too ? because a huawei software dont want to ...

so...

kernel v24
asus wl520gu
huawei e190
vodafone


do you know what modules huawei uses? acm.o ? option.o ? modem.o ? usb_serial.o ? or which?

Josh
Site Admin
Posts: 6591
Joined: 03 Nov 2007, 00:30

Post by Josh » 26 Aug 2010, 22:08

For compiling ask the people who are maintaining the DDWRT project. There is certainly a toolchain with a cross-compiler for that purpose. usb_modeswitch runs on several routers already, there is no reason it should not work on your's.

Huawei modems usually need the "option" module which in turn relies on "usbserial".


Post Reply