RAK7243 with LTE - "timeout sending Config-Requests"

Hi!
I can’t get my RAK7243 Pilot Gateway Pro to work with LTE. The sim card works fine in my iPhone but I cannot seem to connect to the internet properly as I get error “timeout sending Config-Requests” during the command sudo pppd call gprs.

  • Both LTE antennas are screwed in.
  • I use the latest firmware image provided by RAK.
  • SIM card works and is activated
  • Connection between LTE module and RPI works as it finds the network 4g.tele2.se as well as other providers.

See the log output below:

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/ttyAMA0		# (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 4g.tele2.se		# (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)
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;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EG95^M
Revision: EG95EFBR06A05M4G^M
^M
SubEdition: V01^M
^M
+CSQ: 17,99^M
^M
+COPS: 0^M
^M
+CGREG: 0,2^M
^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","4g.tele2.se",,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 4g.tele2.se finished (pid 849), status = 0x0
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ttyAMA0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4ac63a7c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <auth chap MD5> <magic 0xd112ea18> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x3 <auth chap MD5>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4ac63a7c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0xd112ea18> <pcomp> <accomp>]
sent [LCP ConfAck id=0x4 <asyncmap 0x0> <magic 0xd112ea18> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x4ac63a7c]
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=0x5 magic=0xd112ea18]
rcvd [LCP EchoRep id=0x0 magic=0xd112ea18 4a c6 3a 7c]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [LCP EchoReq id=0x1 magic=0x4ac63a7c]
IPCP: timeout sending Config-Requests
sent [LCP TermReq id=0x2 "No network protocols running"]
sent [LCP TermReq id=0x3 "No network protocols running"]
Connection terminated.
abort on (ERROR)
abort on (NO DIALTONE)
unterminated quote (line 4)
Script chat -s -v -f /etc/chatscripts/quectel-chat-disconnect finished (pid 868), status = 0x1
disconnect script failed
Modem hangup

What could be wrong?

Thanks in advance!

Have you followed the steps below?

Or this document for RAK7243 with LTE:
http://docs.rakwireless.com/en/LoRa/Pilot-Gateway-Pro-RAK7243/Application-Notes/Get_Start_with_RAK7243_with_LTE_LoRa_Gateway.pdf

Yes of course! Tried several times.

2019-06-05%2018-23-52%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE

Through this print message, I think you choose the wrong sim card operator.

enter minicom,can you show me the print of “at+cops=?”?

This is the output from at+cops=?

+COPS: (1,"3 SE","3 SE","24002",7),(1,"Tele2","Tele2 SE","24007",7),(1,"Telenor SE","TelenorS","24008",2),(1,"TELIA S","TELIA","24001",2),(1,"Sweden Mobile","MobileS","24024",0),(1,"Tele2","Tele2 SE","24007",2),(1,"Telenor SE","TelenorS","24008",7),(1,"3 SE","3 SE","240)

I have a “Tele2” SIM card, I tried both 1,0,“Tele2”,2 and 1,0,“Tele2”,7 without luck.

Is the command “at+cops=1,0,“Tele2”,2” or “at+cops=1,0,“Tele2”,7” successful?

No i tried that too without success…

So you must first determine that the sim card operator has not chosen the wrong.

I am having the same issue with a T-Mobile SIM . However with a Hologram SIM it works ok
Anyone have success with a T-Mobile US SIM ?

at
OK
at+cops=?
+COPS: (1,“T-Mobile”,“T-Mobile”,“310260”,7),(2,“T-Mobile”,“T-Mobile”,“310260”,2)
at+cops?
+COPS: 1,0,“T-Mobile”,2

I have tried both 2 and 7. same issue timeout

pi@rak-gateway:~ $ sudo su -
root@rak-gateway:~# pppd call gprs
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/ttyAMA0 # (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 fast.t-mobile.com# (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)
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)
AT^M^M
OK
– got it

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

send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EG95^M
Revision: EG95NAFBR05A04M4G^M
^M
SubEdition: V03^M
^M
+CSQ: 8,99^M
^M
+COPS: 1,0,“T-Mobile”,2^M
^M
+CGREG: 0,1^M
^M
OK
– got it

