# LTE driver ## qmi_wwan ```shell qmicli -d /dev/cdc-wdm0 --wda-get-data-format qmicli -d /dev/cdc-wdm0 --wda-set-data-format=802-3 ``` - Note : The modem will not sucessfully aquire an IP address using the stock DHCP client 'dhclient ' unless the modem is configured into 802-3 mode, if your modem does not support/will not change to 802-3 mode see QMI help note #2 for instructions on how to operate the modem in Raw IP mode. - The SIMs APN configuration is set by creating and then adding a line to /etc/qmi-network.conf - Consult your carrier for the correct APN name and insert it into the configuration file as shown below : ```shell echo "APN=internet" > /etc/qmi-network.conf echo "PROXY=yes" >> /etc/qmi-network.conf ``` - Having checked we've registered on the network and have good signal and configured the APN let's push on and connect to the network - QMI CLI command ```shell= modemstat qmi-network /dev/cdc-wdm0 start udhcpc -i wwan0 #RAW IP dhclient -v wwan0 #802.3 qmi-network /dev/cdc-wdm0 status qmi-network /dev/cdc-wdm0 stop ``` - Other commands of interest are shown below, for more information see man qmicli ```shell= qmicli -d /dev/cdc-wdm0 --nas-get-signal-info qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength qmicli -d /dev/cdc-wdm0 --nas-get-home-network qmicli -d /dev/cdc-wdm0 --nas-get-serving-system qmicli -d /dev/cdc-wdm0 --dms-uim-verify-pin=PIN,0000 qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status ```