LCP terminated by peer, Pi using SIM800

I’ve been trying to get a SIM800 to connect to the Hologram network using a Raspberry Pi.

Specifically I’m using this unit:

And for the Pi I’m using a 3 B+. The unit is being powered by the Pi and I’m using a laptop USB-C power supply to power the Pi (since my initial concern was power)

I regularly get “LCP terminated by peer” with no other LCP related messages (like response byte). Here is the log of the connection:

Apr 4 19:12:43 raspberrypi chat[849]: abort on (BUSY)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (VOICE)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (NO CARRIER)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (NO DIALTONE)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (NO DIAL TONE)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (NO ANSWER)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (DELAYED)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (ERROR)
Apr 4 19:12:43 raspberrypi chat[849]: abort on (+CGATT: 0)
Apr 4 19:12:43 raspberrypi chat[849]: send (AT^M)
Apr 4 19:12:43 raspberrypi chat[849]: timeout set to 12 seconds
Apr 4 19:12:43 raspberrypi chat[849]: expect (OK)
Apr 4 19:12:43 raspberrypi chat[849]: AT^M^M
Apr 4 19:12:43 raspberrypi chat[849]: OK
Apr 4 19:12:43 raspberrypi chat[849]: – got it
Apr 4 19:12:43 raspberrypi chat[849]: send (ATH^M)
Apr 4 19:12:43 raspberrypi chat[849]: expect (OK)
Apr 4 19:12:43 raspberrypi chat[849]: ^M
Apr 4 19:12:43 raspberrypi chat[849]: ATH^M^M
Apr 4 19:12:43 raspberrypi chat[849]: OK
Apr 4 19:12:43 raspberrypi chat[849]: – got it
Apr 4 19:12:43 raspberrypi chat[849]: send (ATE1^M)
Apr 4 19:12:43 raspberrypi chat[849]: expect (OK)
Apr 4 19:12:43 raspberrypi chat[849]: ^M
Apr 4 19:12:43 raspberrypi chat[849]: ATE1^M^M
Apr 4 19:12:43 raspberrypi chat[849]: OK
Apr 4 19:12:43 raspberrypi chat[849]: – got it
Apr 4 19:12:43 raspberrypi chat[849]: send (AT+CGDCONT=1,“IP”,“hologram”,“”,0,0^M)
Apr 4 19:12:44 raspberrypi chat[849]: expect (OK)
Apr 4 19:12:44 raspberrypi chat[849]: ^M
Apr 4 19:12:44 raspberrypi chat[849]: AT+CGDCONT=1,“IP”,“hologram”,“”,0,0^M^M
Apr 4 19:12:44 raspberrypi chat[849]: OK
Apr 4 19:12:44 raspberrypi chat[849]: – got it
Apr 4 19:12:44 raspberrypi chat[849]: send (ATD99#^M)
Apr 4 19:12:44 raspberrypi chat[849]: timeout set to 60 seconds
Apr 4 19:12:44 raspberrypi chat[849]: expect (CONNECT)
Apr 4 19:12:44 raspberrypi chat[849]: ^M
Apr 4 19:12:44 raspberrypi chat[849]: ATD
99#^M^M
Apr 4 19:12:44 raspberrypi chat[849]: CONNECT
Apr 4 19:12:44 raspberrypi chat[849]: – got it
Apr 4 19:12:44 raspberrypi chat[849]: send (^M)
Apr 4 19:12:44 raspberrypi pppd[717]: Serial connection established.
Apr 4 19:12:44 raspberrypi pppd[717]: Using interface ppp0
Apr 4 19:12:44 raspberrypi pppd[717]: Connect: ppp0 <–> /dev/ttyS0
Apr 4 19:12:45 raspberrypi pppd[717]: PAP authentication succeeded
Apr 4 19:12:45 raspberrypi pppd[717]: LCP terminated by peer
Apr 4 19:12:48 raspberrypi pppd[717]: Connection terminated.
Apr 4 19:12:48 raspberrypi pppd[717]: Modem hangup

As for the chat script I’m using the fairly generic one (modified a couple timeouts):

ABORT BUSY
ABORT VOICE
ABORT “NO CARRIER”
ABORT “NO DIALTONE”
ABORT “NO DIAL TONE”
ABORT “NO ANSWER”
ABORT “DELAYED”
ABORT “ERROR”

ABORT “+CGATT: 0”

“” AT
TIMEOUT 12
OK ATH
OK ATE1

OK AT+CGDCONT=1,“IP”,“\T”,“”,0,0
OK ATD*99#
TIMEOUT 60
CONNECT “”

For the /etc/ppp/peers file I followed the instructions listed for the AdaFruit Font unit (Overview | FONA Tethering to Raspberry Pi or BeagleBone Black | Adafruit Learning System):

connect “/usr/sbin/chat -v -f /etc/chatscripts/gprs -T hologram”

/dev/ttyS0

115200

noipdefault

usepeerdns

defaultroute

persist

noauth

nocrtscts

local

I’ve been messing with this for several days now and am about to give up. Any suggestions would be helpful.

Thanks,
Clark Snowdall

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.