I am trying to set up SIM7000E via ppp. SIM7000E is connected to a beaglebone black via micro USB cable. Beaglebone uses 5.10.168-ti-r71 kernel (Debian). SIM7000E drivers have been installed successfully and also ppp is installed too.
I entered the directory /etc/ppp/peers, copied the file provider and named it gprs. Gprs file looks like this:
# example configuration for a dialup connection authenticated with PAP or CHAP
#
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.
# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"
# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"
# Serial device to which the modem is connected.
/dev/ttyUSB2
# Speed of the serial line.
115200
nocrtscts
debug
nodetach
ipcp-accept-local
ipcp-accept-remote
# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute
# Makes pppd "dial again" when the connection is lost.
persist
# Do not ask the remote to authenticate.
noauth
Then when I try to call gprs by typing:
pppd call gprs
The result is this:
Script /usr/sbin/chat -v -f /etc/chatscripts/gprs finished (pid 1186), status = 0x0
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 /dev/ttyUSB2
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x4 ]
sent [LCP ConfNak id=0x4 ]
rcvd [LCP ConfAck id=0x1 ]
rcvd [LCP ConfReq id=0x5 ]
sent [LCP ConfAck id=0x5 ]
sent [LCP EchoReq id=0x0 magic=0xf0cd2f0e]
sent [PAP AuthReq id=0x1 user="myusername@realm" password=]
rcvd [LCP DiscReq id=0x6 magic=0xd0a7832b]
rcvd [LCP EchoRep id=0x0 magic=0xd0a7832b f0 cd 2f 0e]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
rcvd [LCP ProtRej id=0x7 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
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [LCP EchoReq id=0x1 magic=0xf0cd2f0e]
IPCP: timeout sending Config-Requests
IPV6CP: timeout sending Config-Requests
sent [LCP TermReq id=0x2 "No network protocols running"]
sent [LCP TermReq id=0x3 "No network protocols running"]
Connection terminated.
Modem hangup
I do not understand where is the problem. Can anyone help with this?
The /etc/chatscripts/gprs contains:
# 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 ""
I changed the gprs file in /etc/ppp/peers and put this:
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs" -T internet.vodafone.gr
I tried to call gprs again and the result was this
Script /usr/sbin/chat -v -f /etc/chatscripts/gprs -T internet.vodafone.gr finished (pid 3457), status = 0x0
Serial connection established.
using channel 27
Using interface ppp0
Connect: ppp0 /dev/ttyUSB2
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x0 ]
sent [LCP ConfNak id=0x0 ]
rcvd [LCP ConfAck id=0x1 ]
rcvd [LCP ConfReq id=0x1 ]
sent [LCP ConfAck id=0x1 ]
sent [LCP EchoReq id=0x0 magic=0x7969ae32]
sent [PAP AuthReq id=0x1 user="myusername@realm" password=]
rcvd [LCP DiscReq id=0x2 magic=0xd16a9755]
rcvd [LCP EchoRep id=0x0 magic=0xd16a9755 79 69 ae 32]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
rcvd [LCP ProtRej id=0x3 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
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
sent [LCP EchoReq id=0x1 magic=0x7969ae32]
IPCP: timeout sending Config-Requests
IPV6CP: timeout sending Config-Requests
sent [LCP TermReq id=0x2 "No network protocols running"]
sent [LCP TermReq id=0x3 "No network protocols running"]
Connection terminated.
Modem hangup
Then i changed the /etc/chatscripts/gprs file and put the pin number of my sim card, removing the # sign. Called again gprs and the result now was this:
Script /usr/sbin/chat -v -f /etc/chatscripts/gprs -T internet.vodafone.gr finished (pid 3473), status = 0x0
Serial connection established.
using channel 28
Using interface ppp0
Connect: ppp0 /dev/ttyUSB2
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x4 ]
sent [LCP ConfNak id=0x4 ]
rcvd [LCP ConfAck id=0x1 ]
rcvd [LCP ConfReq id=0x5 ]
sent [LCP ConfAck id=0x5 ]
sent [LCP EchoReq id=0x0 magic=0xc95e726d]
sent [PAP AuthReq id=0x1 user="myusername@realm" password=]
rcvd [LCP DiscReq id=0x6 magic=0xd172abe9]
rcvd [LCP EchoRep id=0x0 magic=0xd172abe9 c9 5e 72 6d]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [IPV6CP ConfReq id=0x1 ]
rcvd [LCP ProtRej id=0x7 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 ConfNak id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
Modem hangup
Connection terminated.
In other words I did not receive a "No network protocols running" message.
Asked by user355
(1 rep)
Nov 16, 2023, 01:40 PM
Last activity: Mar 8, 2024, 03:08 PM
Last activity: Mar 8, 2024, 03:08 PM