This article requires knowledge of connecting to your device's cellular module/modem. Please refer to the user manual or visit the manufacturer's website for specific instructions.
Introduction
Checking the data connection after a successful network attachment can help debug issues with connectivity.
While there is no standard, uniform ping test AT command, the steps are relatively simple and follow a similar pattern across IoT modems. In this guide, we’ll go through how to ping Google’s primary DNS server (the server with the IP 8.8.8.8) with these modems:
Quectel's BG96
SIMCom's SIM7070G
Thales PLS62-W
Telit LE910C1
The overall structure for pinging 8.8.8.8 with any of the modems is:
Set the APN to "onomondo" (all lower-case).
Attach to the network.
Establish a data connection.
Ping 8.8.8.8.
Note: You will most likely be able to use the same approach for each of the manufacturers' other modems, but there might be slight variations. In case you encounter any issues, please consult the documentation, your supplier, or the manufacturer themselves.
No matter which modem you are using, the Traffic Monitor on the SIM should display the following result:
Sending a ping
Quectel BG96
Set the APN
Issue
AT+CGDCONT=1,"IP","onomondo"
. This defines the PDP context.AT+CGDCONT=1,"IP","onomondo"
OKAttach to the network
Check the connection with
AT+COPS?
.AT+COPS?
+COPS: 0,0,”T-Mobile USA”,7
OKThe modem might already have connected to the network when it was booted up. If this isn't the case then do the following:
Issue
AT+COPS=0
. This will set the modem into automatic network selection.
Wait for
AT+CEREG?
orAT+CGREG?
to returnx,5
(registered to a roaming network).
Establish a data connection
Issue
AT+QIACT=1,1
. This activates the PDP context.
AT+QIACT=1,1
OK
Ping 8.8.8.8
Issue
AT+QPING=1,"8.8.8.8",5,5
.
This pings 8.8.8.8 five times with a timeout of five seconds.
SIMCom SIM7070G
Set the APN
Issue
AT+CGDCONT=1,"IP","onomondo"
. This defines the PDP context.AT+CGDCONT=1,"IP","onomondo"
OKAttach to the network
Check the connection with
AT+COPS?
.AT+COPS?
+COPS: 0,0,”T-Mobile USA”,7
OKThe modem might already have connected to the network when it was booted up. If this isn't the case then do the following:
Issue
AT+COPS=0
. This will set the modem into automatic network selection.
Wait for
AT+CEREG?
orAT+CGREG?
to returnx,5
(registered to a roaming network).
Establish a data connection
Issue
AT+CNACT=0,1
. This activates the PDP context.
Ping 8.8.8.8
Select PDP context ID for pinging
AT+SNPDPID=0
.Issue
AT+SNPING4=”8.8.8.8″,5,16,5000
.
This pings 8.8.8.8 five times with a timeout of five seconds.
Thales PLS62-W
Set the APN
Issue
AT+CGDCONT=1,"IP","onomondo"
. This defines the PDP context.
AT+CGDCONT=1,"IP","onomondo"
OKAttach to the network
Check the connection with
AT+COPS?
.AT+COPS?
+COPS: 0,0,”T-Mobile USA”,7
OKThe modem might already have connected to the network when it was booted up. If this isn't the case then do the following:
Issue
AT+COPS=0
. This will set the modem into automatic network selection.
Wait for
AT+CEREG?
orAT+CGREG?
to returnx,5
(registered to a roaming network).
Establish a data connection
Issue
AT^SICA=1,1
. This activates the PDP context.
Get the IP of your device with
AT+CGPADDR=1
. This is not optional.
Ping 8.8.8.8
Issue
AT^SISX=Ping,1,”8.8.8.8″,5,5000
.This pings 8.8.8.8 five times with a timeout of five seconds.
Telit LE910C1
Set the APN
Issue
AT+CGDCONT=1,"IP","onomondo"
. This defines the PDP context.
AT+CGDCONT=1,"IP","onomondo"
OKAttach to the network
Check the connection with
AT+COPS?
.AT+COPS?
+COPS: 0,0,”T-Mobile USA”,7
OKThe modem might already have connected to the network when it was booted up. If this isn't the case then do the following:
Issue
AT+COPS=0
. This will set the modem into automatic network selection.
Wait for
AT+CEREG?
orAT+CGREG?
to returnx,5
(registered to a roaming network).
Establish a data connection
Issue
AT#SGACT=1,1
. This activates the PDP context.
Ping 8.8.8.8
Issue
AT#PING="8.8.8.8",5
This pings 8.8.8.8 five times with a timeout of five seconds.