##Note: This has been tested with Raspberry Pi 4 too.
In this tutorial, we will be demonstrating you the process step by step. Without further ado, let’s get started.
Parts you will need.
- Raspberry Pi
- Sixfab 3G-4G/LTE Base Shield v2
- Quectel EC25 mini PCIe module
- LTE antenna (2 antennas are recommended)
- Plug Quectel EC25 Mini PCIe module to the Sixfab 3G-4G/LTE Base Shield v2.
- Connect required antennas to the Quectel EC25 module. (Antenna Connecting Guide will be Available soon!).
- Attach the Shield on top of your Raspberry Pi and keep the micro-USB cable disconnected that comes with the Shield.
Note: Make sure you are using the original Raspberry Adapter as your power source.
- 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
In our case, it is 4.14.79
- Now open your browser and go to rpi-firmware github repository commits SKIP THIS STEP FOR RPi4
- Here, find out your version and click on <> button to browse the repository at that point in the history. SKIP THIS STEP FOR RPi4
- From the link copy the hash as shown in the image below. SKIP THIS STEP FOR RPi4
- Now go back your terminal and update rpi in following format. Replace the term <hash> with your hash matching the kernel headers you checked in step 3. SKIP THIS STEP FOR RPi4
sudo rpi-update <hash>
- Reboot your Raspberry Pi in order to activate the new firmware. SKIP THIS STEP FOR RPi4
- 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
Usage: ./quectel-CM [-s [apn [user password auth]]] [-p pincode] [-f logfilename]
-s [apn [user password auth]] Set apn/user/password/auth get from your network provider
-p pincode Verify sim card pin if sim card is locked
-f logfilename Save log message of this program to file
Example 1: ./quectel-CM
Example 2: ./quectel-CM -s 3gnet
Example 3: ./quectel-CM -s 3gnet carl 1234 0 -p 1234 -f gobinet_log.txt
- Now you can check you IP using
- Further more you may check by pinging ping -I wwan0 -c 5 184.108.40.206
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.