Sunteți pe pagina 1din 6

Questions | Blogs | Tutorials | Resources | Tour | About GitHub/Nordic | nordicsemi.

com

all nordicers advertising following search in blogs... WRITE BLOG POST

blogs->nordicers Stian
User menu
Nordic employee

nRF52 Online Power Profiler 5216 5 9


Posted Apr 26 '16
Username or e-mail

nrf52 ble current consumption


Password
We in the Nordic Support team have created an online power profiler to estimate the power
consumption during a BLE event with different parameters. The profiler gives you information about
the different components in a BLE event as well as the average current over a specified interval. All Sign in or sign up
data is based on actual measurements conducted on the nRF52, and they are correlated with the BLE
power profiles found in the SoftDevice specification to build a model which estimates the current
components involved.

You can find the nRF52 Online Power Profiler here: devzone.nordicsemi.com/power/. The tool
is also available under the Resources tab at the top.

The BLE event types you can choose between are advertising mode and peripheral connection mode.
You can also choose different values for the following parameters:

Voltage (1.7 to 3.6 volt)


BLE interval (20 to 10240 ms for advertising. 7.5 to 4000 ms for connection)
TX payload (0 to 31 byte for advertising. 0 to 27 byte for connection)
TX power (4, 0, -4, -8, -12, -16, -20, -40 dBm)

Test setup
All measurements have been conducted on an nRF52 development kit using a power analyzer. You can
see how to prepare the development kit for measurements here. Recent blog posts
6 Things to Know about
The equipment and software involved: Bluetooth Beacons
Posted Sep 22 '17 by Rose Martin
Hardware: PCA10040 v1.1.0 Development kit Creating a Keil project
Chip: nRF52832QFAAB0 for a Bluetooth Mesh
SoftDevice: s132 v2.0.0 example
Posted Sep 19 '17 by Kristian
SDK: nRF5 SDK v11.0.0
Skordal
Application: ble_app_pwr_profiling
Measuring instrument: Agilent N6705B power analyzer with a N6781A module Using millis() like in
Arduino.
Posted Sep 18 '17 by schef
DCDC has been enabled in the application code:
Flashing nRF5x firmware
using any dumb terminal
sd_power_dcdc_mode_set(1); program via standard
serial COM port
Posted Sep 18 '17 by Nguyen
The application code uses the external 32kHz crystal on the development kit and thus the sleep clock Hoan Hoang
accuracy is 20ppm. In connection, the sleep clock accuracy of the central unit is also specified to be
How to Debug the nRF52
20ppm. Interrupts Useful Tips
Posted Sep 13 '17 by Yaniv Nis
In order to transmit data during connection, the application sends a characteristic value notification Recent questions
with a specific payload to the central every connection event. Radio notifications are used to place
a payload in the TX buffer right before each connection event. The radio notification CPU processing hid keyboard demo irk
question
is not a part of the results from the online power profiler, only the BLE event itself. The reason is Posted 7 hours ago by micele
that application CPU processing is dependent on your application and it is hard to include any general
statements about current consumption in this case. Central receiving more
than 23 bytes as a
notification
Current consumption during application CPU processing can be estimated by measuring the Posted 8 hours ago by DavidC
processing time, for example by using a timer to capture the start time and end time and print it In BLE Central code, is
using UART, or you could use the GPIO peripheral to turn on or off a GPIO pin and then analyze there a way to get peer
the time usage with a logic analyzer. The value can then be multiplied with the CPU and HF clock address from storage?
run currents, found in the nRF52 Product Specification, to get the total consumption. Posted 8 hours ago by nordicdev

In BLE Central code, is it


possible to delete bond
How it works info after connection?
Posted 8 hours ago by nordicdev
To give an example on how the measurement data has been analyzed to create a model for the
profiler, we can have a look at a regular advertising event measured on the power analyzer. The
I want generating a
16MHz clock to output
image below shows a screenshot of the event using these parameters: 3.0 volt, 500 ms advertising for extend ic,how to do
interval, 31 byte TX payload and 0dBm TX power. it?
Posted 8 hours ago by chenlmm

Related posts by tag

How different BLE


packet types influence
throughput
Posted October 9th 2014 by Stefan
Birnir Sverrisson

Nordic Semiconductor
nRF51822 Firmware for
Background Data
Recording
Posted October 23rd 2014 by
scytulip

nRF51822/nRF51422
getting started and
documentation overview
Posted October 30th 2014 by
Stefan Birnir Sverrisson

Baby steps with


The different components of the advertising event can be found on this page in the SoftDevice Bluetooth Smart
Posted December 18th 2014 by
specification. The length and average current of each of these components have been extracted
David Edwin
from the measurement and is shown in the online power profiler plot. All of these components added
together will give the total charge consumed during the whole BLE event.
nRF51 current
consumption for
To make things easier in this example the average current during the whole BLE event is shown in common scenarios
the plot above, and then the BLE event total charge consumption is found by multiplying the average Posted April 14th 2015 by Stefan
current over the BLE event with the length of the event. This charge can then be used to Birnir Sverrisson

