Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

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

  1. #21
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

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

    hi

    usb_modeswitch is doing it,s job

    and now have a means of checking the device and rectifying any problems where you sit

    so this is leaving ( as you say using the device remotely ) but need the necessary scripts to hopefully resolve if a problem if it occurs (yes or no), and also you are going to do this from process control (remotely) and the process would have to act on the instructions given

    need this info then possible to point in the right direction as regards the scripting ,
    a little a that is in the scripts I have posted, also this been the case , can you program and compile pascal

    as from what I am reading I doub't if wvdial or any other dialer can sort this side

    alexfish
    Last edited by alexfish; January 14th, 2011 at 08:58 PM.
    Two tin cans are better than an iphone

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

  2. #22

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

    Quote Originally Posted by alexfish View Post
    so this is leaving ( as you say using the device remotely ) but need the necessary scripts to hopefully resolve if a problem if it occurs (yes or no), and also you are going to do this from process control (remotely) and the process would have to act on the instructions given
    I'm not really following you, but let me try to answer your question.

    The computer is not remote right now. It is sitting right here on my desk. It will however, once working, be moved to a location that is off-site and hard to get to. I also have 6 more of these that will do the same (same hardware and 3G modem).

    I have a few other boxes (same configuration), but with a different modem (E220), that have already been deployed. Unfortunately our wireless provider (3 in Sweden) were unable to provide me with that modem for this batch. The E122-2 was the only option.
    Cool signature

  3. #23
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

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

    duplicate/ removed

    another hick
    Last edited by alexfish; January 15th, 2011 at 01:19 PM.
    Two tin cans are better than an iphone

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

  4. #24
    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'm not really following you, but let me try to answer your question.

    The computer is not remote right now. It is sitting right here on my desk. It will however, once working, be moved to a location that is off-site and hard to get to. I also have 6 more of these that will do the same (same hardware and 3G modem).

    I have a few other boxes (same configuration), but with a different modem (E220), that have already been deployed. Unfortunately our wireless provider (3 in Sweden) were unable to provide me with that modem for this batch. The E122-2 was the only option.
    Got ya

    can post some Ideas and some code snippets to try, but will have to dismantle snippets from main programs,

    hopefully will do this in a few days

    alexfish
    Two tin cans are better than an iphone

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

  5. #25

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

    I can post the snippets from the other servers (with the other modem).

    wvdial.conf:

    [Dialer Defaults]
    Phone =
    Username =
    Password =
    New PPPD = yes


    [Dialer tre]
    Init2 = ATZ
    Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Stupid Mode = 1
    Modem Type = Analog Modem
    ISDN = 0
    Phone = *99***1#
    Modem = /dev/ttyUSB0
    Username = user
    Dial Command = ATDT
    Password = pass
    Baud = 460800
    Init4 = AT+CGDCONT=1,"IP","data.tre.se"

    /etc/supervisor/conf.d/wvdial.conf
    [program:wvdial]
    command=/usr/bin/wvdial tre
    stdout_logfile=/var/log/supervisor/wvdial.log
    stderr_logfile=/var/log/supervisor/wvdial.log
    user=myuser
    autostart=true
    autorestart=true
    redirect_stderr=True
    That works very well, and I wish I could get that to work with the E122-2.
    Cool signature

  6. #26

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

    Uploading photos of the front and back of the modem. Not sure how much value it adds to the discussion at this point, but perhaps it will be useful for people reading this thread later on.

    What you cannot see in this image is the dark brownish print on the back that states that the modem is 'E122-2'. It's to the right of the trash bin, and it also states the S/N and IMIE number.
    Attached Images Attached Images
    Cool signature

  7. #27

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

    I realize that I'm starting to shoot in the dark, but I found a new way to configure wvdial (from here). Unfortunately, it didn't land me where I wanted, but it is at least a _different_ error.

    The wvdial config file:
    [Dialer Defaults]
    Modem = /dev/ttyUSB0
    Modem Type = Analog Modem
    ISDN = 0
    Baud = 115200
    Username = foo
    Password = bar
    Init1 = ATZ
    Init2 = AT&F E1 V1 X1 &D2 &C1 S0=0
    Dial Attempts = 1

    [Dialer internet]
    Phone = *99***1#
    Stupid Mode = 1
    Init3 = AT+CGDCONT=1,"IP","internet"
    From wvdial:
    # sudo wvdial internet
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: AT&F E1 V1 X1 &D2 &C1 S0=0
    AT&F E1 V1 X1 &D2 &C1 S0=0
    OK
    --> Sending: AT+CGDCONT=1,"IP","internet"
    AT+CGDCONT=1,"IP","internet"
    OK
    --> Modem initialized.
    --> Sending: ATDT*99***1#
    --> Waiting for carrier.
    ATDT*99***1#
    CONNECT 7200000
    --> Carrier detected. Starting PPP immediately.
    --> Starting pppd at Sat Jan 15 18:16:18 2011
    --> Pid of pppd: 2010
    --> Using interface ppp0
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> Disconnecting at Sat Jan 15 18:16:19 2011
    --> The PPP daemon has died: A modem hung up the phone (exit code = 16)
    --> man pppd explains pppd error codes in more detail.
    --> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
    --> Auto Reconnect will be attempted in 5 seconds
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: AT&F E1 V1 X1 &D2 &C1 S0=0
    AT&F E1 V1 X1 &D2 &C1 S0=0
    OK
    --> Sending: AT+CGDCONT=1,"IP","internet"
    AT+CGDCONT=1,"IP","internet"
    OK
    --> Modem initialized.
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: AT&F E1 V1 X1 &D2 &C1 S0=0
    AT&F E1 V1 X1 &D2 &C1 S0=0
    OK
    --> Sending: AT+CGDCONT=1,"IP","internet"
    AT+CGDCONT=1,"IP","internet"
    OK
    --> Modem initialized.
    --> Sending: ATDT*99***1#
    --> Waiting for carrier.
    ATDT*99***1#
    CONNECT 7200000
    --> Carrier detected. Starting PPP immediately.
    --> Starting pppd at Sat Jan 15 18:16:25 2011
    --> Pid of pppd: 2014
    --> Using interface ppp0
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> pppd: X[19]} ?)}
    --> Disconnecting at Sat Jan 15 18:16:25 2011
    --> The PPP daemon has died: A modem hung up the phone (exit code = 16)
    --> man pppd explains pppd error codes in more detail.
    --> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
    --> Auto Reconnect will be attempted in 10 seconds
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: AT&F E1 V1 X1 &D2 &C1 S0=0
    AT&F E1 V1 X1 &D2 &C1 S0=0
    OK
    --> Sending: AT+CGDCONT=1,"IP","internet"
    AT+CGDCONT=1,"IP","internet"
    OK
    --> Modem initialized.
    ^CCaught signal 2: Attempting to exit gracefully...
    --> Disconnecting at Sat Jan 15 18:16:27 2011
    System log:
    Jan 15 18:16:18 lab0 pppd[2010]: pppd 2.4.5 started by root, uid 0
    Jan 15 18:16:18 lab0 pppd[2010]: Using interface ppp0
    Jan 15 18:16:18 lab0 pppd[2010]: Connect: ppp0 <--> /dev/ttyUSB0
    Jan 15 18:16:18 lab0 pppd[2010]: CHAP authentication succeeded: Welcome!!
    Jan 15 18:16:18 lab0 pppd[2010]: CHAP authentication succeeded
    Jan 15 18:16:18 lab0 pppd[2010]: Modem hangup
    Jan 15 18:16:18 lab0 pppd[2010]: Connection terminated.
    Jan 15 18:16:18 lab0 pppd[2010]: Exit.
    Jan 15 18:16:25 lab0 pppd[2014]: pppd 2.4.5 started by root, uid 0
    Jan 15 18:16:25 lab0 pppd[2014]: Using interface ppp0
    Jan 15 18:16:25 lab0 pppd[2014]: Connect: ppp0 <--> /dev/ttyUSB0
    Jan 15 18:16:25 lab0 pppd[2014]: CHAP authentication succeeded: Welcome!!
    Jan 15 18:16:25 lab0 pppd[2014]: CHAP authentication succeeded
    Jan 15 18:16:25 lab0 pppd[2014]: Modem hangup
    Jan 15 18:16:25 lab0 pppd[2014]: Connection terminated.
    Jan 15 18:16:25 lab0 pppd[2014]: Exit.
    Cool signature

  8. #28

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

    So I resolved it myself. After much headscratching, here is a wvdial config-file that works.

    Here we go:
    [Dialer Defaults]
    Phone =
    Username =
    Password =
    New PPPD = yes


    [Dialer tre]
    Init1 = ATE0
    Init2 = ATZ E0 V1
    Init3 = AT+CFUN=1
    Init4 = AT+CSCS="UCS2"
    Init5 = AT+CREG=2
    Init6 = AT+CGREG=2
    Init7 = AT+COPS=3,2;+COPS?
    Init8 = AT+CGDCONT?

    Stupid Mode = 1
    Modem Type = Analog Modem
    ISDN = 0
    Phone = *99***2#
    Modem = /dev/ttyUSB0
    Username = user
    Dial Command = ATDT
    Password = pass
    Baud = 460800
    There are probably improvements to be made, but it works. That's the most important part.
    Cool signature

Page 3 of 3 FirstFirst 123

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
  •