[ltp] Re: Sierra Wireless EM7345 4G LTE

Nikos Alexandris linux-thinkpad@linux-thinkpad.org
Wed, 08 Oct 2014 09:48:51 +0300


[previous msgs erased]

Following this, and other related threads, helped me in getting started 
with the mobile broadband modem of interest (Sierra EM7345 [0]). After 
finally having access to (a Gentoo/Funtoo e-build for) libmbim ver. 1.10 
(which is higher or equal to 1.8, as suggested in past communication in 
this mailing list), I went on to test.

- First, I have inserted a valid SIM card.

- Second, I followed the advise to unload the cdc_ncm module and reload 
with the parameter "prefer_mbim=Y". Indeed, the parameter was set to 
"N". One can query this directly via `cat 
/sys/module/cdc_ncm/parameters/prefer_mbim`. So the steps were

rmmod cdc_mbim # otherwise ncm can't be removed
rmmod cdc_ncm
modprobe cdc_ncm prefer_mbim=Y
modprobe cdc_mbim
rmmod cdc_acm # as suggested in this thread as well

- Next, I could query the device "/dev/cdc-wdm1", which, if I am not 
wrong, did not exist previously.

mbimcli -d /dev/cdc-wdm1 --query-radio-state

gave an "off" Software Radio State. Turning this on via

mbimcli -d /dev/cdc-wdm1 --set-radio-state=on

gave access to alll kinds of queries. Everything works fine, for 
example:

mbimcli -d /dev/cdc-wdm1 --query-device-caps

[/dev/cdc-wdm1] Device capabilities retrieved:
               Device type: 'embedded'
            Cellular class: 'gsm'
               Voice class: 'no-voice'
                 Sim class: 'removable'
                Data class: 'gprs, edge, umts, hsdpa, hsupa, lte'
                  SMS caps: 'pdu-receive, pdu-send'
                 Ctrl caps: 'reg-manual'
              Max sessions: '8'
         Custom data class: 'unknown'
                 Device ID: '013937000389096'
             Firmware info: 'FIH7160_V1.1_MODEM_01.1349.12'
             Hardware info: 'XMM7160_V1.1_MBIM_GNSS_NAND_RE'


All of the following return something useful:

mbimcli -d /dev/cdc-wdm1 --query-device-caps
mbimcli -d /dev/cdc-wdm1 --query-subscriber-ready-status
mbimcli -d /dev/cdc-wdm1 --query-radio-state
mbimcli -d /dev/cdc-wdm1 --query-device-services
mbimcli -d /dev/cdc-wdm1 --query-pin-state
mbimcli -d /dev/cdc-wdm1 --query-home-provider
mbimcli -d /dev/cdc-wdm1 --query-preferred-providers
mbimcli -d /dev/cdc-wdm1 --query-visible-providers
mbimcli -d /dev/cdc-wdm1 --query-signal-state
mbimcli -d /dev/cdc-wdm1 --query-packet-service-state
mbimcli -d /dev/cdc-wdm1 --query-connection-state
mbimcli -d /dev/cdc-wdm1 --query-packet-statistics
mbimcli -d /dev/cdc-wdm1 --phonebook-query-configuration


I am unsure on how to proceed for an actual connection, as well as 
testing GPS capabilities, though.
Thanks for the useful hints/instructions in previous posts.

Nikos
--

[0] 
<http://www.sierrawireless.com/productsandservices/AirPrime_Wireless_Modules/Essential_Modules/~/media/Data%20Sheet/AirPrime_datasheets/Sierra_Wireless_AirPrime_EM_Series.ashx>, 
note: "official" Linux support ticked in this datasheet!