Home Page Forums Raspberry Pi Shields Error: "sudo pppd call gprs" on Raspberry Pi 3G-4G/LTE Base Shield V2

This topic contains 4 replies, has 3 voices, and was last updated by  Metin 1 month, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33356

    Christien
    Participant

    I have made the configuration per tutorial 1 and tutorial 3 but get the following error:
    [email protected]:~ $ [email protected]:~ $ sudo pppd call gprs
    -bash: [email protected]:~: command not found
    pppd options in effect:
    debug # (from /etc/ppp/peers/gprs)
    nodetach # (from /etc/ppp/peers/gprs)
    dump # (from /etc/ppp/peers/gprs)
    noauth # (from /etc/ppp/peers/gprs)
    remotename 3gppp # (from /etc/ppp/peers/gprs)
    /dev/ttyUSB3 # (from /etc/ppp/peers/gprs)
    115200 # (from /etc/ppp/peers/gprs)
    lock # (from /etc/ppp/peers/gprs)
    connect chat -s -v -f /etc/chatscripts/quectel-chat-connect -T telstra.extranet# (from /etc/ppp/peers/gprs)
    disconnect chat -s -v -f /etc/chatscripts/quectel-chat-disconnect # (from /etc/ppp/peers/gprs)
    nocrtscts # (from /etc/ppp/peers/gprs)
    modem # (from /etc/ppp/peers/gprs)
    asyncmap 0 # (from /etc/ppp/options)
    lcp-echo-failure 4 # (from /etc/ppp/options)
    lcp-echo-interval 30 # (from /etc/ppp/options)
    hide-password # (from /etc/ppp/peers/gprs)
    novj # (from /etc/ppp/peers/gprs)
    novjccomp # (from /etc/ppp/peers/gprs)
    ipcp-accept-local # (from /etc/ppp/peers/gprs)
    ipcp-accept-remote # (from /etc/ppp/peers/gprs)
    ipparam 3gppp # (from /etc/ppp/peers/gprs)
    noipdefault # (from /etc/ppp/peers/gprs)
    ipcp-max-failure 30 # (from /etc/ppp/peers/gprs)
    defaultroute # (from /etc/ppp/peers/gprs)
    replacedefaultroute # (from /etc/ppp/peers/gprs)
    usepeerdns # (from /etc/ppp/peers/gprs)
    noccp # (from /etc/ppp/peers/gprs)
    noipx # (from /etc/ppp/options)
    abort on (BUSY)
    abort on (NO CARRIER)
    abort on (NO DIALTONE)
    abort on (ERROR)
    abort on (NO ANSWER)
    timeout set to 30 seconds
    send (AT^M)
    expect (OK)
    ^M
    OK
    — got it

    send (ATE0^M)
    expect (OK)
    ^M
    ^M
    OK
    — got it

    send (ATI;+CSUB;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2^M)
    expect (OK)
    ^M
    ^M
    Quectel^M
    EC25^M
    Revision: EC25AUFAR02A03M4G^M
    ^M
    SubEdition: V08^M
    ^M
    +CSQ: 31,99^M
    ^M
    +CPIN: READY^M
    ^M
    +COPS: 0,0,”Telstra Mobile Telstra”,7^M
    ^M
    +CGREG: 0,1^M
    ^M
    OK
    — got it

    send (AT+CGDCONT=1,”IP”,”telstra.extranet”,,0,0^M)
    expect (OK)
    ^M
    ^M
    OK
    — got it

    send (ATD*99#^M)
    expect (CONNECT)
    ^M
    ^M
    CONNECT
    — got it

    Script chat -s -v -f /etc/chatscripts/quectel-chat-connect -T telstra.extranet finished (pid 1043), status = 0x0
    Serial connection established.
    using channel 1
    Using interface ppp0
    Connect: ppp0 <–> /dev/ttyUSB3
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf1af48b3> <pcomp> <accomp>]
    rcvd [LCP ConfReq id=0x27 <asyncmap 0x0> <auth chap MD5> <magic 0xa316cfa6> <pcomp> <accomp>]
    No auth is possible
    sent [LCP ConfRej id=0x27 <auth chap MD5>]
    rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf1af48b3> <pcomp> <accomp>]
    rcvd [LCP ConfReq id=0x28 <asyncmap 0x0> <magic 0xa316cfa6> <pcomp> <accomp>]
    sent [LCP ConfAck id=0x28 <asyncmap 0x0> <magic 0xa316cfa6> <pcomp> <accomp>]
    sent [LCP EchoReq id=0x0 magic=0xf1af48b3]
    sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
    rcvd [LCP DiscReq id=0x29 magic=0xa316cfa6]
    rcvd [LCP EchoRep id=0x0 magic=0xa316cfa6 f1 af 48 b3]
    rcvd [IPCP ConfReq id=0x1a]
    sent [IPCP ConfNak id=0x1a <addr 0.0.0.0>]
    rcvd [IPCP ConfNak id=0x1 <addr 120.157.55.15> <ms-dns1 10.4.149.70> <ms-dns2 10.4.130.164>]
    sent [IPCP ConfReq id=0x2 <addr 120.157.55.15> <ms-dns1 10.4.149.70> <ms-dns2 10.4.130.164>]
    rcvd [IPCP ConfReq id=0x1b]
    sent [IPCP ConfAck id=0x1b]
    rcvd [IPCP ConfAck id=0x2 <addr 120.157.55.15> <ms-dns1 10.4.149.70> <ms-dns2 10.4.130.164>]
    Could not determine remote IP address: defaulting to 10.64.64.64
    replacing old default route to eth0 [0.0.0.0]
    local IP address 120.157.55.15
    remote IP address 10.64.64.64
    primary DNS address 10.4.149.70
    secondary DNS address 10.4.130.164
    Script /etc/ppp/ip-up started (pid 1051)
    Script /etc/ppp/ip-up finished (pid 1051), status = 0x0
    ^CTerminating on signal 2
    Connect time 0.5 minutes.
    Sent 623 bytes, received 850 bytes.
    restoring old default route to eth0 [0.0.0.0]
    Script /etc/ppp/ip-down started (pid 1098)
    sent [LCP TermReq id=0x2 “User request”]
    rcvd [LCP TermAck id=0x2]

    Any ideas what the issue is?

    #33453

    Christien
    Participant

    To add to the above post, the script above executes but seems to go no further than at the point:
    Script /etc/ppp/ip-up started (pid 1051)
    Script /etc/ppp/ip-up finished (pid 1051), status = 0x0

    Where the script then hangs.

    • This reply was modified 4 months, 1 week ago by  Christien.
    #34667

    Metin
    Keymaster

    Hi,

    Why do you press Ctrl + C , If you want to run program at background, you should use &. Please start program with following command.

    sudo pppd call gprs &

    #34831

    david1
    Participant

    I get the same error where the script hangs at status 0x0.
    I do use sudo pppd call gprs&

    Please help.

    Thank you.

    #34832

    Metin
    Keymaster

    Hi,

    It is not hangs, It is normal output.

    Please run sudo pppd call gprs & then write ifconfig ppp0 and send output to me.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.