Getting frequency band in use
Dan Williams
dcbw at redhat.com
Mon May 5 14:29:29 PDT 2014
On Mon, 2014-05-05 at 22:49 +0200, Marius Kotsbak wrote:
> 2014-04-29 11:41 GMT+02:00 Aleksander Morgado <aleksander at aleksander.es>:
>
> > On Tue, Apr 29, 2014 at 11:13 AM, Marius Kotsbak <marius at kotsbak.com>
> > wrote:
> > > Is there a way to use QMI to get the current frequency band in use,
> > either
> > > using the current libqmi or some yet unimplemented API? Or possibly using
> > > MBIM?
> > >
> > > It would be interesting to see when the newly opened 800 MHz band for
> > LTE is
> > > in use.
> >
> >
> > QMI has "NAS Get RF Band Information", but there is no qmicli command
> > for that one yet. There is also the "NAS Get System Selection
> > Preference", which will tell you how the modem is configured (i.e.
> > which frequency bands it's allowed to use), and that one has the
> > qmicli --nas-get-system-selection-preference command already. You can
> > update which frequency bands to use through "NAS Set System Selection
> > Preference", but the qmicli counterpart doesn't play with frequency
> > bands at all, only with access techs (e.g. lte, gsm, umts..).
> >
> > ModemManager uses "NAS Get System Selection Preference" to list the
> > current bands (e.g. with mmcli -m 0); and I also implemented support
> > for "NAS Get RF Band Information" in there, but only when compiled
> > with --with-newest-qmi-commands. You can update the bands allowed to
> > use (will use "NAS Set System Selection Preference" ) with mmcli
> > --set-current-bands.
> >
>
> I tried building MM 1.2 with that option, but it (Sierra MC7710) then fails
> to connect. Relevant parts of the syslog:
>
> 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
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Checking version info (10 retries)...
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> QMI Device supports 17 services:
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] ctl (1.5)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] wds (1.12)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] dms (1.7)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] nas (1.21)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] qos (1.3)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] wms (1.4)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] pds (1.10)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] auth (1.1)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] at (1.1)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] voice (2.1)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] cat2 (2.0)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] uim (1.4)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] pbm (1.4)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] sar (1.0)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] wda (1.0)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] cat (2.0)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]:
> [/dev/cdc-wdm0] rms (1.0)
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Setting network port data format...
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Network port data format operation finished
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Allocating new client ID...
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Registered 'dms' (version 1.7) client with ID '4'
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Allocating new client ID...
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Registered 'nas' (version 1.21) client with ID '4'
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Allocating new client ID...
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Registered 'wms' (version 1.4) client with ID '4'
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Allocating new client ID...
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: [/dev/cdc-wdm0]
> Registered 'pds' (version 1.10) client with ID '4'
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <warn>
> (ttyUSB2): port attributes not fully set
> 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''
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <warn> couldn't
> load current Bands: 'Couldn't parse the list of current bands'
> May 5 21:27:41 marius-Precision-M4800 ModemManager[999]: <info> Modem:
> state changed (unknown -> disabled)
> May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <warn>
> (cdc-wdm0): failed to look up interface index
> May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): new Broadband device (driver: 'qcserial, qmi_wwan' ifindex: 0)
> May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): exported as /org/freedesktop/NetworkManager/Devices/3
> May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): device state change: unmanaged -> unavailable (reason
> 'managed') [10 20 2]
> May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): deactivating device (reason 'managed') [2]
> May 5 21:27:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): device state change: unavailable -> disconnected (reason
> 'none') [20 30 0]
>
> May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info>
> Activation (cdc-wdm0) starting connection 'Telenor Default'
> May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): device state change: disconnected -> prepare (reason 'none')
> [30 40 0]
Can you get the ModemManager debug logs from this point forward? That's
what would be interesting here, since the time between the connection
request (21:39:40) and the "network timeout" (21:39:41) is only one
second, which is pretty odd. Lets see what MM is doing once it gets the
Simple Connect request.
Dan
> May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info>
> NetworkManager state is now CONNECTING
> May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info>
> Activation (cdc-wdm0) Stage 1 of 5 (Device Prepare) scheduled...
> May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info>
> Activation (cdc-wdm0) Stage 1 of 5 (Device Prepare) started...
> May 5 21:39:40 marius-Precision-M4800 NetworkManager[1078]: <info>
> Activation (cdc-wdm0) Stage 1 of 5 (Device Prepare) complete.
> May 5 21:39:40 marius-Precision-M4800 ModemManager[999]: <info> Simple
> connect started...
> May 5 21:39:40 marius-Precision-M4800 ModemManager[999]: <info> Simple
> connect state (4/8): Wait to get fully enabled
> May 5 21:39:40 marius-Precision-M4800 ModemManager[999]: <info> Simple
> connect state (5/8): Register
> May 5 21:40:41 marius-Precision-M4800 ModemManager[999]: <info> Modem
> /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed
> (unknown -> idle)
> May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <warn>
> (cdc-wdm0) failed to connect modem: Network timeout
> 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]
> May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> NetworkManager state is now DISCONNECTED
> May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <warn>
> Activation (cdc-wdm0) failed for connection 'Telenor Default'
> May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): device state change: failed -> disconnected (reason 'none')
> [120 30 0]
> May 5 21:40:41 marius-Precision-M4800 NetworkManager[1078]: <info>
> (cdc-wdm0): deactivating device (reason 'none') [0]
>
> 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.
>
> --
> Marius
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libqmi-devel
More information about the libqmi-devel
mailing list