Thank you for your reply.
I wish we obtained an IP address; unfortenately the ppp daemon never receives an IP address, although it tries to.
We use the standard chatscript provided by the OS / ppp:
# You can use this script unmodified to connect to cellular networks.
# The APN is specified in the peers file as the argument of the -T command
# line option of chat(8).
# For details about the AT commands involved please consult the relevant
# standard: 3GPP TS 27.007 - AT command set for User Equipment (UE).
# (http://www.3gpp.org/ftp/Specs/html-info/27007.htm)
ABORT BUSY
ABORT VOICE
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
ABORT "DELAYED"
ABORT "ERROR"
# cease if the modem is not attached to the network yet
ABORT "+CGATT: 0"
"" AT
TIMEOUT 12
OK ATH
OK ATE1
# +CPIN provides the SIM card PIN
#OK "AT+CPIN=1234"
# +CFUN may allow to configure the handset to limit operations to
# GPRS/EDGE/UMTS/etc to save power, but the arguments are not standard
# except for 1 which means "full functionality".
#OK AT+CFUN=1
OK AT+CGDCONT=1,"IP","\T","",0,0
OK ATD*99#
TIMEOUT 22
CONNECT ""
The ppp daemon uses the following:
user "emnify"
connect "/usr/sbin/chat -e -t 45 -v -f /etc/chatscripts/gprs -v -T em"
/dev/ttyA6
noipdefault
defaultroute
replacedefaultroute
hide-password
noauth
persist
maxfail 0
usepeerdns
linkname EMnify
logfile /tmp/pppd.log
mtu 1430
The result is this:
ATZ
OK
AT+CGDCONT=1,"IP","internet-entreprise","0.0.0.0",0,0
OK
AT+CGQREQ=1,0,0,0,0,0
OK
AT+CGQMIN=1,0,0,0,0,0
OK
ATDT*99***1#
CONNECT
Script /usr/sbin/chat -e -t 45 -v -f /etc/chatscripts/gprs -v -T em finished (pid 1890), status = 0x0
Serial connection established.
using channel 19
Using interface ppp1
Connect: ppp1 <--> /dev/ttyA6
sent [LCP ConfReq id=0x31 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0xb8 <asyncmap 0x0> <auth chap MD5> <magic 0xd64a423f> <pcomp> <accomp>]
sent [LCP ConfRej id=0xb8 <magic 0xd64a423f> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x31 <asyncmap 0x0>]
rcvd [LCP ConfReq id=0xb9 <asyncmap 0x0> <auth chap MD5>]
sent [LCP ConfNak id=0xb9 <auth pap>]
rcvd [LCP ConfReq id=0xba <asyncmap 0x0> <auth pap>]
sent [LCP ConfAck id=0xba <asyncmap 0x0> <auth pap>]
sent [PAP AuthReq id=0x11 user="emnify" password=<hidden>]
rcvd [LCP DiscReq id=0xbb magic=0xd64a423f]
rcvd [PAP AuthAck id=0x11 ""]
PAP authentication succeeded
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x11 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
IPCP: timeout sending Config-Requests
sent [LCP TermReq id=0x32 "No network protocols running"]
sent [LCP TermReq id=0x33 "No network protocols running"]
Connection terminated.
Modem hangup
And this is what the result should look like (output of an EU modem):
AT
OK
ATH
OK
ATE1
OK
AT+CGDCONT=1,"IP","em","",0,0
OK
ATD*99#
CONNECT
Script /usr/sbin/chat -e -t 45 -v -f /etc/chatscripts/gprs -v -T em finished (pid 3582), status = 0x0
Serial connection established.
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyA6
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x45d3932c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0xc <asyncmap 0x0> <auth chap MD5> <magic 0xc7abadac> <pcomp> <accomp>]
sent [LCP ConfNak id=0xc <auth pap>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x45d3932c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0xd <asyncmap 0x0> <auth pap> <magic 0xc7abadac> <pcomp> <accomp>]
sent [LCP ConfAck id=0xd <asyncmap 0x0> <auth pap> <magic 0xc7abadac> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x45d3932c]
sent [PAP AuthReq id=0x1 user="emnify" password=<hidden>]
rcvd [LCP DiscReq id=0xe magic=0xc7abadac]
rcvd [LCP EchoRep id=0x0 magic=0xc7abadac 45 d3 93 2c]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0xf 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x6]
sent [IPCP ConfNak id=0x6 <addr 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
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=0x7]
sent [IPCP ConfAck id=0x7]
rcvd [IPCP ConfNak id=0x2 <addr 100.89.116.143> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
sent [IPCP ConfReq id=0x3 <addr 100.89.116.143> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
rcvd [IPCP ConfAck id=0x3 <addr 100.89.116.143> <ms-dns1 8.8.8.8> <ms-dns2 8.8.4.4>]
Could not determine remote IP address: defaulting to 10.64.64.64
replacing old default route to eth0 [192.168.178.1]
local IP address 100.89.116.143
remote IP address 10.64.64.64
primary DNS address 8.8.8.8
secondary DNS address 8.8.4.4
Script /etc/ppp/ip-up started (pid 3588)
Script /etc/ppp/ip-up finished (pid 3588), status = 0x0
We rebooted (also with power completely disconnected) multiple times, to no avail.