<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-04-29 11:41 GMT+02:00 Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>On Tue, Apr 29, 2014 at 11:13 AM, Marius Kotsbak <<a href="mailto:marius@kotsbak.com" target="_blank">marius@kotsbak.com</a>> wrote:<br>
> Is there a way to use QMI to get the current frequency band in use, either<br>
> using the current libqmi or some yet unimplemented API? Or possibly using<br>
> MBIM?<br>
><br>
> It would be interesting to see when the newly opened 800 MHz band for LTE is<br>
> in use.<br>
<br>
<br>
</div></div>QMI has "NAS Get RF Band Information", but there is no qmicli command<br>
for that one yet. There is also the "NAS Get System Selection<br>
Preference", which will tell you how the modem is configured (i.e.<br>
which frequency bands it's allowed to use), and that one has the<br>
qmicli --nas-get-system-selection-preference command already. You can<br>
update which frequency bands to use through "NAS Set System Selection<br>
Preference", but the qmicli counterpart doesn't play with frequency<br>
bands at all, only with access techs (e.g. lte, gsm, umts..).<br>
<br>
ModemManager uses "NAS Get System Selection Preference" to list the<br>
current bands (e.g. with mmcli -m 0); and I also implemented support<br>
for "NAS Get RF Band Information" in there, but only when compiled<br>
with --with-newest-qmi-commands. You can update the bands allowed to<br>
use (will use "NAS Set System Selection Preference" ) with mmcli<br>
--set-current-bands.<br></blockquote><div><br></div><div>I tried building MM 1.2 with that option, but it (Sierra MC7710) then fails to connect. Relevant parts of the syslog:<br><br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10' successfully created<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Checking version info (10 retries)...<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] QMI Device supports 17 services:<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] ctl (1.5)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] wds (1.12)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] dms (1.7)<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] nas (1.21)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] qos (1.3)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] wms (1.4)<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] pds (1.10)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] auth (1.1)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] at (1.1)<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] voice (2.1)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] cat2 (2.0)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] uim (1.4)<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] pbm (1.4)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] sar (1.0)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] wda (1.0)<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] cat (2.0)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] rms (1.0)<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Setting network port data format...<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Network port data format operation finished<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Allocating new client ID...<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Registered 'dms' (version 1.7) client with ID '4'<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Allocating new client ID...<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Registered 'nas' (version 1.21) client with ID '4'<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Allocating new client ID...<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Registered 'wms' (version 1.4) client with ID '4'<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Allocating new client ID...<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0] Registered 'pds' (version 1.10) client with ID '4'<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <warn> (ttyUSB2): port attributes not fully set<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <warn> couldn't load list of Own Numbers: 'Couldn't get MSISDN: QMI protocol error (16): 'NotProvisioned''<br>May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <warn> couldn't load current Bands: 'Couldn't parse the list of current bands'<br>
May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <info> Modem: state changed (unknown -> disabled)<br>May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <warn> (cdc-wdm0): failed to look up interface index<br>
May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): new Broadband device (driver: 'qcserial, qmi_wwan' ifindex: 0)<br>May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/3<br>
May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]<br>May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): deactivating device (reason 'managed') [2]<br>
May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]<br><br>May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info> Activation (cdc-wdm0) starting connection 'Telenor Default'<br>
May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): device state change: disconnected -> prepare (reason 'none') [30 40 0]<br>May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info> NetworkManager state is now CONNECTING<br>
May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info> Activation (cdc-wdm0) Stage 1 of 5 (Device Prepare) scheduled...<br>May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info> Activation (cdc-wdm0) Stage 1 of 5 (Device Prepare) started...<br>
May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info> Activation (cdc-wdm0) Stage 1 of 5 (Device Prepare) complete.<br>May 5 21:39:40 marius-Precision-M4800 ModemManager[999]: <info> Simple connect started...<br>
May 5 21:39:40 marius-Precision-M4800 ModemManager[999]: <info> Simple connect state (4/8): Wait to get fully enabled<br>May 5 21:39:40 marius-Precision-M4800 ModemManager[999]: <info> Simple connect state (5/8): Register<br>
May 5 21:40:41 marius-Precision-M4800 ModemManager[999]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (unknown -> idle)<br>May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <warn> (cdc-wdm0) failed to connect modem: Network timeout<br>
May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): device state change: prepare -> failed (reason 'gsm-registration-timeout') [40 120 32]<br>May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info> NetworkManager state is now DISCONNECTED<br>
May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <warn> Activation (cdc-wdm0) failed for connection 'Telenor Default'<br>May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): device state change: failed -> disconnected (reason 'none') [120 30 0]<br>
May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info> (cdc-wdm0): deactivating device (reason 'none') [0]<br><br></div><div>I also see that the bands query fails too. Is this a known issue? I'm not sure if I have the latest firmware for the modem anymore.<br>
<br>--<br></div><div>Marius<br></div></div></div></div>