Hello,
I want to measure current consumption of nRF9160 of the Thingy 91 with the Asset Tracker application in PSM mode without GPS. For that, I added to the function modem_configure in main.c the lines
int err = 0; #if defined(CONFIG_LTE_POWER_SAVING_MODE) err = lte_lc_psm_req(true); if (err) { LOG_ERR("PSM request failed, error: %d", err); return err; } LOG_INF("PSM mode requested"); #endif
I also changed data sending interval to 300 s and disabled LEDs, buzzer and NMOS in prj_thingy91_nrf9160ns.conf:
CONFIG_ENVIRONMENT_DATA_SEND_INTERVAL=300 CONFIG_LIGHT_SENSOR_DATA_SEND_INTERVAL=300 CONFIG_HOLD_TIME_RSRP=300 CONFIG_UI_LED_USE_PWM=n CONFIG_UI_BUZZER=n CONFIG_UI_NMOS=n
I tested it in LTE Link Monitor and PSM was successfully activated with my desired TAU (00100001 = 1 hour). I did not enable eDRX.
After that I disabled logging by editing the prj_thingy91_nrf9160ns.conf:
CONFIG_LOG=n CONFIG_SERIAL=n CONFIG_LOG_IMMEDIATE=n CONFIG_USE_AT_HOST=n
And I added to the spm.conf:
CONFIG_SERIAL=n
I tested the application and it worked fine. The Thingy 91 was sending sensor data to the nRF Cloud every 300 s (5 minutes).
Then I measured the current consumption with an advanced digital multimeter (Keysight 34465A) and got an average current consumption of 6.5 mA, which is way more than I expected.
I decided to turn off the UI module in prj_thingy91_nrf9160ns.conf:
CONFIG_USE_UI_MODULE=n
After this, I can't connect to the nRF Cloud. Nothing happens when I turn on the Thingy 91 and wait for 15 minutes. I tried it several times and reopened the nRF Cloud.
Any ideas why the application doesn't work with disabled UI module? And what can I do to reduce power consumption of the asset tracker application?
I use ncs version 1.4.0 and modem firmware version 1.2.2.