extrapolate the average current for different advertising intervals, by dividing by the interval. Then nRF52832-QFN Eagle
the System ON IDLE current must be added to give the total average current. In this example we can Part/Footprint
calculate the average current to be: Posted June 25th 2015 by ble_M an

ROM and RAM


The total charge of the BLE event:
Management
Posted July 28th 2015 by yvind
BLE_charge = BLE_avg * BLE_length Karlsen

Current vs Voltage for


The average current consumed by the BLE event for a specific interval: nrf51 CPU
Posted September 9th 2015 by
PrithviRaj Narendra
BLE_avg = BLE_charge / (BLE_interval + perturbation)
Quick Link Test for PCBA
with Nordic chips
The perturbation is given as a random number between 0 and 10 milliseconds added to the interval Posted November 16th 2015 by
John So
to prevent advertisers to periodically transmit at the exact same time. This averages to 5 ms.
Intro to
Adding the IDLE current to the inactive part of the interval: ShockBurst/Enhanced
ShockBurst
TOT_avg = BLE_avg + IDLE * (BLE_interval - BLE_length)/BLE_interval Posted November 8th 2015 by
Daniel Veilleux

SEGGER Embedded
Performing the calculation with the numbers from this example:
Studio Part 2 - Monitor
BLE_charge = 4.92 ms * 2.85 mA = 14.022 uC Mode Debugging
BLE_avg = 14.022 uC / (500 ms + 5 ms) = 27.77 uA Posted January 22nd 2016 by
TOT_avg = 27.77 uA + 2 uA * (505 ms - 4.92 ms)/505 ms = 29.8 uA M ichael Dietz

BLE nrf51 - Multilink NUS


Comparing this to the average value we get from the power analyzer we can see that the number central - Connect to
we get is the same as the calculated value above, 29.8 uA: many peripherals
through NUS service -
with Arduino host
Posted January 24th 2016 by
M arco Russi

BLE-to-SB quadcopter
bridge
Posted February 4th 2016 by
Daniel Veilleux

General PCB design


guidelines for nRF52
Posted March 9th 2016 by M artin
Brs-Lind

Scope your Bluetooth


RSSI
Posted March 5th 2016 by Jason

Monitor Mode Debugging


- Revolutionize the way
you debug BLE
applications
Posted March 15th 2016 by
M ichael Dietz

We can also see that this is the same value we get from the online power profiler: Preparing nRF5x mass
production.
Posted March 25th 2016 by
caram5555

Getting started with


nRF52 and Eddystone
Posted by keio
Hexapod using
nRF52 DK - Part 1: Intro
and hardware
Posted May 19th 2016 by Ole
Bauck

Measuring Lithium
battery voltage with
nRF52
Posted May 23rd 2016 by Ole
Bauck

BLE-Cube A Bachelor
Project
Posted June 15th 2016 by BLE
Cube

NRF52 debugging with


QtCreator on Windows
Posted June 17th 2016 by Globuloz
Setting up IPv6 over BLE
using nRF52 Series and
Contiki OS
Posted July 6th 2016 by wbober

Wireless timer
synchronization among
nRF5 devices
Posted July 13th 2016 by Audun

Getting More Out of


Make
Posted August 1st 2016 by Daniel
Veilleux

Show And Tell: Lys - An


Automation Example
Posted August 1st 2016 by Daniel
Veilleux

nRF52 Quadcopter
Posted August 12th 2016 by Jan
Tore Guggedal

Profiling the Softdevice


and FreeRTOS with
Segger SystemView
Posted September 3rd 2016 by Tim

nRF5 Series - a popular


platform for open
source RTOS
Posted September 7th 2016 by
Eirik M idttun

Peak current The Power Profiler Kit


Posted November 3rd 2016 by

Because of the rise and fall time of the different components the average current will be lower than wilhelmsen

the peak current. In the profiler plot the peak currents for TX and RX are added on top of the bars Get started on PC
for reference. Software for Mesh and
Mesh DFU
Payload Posted November 11th 2016 by
David Edwin
The advertising payload can be chosen to be from 0 to 31 bytes, and the connection TX payload can
What to keep in mind
be from 0 to 27 bytes.
when developing your
The payload during connection is sent using notifications, but the payload size you specify in the BLE Android app
profiler includes any L2CAP and ATT header information. So the 27 bytes is the Link Layer's payload Posted November 14th 2016 by
Hung Bui
size. Sending a Characteristic Value Notification with a payload of 20 bytes corresponds to a 27 byte
Link Layer payload because of the 4 byte L2CAP header and 3 byte ATT header. nRF52 Rocket: Part I
Introduction to Model
Choosing a zero payload size for the peripheral connection mode will show an empty connection Rocketry and its UX
packet without any notifications sent. Problem
Posted November 21st 2016 by

