--nas-get-rf-band-info not returning correct info for some bands

Paul Gildea gildeap at tcd.ie
Tue Mar 10 11:45:36 UTC 2020


Hi Dan,

Sorry about the delay, I thought all the systems had 1.24 but that one had
1.18 and that was indeed the problem!

Thanks,

--
Paul

On Wed, 4 Mar 2020 at 18:14, Dan Williams <dcbw at redhat.com> wrote:

> On Wed, 2020-03-04 at 16:45 +0000, Paul Gildea wrote:
> > Hi, I am testing this feature on Sierra Wireless modems (MC7430
> > currently)
> > and it has worked on a few bands that I have tried. However, I found
> > that,
> > at least on band 28, that the command is returning "(null)", whereas
> > AT!GSTATUS? is returning the correct value, any idea why? Does the
> > translation below seem correct?
>
> What libqmi version, and what does !GSTATUS? report as the active band?
> If it's EUTRAN-28 then perhaps your libqmi is too old; that band was
> added to the list in libqmi 1.20 in late 2017. But that was a long time
> ago and I'd assume you are using something newer than that.
>
> (commit 780abd945a55f9)
>
> However, I don't see another quick reason why you'd get (null) there
> when the value is clearly passed back to libqmi but not interpreted
> correctly.
>
> Dan
>
> > Verbose output:
> >
> > qmicli -p -v -d /dev/cdc-wdm0 --nas-get-rf-band-info
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] Opening device with
> > flags
> > 'proxy, auto'...
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] loaded driver of cdc-
> > wdm
> > port: qmi_wwan
> > [04 Mar 2020, 16:21:05] -Warning ** [/dev/cdc-wdm0] requested auto
> > mode but
> > no MBIM QMUX sue
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] sent message...
> > <<<<<< RAW:
> > <<<<<<   length = 28
> > <<<<<<   data   = 01:1B:00:00:00:00:00:01:00:FF:
> > 10:00:01:0D:00:2F:64:65:76:2F:63:64:63:2D:70
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] sent generic request
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 27
> > <<<<<<   flags   = 0x00
> > <<<<<<   service = "ctl"
> > <<<<<<   client  = 0
> > <<<<<< QMI:
> > <<<<<<   flags       = "none"
> > <<<<<<   transaction = 1
> > <<<<<<   tlv_length  = 16
> > <<<<<<   message     = "Internal Proxy Open" (0xFF00)
> > <<<<<< TLV:
> > <<<<<<   type       = "Device Path" (0x01)
> > <<<<<<   length     = 13
> > <<<<<<   value      = 2F:64:65:76:2F:63:64:63:2D:77:64:6D:30
> > <<<<<<   translated = /dev/cdc-wdm0
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] received message...
> > <<<<<< RAW:
> > <<<<<<   length = 19
> > <<<<<<   data   =
> > 01:12:00:00:00:00:01:01:00:FF:07:00:02:04:00:00:00:00:00
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] received generic
> > response
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 18
> > <<<<<<   flags   = 0x00
> > <<<<<<   service = "ctl"
> > <<<<<<   client  = 0
> > <<<<<< QMI:
> > <<<<<<   flags       = "response"
> > <<<<<<   transaction = 1
> > <<<<<<   tlv_length  = 7
> > <<<<<<   message     = "Internal Proxy Open" (0xFF00)
> > <<<<<< TLV:
> > <<<<<<   type       = "Result" (0x02)
> > <<<<<<   length     = 4
> > <<<<<<   value      = 00:00:00:00
> > <<<<<<   translated = SUCCESS
> >
> > [04 Mar 2020, 16:21:05] [Debug] QMI Device at '/dev/cdc-wdm0' ready
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] Assuming service
> > 'nas' is
> > supported...
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] Allocating new client
> > ID...
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] sent message...
> > <<<<<< RAW:
> > <<<<<<   length = 16
> > <<<<<<   data   = 01:0F:00:00:00:00:00:02:22:00:04:00:01:01:00:03
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] sent generic request
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 15
> > <<<<<<   flags   = 0x00
> > <<<<<<   service = "ctl"
> > <<<<<<   client  = 0
> > <<<<<< QMI:
> > <<<<<<   flags       = "none"
> > <<<<<<   transaction = 2
> > <<<<<<   tlv_length  = 4
> > <<<<<<   message     = "Allocate CID" (0x0022)
> > <<<<<< TLV:
> > <<<<<<   type       = "Service" (0x01)
> > <<<<<<   length     = 1
> > <<<<<<   value      = 03
> > <<<<<<   translated = nas
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] received message...
> > <<<<<< RAW:
> > <<<<<<   length = 24
> > <<<<<<   data   = 01:17:00:80:00:00:01:02:22:00:
> > 0C:00:02:04:00:00:00:00:00:01:02:00:03:03
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] received generic
> > response
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 23
> > <<<<<<   flags   = 0x80
> > <<<<<<   service = "ctl"
> > <<<<<<   client  = 0
> > <<<<<< QMI:
> > <<<<<<   flags       = "response"
> > <<<<<<   transaction = 2
> > <<<<<<   tlv_length  = 12
> > <<<<<<   message     = "Allocate CID" (0x0022)
> > <<<<<< TLV:
> > <<<<<<   type       = "Result" (0x02)
> > <<<<<<   length     = 4
> > <<<<<<   value      = 00:00:00:00
> > <<<<<<   translated = SUCCESS
> > <<<<<< TLV:
> > <<<<<<   type       = "Allocation Info" (0x01)
> > <<<<<<   length     = 2
> > <<<<<<   value      = 03:03
> > <<<<<<   translated = [ service = 'nas' cid = '3' ]
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] Registered 'nas'
> > (version
> > unknown) client w'
> > [04 Mar 2020, 16:21:05] [Debug] Asynchronously getting RF band info
> > ...
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] sent message...
> > <<<<<< RAW:
> > <<<<<<   length = 13
> > <<<<<<   data   = 01:0C:00:00:03:03:00:01:00:31:00:00:00
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] sent generic request
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 12
> > <<<<<<   flags   = 0x00
> > <<<<<<   service = "nas"
> > <<<<<<   client  = 3
> > <<<<<< QMI:
> > <<<<<<   flags       = "none"
> > <<<<<<   transaction = 1
> > <<<<<<   tlv_length  = 0
> > <<<<<<   message     = "Get RF Band Information" (0x0031)
> >
> > [04 Mar 2020, 16:21:05] [Debug] [/dev/cdc-wdm0] received message...
> > <<<<<< RAW:
> > <<<<<<   length = 40
> > <<<<<<   data   = 01:27:00:80:03:03:02:01:00:31:
> > 00:1B:00:02:04:00:00:00:00:00:01:06:00:01:00
> >
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] received generic
> > response
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 39
> > <<<<<<   flags   = 0x80
> > <<<<<<   service = "nas"
> > <<<<<<   client  = 3
> > <<<<<< QMI:
> > <<<<<<   flags       = "response"
> > <<<<<<   transaction = 1
> > <<<<<<   tlv_length  = 27
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > *<<<<<<   message     = "Get RF Band Information" (0x0031)<<<<<<
> > TLV:<<<<<<
> >   type       = "Result" (0x02)<<<<<<   length     =
> > 4<<<<<<   value      =
> > 00:00:00:00<<<<<<   translated = SUCCESS<<<<<<
> > TLV:<<<<<<   type       =
> > "List" (0x01)<<<<<<   length     = 6<<<<<<   value      =
> > 01:08:9E:00:DB:24<<<<<<   translated = { [0] = '[ radio_interface =
> > 'lte'
> > active_band_class = '(null)' activ}*
> > <<<<<< TLV:
> > <<<<<<   type   = 0x11
> > <<<<<<   length = 8
> > <<<<<<   value  = 01:08:9E:00:DB:24:00:00
> >
> > [/dev/cdc-wdm0] Successfully got RF band info
> >         Radio Interface:   'lte'
> >         Active Band Class: '(null)'
> >         Active Channel:    '9435'
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] Releasing 'nas'
> > client with
> > flags 'release-.
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] Unregistered 'nas'
> > client
> > with ID '3'
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] sent message...
> > <<<<<< RAW:
> > <<<<<<   length = 17
> > <<<<<<   data   = 01:10:00:00:00:00:00:03:23:00:05:00:01:02:00:03:03
> >
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] sent generic request
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 16
> > <<<<<<   flags   = 0x00
> > <<<<<<   service = "ctl"
> > <<<<<<   client  = 0
> > <<<<<< QMI:
> > <<<<<<   flags       = "none"
> > <<<<<<   transaction = 3
> > <<<<<<   tlv_length  = 5
> > <<<<<<   message     = "Release CID" (0x0023)
> > <<<<<< TLV:
> > <<<<<<   type       = "Release Info" (0x01)
> > <<<<<<   length     = 2
> > <<<<<<   value      = 03:03
> > <<<<<<   translated = [ service = 'nas' cid = '3' ]
> >
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] received message...
> > <<<<<< RAW:
> > <<<<<<   length = 24
> > <<<<<<   data   = 01:17:00:80:00:00:01:03:23:00:
> > 0C:00:02:04:00:00:00:00:00:01:02:00:03:03
> >
> > [04 Mar 2020, 16:21:09] [Debug] [/dev/cdc-wdm0] received generic
> > response
> > (translated)...
> > <<<<<< QMUX:
> > <<<<<<   length  = 23
> > <<<<<<   flags   = 0x80
> > <<<<<<   service = "ctl"
> > <<<<<<   client  = 0
> > <<<<<< QMI:
> > <<<<<<   flags       = "response"
> > <<<<<<   transaction = 3
> > <<<<<<   tlv_length  = 12
> > <<<<<<   message     = "Release CID" (0x0023)
> > <<<<<< TLV:
> > <<<<<<   type       = "Result" (0x02)
> > <<<<<<   length     = 4
> > <<<<<<   value      = 00:00:00:00
> > <<<<<<   translated = SUCCESS
> > <<<<<< TLV:
> > <<<<<<   type       = "Release Info" (0x01)
> > <<<<<<   length     = 2
> > <<<<<<   value      = 03:03
> > <<<<<<   translated = [ service = 'nas' cid = '3' ]
> >
> > [04 Mar 2020, 16:21:09] [Debug] Client released
> > [04 Mar 2020, 16:21:09] [Debug] Closed
> >
> >
> > Regards,
> >
> > --
> > Paul
> > _______________________________________________
> > libqmi-devel mailing list
> > libqmi-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20200310/c6d39df4/attachment.htm>


More information about the libqmi-devel mailing list