1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to load USB 3G network card

Discussion in 'Tomato Firmware' started by jbcdidgosir, Aug 13, 2013.

  1. jbcdidgosir

    jbcdidgosir Serious Server Member

    I'm now using tomato-K26USB-1.28.RT-MIPSR1-112-AIO.trx
    My USB 3G network card is HuaWei EC122, DefaultVendor= 0x12d1, DefaultProduct= 0x1001

    After USB card is plugged in, tomato can only recognize it as a mass storage, I hope that it can be recognized as mass storage and usb modem.
    1.JPG

    I config the usb_modeswitch.conf as below:
    DefaultVendor= 0x12d1

    DefaultProduct= 0x1001

    MessageContent="55534243000000000000000000000011060000000000000000000000000000"

    MessageEndpoint=0x01

    CheckSuccess=5



    And run command: usb_modeswitch -I -W -c usb_modeswitch.conf, the result is:
    Reading config file: usb_modeswitch.conf

    * usb_modeswitch: handle USB devices with multiple modes
    * Version 1.2.5 (C) Josua Dietze 2012
    * Based on libusb0 (0.1.12 and above)

    ! PLEASE REPORT NEW CONFIGURATIONS !

    DefaultVendor= 0x12d1
    DefaultProduct= 0x1001
    TargetVendor= not set
    TargetProduct= not set
    TargetClass= not set
    TargetProductList=""

    DetachStorageOnly=0
    HuaweiMode=0
    SierraMode=0
    SonyMode=0
    QisdaMode=0
    QuantaMode=0
    GCTMode=0
    KobilMode=0
    SequansMode=0
    MobileActionMode=0
    CiscoMode=0
    MessageEndpoint=0x01
    MessageContent="55534243000000000000000000000011060000000000000000000000000000"
    NeedResponse=0
    ResponseEndpoint= not set

    InquireDevice disabled
    Success check enabled, max. wait time 5 seconds
    System integration mode disabled


    Note: target parameter missing; success check limited
    Looking for default devices ...
    searching devices, found USB ID 12d1:1001
    found matching vendor ID
    found matching product ID
    adding device
    searching devices, found USB ID 1d6b:0001
    searching devices, found USB ID 1d6b:0002
    Found device in default mode, class or configuration (1)
    Accessing device 002 on bus 002 ...
    Getting the current device configuration ...
    OK, got current device configuration (1)
    Using interface number 0
    Error: can't use storage command in MessageContent with interface 0;
    interface class is 255, should be 8. Aborting.



    I also tried running "insmod option.ko", the result is: insmod: can't insert 'option.ko': File exists

    I can see the info. in file "messages" that:

    Jan 1 01:01:04 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB S
    erial Driver core
    Jan 1 01:01:04 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB S
    erial support registered for GSM modem (1-port)
    Jan 1 01:01:04 unknown user.info kernel: option 2-1:1.0: GSM modem (1-port) con
    verter detected
    Jan 1 01:01:04 unknown user.info kernel: usb 2-1: GSM modem (1-port) converter
    now attached to ttyUSB0
    Jan 1 01:01:04 unknown user.info kernel: option 2-1:1.1: GSM modem (1-port) con
    verter detected
    Jan 1 01:01:04 unknown user.info kernel: usb 2-1: GSM modem (1-port) converter
    now attached to ttyUSB1
    Jan 1 01:01:04 unknown user.info kernel: option 2-1:1.2: GSM modem (1-port) con
    verter detected
    Jan 1 01:01:04 unknown user.info kernel: usb 2-1: GSM modem (1-port) converter
    now attached to ttyUSB2
    Jan 1 01:01:04 unknown user.info kernel: usbcore: registered new interface driv
    er option
    Jan 1 01:01:04 unknown user.info kernel: drivers/usb/serial/option.c: USB Drive
    r for GSM modems: v0.7.2
    Jan 1 01:01:04 unknown user.info kernel: drivers/usb/serial/usb-serial.c: USB S
    erial support registered for Sierra USB modem
    Jan 1 01:01:04 unknown user.info kernel: usbcore: registered new interface driv
    er sierra
    Jan 1 01:01:04 unknown user.info kernel: drivers/usb/serial/sierra.c: USB Drive
    r for Sierra Wireless USB modems: v.1.7.0
    Jan 1 01:01:07 unknown user.notice root: 3G MODEM ready - using option module

    But 3G modem device still couldn't be displayed in the USB list.

    Is there anyone can help me? Thanks!
     
    Last edited: Aug 13, 2013

Share This Page