BG95-M4 PPP (LCP terminated by peer)

Hello,
I’m trying to establish a data session with the BG95-M4 module. I’m using PPP mode and the negotiation is interrupted with “LCP terminated by peer”:

pppd call quectel-ppp debug

pppd options in effect:
debug debug # (from command line)
nodetach # (from /etc/ppp/peers/quectel-ppp)
dump # (from /etc/ppp/peers/quectel-ppp)
noauth # (from /etc/ppp/peers/quectel-ppp)
remotename 3gppp # (from /etc/ppp/peers/quectel-ppp)
/dev/GSM_top_status # (from /etc/ppp/peers/quectel-ppp)
115200 # (from /etc/ppp/peers/quectel-ppp)
lock # (from /etc/ppp/peers/quectel-ppp)
connect /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-connect # (from /etc/ppp/peers/quectel-ppp)
disconnect /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-disconnect # (from /etc/ppp/peers/quectel-ppp)
crtscts # (from /etc/ppp/peers/quectel-ppp)
local # (from /etc/ppp/peers/quectel-ppp)
hide-password # (from /etc/ppp/peers/quectel-ppp)
novj # (from /etc/ppp/peers/quectel-ppp)
novjccomp # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote # (from /etc/ppp/peers/quectel-ppp)
ipparam 3gppp # (from /etc/ppp/peers/quectel-ppp)
noipdefault # (from /etc/ppp/peers/quectel-ppp)
defaultroute # (from /etc/ppp/peers/quectel-ppp)
usepeerdns # (from /etc/ppp/peers/quectel-ppp)
noccp # (from /etc/ppp/peers/quectel-ppp)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 120 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 (AT+CFUN=1^M)
expect (OK)
^M
^M
OK
– got it

send (ATI^M)
expect (OK)
^M
^M
Quectel^M
BG95-M4^M
Revision: BG95M4LAR02A02^M
^M
OK
– got it

send (AT+CSQ^M)
expect (OK)
^M
^M
+CSQ: 31,99^M
^M
OK
– got it

send (AT+CPIN?^M)
expect (OK)
^M
^M
+CPIN: READY^M
^M
OK
– got it

send (AT+COPS?^M)
expect (OK)
^M
^M
+COPS: 0^M
^M
OK
– got it

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

send (AT+CGDCONT=1,“IP”,“domotec82.fr”,0,0^M)
expect (OK)
^M
AT+CGDCONT=1,“IP”,“domotec82.fr”,0,0^M^M
OK
– got it

send (ATDT99#^M)
expect (CONNECT)
^M
ATDT
99#^M^M
CONNECT
– got it

Script /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-connect finished (pid 4378), status = 0x0
Serial connection established.
using channel 4
Using interface ppp0
Connect: ppp0 ↔ /dev/GSM_top_status
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x42ed1dde> ]
rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0xd022068b> ]
No auth is possible
sent [LCP ConfRej id=0x4 ]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x42ed1dde> ]
rcvd [LCP ConfReq id=0x5 <asyncmap 0x0> <magic 0xd022068b> ]
sent [LCP ConfAck id=0x5 <asyncmap 0x0> <magic 0xd022068b> ]
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=0x6 magic=0xd022068b]
rcvd [LCP TermReq id=0x7]
LCP terminated by peer
sent [LCP TermAck id=0x7]
Connection terminated.
abort on (ERROR)
abort on (NO DIALTONE)
\send (+++ATH^M)

Good bye
Script /usr/sbin/chat -E -s -v -f /etc/ppp/peers/quectel-chat-disconnect finished (pid 4399), status = 0x0
Serial link disconnected.
Modem hangup

Any idea about this
Any leads would be appreciated
Thanks,

Hi @hmaied

Which FW do you using now? (AT+QGMR to check version), and please try with command AT+IFC=2,2 before starting PPP.

My FW version is BG95M4LAR02A02_01.200.01.200 .
it seems better after trying AT+IFC=2,2 command, but i still have random interruption after few minutes :

secondary DNS address 212.224.129.94
Script /etc/ppp/ip-up started (pid 6714)
Script /etc/ppp/ip-up finished (pid 6714), status = 0x0
rcvd [LCP TermReq id=0x3]
LCP terminated by peer
Connect time 6.6 minutes.
Sent 2012 bytes, received 1852 bytes.
Script /etc/ppp/ip-down started (pid 7537)
sent [LCP TermAck id=0x3]
Script /etc/ppp/ip-down finished (pid 7537), status = 0x0
Connection terminated.
abort on (ERROR)
abort on (NO DIALTONE)
\send (+++ATH^M)

Thanks