Changes

Jump to: navigation, search

DESK-MX6UL-L-TN-0001: Using a 4G IoT modem

681 bytes added, 11:37, 6 July 2022
no edit summary
{{InfoBoxTop}}
{{AppliesToAXEL ULite ANAppliesTo SBC Lynx TN}}
{{InfoBoxBottom}}
== Configuration ==
For using the Telit ME910C1-WW 4G modem, the standard [https://en.wikipedia.org/wiki/Qualcomm_MSM_Interface Qualcomm MSM Interface], aka QMI, software interface has to be installed in the root file system. USB-connected LTE modems present newer interfaces like QMI and MBIM. QMI is a Qualcomm proprietary protocol, while MBIM protocol specification is the result of multi-vendor standardization efforts. They present the modem as a real network interface (typically <code>wwan0</code> or similar) and an additional device (e.g. <code>/dev/cdc-wdm0</code>) for command access.  
The [https://github.com/freedesktop/libqmi libqmi] (glib-based library for talking to WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol) is then installed in the root file system using the <code>dnf</code> package manager (see [[DESK-MX6-AN-0003:_Package_Management_with_Yocto_and_DNF | this Application Note]] for more information)
root@desk-mx6ul-lynx:~# qmi
qmi-firmware-update qmi-network qmicli
root@desk-mx6ul-lynx:~#
</pre>
|__ Port 1: Dev 2, If 2, Class=Vendor Specific Class, Driver=, 480M
|__ Port 1: Dev 2, If 3, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
root@desk-mx6ul-lynx:~# ls -la /dev/cdc-wdm0
crw------- 1 root root 180, 176 Jul 5 15:54 /dev/cdc-wdm0
root@desk-mx6ul-lynx:~#
</pre>
 
and the related <code>wwan0</code> network interface is created:
<pre class="board-terminal">
root@desk-mx6ul-lynx:~# ifconfig wwan0
wwan0 Link encap:Ethernet HWaddr 9a:a3:50:59:88:51
inet6 addr: fe80::98a3:50ff:fe59:8851/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9038 (8.8 KiB)
 
root@desk-mx6ul-lynx:~#
</pre>
== QMI commands testing ==
* get model
<pre class="board-terminal">
root@desk-mx6ul-lynx:~# qmicli --device=/dev/cdc-wdm0 --device-open-proxy --dms-get-model
root@desk-mx6ul-lynx:~
</pre>
* get the siognal strenght<pre class="board-terminal">root@desk-mx6ul-lynx:~# qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength[/dev/cdc-wdm0] Successfully got signal strengthCurrent: Network 'gsm': '-95 dBm'RSSI: Network 'gsm': '-95 dBm'ECIO: Network 'gsm': '-31.5 dBm'IO: '-106 dBm'SINR (8): '9.0 dB'root@desk-mx6ul-lynx:~</pre>* get the siognal strenght
<pre class="board-terminal">
root@desk-mx6ul-lynx:~# qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength
8,183
edits

Navigation menu