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

Power management of nRF52832 based custom board

Hello guys,

I have coin cell powered nRF52832 based sensor node. I develop the firmware in Segger Embedded Studio, SDK15.3.0.

On the pressure of a button on the sensor node board, I need to wake up and advertise BLE data. Once receiving advertising data, central device will establish BLE connection with my sensor node and will disconnect immediately (BLE_GAP_EVT_CONNECTED, BLE_GAP_EVT_DISCONNECTED events should be detected in my firmware with ble_evt_handler() function). I am doing this connect/disconnect action as a kind of handshaking protocol between advertising peripheral and central unit - to make sure my advertising peripheral was detected by central device because this is important to me.

Once disconnected from central device, I want my sensor node to enter deepest possible sleep mode and to be able to wake up only with external GPIO event (pressure of a button).

I imagine I should turn off SoftDevice before going to sleep mode and activate some low frequency oscillator. Once button is pressed, I should initialize SoftDevice (ble stack) and start advertising. Am I right about that?

What would be the most appropriate design example for me to start with? How to enable/disable BLE stack?

Thanks in advance for your time and effort!

Sincerely,

Bojan.

Related