Perhaps you can do this by following these steps！
- First run update
sudo apt update && sudo apt upgrade
- Install Raspberry Pi kernel headers.
sudo apt-get install raspberrypi-kernel-headers
- Check installed kernel headers packet version ls /usr/src
In our case, it is 4.14.79
4.Reboot your Raspberry Pi in order to activate the new firmware
- After rebooting, download qmi_installer.sh script.
- Change the permission of the script.
sudo chmod +x qmi_install.sh
- Make sure the module is disconnected before running the installer script
At the end of installation enter any key to reboot your Raspberry Pi and attach the USB cable of the shield.
After rebooting goto directory files/quectel-CM
- Now run the following command to connect to the Internet.
sudo ./quectel-CM -s internet
- Now you can check you IP using
- Further more you may check by pinging
ping -I wwan0 -c 5 188.8.131.52
Auto Connect on reboot
If you want your Raspberry Pi to automatically connect to the Internet via QMI interface then there is one more step you will need to follow.
- Get the installation script.
- Change the permission
sudo chmod +x install_auto_connect.sh
- Now install the script
- It will then ask for APN. Type in your APN and then press ENTER
Once you press enter it will create and activate the service.
The name of the service is qmi_reconnect. To check if the service is active you can type
sudo systemctl status qmi_reconnect.service
- If it is working fine then you will be able to see active(running) in green.