LPWA - Network connections with Network Manager (plus ModemManager and libqmi)

LPWA - Network connections with Network Manager (plus ModemManager and 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.

The following documentation describes how to configure the required applications: Network Manager, Modem Manager, libqmi.

Step 1: Stop and disable dhcpcd.service

sudo systemctl disable dhcpcd.service sudo systemctl stop dhcpcd.service

Step 2: Start and enable the following common packages the next time you boot to ensure proper modem operation and to avoid interference.

sudo systemctl enable ModemManager.service sudo systemctl start ModemManager.service sudo systemctl enable NetworkManager.service sudo systemctl start NetworkManager.service

Step 3: Set up your mobile network by changing the APN address to your own.

sudo nmcli connection add type gsm ifname cdc-wdm0 con-name mymodem apn test.iot.de

Step: 4: Connect to the mobile network

sudo nmcli connection up id mymodem

Step 5: Restart operating system

sudo reboot

Step 6: Check the assigned IP address and test the connection

ifconfig wwan0

Step 7: To test the connection

ping -I wwan0 -c 5 exelonix.com

You will get something similar to that:

PING exelonix.com (5.189.154.234) from 10.254.46.34 wwan0: 56(84) bytes of data. 64 bytes from mail.exelonix.com (5.189.154.234): icmp_seq=1 ttl=50 time=113 ms 64 bytes from mail.exelonix.com (5.189.154.234): icmp_seq=2 ttl=50 time=72.4 ms 64 bytes from mail.exelonix.com (5.189.154.234): icmp_seq=3 ttl=50 time=1426 ms 64 bytes from mail.exelonix.com (5.189.154.234): icmp_seq=4 ttl=51 time=1568 ms 64 bytes from mail.exelonix.com (5.189.154.234): icmp_seq=5 ttl=50 time=1444 ms --- exelonix.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 5173ms rtt min/avg/max/mdev = 72.382/924.626/1567.907/681.326 ms, pipe 2