Accuracy Tony Wu

Fast Production
The tool is based on a model of the measured values, and is not showing the actual measurement. Screening based upon
The results are therefore estimates of the expected value. It is meant for evaluation purposes only,
Bluetooth DTM
and will not give the exact numbers in every use case. Testing shows that the estimated average Posted December 9th 2016 by Ken
current is typically within 5% of the actual value for the reference parts. The device to device L
variations will add to this inaccuracy. Please refer to the nRF52 Product Specification for expected Simple Application-level
min/max values for the different current components.
Authentication
Posted January 30th 2017 by
If you experience any issues with the tool, please post a question in the Questions section here on Daniel Veilleux
Devzone. Any feedback is appreciated.
Monitor Mode Debugging
with J-Link and
Updates GDB/Eclipse
The tool will be updated whenever there is a new SoftDevice major update or a new Chip revision Posted March 29th 2017 by Daniel
Veilleux
is released. The numbers can therefore change without notice.
FreeRTOS threads
Right now the tool only includes the advertising and peripheral connection modes. Scanner and preview with J-Link,
central connection modes will be included later. GDB/Eclipse
Posted April 11th 2017 by
Radosaw Koppel
9 comments
The complete tutorial
for developing and
Based on my understanding, the TX payload in one connection Lakerno
139 9 20 18
debugging nRF52
interval can be 6 x 20= 120 bytes. How come only max 27 bytes are
allowed for the power calculation tool? Posted May 3, 2016, 12:01 p.m. applications on a Mac
Posted May 11th 2017 by
M ohammad Afaneh

Programming nRF52832
@Lakerno The tool shows only one packet per connection interval. It Stian boards in Python with
Nordic employee
will be updated with multiple packets soon. Zerynth
5216 5 9
Posted June 7th 2017 by lfcerf
Posted May 3, 2016, 12:36 p.m.
Contract/freelance
firmware engineer -
Nordic nrf5x devices
@Stian, Thank you. Waiting for the update. Would it be possible to Lakerno
139 9 20 18 Posted June 13th 2017 by M arco
include the Slave latency in the calculation? Russi
Posted May 3, 2016, 2:48 p.m.
Designing your
Bluetooth GATT: Custom
Services and
@Stian Please provide the instructions for measuring current with ahedin25
the power analyzer. These are not provided in the infocenter. 1 2 1 Characteristics [MIDI
Thank you. Posted May 20, 2016, 8:01 p.m. controller use case]
Posted June 28th 2017 by
M ohammad Afaneh

Bluey Beacon - Building


@Lakerno Slave latency is a planned feature Stian
a Nordic nRF52832 BLE
Nordic employee
@ahedin25 Have you seen this tutorial? 5216 5 9 IoT Sensor Beacon
https://devzone.nordicsemi.com/tutorials/28/ You connect the Posted May 26, 2016, 9:43 a.m. Posted July 9th 2017 by M ahesh
power analyzer as if it was an ammeter. If you want to use the Venkitachalam

power analyzer as a voltage source as well, you will need to do modifications to the DK to isolate Flashing and Debugging
the nRF chip from the rest of the circuitry. nRF51/52 with a cheap
blackmagic probe
compatible SWD
Hi @Stian, Could you provide the specific parameters that should be david.gutierrez programmer
7 4 5
modified in power profiling example code in order to follow this Posted July 24th 2017 by M ahesh
guide? Thank you. Posted July 26, 2016, 9:51 a.m. Venkitachalam

ble_app_hrs_freertos
running in Atollic
The link to the "test setup for measurements using the dk" is not Bhagath TrueSTUDIO
1 1 1 Posted August 14th 2017 by
working. Can someone please direct me to the correct one.
Posted April 21, 2017, 9:20 a.m. jmag999

How We Found a Bug In


Nordics SDK Using
Jumpers Emulator
Posted August 24th 2017 by
dansheme
Thanks Bhagath Bluetooth 5 e-book (plus
video tutorials,
exercises, and source
@bhagath Sorry, I've updated the link now. Stian code)
Nordic employee
Posted August 28th 2017 by
5216 5 9
M ohammad Afaneh
Posted April 21, 2017, 10:34 a.m.
The ultimate guide to
Will there be updates for multiple packets per interval, DLE and Bob Recny
RX events? 1 2 maximizing your BLE and
Posted Aug. 15, 2017, 10:40 p.m. Bluetooth 5 data
throughput
Posted September 7th 2017 by
Sign in to comment. M ohammad Afaneh

faq | terms and conditions | give feedback Follow Nor dic on:

S-ar putea să vă placă și