Nordic Thingy 91 Low power version of Asset tracker v2 now does not send Barometric pressure nor button press data

Hi,

I followed the procedure described here with Nordic Thingy 91 https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nowi-powered-energy-autonomous-nordic-thingy-91-platform

and now it works with low power consumption and sends data to NrfCloud, that is fine.

However, after adding the prj.conf file, now it does not send emvironmental pressure and button press values. How can still receilve those values into NrfCloud, along with temperature and moisture that I already receive?

Regards

Parents
  • Hi

    If you check out the prj.conf file, you can see that a lot of configs has been disabled, like the CONFIG_LED_CONTROL, the serial interface, and a lot of log event configs has been set to "n". You can't expect super low current consumption and being able to get continuous logging information I'm afraid. You'll need to enable the configs you need again if you still want environmental pressure and button press values, etc.

    Best regards,

    Simon

  • I managed to configure so that I receive also button presses. But I don´t receive atmosferic pressure. What should I enable to receive pressure data?

  • %CESQ: 41,2,20,2
    [00:00:10.094,909] [0m<inf> event_manager: UI_EVT_BUTTON_DATA_READY[0m
    [00:00:10.101,593] [0m<inf> event_manager: DATA_EVT_UI_DATA_READY[0m
    %CESQ: 40,2,25,3
    %CESQ: 37,1,20,2
    +CEREG: 5,"4416","0F496C78",7,,,"00001010","11000010"
    [00:00:16.200,958] [0m<inf> event_manager: MODEM_EVT_LTE_CONNECTED[0m
    [00:00:16.207,885] [0m<inf> event_manager: MODEM_EVT_LTE_PSM_UPDATE[0m
    [00:00:16.215,026] [1;33m<wrn> cloud_module: Cloud connection establishment in progress[0m
    [00:00:16.223,083] [1;33m<wrn> cloud_module: New connection attempt in 32 seconds if not successful[0m
    [00:00:24.551,025] [0m<inf> event_manager: CLOUD_EVT_CONNECTED[0m
    [00:00:25.001,068] [0m<inf> event_manager: DATA_EVT_DATE_TIME_OBTAINED[0m
    [00:00:25.008,209] [0m<inf> event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, MOD_STAT)[0m
    [00:00:25.023,162] [0m<inf> event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY[0m
    [00:00:25.062,591] [0m<inf> event_manager: MODEM_EVT_MODEM_STATIC_DATA_READY[0m
    [00:00:25.106,323] [0m<inf> event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    [00:00:25.149,810] [0m<inf> event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    [00:00:25.157,287] [0m<inf> event_manager: DATA_EVT_DATA_READY[0m
    [00:00:25.174,377] [0m<inf> event_manager: DATA_EVT_DATA_SEND[0m
    [00:00:25.182,098] [0m<inf> event_manager: DATA_EVT_DATA_SEND_BATCH[0m
    [00:00:25.205,841] [0m<inf> event_manager: CLOUD_EVT_DATA_ACK[0m
    [00:00:25.212,890] [0m<inf> event_manager: CLOUD_EVT_DATA_ACK[0m
    %CESQ: 40,2,25,3
    +CSCON: 0
    %CESQ: 41,2,17,2
    %CESQ: 41,2,22,3
    %CESQ: 255,0,255,0
    [00:01:58.765,991] [0m<inf> event_manager: UI_EVT_BUTTON_DATA_READY[0m
    [00:01:58.772,674] [0m<inf> event_manager: DATA_EVT_UI_DATA_READY[0m
    [00:01:58.780,578] [0m<inf> event_manager: DATA_EVT_UI_DATA_SEND[0m
    [00:01:58.823,760] [0m<inf> event_manager: CLOUD_EVT_DATA_ACK[0m
    %CESQ: 31,1,20,2
    +CSCON: 1
    +CSCON: 0
    %CESQ: 38,1,24,3
    %CESQ: 255,0,255,0
    [00:08:10.514,556] [0m<inf> event_manager: UI_EVT_BUTTON_DATA_READY[0m
    [00:08:10.521,270] [0m<inf> event_manager: DATA_EVT_UI_DATA_READY[0m
    [00:08:10.529,174] [0m<inf> event_manager: DATA_EVT_UI_DATA_SEND[0m
    [00:08:10.572,357] [0m<inf> event_manager: CLOUD_EVT_DATA_ACK[0m
    %CESQ: 30,1,18,2
    %CESQ: 35,1,18,2
    +CSCON: 1
    %CESQ: 33,1,23,3
    +CSCON: 0
    %CESQ: 40,2,25,3
    +CSCON: 1
    %CESQ: 39,1,20,2
    %CESQ: 37,1,25,3
    %CESQ: 37,1,19,2
    +CSCON: 0
    %CESQ: 39,1,24,3
    %CESQ: 39,1,19,2
    %CESQ: 40,2,24,3
    %CESQ: 255,0,255,0
    %CESQ: 37,1,25,3
    +CSCON: 1
    %CESQ: 38,1,20,2
    +CSCON: 0
    %CESQ: 40,2,25,3
    +CSCON: 1
    %CESQ: 39,1,20,2
    %CESQ: 34,1,21,3
    +CSCON: 0
    %CESQ: 40,2,23,3
    %CESQ: 255,0,255,0
    [00:15:00.264,709] [0m<inf> event_manager: APP_EVT_DATA_GET_ALL[0m
    [00:15:00.271,331] [0m<inf> event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, GNSS)[0m
    [00:15:00.283,477] [0m<inf> event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY[0m
    [00:15:00.353,088] [0m<inf> event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY[0m
    [00:15:00.421,661] [0m<inf> event_manager: MODEM_EVT_BATTERY_DATA_READY[0m
    [00:16:15.282,196] [0m<inf> event_manager: DATA_EVT_DATA_READY[0m
    [00:16:15.294,952] [0m<inf> event_manager: DATA_EVT_DATA_SEND[0m
    [00:16:15.338,745] [0m<inf> event_manager: CLOUD_EVT_DATA_ACK[0m

  • Looks good for the 16 minutes in the log. After which time to you experience the connection timeout?

  • Hi, it disconnects after half an hour or so. I close NRFCloud and after half an hour, I see like in the screenshot that the Thingy is disconnected and I need to restart it. I thought that maybe if it was connected over BLE to my smartphone, it would not disconnect, but it still does.

  • Please provide the application logs from the time of the disconnect.

  • I have it connected over BLE UART to my smartphone for 1 hour and it does not get disconnected from NRFCLOUD. So, BLE UART logs are not useful to see when it gets disconnected.

    If not connected over BLE UART, it disconnect like in 20 minutes time. So, I guess you need serial wire logs?

Reply Children
  • Yes, because right now we don't have anything to determine what may be causing the disconnect.

  • If I press the button once it is disconnected, it prints out:

    [00:31:15.282,257] <inf> event_manager: DATA_EVT_DATA_READY
    [00:31:15.295,013] <inf> event_manager: DATA_EVT_DATA_SEND
    [00:31:15.338,745] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:42:46.749,145] <inf> event_manager: UI_EVT_BUTTON_DATA_READY
    [00:42:46.755,828] <inf> event_manager: DATA_EVT_UI_DATA_READY
    [00:42:46.763,702] <inf> event_manager: DATA_EVT_UI_DATA_SEND
    [00:43:10.862,304] <inf> event_manager: UI_EVT_BUTTON_DATA_READY
    [00:43:10.868,988] <inf> event_manager: DATA_EVT_UI_DATA_READY
    [00:43:10.876,861] <inf> event_manager: DATA_EVT_UI_DATA_SEND
    [00:43:11.642,181] <inf> event_manager: UI_EVT_BUTTON_DATA_READY
    [00:43:11.648,864] <inf> event_manager: DATA_EVT_UI_DATA_READY
    [00:43:11.656,738] <inf> event_manager: DATA_EVT_UI_DATA_SEND
    [00:43:12.383,270] <inf> event_manager: UI_EVT_BUTTON_DATA_READY
    [00:43:12.389,953] <inf> event_manager: DATA_EVT_UI_DATA_READY
    [00:43:12.397,857] <inf> event_manager: DATA_EVT_UI_DATA_SEND
    [00:43:46.989,105] <inf> event_manager: CLOUD_EVT_DISCONNECTED
    [00:43:46.995,788] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.002,197] <err> nrf_cloud_integration: nrf_cloud_send, error: -13
    [00:43:47.009,674] <err> cloud_module: cloud_wrap_ui_send, err: -13
    [00:43:47.016,662] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.022,979] <err> nrf_cloud_integration: nrf_cloud_send, error: -13
    [00:43:47.030,456] <err> cloud_module: cloud_wrap_ui_send, err: -13
    [00:43:47.037,445] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.043,853] <err> nrf_cloud_integration: nrf_cloud_send, error: -13
    [00:43:47.051,330] <err> cloud_module: cloud_wrap_ui_send, err: -13
    [00:43:47.058,319] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.064,880] <inf> event_manager: CLOUD_EVT_CONNECTION_TIMEOUT
    [00:43:47.072,082] <err> nrf_cloud_integration: nrf_cloud_connect, error: -11
    [00:43:47.079,803] <err> cloud_module: cloud_connect failed, error: -11
    [00:43:47.087,066] <wrn> cloud_module: Cloud connection establishment in progress
    [00:43:47.095,184] <wrn> cloud_module: New connection attempt in 32 seconds if not successful

  • Then it seams that it sends data again, but as it appears ad "Disconnected" in NRFCLOUD, I can see nothing there.

    [00:43:46.989,105] <inf> event_manager: CLOUD_EVT_DISCONNECTED
    [00:43:46.995,788] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.002,197] <err> nrf_cloud_integration: nrf_cloud_send, error: -13
    [00:43:47.009,674] <err> cloud_module: cloud_wrap_ui_send, err: -13
    [00:43:47.016,662] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.022,979] <err> nrf_cloud_integration: nrf_cloud_send, error: -13
    [00:43:47.030,456] <err> cloud_module: cloud_wrap_ui_send, err: -13
    [00:43:47.037,445] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.043,853] <err> nrf_cloud_integration: nrf_cloud_send, error: -13
    [00:43:47.051,330] <err> cloud_module: cloud_wrap_ui_send, err: -13
    [00:43:47.058,319] <inf> event_manager: CLOUD_EVT_DATA_ACK
    [00:43:47.064,880] <inf> event_manager: CLOUD_EVT_CONNECTION_TIMEOUT
    [00:43:47.072,082] <err> nrf_cloud_integration: nrf_cloud_connect, error: -11
    [00:43:47.079,803] <err> cloud_module: cloud_connect failed, error: -11
    [00:43:47.087,066] <wrn> cloud_module: Cloud connection establishment in progress
    [00:43:47.095,184] <wrn> cloud_module: New connection attempt in 32 seconds if not successful
    [00:44:19.104,522] <inf> event_manager: CLOUD_EVT_CONNECTION_TIMEOUT
    [00:44:19.111,633] <err> nrf_cloud_integration: nrf_cloud_connect, error: -11
    [00:44:19.119,354] <err> cloud_module: cloud_connect failed, error: -11
    [00:44:19.126,617] <wrn> cloud_module: Cloud connection establishment in progress
    [00:44:19.134,765] <wrn> cloud_module: New connection attempt in 64 seconds if not successful
    [00:45:00.264,770] <inf> event_manager: APP_EVT_DATA_GET_ALL
    [00:45:00.271,392] <inf> event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, BAT, ENV, GNSS)
    [00:45:00.283,538] <inf> event_manager: SENSOR_EVT_ENVIRONMENTAL_DATA_READY
    [00:45:00.352,233] <inf> event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_NOT_READY
    [00:45:00.419,189] <inf> event_manager: MODEM_EVT_BATTERY_DATA_READY
    [00:45:23.144,073] <inf> event_manager: CLOUD_EVT_CONNECTION_TIMEOUT
    [00:45:23.151,214] <wrn> cloud_module: Cloud connection establishment in progress
    [00:45:23.159,271] <wrn> cloud_module: New connection attempt in 128 seconds if not successful
    %CESQ: 54,2,13,1
    +CSCON: 1
    %CESQ: 54,2,18,2
    %CESQ: 53,2,13,1
    %CESQ: 53,2,19,2
    %CESQ: 53,2,14,2
    +CSCON: 0
    [00:46:15.282,257] <inf> event_manager: DATA_EVT_DATA_READY
    %CESQ: 52,2,8,1
    %CESQ: 55,2,13,1

Related