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

low power in advertising

About example BLE_uart,

My device must always remain in advertising, I'm using a 1280 ms between two advertisng event.

I have to minimize the consumption during advertining, and I need wake up the micro only with a bluetooth connection.

I do not need to keep the RAM / RTC on and the I / O ports must remain low.

Is BLE_uart an exaple of  best configuration regards the power consuption ?

Or I can improve switching off others peripherals ?

Marco

Parents
  • Hi Marco,

    the ble_app_uart example is a good starting point, but note that it enables the UART peripheral and the nRF Logging module.  

    I assume that your using SDK 15, so in order to reduce the current consumption of the ble_app_uart example you will have to disable these, i.e. set the following defines in sdk_config.h

    NRF_LOG_ENABLED 0 

    NRF_LOG_BACKEND_RTT_ENABLED 0 

    and comment out

    uart_init();

    printf("\r\nUART started.\r\n");

    in main(). 

    A better choice might be to use the ble_app_template example which that does not enable logging or use any of the HW peripherals in the application code. It only advertises at a given interval and goes to low power mode in between advertisement events. 

    Best regards

    Bjørn

     

Reply
  • Hi Marco,

    the ble_app_uart example is a good starting point, but note that it enables the UART peripheral and the nRF Logging module.  

    I assume that your using SDK 15, so in order to reduce the current consumption of the ble_app_uart example you will have to disable these, i.e. set the following defines in sdk_config.h

    NRF_LOG_ENABLED 0 

    NRF_LOG_BACKEND_RTT_ENABLED 0 

    and comment out

    uart_init();

    printf("\r\nUART started.\r\n");

    in main(). 

    A better choice might be to use the ble_app_template example which that does not enable logging or use any of the HW peripherals in the application code. It only advertises at a given interval and goes to low power mode in between advertisement events. 

    Best regards

    Bjørn

     

Children
No Data
Related