le_temp_StartMonitoring function call always fails

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

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