4G Internet Setup Troubleshooting
You are experiencing issues connecting to the internet, when connected to the WiFi hotspot on the AutoPi Dongle.
#
Prerequisites:Before following this guide, you must have completed the initial setup guide.
#
Check SIM CardYour SIM card must be setup for data. To check this, insert the SIM into another device, like a smartphone or similar. When inserted in the other device you must be able to browse the web.
If you ordered a branded version of the AutoPi (Verizon/AT&T), please verify that the network carrier of the SIM card is the same as the brand of the AutoPi.
Verify that the SIM card is not pin locked and if it is that you have entered the pin code in the settings.
#
Check Modem on HardwareIn the terminal on the WiFi, check that the modem has been found. This can be done by writing the following command:
cmd.run "lsusb"
The output of the command should be similar to this:
The important part to look for is the Modem. The ID will be different depending on which modem your device is equipped with:
Modem Manufacturer | ID |
---|---|
Quectel | 2c7c:0121 |
Telit | 1bc7:1031 |
If you ordered a 4G edition and you don't find the modem in your list, then please contact support@autopi.io
#
Check Modem SetupCheck PDP Context:
If your devices is using a Telit Modem is using software version 1.22.7 or newer,
There's a command you can run to verify that the modem has been set up correctly.
modem.connection pdp_context
This should return a message that looks like either.
value:
- apn: ''
cid: 1
pdp_type: IPV4V6
or
value:
- apn: ''
cid: 1
pdp_type: IPV4V6
- apn: 'ims'
cid: 2
pdp_type: IPV4V6
Incase your software version is older than 1.22.7, you can run the following command to get the same information.
modem.connection execute AT+CGDCONT?
This should return a message that looks like either.
data: '+CGDCONT: 1, "IPV4V6","",0,0,0,0'
or
Data:
- '+CGDCONT:1,"IPV4V6","",0,0,0,0'
- '+CGDCONT:2,"IPV4V6","ims","",0,0,0,0'
If you get the second message after running either command then you can reconfigure the modem by running these three commands.
cmd.run "systemctl stop qmi-manager"
modem.connection execute AT+CGDCONT=2
cmd.run "systemctl restart qmi-manager"
After restarting your devices you can run the first command again to verify you get the first message.
Check Firmware Switch:
Check if the firmware switch is set correctly by running this command if you are using software version 1.22.7 or newer.
modem.connection active_firmware_image
this should return a message that looks like this.
_stamp: "the curent date"
_type: active_firmware_image
net_conf:global
storage_conf: ram
Here we are looking to see if the net_conf is set to global.
Incase your software version is older than 1.22.7, you can run the following command to get the same informaiton.
modem.connection execute AT#FWSWITCH?
This should return with a message that looks like this.
Data:'FWSWITCH:40:1'
Incase the FWSWITCH does not start with 40 or net_conf is not global this can be reconfigured manually by running the following command.
modem.connection execute AT#FWSWITCH=40,1
#
Checking qmi-manager StatusThe device contains a software manager, which ensure stable connection to the internet. This is called qmi-manager. To check status, please write the following command in the terminal:
cmd.run "qmi-manager status"
The output should be similar what you can see in the image below:
#
Further Checking of NetworkIf your device still isn't online, you can try running the following two commands. They will tell you a bit more about why the network manager fails:
cmd.run "qmi-manager down"
cmd.run "qmi-manager up"
If the last command reports issue with detecting the SIM card, then double check the orientation of the SIM card and try again.
#
TweaksIf you experience connection issues where the connection drops sometimes and/or if it is online, but not shown as online on my.autopi.io, then you can try to tweak the MTU from the default value: 1500, to a lower value, in increments (ex. 1500 -> 1450 -> etc). This can be done on the local configuration tool, by connecting to the device hotspot and opening local.autopi.io in your browser.
From the terminal located in the top right corner on the webpage, you can run the following two commands to update the MTU and save the changes.
grains.set qmi:mtu xxxx
state.sls network.wwan.qmi.config
To verify that these changes have been saved, you can run the following two commands, here you want to check that first command retruns the same value you set, and that the seconed command where mtu= the same value as the one we set.
grains.get qmi:mtu
cmd.run "cat /etc/udhcpc/qmi.override"
NOTE:
- For US Verizon customers, please try this MTU: 1428.
- For other customer, please try this MTU: 1280.
If the connection is still not online, then please contact support@autopi.io for additional help.
#
Check ConnectionsYou can to check if the device can connect to the internet though the 4g connection you can run the following command.
cmd.run "ping -c 5 -I wwan0 google.com"
You can also check the connection to the autopi cloud service by running the following command.
cmd.run "curl -v my.autopi.io"