Cell Modem Temperature reading

Bjørn Mork bjorn at mork.no
Tue Oct 3 15:02:43 UTC 2017


Balaji Sivakumar <shivbalaji1985 at gmail.com> writes:

> Hi,
>
> Is there a qmicli command to read the cell modem temperature? I know at
> command "AT!PCTEMP " will report state and temperature. But am planning to
> use qmicli instated of at comamnd.

I don't remember if I ever doumented this anywhere public before, but
there is a (Sierra Wireless specific?) QMI request to get some of the
state info reported by "AT!GSTATUS?", including the temp.


It's QMI_NAS request 0x5556, and it returns two TLVs on the MC7455.
Typical example:

sending to /dev/cdc-wdm1:
01 0c 00 00 03 04 00 03 00 56 55 00 00 
=> QMUX Header:
=>   len:    0x000c
=>   sender: 0x00
=>   svc:    0x03
=>   cid:    0x04

=> QMI Header:
=>   Flags:  0x00
=>   TXN:    0x0003
=>   Cmd:    0x5556
=>   Size:   0x0000
reading from /dev/cdc-wdm1
[Tue Mar 15 01:55:02 2016] read 40 bytes from /dev/cdc-wdm1
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 
<= QMUX Header:
<=   len:    0x0027
<=   sender: 0x80
<=   svc:    0x03
<=   cid:    0x04

<= QMI Header:
<=   Flags:  0x02
<=   TXN:    0x0003
<=   Cmd:    0x5556
<=   Size:   0x001b
<= [0x01] ( 5) 2f 05 09 00 00   /....
<= [0x02] ( 4) 00 00 00 00      SUCCESS - QMI_ERR_NONE
<= [0x10] ( 9) 03 05 aa 05 fa 4b 02 00 00       .....K...
got match!


The temperature is the first byte if TLV 0x01.  I.e. 0x2f, or 47 °C
here.


Bjørn


More information about the libqmi-devel mailing list