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