…
Step 1: Updating Raspberry Pi and installing software
sudo apt-get update sudo apt-get install libqmi-utils udhcpc sudo reboot
Step 2: …
sudo systemctl disable ModemManager.service sudo reboot
Step 3: Shutting down the interface
sudo ifconfig wwan0 down
Step 4: Set the wwan0 interface to raw mode
echo 'Y' | sudo tee /sys/class/net/wwan0/qmi/raw_ip
Step 5: Restart the interface
sudo ifconfig wwan0 up
Step 6: Start the qui network by replacing your apn, username and password in the following command:
sudo qmicli -p -d /dev/cdc-wdm0 --device-open-net='net-raw-ip|net-no-qos-header' --wds-start-network="apn='vgesace.nb.iot',ip-type=4" --client-no-release-cid
You will get something similar to that:
[/dev/cdc-wdm0] Network started Packet data handle: '2198713216' [/dev/cdc-wdm0] Client ID not released: Service: 'wds' CID: '2'