Demonstration of possible usage of the Security Manager. Security Manager deals with pairing, authentication and encryption.

SM - example usage of the Security Manager to pair and encrypt

Demonstration of possible usage of the Security Manager. Security Manager deals with pairing, authentication and encryption.

The application demonstrates usage as a central and a peripheral. The central will connect to any connectable device present. Please have one ready and advertising. Application will attempt pairing. Please authorise your peer device to pair.

Upon success it will disconnect and start advertising to demonstrate usage as a peripheral. Please scan and connect using your peer device. Upon connection grant pairing if prompted. Upon success the application will disconnect. Observe the terminal to keep track of the sequence.

Running the application

Requirements

The sample application can be seen on any BLE scanner on a smartphone. If you don't have a scanner on your phone, please install :

- nRF Master Control Panel for Android.

- LightBlue for iPhone.

Information about activity is printed over the serial connection - please have a client open. You may use:

- Tera Term

Hardware requirements are in the main readme.

Building instructions

Building instructions for all samples are in the main readme.

Committer:
mbed_official
Date:
Mon Jan 14 10:45:59 2019 +0000
Revision:
17:6bf7972c4d0e
Parent:
11:547e88d95052
Child:
23:03723224d5e7
Merge pull request #208 from ARMmbed/mbed-os-5.11.0-oob

Mbed OS 5.11.0
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-ble

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Donatien Garnier 1:916188eae2bb 1 {
mbed_official 9:674ab70e0f36 2 "target_overrides": {
mbed_official 9:674ab70e0f36 3 "K64F": {
mbed_official 9:674ab70e0f36 4 "target.features_add": ["BLE"],
mbed_official 17:6bf7972c4d0e 5 "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"]
mbed_official 9:674ab70e0f36 6 },
mbed_official 9:674ab70e0f36 7 "NUCLEO_F401RE": {
mbed_official 9:674ab70e0f36 8 "target.features_add": ["BLE"],
mbed_official 11:547e88d95052 9 "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"]
mbed_official 9:674ab70e0f36 10 },
mbed_official 9:674ab70e0f36 11 "DISCO_L475VG_IOT01A": {
mbed_official 9:674ab70e0f36 12 "target.features_add": ["BLE"],
mbed_official 11:547e88d95052 13 "target.extra_labels_add": ["CORDIO", "CORDIO_BLUENRG"]
mbed_official 17:6bf7972c4d0e 14 },
mbed_official 17:6bf7972c4d0e 15 "NRF52840_DK": {
mbed_official 17:6bf7972c4d0e 16 "target.features_add": ["BLE"],
mbed_official 17:6bf7972c4d0e 17 "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"],
mbed_official 17:6bf7972c4d0e 18 "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S140_FULL", "NORDIC_SOFTDEVICE"]
mbed_official 17:6bf7972c4d0e 19 },
mbed_official 17:6bf7972c4d0e 20 "NRF52_DK": {
mbed_official 17:6bf7972c4d0e 21 "target.features_add": ["BLE"],
mbed_official 17:6bf7972c4d0e 22 "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"],
mbed_official 17:6bf7972c4d0e 23 "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S132_FULL", "NORDIC_SOFTDEVICE"]
mbed_official 9:674ab70e0f36 24 }
mbed_official 9:674ab70e0f36 25 }
Donatien Garnier 1:916188eae2bb 26 }