QMI interface has been mostly asked tutorial Quectel UC20 / Quectel EC25 with our Sixfab 3G-4G/LTE Base Shield v2.

In this tutorial we will be demonstrating you the process step by step. Without further ado, lets get started.

Hardware Setup

  1. Plug Quectel EC25 Mini PCIe module to the Sixfab 3G-4G/LTE Base Shield v2.
  2. Connect required antennas to EC25 module. (Antenna Connecting Guide will be Available soon!)
  3. Attach the Shield on top of your Raspberry Pi and connect the micro-USB cable that comes with the Shield.

Make sure you are using original Raspberry Adapter as your power source.

Software Setup

  1. First run update. sudo apt-get update
  2. Install Raspberry Pi kernel headers. sudo apt-get install raspberrypi-kernel-headers
  1. Check installed kernel headers packet version ls /usr/srcIn our case, it is 4.14.79
  2. Now open your browser and go to rpi-firmware github repository commits
  3. Here, find out your version and click on <> button to browse the repository at that point in the history.
  4. From the link copy the hash as shown in the image below.
  5. Now go back your terminal and update rpi in following format. Replace the term <hash> with your hash as shown in the image.
    sudo rpi-update <hash>
  6. Reboot your Raspberry Pi in order to activate the new firmware.
  7. After rebooting, download qmi_installer.sh script.
    wget https://raw.githubusercontent.com/sixfab/Sixfab_RPi_3G-4G-LTE_Base_Shield/master/tutorials/QMI_tutorial/qmi_install.sh
  8. Change the permission of the script.
    sudo chmod +x qmi_install.sh
  9. Run the installer script sudo ./qmi_install.sh
  10. At the end of installation enter any key to reboot your Raspberry Pi.
  11. |Open and change your directory to files/quectel-CMcd files/quectel-CM
  12. Now run the following command to connect to the Internetsudo ./quectel-CM -s internetHere internet is the APN for the network provider. Don’t forget to replace it with your APN.
  13. Now you can check you IP using ifconfig wwan0


2 thoughts on “QMI Interface with 3G-4G/LTE Base Shield v2”

  1. Hi Saeed. Any idea as to why when using the qmi interface everything appears to be fine (device has an IP, route, etc…) but in fact ping fails, dns lookup will fail,…networking will fail. If I install the ppp installer everything will work perfectly.

    1. Hi Andy, Could you please send me the image of your setup?
      Did you update before starting the installation process with

      sudo apt-get update

Leave a Reply

Your email address will not be published. Required fields are marked *