Re: Re: Solution for Huawei E367 3G dongle on Zeroshell

Home Page Forums Network Management ZeroShell Solution for Huawei E367 3G dongle on Zeroshell Re: Re: Solution for Huawei E367 3G dongle on Zeroshell

#51802

Dave.R
Member
gcams wrote:
Hi All,

I’ve received a lot of help over the past couple of years on these forums so I thought I’d post this solution in the hope that it assists somebody else.

ThreeUK have recently released a new “Premium” HSPA+ dongle; model Huawei E367. This is an excellent quality dongle with external antenna connector, so I was keen to get it going on Zeroshell to replace my ZTE dongles.

Here’s how I did it:

Step 1 – Add the required usb_modeswitch config for the E367:

Add the following lines to the end of the /etc/usb_modeswitch.conf file:

Code:
########################################################
# 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″

Step 2:

Run the usb_modeswitch command:

Code:
root@zeroshell root> usb_modeswitch

Step 3 (May not be required):

If you have another USB serial device connected to your Zeroshell appliance, you will need to unload the usbserial module by running “rmmod usbserial” or even easier, just unplug the other serial device device to unload the usbserial driver.

You can confirm this has been done successfully, by running the “lsmod” command and seeing if the usbserial module is in the list. As long as it’s not present, you can proceed.

Step 4:
Run the modprobe command to insert the usbserial module and bind to the E367’s serial ports:

Code:
root@zeroshell root> modprobe usbserial vendor=0x12d1 product=0x1506

Step 5:
Confirm the driver has loaded and created the ttyUSB* devices by running “ls /udev/ttyUSB*

If you’re successful, you should get output similar to the below:

Code:
root@zeroshell root> ll /udev/ttyUSB*
crw-rw—- 1 root root 188, 0 Jun 6 14:53 /udev/ttyUSB0
crw-rw—- 1 root root 188, 1 Jun 6 14:51 /udev/ttyUSB1
crw-rw—- 1 root root 188, 2 Jun 6 14:51 /udev/ttyUSB2
crw-rw—- 1 root root 188, 3 Jun 6 14:53 /udev/ttyUSB3

Step 6:

Finally, configure your new PPP device as normal through the web interface. You will need to use /udev/ttyUSB0 as the actual modem device for establishing the PPP connection. ttyUSB1 and 2 appear to have no functionality (you cannot communicate with the modem via them) and ttyUSB3 is the “management” interface. This allows you to query signal strength (at+csq, etc) while the modem is online.

I hope the above is of assistance to somebody. Maybe the above changes could be incorporated into the next release, to avoid having to take the above steps on each boot? I now use a small bash script to automate the above steps:

Code:
#!/bin/bash

cd /Database/extradata

# Copy modeswitch config file to /etc
echo ‘########################################################
# 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″‘ >> /etc/usb_modeswitch.conf

# Run modeswitch command
usb_modeswitch

# Run modprobe command
modprobe usbserial vendor=0x12d1 product=0x1506

Hi man you said you used ZTE can you please name the model you used and the way you configured it to work with zeroshell .
thanks allot ,