Results 1 to 3 of 3

Thread: Huawei E3131 3G Modem problem

  1. #1
    Join Date
    2016-Feb
    Posts
    13

    Huawei E3131 3G Modem problem

    Hi, I hope someone can help.

    I have become involved in my sons school project ( which I'm quite enjoying ) but unfortunately I have very little Linux knowledge.

    We have a copy of kali working on a RPi, we are just using it to monitor and sniff the number of wireless devices at school. This is working well via Ethernet.

    What we now need to do is now make the RPi mobile, i have purchased a Huawei E3131 3G USB Modem. It seems this is where the fun starts.

    I could be wrong but have spent several days looking into this and now I'm stuck. Kali is recognising the 3G Modem as Mass Storage ( i think ) the code
    Code:
    lsusb
    gives me is 12da:14dc

    From what i have read i need to use USB-Modeswitch to swap it to a modem

    The code i have tried which i found on another forum is

    Code:
    usb_modeswitch -v 0x12d1 -p 0x1f01 -V 0x12d1 -P 0x14dc -M "55534243123456780000000000000a11062000000000000100000000000000"
    The response i am getting is

    Look for target devices ...
    product ID matched
    Found devices in target mode or class (1)
    Look for default devices ...
    No devices in default mode found. Nothing to do. Bye!
    The reason we have got to this stage is we are tiring to get either Sakis3G or WVdial to work and both suggest i should have a file within the /dev folder called something like ttyUSB*... this file doesn't exist, in fact i have nothing with ttyUSB at all, all tty file are numbered. If we run either application they both fail with tty error's

    Can anyone help please or give me any pointers. I could be totally looking in the wrong place for which i apologise the info i have gained so far is from reading lots of other posts..

    Thanks..

  2. #2
    Join Date
    2016-Feb
    Posts
    13

    Got a littlel further

    Have managed to get a little bit further... i found this thread

    http://askubuntu.com/questions/48993...ignal-strength

    I created a file called 12d1:1f01 in the /etc/usb_modeswitch.d folder with the following code

    Code:
    # Huawei E3531s-2 - switch to modem mode instead of HiLink CDC-Ether mode
    TargetVendor=0x12d1
    TargetProduct=0x1f01
    
    # switch to 12d1:1001 (modem mode, 3 virtual serial ports)
    MessageContent="55534243123456780000000000000011062000000100000000000000000000"
    
    # switch to 12d1:14dc (default HiLink CDC-Ether mode)
    # MessageContent="55534243123456780000000000000a11062000000000000100000000000000"
    
    # switch to 12d1:1442 (debug mode with 2 virtual serial ports)
    # MessageContent="55534243000000000000000000000011060000000000000000000000000000"
    Rebooted the RPi and the Huawei stick is still listed as mass storage.

    If i now run the following

    usb_modeswitch -v 12d1 -p 1f01 -M '5553424312345678000000000000001106200000010000000 0000000000000'

    It works and a lsusb now shows the Huawei USB stick as a HSDPA modem with an ID of 12d1:1001

    I also now have several ttyusb files listed

    One issue is you have to run the usb-modeswitch command on every boot up so i need to work out a way to run that on boot.

    Next stage is to get a dialing program to work.

    Any suggestions on how to automate the usb_modeswitch command or suggestions on dalliers would be appreciated.

    Thanks...
    Last edited by pigsfoot; 2016-02-19 at 15:36.

  3. #3

    Added a line in /etc/rc.local

    I'm not sure it's the right way of doing this.
    But In order to get my Huawei E303 to work after a cold reboot, I added the line

    sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M "55534243123456780000000000000a1106200000000000010 0000000000000"

    in the file /etc/rc.local/

    But I'm wondering if there's a better way?

Similar Threads

  1. Possible To Install Nethunter 3.0 On Huawei P8 Lite?
    By ariekazy in forum Installing NetHunter
    Replies: 1
    Last Post: 2017-12-30, 11:03
  2. Possible to install Nethunter 3.0 on Huawei P8 Lite?
    By __Deflt in forum Installing NetHunter
    Replies: 0
    Last Post: 2016-07-18, 06:01
  3. Replies: 3
    Last Post: 2014-12-07, 04:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •