This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_nus_data_send() function

Hi,

we are  using both system on and system off power mode in one of our application.

Sytem on : wakeup through RTC for an every 60 seconds once / GPIO.

System Off : Wakeup through a GPIO / Reset.

But when i sent the data to a mobile through ble_nus_data_send() function . The device is waking up immediately.

Please let me know below points

1. Why device is waking up immediately after we call ble_nus_data_send()??

2. How to over come from the point 1.

Hardware used : nRF52832 DK

Software used : sdk16  -> ble_app_uart profile

Regards,

Meghana

Parents
  • This is the expected behavior. The ble_app_uart example goes into System ON sleep and it will wake up on any event/interrupts, including BLE events, timer events and interrupts from various peripherals. The system will wake up, run the associated handler of the interrupt/event, and go back to sleep again.

    In your case, the UART IRQ handler is called (since data is received over UART from e.g. a serial terminal on a computer), which will call uart_event_handle()→ble_nus_data_send().

    Best regards,

    Simon

Reply
  • This is the expected behavior. The ble_app_uart example goes into System ON sleep and it will wake up on any event/interrupts, including BLE events, timer events and interrupts from various peripherals. The system will wake up, run the associated handler of the interrupt/event, and go back to sleep again.

    In your case, the UART IRQ handler is called (since data is received over UART from e.g. a serial terminal on a computer), which will call uart_event_handle()→ble_nus_data_send().

    Best regards,

    Simon

Children
Related