send (AT+CGDCONT=1,“IP”,“fast.t-mobile.com”,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 fast.t-mobile.com finished (pid 5346), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <–> /dev/ttyAMA0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa31310ed> ]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <magic 0xf1d4562e> ]
No auth is possible
sent [LCP ConfRej id=0x0 ]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xa31310ed> ]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf1d4562e> ]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf1d4562e> ]
sent [LCP EchoReq id=0x0 magic=0xa31310ed]
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=0x2 magic=0xf1d4562e]
rcvd [LCP EchoRep id=0x0 magic=0xf1d4562e a3 13 10 ed]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [LCP EchoReq id=0x1 magic=0xa31310ed]
IPCP: timeout sending Config-Requests
sent [LCP TermReq id=0x2 “No network protocols running”]
sent [LCP TermReq id=0x3 “No network protocols running”]
Connection terminated.
abort on (ERROR)
abort on (NO DIALTONE)
unterminated quote (line 4)
Script chat -s -v -f /etc/chatscripts/quectel-chat-disconnect finished (pid 5590), status = 0x1
disconnect script failed
Modem hangup

Where is your country?
Can you provide T-Mobile’s frequency band information?
Band information like this
eg95-na

Country is US
T-mobile uses band 2 and band 12 among others https://www.t-mobile.com/support/coverage/t-mobile-network

You mentioned that hologram was successful.

Can you change to a hologram sim card, then "sudo pppd call gprs" and send me the complete log?

ZhiQI,
Here is the hologram output

root@rak-gateway:/etc/chatscripts# pppd call gprs | tee /tmp/hologram.out
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/ttyAMA0 # (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 hologram # (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)
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)
AT^M^M
OK
– got it

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

send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EG95^M
Revision: EG95NAFBR05A04M4G^M
^M
SubEdition: V03^M
^M
+CSQ: 21,99^M
^M
+COPS: 0,0,“AT&T Hologram”,7^M
^M
+CGREG: 0,5^M
^M
OK
– got it

send (AT+CGDCONT=1,“IP”,“hologram”,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 hologram finished (pid 7759), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <–> /dev/ttyAMA0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd72684f9> ]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <magic 0xffebd00a> ]
No auth is possible
sent [LCP ConfRej id=0x0 ]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd72684f9> ]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xffebd00a> ]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xffebd00a> ]
sent [LCP EchoReq id=0x0 magic=0xd72684f9]
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=0x2 magic=0xffebd00a]
rcvd [LCP EchoRep id=0x0 magic=0xffebd00a d7 26 84 f9]
rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x3 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x4 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x5 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x5 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x6 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x6 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x7 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfReq id=0x0]
sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]
rcvd [IPCP ConfRej id=0x7 <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x8 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>]
rcvd [IPCP ConfReq id=0x1]
sent [IPCP ConfAck id=0x1]
rcvd [IPCP ConfNak id=0x8 <addr 10.116.233.176> <ms-dns1 212.9.0.135> <ms-dns2 212.9.0.136>]
sent [IPCP ConfReq id=0x9 <addr 10.116.233.176> <ms-dns1 212.9.0.135> <ms-dns2 212.9.0.136>]
rcvd [IPCP ConfAck id=0x9 <addr 10.116.233.176> <ms-dns1 212.9.0.135> <ms-dns2 212.9.0.136>]
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing default route to eth0 [192.168.1.1]
local IP address 10.116.233.176
remote IP address 10.64.64.64
primary DNS address 212.9.0.135
secondary DNS address 212.9.0.136
Script /etc/ppp/ip-up started (pid 7817)
Script /etc/ppp/ip-up finished (pid 7817), status = 0x0

I compared the two logs and found only the difference in signal strength.
The signal strength of T-Mobile is weaker than hologram.
Do you have an LTE antenna connected? Or if the gateway is placed outdoors, whether the dial-up can be successful when the signal strength is good.

I had this problem and it got fixed when I specified the pin of the SIM card on the connect chatscript.

#send pin, replace xxxx with the SIM card 4-digit pin number
OK “AT+CPIN=xxxx”