LPWA - Remote Network connections with libqmi
USB Connect LPWA based on Qualcomm Chipsatz supporting QMI interface. QMI is Qualcomm's proprietary protocol for using Virtual Ethernet on the USB-Connect LPWA to establish IP connectivity with the mobile operator. It can replace the AT commands or be used together with the serial port. Software libqmi can be used to install the QMI interface for modules. This is a brief tutorial to establish the connection.
Step 1: Install the required packages
sudo apt-get update
sudo apt-get install libqmi-utils udhcpc
sudo reboot
Step 2: Stop and disable the following common packages the next time you boot to ensure proper modem operation and to avoid interference.
sudo systemctl stop ModemManager.service
sudo systemctl disable ModemManager.service
sudo reboot
Step 3: Now make sure that the module is ready for use, this can be done by using the following command
sudo qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode
If not, this should bring you back online:
Step 4: Shutting down the interface
Step 5: The next step is to configure the network interface for the raw-ip protocol.
Step 6: Restart the interface
Step 7: You can confirm the data format with
You will get something similar to that:
Step 8: Connect to the mobile network by changing the part of the 'YOUR_APN', 'YOUR_USERNAME', 'YOUR_PASSWORD' lines according to your SIM card details. Remove these options if a user name and password are not required.
You will get something similar to that:
Step 9: Configure the IP address and default route using udhcpc
You will get something similar to that:
Step 10: Check the assigned IP address and test the connection.
You will get something similar to that:
Step 11: To test the connection
You will get something similar to that: