Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

  1. #11

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    Thanks alexfish. I appreciate the hand.

    This is after rebooting the box w/out the modem in. Inserting the modem, and then running the scripts below.

    $ uname -a
    Linux lab0 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux
    $ ls -al /dev/serial/by-id
    total 0
    drwxr-xr-x 2 root root 80 2011-01-14 13:10 .
    drwxr-xr-x 4 root root 80 2011-01-14 13:10 ..
    lrwxrwxrwx 1 root root 13 2011-01-14 13:10 usb-HUA_WEI_Huawei_Mobile-if00-port0 -> ../../ttyUSB0
    lrwxrwxrwx 1 root root 13 2011-01-14 13:10 usb-HUA_WEI_Huawei_Mobile-if01-port0 -> ../../ttyUSB1
    Testing the code-snippet in the post:
    $ sudo ./script-snippet.sh
    CTS 1 DSR 1 RING 0 DCD 0

    Testing the attached code-snippet:
    $ sudo ./attached_snippet.sh
    Return is : <\r\nOK\r\n>
    missing "
    while executing
    "puts "Matched $nMatches of $nTries"
    (file "./test2.sh" line 172)

    Also, after upgrading usb-modeswitch to the latest version (usb-modeswitch-1.1.6 andusb-modeswitch-data-20101222), i'm now getting the following identification by the system. This differs what the version that came with Lucid came up with.

    $ lsusb
    ....
    Bus 001 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
    ....
    Cool signature

  2. #12
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    OOps

    edit the last line to

    puts "Matched $nMatches of $nTries"

    if ok on first run :try setting the loops line 14 to "set nTries 20"

    removing the " break " at line 164

    can also test response to quiring to modem

    can try edit line 159 to query the signal strength

    if {[send_expect $fh "AT+CSQ\r" "OK" $waitSecs]} {
    Last edited by alexfish; January 14th, 2011 at 03:56 PM. Reason: see if modem responds to a query
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  3. #13

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    Np. I should have caught that myself. Pretty simple error.

    Anyhow, here's the new output:

    Return is : <\r\nOK\r\n>
    Matched 1 of 20
    Last edited by mvip; January 14th, 2011 at 03:47 PM. Reason: typo.
    Cool signature

  4. #14
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    have update above post to see if the modem will respond to a query

    if every thing OK

    try network manager with connecting the device after boot and then device connected before boot

    may be that new version of usb_modeswitch has done the trick ,

    can also try Sakis3g : This worth keeping on the system as it does more than just connect

    remember if problem kill pppd and modem-manager

    alexfish
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  5. #15

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    Unfortunately, that's not the end of the story. As said earlier, I can get NetworkManager to connect. It's just very unreliable. It can work just fine, then I reboot, and on next boot it's a no-go. I then have to unplug the modem, plug it back in and reconnect.

    That would have been fine if it was for a regular desktop. It's not. It's for a box that is going to be placed in areas that are hard to get to. No keyboard or mouse will be connected to it, and it is important that it is up and running at all times.

    The idea is to use wvdial with something like Supervisor, so that it automatically reconnects if it goes down. I have this working just fine with other modems, it's just this modem that is struggling.

    Using sagis3g would be a reasonable compromise to wvdial, but still no go there either. This is what I get when trying the latest version (0.2.0e).

    $ sudo ./sakis3g connect
    Modem unable to register a network.
    Scan for network by using --scanyes or --scanno switches, or by enabling interactive mode.
    $ ./sakis3g --interactive "connect"
    Upon running in interactive mode, as it asks, i still get "Modem unable to register a network.".

    The machine has not been touched since I ran the tests earlier.
    Cool signature

  6. #16

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    I also tried this guide you linked to in a separate thread, and here's the output of the commands:


    # echo -e "ATZ\r" > /dev/ttyUSB0
    OK


    # echo -e "AT+CGDCONT?\r" > /dev/ttyUSB0
    +CGDCONT: 1,"IP","internet.vodafone.pt","",0,0
    +CGDCONT: 2,"IP","bredband.tre.se","",0,0

    OK


    # echo -e "AT+COPS?\r" > /dev/ttyUSB0
    +COPS: 0

    OK

    # echo -e "AT+COPN\r" > /dev/ttyUSB0
    COMMAND NOT SUPPORT
    Cool signature

  7. #17
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    Quote Originally Posted by mvip View Post
    I also tried this guide you linked to in a separate thread, and here's the output of the commands:
    # echo -e "AT+COPN\r" > /dev/ttyUSB0
    COMMAND NOT SUPPORT

    may be that need to by-pass that command :as I do Know of certain firmware blocking this command: so this be causing one problem

    also

    here is the other problem

    note from first post (possibly not connecting)

    [ 1427.202537] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB0
    [ 1427.203383] option 1-4:1.1: GSM modem (1-port) converter detected
    [ 1427.203881] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB1
    [ 1427.204694] option 1-4:1.2: GSM modem (1-port) converter detected
    [ 1427.204941] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB2

    an compare with and the device as seen ( probably connecting )

    $ ls -al /dev/serial/by-id
    total 0
    drwxr-xr-x 2 root root 80 2011-01-14 13:10 .
    drwxr-xr-x 4 root root 80 2011-01-14 13:10 ..
    lrwxrwxrwx 1 root root 13 2011-01-14 13:10 usb-HUA_WEI_Huawei_Mobile-if00-port0 -> ../../ttyUSB0
    lrwxrwxrwx 1 root root 13 2011-01-14 13:10 usb-HUA_WEI_Huawei_Mobile-if01-port0 -> ../../ttyUSB1

    can check with the first script: note the results for each tty port

    when the above listing with the three ports shows (and not working) but had tried the connection

    post results of
    ps -ef | grep modem-manager*
    ps -ef | grep tty*
    Last edited by alexfish; January 14th, 2011 at 06:42 PM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  8. #18
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    removed

    looks like time delay with server ;
    Last edited by alexfish; January 14th, 2011 at 06:42 PM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  9. #19

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    Hi,

    The difference you write about is most likely the result of the mode-switch update. One of the snippets are from before upgrading, and the other after upgrading.

    Here's the output from the system logs from right now:

    $ dmesg |grep ttyUSB
    [ 5429.968137] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    [ 5429.968703] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    [ 5441.630995] usb 1-8: GSM modem (1-port) converter now attached to ttyUSB0
    [ 5441.632056] usb 1-8: GSM modem (1-port) converter now attached to ttyUSB1

    I called the script test.sh. Here is the result from the two run.

    on ttyUSB0
    $ sudo ./test.sh
    CTS 1 DSR 1 RING 0 DCD 0
    on ttyUSB1
    $ sudo ./test.sh
    CTS 0 DSR 0 RING 0 DCD 0
    Cool signature

  10. #20

    Re: Issues with Huawei E122 3G Modem (on Ubuntu 10.04)

    Hi,

    The difference you write about is most likely the result of the mode-switch update. One of the snippets are from before upgrading, and the other after upgrading.

    Here's the output from the system logs from right now:

    $ dmesg |grep ttyUSB
    [ 5429.968137] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
    [ 5429.968703] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
    [ 5441.630995] usb 1-8: GSM modem (1-port) converter now attached to ttyUSB0
    [ 5441.632056] usb 1-8: GSM modem (1-port) converter now attached to ttyUSB1

    I called the script test.sh. Here is the result from the two run.

    on ttyUSB0
    $ sudo ./test.sh
    CTS 1 DSR 1 RING 0 DCD 0
    on ttyUSB1
    $ sudo ./test.sh
    CTS 0 DSR 0 RING 0 DCD 0
    Cool signature

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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