# le\_temp\_StartMonitoring function call always fails

**URL:** <https://forum.legato.io/t/le-temp-startmonitoring-function-call-always-fails/4842>\
**Category:** Legato Application Framework\
**Created:** [November 18, 2019, 11:31am UTC](https://forum.legato.io/t/le-temp-startmonitoring-function-call-always-fails/4842 "2019-11-18T11:31:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![annaertd](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@annaertd](https://forum.legato.io/u/annaertd)\
**Post date:** [November 18, 2019, 11:31am UTC](https://forum.legato.io/t/le-temp-startmonitoring-function-call-always-fails/4842/1 "2019-11-18T11:31:42Z")

</div>

Hi,

my application runs on a WP7607 target and is based upon Legato 19.02.  
I’m able to set following temperature threshold values:  
PA\_HI\_NORMAL\_THRESHOLD 100  
PA\_HI\_CRITICAL\_THRESHOLD 130

PC\_LO\_CRITICAL\_THRESHOLD -45  
PC\_LO\_NORMAL\_THRESHOLD -40  
PC\_HI\_NORMAL\_THRESHOLD 100  
PC\_HI\_CRITICAL\_THRESHOLD 130

The log information shows me that the platform uses a fixed internal WARNING level which fits in between my normal and critical threshold levels.

_swiQmi.c swiQmi\_CheckResponse() 789 | QMI\_DMS\_SWI\_GET\_ENVIRONMENT\_REQ\_V01 sent to Modem_  
_pa\_temp\_qmi.c GetPlatformEnvironement() 185 | Get Power Amp temp.36_  
_pa\_temp\_qmi.c GetPlatformEnvironement() 186 | Get Power Ctrl temp.36_  
_pa\_temp\_qmi.c GetPlatformEnvironement() 229 | Get Power Amp hi\_nor.100, **hi\_war.120** , hi\_crit.130_  
_pa\_temp\_qmi.c GetPlatformEnvironement() 236 | Get Power Ctrl lo\_crit.-45, lo\_nor.-40, hi\_nor.100, **hi\_war.110** , hi\_crit.130_

When I call the API function le\_temp\_StartMonitoring(), the warning threshold is suddenly changed into ‘129’, and the function always fails.

_pa\_temp\_qmi.c pa\_temp\_StartMonitoring() 696 | Set Power Ctrl Temp thresholds lo\_cri -45, lo\_nor -40,hi\_nor 100, **hi\_war 129** , hi\_crit 130_  
_pa\_temp\_qmi.c pa\_temp\_StartMonitoring() 709 | Set Power Amp Temp thresholds hi\_nor 100, **hi\_war 129** , hi\_crit 130_  
_swiQmi.c swiQmi\_CheckResponse() 795 | Sending QMI\_DMS\_SWI\_SET\_ENVIRONMENT\_REQ\_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=1.[0x01]_  
_pa\_temp\_qmi.c pa\_temp\_StartMonitoring() 724 | Failed to Set Temperature thresholds, rc 0, resp 1_

Why does this StartMonitoring function always fail?

Greetings,  
annaertd

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [December 20, 2019, 1:20pm UTC](https://forum.legato.io/t/le-temp-startmonitoring-function-call-always-fails/4842/2 "2019-12-20T13:20:04Z")

</div>

hi @annaertd,  
issue is reproduced internally, and investigation is on going.  
best regards
