Skip to content

Commit bea1e82

Browse files
author
Donatien Garnier
committed
Merge branch 'master' of git://github.com/paul-szczepanek-arm/mbed-os-example-ble into paul-szczepanek-arm-master
2 parents 6451e7e + b818bdb commit bea1e82

File tree

7 files changed

+480
-0
lines changed

7 files changed

+480
-0
lines changed

BLE_SM/.mbed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ROOT=.

BLE_SM/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SM - example usage of the Security Manager to pair and encrypt
2+
3+
Demonstration of possible usage of the Security Manager. Security Manager deals with pairing, authentication and encryption.
4+
5+
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.
6+
7+
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.
8+
9+
# Running the application
10+
11+
## Requirements
12+
13+
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 :
14+
15+
- [nRF Master Control Panel](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) for Android.
16+
17+
- [LightBlue](https://itunes.apple.com/gb/app/lightblue-bluetooth-low-energy/id557428110?mt=8) for iPhone.
18+
19+
Information about activity is printed over the serial connection - please have a client open. You may use:
20+
21+
- [Tera Term](https://ttssh2.osdn.jp/index.html.en)
22+
23+
Hardware requirements are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md).
24+
25+
## Building instructions
26+
27+
Building instructions for all samples are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md).
28+
29+
Note: example currently doesn't use ST provided stack and instead uses a Cordio port for the ST.

BLE_SM/mbed-os.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/ARMmbed/mbed-os/#f9ee4e849f8cbd64f1ec5fdd4ad256585a208360

BLE_SM/mbed_app.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"target_overrides": {
3+
"K64F": {
4+
"target.features_add": ["BLE"],
5+
"target.extra_labels_add": ["ST_BLUENRG"]
6+
},
7+
"NUCLEO_F401RE": {
8+
"target.features_add": ["BLE"],
9+
"target.extra_labels_add": ["ST_BLUENRG", "CORDIO"]
10+
},
11+
"DISCO_L475VG_IOT01A": {
12+
"target.features_add": ["BLE"],
13+
"target.extra_labels_add": ["ST_BLUENRG", "CORDIO"]
14+
}
15+
}
16+
}

BLE_SM/module.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "ble-securitymanager",
3+
"version": "0.0.1",
4+
"description": "BLE Security Manager usage example",
5+
"licenses": [
6+
{
7+
"url": "https://spdx.org/licenses/Apache-2.0",
8+
"type": "Apache-2.0"
9+
}
10+
],
11+
"dependencies": {
12+
"ble": "^2.0.0"
13+
},
14+
"bin": "./source"
15+
}

BLE_SM/shields/TARGET_ST_BLUENRG.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/ARMmbed/cordio-ble-x-nucleo-idb0xa1

0 commit comments

Comments
 (0)