Saturday, October 22, 2011

Huawei E367 on linux

The Huawei E367 modem is a fast USB modem for 3g connectivity. It worked  out-of-the box when connected to Telkom's 8ta service via a TP-LINK router. However when I attempt to use the modem directly (i.e. not through the router) I got the following error when installing the module:

FATAL: module vendor=0x12d1 not found

Fortunately getting the E367 to work on a linux box takes only about five minutes of effort. It requires the installation of the "modeswitch" package, configuration of the "modeswitch data", installation of the module and the usual setting up of the connection.

Install the "modeswitch" package (using apt, yum etc.) . At this stage installing the  package will not necessarily solve the problem as the details of the vendor and product have yet to be added to the configuration. As root edit the file:

'/etc/usb_modeswitch.conf" (Debian systems).

Append the following text to that file.


########################################################
# Huawei E367

EnableLogging=1

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,14ac,1506"

CheckSuccess=20

MessageEndpoint= 0x01
MessageContent="55534243123456780000000000000011062000000100000000000000000000"

##############################################################

Now, with the modem attached, run (as root) the command
"usb_modeswitch"

You should not have another usbserial device running so unplug it or run the command "rmmod usbserial".

At this stage you need to install the E367 module, as root do a:
 "modprobe usbserial vendor=0x12d1 product=0x1506"

(or change product code as reflected by the command "lsusb").



You may now configure the modem using NetworkManager or whatever other system you use. For 8ta this usually requires indicting only the dial number *99# and the APN as "internet".

For full instruction see:
http://www.zeroshell.net/eng/forum/viewtopic.php?t=2986

1 comment:

  1. Hi,

    I am trying to connect to the internet with a Huawei E367 with an 8ta connection too. First off, I would like to point out that the file is "/etc/usb-modeswitch.conf" not "/etc/usb_modeswitch.conf" as you have mentioned. I spent some time wondering what went wrong when I tried that out, since usb_modeswitch couldn't find that file!

    And I would like to know whether the order in which these steps are performed is correct. Should I do "sudo rmmod usbserial" first, then connect the modem and run modeswitch and then modprobe usbserial again with the vendor and product name? Or is the order given here the right way to do it?

    Thanks!

    ReplyDelete