USB 3G Modem Not Working with Zeroshell

Home Page Forums Network Management ZeroShell USB 3G Modem Not Working with Zeroshell

This topic contains 17 replies, has 0 voices, and was last updated by  lijinshyam 7 years, 9 months ago.

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #42716

    lijinshyam
    Member

    Hi …

    I have a huawei EC1260 usb 3G modem .. The device not in the list of compatible 3g modems.. and when i connected the modem it is detected as a mass storage device.

    And I can find a lots of question about this in the forum… 🙁

    Is there any way to overcome this …

    Regards
    Lijin

    #51278

    lijinshyam
    Member

    No replay………. ???:cry:

    #51279

    ppalias
    Member

    It can be switched to a modem device with the command usb_modeswitch
    http://www.draisberghof.de/usb_modeswitch/

    #51280

    lijinshyam
    Member

    Thanks for the replay….

    I will give a try on this…

    #51281

    ppalias
    Member

    can you please provide me a guidance to install the usb-modswitch in zero shell router..

    I have no idea how install packages in the zeroshell….

    Thanks
    Lijin

    It is already installed in ZS. Just run the command

    usb_modeswitch --help

    to see the available options.

    #51282

    lijinshyam
    Member

    Hi….
    Thanks for the replay….

    when i tried a i am getting an error…-2 am i correct with the message Endpoint and Message Content..?

    This is the result am usb_modwatch command…

    root@zeroshell etc> usb_modeswitch -W

    * usb_modeswitch: tool for controlling “flip flop” mode USB devices
    * Version 0.9.4 (C) Josua Dietze 2008
    * Works with libusb 0.1.12 and probably other versions

    DefaultVendor=0x12d1
    DefaultProduct=0x140b
    TargetVendor=0x0
    TargetProduct=0x0
    TargetClass=0x0
    DetachStorageOnly=0
    HuaweiMode=0
    MessageEndpoint=0x1
    MessageContent=”55534243000000000000000000000011060000000000000000000000000000″
    NeedResponse=0
    ResponseEndpoint=0x0

    Looking for default devices
    Found default devices (1)
    Prepare switching, accessing latest device
    Looking for active default driver to detach it
    No driver found. Device probably not initialized. Trying to continue …
    Setting up communication with device
    Trying to send the message
    Sending the message returned error -2, trying to continue …
    -> See /proc/bus/usb/devices (or call lsusb) for changes. Bye

    #51283

    lijinshyam
    Member

    Yah …I figure it out….

    I hit the command

    usb_modeswitch -v 12d1 -p 140b -H 1

    and it is done…

    root@zeroshell etc> usb_modeswitch -v 12d1 -p 140b -H 1

    * usb_modeswitch: tool for controlling “flip flop” mode USB devices
    * Version 0.9.4 (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
    OK, Huawei control message successfully sent.
    -> See /proc/bus/usb/devices (or call lsusb) for changes. Bye

    When i tried to add a new USB modem using the webUI…

    Modem connected to field is still Not located…

    and /proc/bus/usb/devices gives…

    T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 9 Spd=12 MxCh= 0
    D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=12d1 ProdID=140b Rev= 0.00
    S: Manufacturer=HUA�WEI TECHNOLOGIES
    S: Product=HUAWEI Mobile
    S: SerialNumber=�������������������
    C:* #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=500mA
    I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
    E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    E: Ad=86(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    I:* If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=08(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    Any idea how to add the usb modem..?

    thanks…
    Lijin

    #51284

    ppalias
    Member

    Have you unplugged-plugged in the usb?
    What is the output of the following?

    ls -l /dev/ttyUSB*
    ifconfig -a

    Run these commands with usb plugged in.

    #51285

    lijinshyam
    Member

    When i execute the command ls -l /dev/ttyUSB*

    ls: /dev/ttyUSB*: No such file or directory

    #51286

    lijinshyam
    Member

    First i configured the modem EC168C there was no problem in configuring that device…

    when i connect this modem and hit the first command still no such file or directory….

    Earlier i configured a Internet and VPN connection using this modem(EC168C)….

    When i tried with the new modem its not even detecting in the zeroshell. The old one still working..

    Thanks for the help….

    L

    #51287

    ppalias
    Member

    When you plug in the usb, what is the output of

     dmesg | tail -n 100
    #51288

    lijinshyam
    Member

    Thanks for the replay……Here is the dmesg..

    hub 1-0:1.0: unable to enumerate USB device on port 6
    usb 4-2: new full speed USB device using uhci_hcd and address 2
    usb 4-2: configuration #1 chosen from 1 choice
    usb 4-2: New USB device found, idVendor=12d1, idProduct=140b
    usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
    usb 4-2: Product: HUAWEI Mobile
    usb 4-2: Manufacturer: HUA�WEI TECHNOLOGIES
    usb 4-2: SerialNumber: �������������������
    Initializing USB Mass Storage driver…
    scsi0 : SCSI emulation for USB Mass Storage devices

    #51289

    lijinshyam
    Member

    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    usb-storage: device found at 2
    usb-storage: waiting for device to settle before scanning
    usbcore: registered new interface driver ub
    scsi 0:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
    Driver ‘sr’ needs updating – please use bus_type methods
    sr 0:0:0:0: Attached scsi generic sg0 type 5
    sr0: scsi-1 drive
    Uniform CD-ROM driver Revision: 3.20
    usb-storage: device scan complete
    sr 0:0:0:0: Attached scsi CD-ROM sr0..

    ,,

    #51290

    ppalias
    Member

    It still is recognized as storage device rather than a modem. Try again with the usb_modeswitch.

    #51291

    lijinshyam
    Member

    Still the same …

    Am using the command

    usb_modeswitch -v 12d1 -p 140b -H 1

    is it correct…?

Viewing 15 posts - 1 through 15 (of 19 total)

You must be logged in to reply to this topic.