4. Verify Your Advertiser

This section suggests some useful tools that can be used to verify that your SmartBond™ device is behaving as expected. It describes how to initialize the various tools and use them to verify the procedures described in previous sections of this document.

4.1. Advertised Data Over the Air

When the project starts running, the Bluetooth Low Energy device will be shown on the Bluetooth Low Energy scanner on your cell phone. In our case study (Android application), the following results were captured:

'Output 1'

Figure 11 Verifying the Bluetooth Low Energy Device Output Using a Scanner App

'Output 2'

Figure 12 Exploring the Various Services after Connecting to a Remote Peer

Note

When using iOS and, if the advertising name has been changed and you no longer want your device (for example, iPhone, iPad) to connect to it, you can make your device forget it. Follow the steps in the Apple Support Communities and your iPhone won’t remember your Bluetooth device. If you change your mind, don’t worry, you can pair the device as though it were new.

4.2. Initializing the SmartSnippets Toolbox

Another useful tool that can be used both for debugging and measurement purposes is the SmartSnippets Toolbox bundled with the SmartSnippets Studio. To create a new session, in the SmartSnippets Welcome page, click on SmartSnippets Toolbox. In the pop-up window displayed, do the following (in number order):

'Output 3'

Figure 13 Initializing the SmartSnippets Toolbox

4.2.1. Using the SmartSnippets Toolbox

We will use the power profiler to check that the advertising interval value is 687.5ms and what is the energy consumption of our device.

  1. Click on the Power Profiler button on the SmartSnippets ribbon.

'SmartSnippets Toolbox ribbon'

Figure 14 SmartSnippets Toolbox Ribbon

  1. Press the Initialize button. If the connection could be set, the Start button will be enabled. Press the Start button to start a measurement. When the measurements you wanted to collect have been collected, press the Stop button.

'Initialize Power Profiler'

Figure 15 Initialize Power Profiler

  1. In the Power Profiler tab, press the Add Time Marker button. This will allow you to insert a time marker at a specified time point.

'Adding a Time Marker'

Figure 16 Adding a Time Marker

  1. Choose the end of an advertising event and insert a new time marker at the start of the next advertising event as shown below. Using the time measurements of the Power Profiler, we can compute the Advertising Interval as 991 - 303 = 688ms, which is very close to the specified value of 687.5ms.

'Measuring the Advertising Interval'

Figure 17 Measuring the Advertising Interval

  1. In the Power Profiler tab, press the Measure button. This tool will measure the energy consumption of our device for the selected time period.

'The Measure tool'

Figure 18 The Measure tool

  1. Choose the end of an advertising event as a first point and the end of the next advertising event as the next point. The Power Profiler will display the energy, average current and electric charge that was consumed by the device. It will also display the time interval between the two marks and the peak-to-peak current difference. Please be advised that these measurements serve as a first check, and more accurate measurements could be acquired by the use of specialized hardware equipment.

'Measuring the energy consumption'

Figure 19 Measuring the energy consumption

Note

The above measurements were taken on a DA14531 device configured to use Extended Sleep. To enable this you must set the app_default_sleep_mode variable in user_config.h to the value ARCH_EXT_SLEEP_ON and load the executable file to the SPI flash. For more details you can refer to UM-B-080: Section 13: SPI Flash Memory Example .