PPP setup fails BG96

Hi,

I use a BG96 and want to setup PPPoS. The deivce communicating with the BG96 is a ESP32 microcontroller.
ESP32 set the BG96 in PPP mode with AT command ATD*99#.
This is the log on ESP32 side:

ppp phase changed[1]: phase=0
ppp_connect[1]: holdoff=0
ppp phase changed[1]: phase=3
pppos_connect: unit 1: connecting
ppp_start[1]
ppp phase changed[1]: phase=6
pppos_send_config[1]: out_accm=FF FF FF FF
ppp_send_config[1]
pppos_recv_config[1]: in_accm=FF FF FF FF
ppp_recv_config[1]
ppp: auth protocols: PAP=1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbf389d2b> ]
pppos_write[1]: len=24
ppp_start[1]: finished
I (232344) modem: Modem PPP Started
I (232344) modem: PPP is up.
pppos_input[1]: got 99 bytes
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <auth 0xc223 05> <magic 0x834eb68a> ]
sent [LCP ConfNak id=0x3 ]
pppos_write[1]: len=12
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbf389d2b> ]
pppos_input[1]: got 51 bytes
rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x834eb68a> ]
sent [LCP ConfAck id=0x4 <asyncmap 0x0> <magic 0x834eb68a> ]
pppos_write[1]: len=28
netif_set_mtu[1]: mtu=1500
pppos_send_config[1]: out_accm=0 0 0 0
ppp_send_config[1]
pppos_recv_config[1]: in_accm=0 0 0 0
ppp_recv_config[1]
ppp phase changed[1]: phase=7
sent [PAP AuthReq id=0x1 user=“espressif” password=“esp32”]
pppos_write[1]: len=24
pppos_input[1]: got 32 bytes
rcvd [LCP DiscReq id=0x5 magic=0x834eb68a]
rcvd [PAP AuthAck id=0x1 “”]
PAP authentication succeeded
ppp phase changed[1]: phase=9
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>]
pppos_write[1]: len=32
sent [IPV6CP ConfReq id=0x1 ]
pppos_write[1]: len=18
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>]
pppos_write[1]: len=32
sent [IPV6CP ConfReq id=0x1 ]
pppos_write[1]: len=18
I (242354) modem: Modem timeout
ppp_close[1]: kill_link → lcp_close
ppp phase changed[1]: phase=11
ppp phase changed[1]: phase=6
pppos_send_config[1]: out_accm=FF FF FF FF
ppp_send_config[1]
pppos_recv_config[1]: in_accm=0 0 0 0
ppp_recv_config[1]
sent [LCP TermReq id=0x2 “User request”]
pppos_write[1]: len=20

Seems like ESP32 sends ConfReq and BG96 doesn’t respond to the request. No IP address is received by the ESP32. If I connect the ESP32 to a EC21 modem it works and an IP address is received.

BR
Jonas

Hi @J_A

Have you checking the network if registered? because there is NO IP received.

Hi, how do I check if network is registered?

BR
Jonas

You need to check AT+CEREG?(for LTE) or AT+CREG?(for GSM) command via Main UART or USB AT port.

+CEREG: 0,1 or +CEREG: 0,5 or +CREG: 0,1 should be registered.

I receive +CREG: 0,5