Cellular IoT Hat - cant seem to dial out


new install - Iot Hat, attempted PPP and QMI connection modes & Multiple sim.

QMI failes at: requestRegistrationState2 MCC: 530, MNC: 1, PS: Detached, DataCap: UNKNOW
and just loops at that line.
I have noticed that working configurations ive seen online PS: is allways attached, what is PS and what does it mean?
PPP failes at: [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
then it times out config requests and aborts

The net light is indicating searching for network and i’m using the PCB LTE aerial that the had comes with.

the wwan0 interface is created successfully and had an ip address but no packets will flow through the interface (ive used the interface selection feature of ping to check this)
the ppp0 interface gets created but no ip assigned

i have attempted the chat connect modifications i have seen suggested on other threads but that has not changed anything - i am in NZ, dont know if thats helpfull



any help would be appreciated

Hi @peter.addison,

Which SIM card do you use? Did you try with different sim too?
Could you please us an image of your hardware setup?

i have tried 3 -2 2degrees sim and 1 vodafone sim cards - provided pictures were with vodafone sim

Which Raspberry Pi are you using?
What is the kernel version?(uname -r and ls /usr/src)

Please share the whole log of sudo pon .

uname -r

ls /usr/src
linux-headers-4.19.97+ linux-headers-4.19.97-v7+ linux-headers-4.19.97-v7l+

output of pon
sudo pon
pppd options in effect:
debug # (from /etc/ppp/peers/provider)
updetach # (from /etc/ppp/peers/provider)
dump # (from /etc/ppp/peers/provider)
noauth # (from /etc/ppp/peers/provider)
remotename 3gppp # (from /etc/ppp/peers/provider)
/dev/ttyS0 # (from /etc/ppp/peers/provider)
115200 # (from /etc/ppp/peers/provider)
lock # (from /etc/ppp/peers/provider)
connect chat -s -v -f /etc/chatscripts/chat-connect -T vodafone # (from /etc/ppp/peers/provider)
disconnect chat -s -v -f /etc/chatscripts/chat-disconnect # (from /etc/ppp/peers/provider)
nocrtscts # (from /etc/ppp/peers/provider)
modem # (from /etc/ppp/peers/provider)
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/provider)
novj # (from /etc/ppp/peers/provider)
novjccomp # (from /etc/ppp/peers/provider)
ipcp-accept-local # (from /etc/ppp/peers/provider)
ipcp-accept-remote # (from /etc/ppp/peers/provider)
ipparam 3gppp # (from /etc/ppp/peers/provider)
noipdefault # (from /etc/ppp/peers/provider)
ipcp-max-failure 30 # (from /etc/ppp/peers/provider)
defaultroute # (from /etc/ppp/peers/provider)
usepeerdns # (from /etc/ppp/peers/provider)
noccp # (from /etc/ppp/peers/provider)
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)
– got it

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

send (ATI;+CSUB;+CSQ;+COPS?;+CGREG?;&D2^M)
expect (OK)
Revision: BG96MAR02A07M1G^M
SubEdition: V08^M
+CSQ: 23,99^M
+COPS: 0^M
+CGREG: 0,4^M
– got it

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

send (ATD*99#^M)
expect (CONNECT)
– got it

Script chat -s -v -f /etc/chatscripts/chat-connect -T vodafone finished (pid 5283), status = 0x0
Serial connection established.
using channel 165
Using interface ppp0
Connect: ppp0 <–> /dev/ttyS0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x5050d661> ]
rcvd [LCP ConfReq id=0xec <asyncmap 0x0> <magic 0xd100f75c> ]
No auth is possible
sent [LCP ConfRej id=0xec ]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x5050d661> ]
rcvd [LCP ConfReq id=0xed <asyncmap 0x0> <magic 0xd100f75c> ]
sent [LCP ConfAck id=0xed <asyncmap 0x0> <magic 0xd100f75c> ]
sent [LCP EchoReq id=0x0 magic=0x5050d661]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
rcvd [LCP DiscReq id=0xee magic=0xd100f75c]
rcvd [LCP EchoRep id=0x0 magic=0xd100f75c 50 50 d6 61]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [IPCP ConfReq id=0x1 <addr> <ms-dns1> <ms-dns2>]
sent [LCP EchoReq id=0x1 magic=0x5050d661]
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)

Sending break to the modem
send (+++^M)
send (+++^M)
send (+++^M)

Script chat -s -v -f /etc/chatscripts/chat-disconnect finished (pid 5326), status = 0x0
Serial link disconnected.
Modem hangup

So after falling down a rabbit hole or few i have it connecting

1st AT+COPS=? showed me that it could only see one of the providers that i had sim cards for and AT+CREG? showed me that it wasn’t even connected to any network

2nd i used AT+COPS=0 to set it into automatic connection mode - i used AT+CREG? to check what it had connected to.

i was then able to use pon to connect to the outside world.

However if i disconnected and attempted to reconnect this would occur

also AT+CREG? would return network Registration denied

Then it would no longer connect until i put the sim card into a phone used it and then returned it to the hat

as far as i could tell the the ConfNak ConfReq loop would make the service provider kick the sim card off the network
I edited the /etc/ppp/peers/provider file and set a local ip address that had been assigned to the sim previously - this prevented the ConfNak ConfReq loop.

to add the ip address - add this line to /etc/ppp/peers/provider around the ipcp-accept-remote - ipcp-accept-local lines

(the ip address):

to the provider file - as far as i can tell it has fixed my problem but i will edit if that changes.

To anyone following in my footsteps - Quectel_BG96_AT_Commands_Manual_V2.2 page 75