<div dir="ltr"><font face="arial, helvetica, sans-serif" style="background-color:rgb(243,243,243)" color="#444444">Hi <span style="font-size:12.8px">Bjørn,</span></font><div><font face="arial, helvetica, sans-serif" color="#444444"><span style="font-size:12.8px;background-color:rgb(243,243,243)"><br></span></font></div><div><font face="arial, helvetica, sans-serif" color="#444444"><span style="font-size:12.8px;background-color:rgb(243,243,243)">do we need to launch it in -v(verbose) mode, whats the exact command are you referring or all nas commands?<br></span></font><div><span style="font-size:12.8px;background-color:rgb(243,243,243)"><font face="arial, helvetica, sans-serif" color="#444444"><br></font></span></div><div><span style="font-size:12.8px;background-color:rgb(243,243,243)"><font face="arial, helvetica, sans-serif" color="#444444">Thanks,</font></span></div></div><div><span style="font-size:12.8px;background-color:rgb(243,243,243)"><font face="arial, helvetica, sans-serif" style="" color="#444444">Balaji</font></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 10:02 AM, Bjørn Mork <span dir="ltr"><<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Balaji Sivakumar <<a href="mailto:shivbalaji1985@gmail.com">shivbalaji1985@gmail.com</a>> writes:<br>
<br>
> Hi,<br>
><br>
> Is there a qmicli command to read the cell modem temperature? I know at<br>
> command "AT!PCTEMP " will report state and temperature. But am planning to<br>
> use qmicli instated of at comamnd.<br>
<br>
</span>I don't remember if I ever doumented this anywhere public before, but<br>
there is a (Sierra Wireless specific?) QMI request to get some of the<br>
state info reported by "AT!GSTATUS?", including the temp.<br>
<br>
<br>
It's QMI_NAS request 0x5556, and it returns two TLVs on the MC7455.<br>
Typical example:<br>
<br>
sending to /dev/cdc-wdm1:<br>
01 0c 00 00 03 04 00 03 00 56 55 00 00<br>
=> QMUX Header:<br>
=> len: 0x000c<br>
=> sender: 0x00<br>
=> svc: 0x03<br>
=> cid: 0x04<br>
<br>
=> QMI Header:<br>
=> Flags: 0x00<br>
=> TXN: 0x0003<br>
=> Cmd: 0x5556<br>
=> Size: 0x0000<br>
reading from /dev/cdc-wdm1<br>
[Tue Mar 15 01:55:02 2016] read 40 bytes from /dev/cdc-wdm1<br>
01 27 00 80 03 04 02 03 00 56 55 1b 00 02 04 00 00 00 00 00 10 09 00 03 05 aa 05 fa 4b 02 00 00 01 05 00 2f 05 09 00 00<br>
<= QMUX Header:<br>
<= len: 0x0027<br>
<= sender: 0x80<br>
<= svc: 0x03<br>
<= cid: 0x04<br>
<br>
<= QMI Header:<br>
<= Flags: 0x02<br>
<= TXN: 0x0003<br>
<= Cmd: 0x5556<br>
<= Size: 0x001b<br>
<= [0x01] ( 5) 2f 05 09 00 00 /....<br>
<= [0x02] ( 4) 00 00 00 00 SUCCESS - QMI_ERR_NONE<br>
<= [0x10] ( 9) 03 05 aa 05 fa 4b 02 00 00 .....K...<br>
got match!<br>
<br>
<br>
The temperature is the first byte if TLV 0x01. I.e. 0x2f, or 47 °C<br>
here.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Bjørn<br>
</font></span></blockquote></div><br></div>