Results 1 to 2 of 2

Thread: pppd Modem hangup (Huawei)

  1. #1
    Join Date
    May 2013
    Beans
    2

    pppd Modem hangup (Huawei)

    I'm working with GSM Huawei e173s and BeagleBoard (Angstrom).


    After succedded autentification modem hangup

    Code:
    Starting GPRS connect script
    Setting APN
    Dialing...
    Script /usr/sbin/chat -v -f /etc/ppp/peers/chat.connect finished (pid 377), status = 0x0
    Serial connection established.
    using channel 1
    Using interface ppp0
    Connect: ppp0 <--> /dev/ttyUSB1
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xaa1ff9c6>]
    rcvd [LCP ConfReq id=0x1 <accomp> <pcomp> <asyncmap 0x0> <mru 1500> <magic 0x543> <auth chap MD5>]
    sent [LCP ConfRej id=0x1 <accomp> <pcomp>]
    rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xaa1ff9c6>]
    rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <mru 1500> <magic 0x543> <auth chap MD5>]
    sent [LCP ConfAck i[   61.874176] PPP Deflate Compression module registered
    d=0x2 <asyncmap 0x0> <mru 1500> <magic 0x543> <auth chap MD5>]
    sent [LCP EchoReq id=0x0 magic=0xaa1ff9c6]
    rcvd [CHAP Challenge id=0x1 <fabd9ecb8ff3c12b365c138de22d500e>, name = "HUAWEI_CHAP_SRVR"]
    sent [CHAP Response id=0x1 <eaef6ccb7d66ff8187fdc8e4cd9f3975>, name = "usehostname"]
    rcvd [LCP EchoRep id=0x0 magic=0x543]
    rcvd [CHAP Success id=0x1 "Welcome!!"]
    CHAP authentication succeeded: Welcome!!
    CHAP authentication succeeded
    sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
    sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
    Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
    rcvd [IPCP ConfReq id=0x1]
    sent [IPCP ConfNak id=0x1 <addr 0.0.0.0>]
    rcvd [IPCP ConfNak id=0x1 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    rcvd [IPCP ConfReq id=0x2]
    sent [IPCP ConfAck id=0x2]
    rcvd [IPCP ConfNak id=0x2 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    rcvd [IPCP ConfNak id=0x3 <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    sent [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    Modem hangup
    Connection terminated.
    I wrote 4 scripts:

    provider:
    Code:
    connect "/usr/sbin/chat -v -f /etc/ppp/peers/chat.connect"
    disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect"
    /dev/ttyUSB1
    115200
    debug
    nodetach
    dump
    noauth
    idle 0
    user
    usehostname
    crtscts
    modem
    noipdefault
    defaultroute
    usepeerdns
    novj
    novjccomp
    nobsdcomp
    nopcomp
    noaccomp
    maxfail 40
    persist
    chat.connect

    Code:
    TIMEOUT 10
    ABORT 'BUSY'
    ABORT 'NO ANSWER'
    ABORT 'ERROR'
    SAY 'Starting GPRS connect script\n'
    
    
    ""'ATZ'
    SAY 'Setting APN\n'
    OK 'AT+CGDCONT=1,"IP","web.htgprs"'
    ABORT 'NO CARRIER'
    SAY 'Dialing...\n'
    OK 'ATD*99***1#'
    CONNECT ''
    chat.disconnect

    Code:
    TIMEOUT 5
    'NO CARRIER' ATH
    OK AT+CGATT=0
    OK ATZ
    options

    Code:
    lock
    asyncmap 0
    lcp-echo-failure 4
    lcp-echo-interval 30
    hide-password
    proxyarp
    noipx
    noipdefault
    And then I start with:
    $ pon provider

    and it fails... any ideas why?

    Thanks

  2. #2
    Join Date
    May 2013
    Beans
    2

    Re: pppd Modem hangup (Huawei)

    Nobody can help me?
    Do I have some DNS problems?
    My /etc/resolv.conf file looks like this:
    # Generated by Connection Manager
    nameserver 127.0.0.1
    Why are these all zeros?

    <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>

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
  •