![](/media/cache/group/Mbed-100-mk2.png.50x50_q85.png)
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:
Hardware requirements are in the main readme.
Building instructions
Building instructions for all samples are in the main readme.
README.md@22:c394411633f6, 2019-03-29 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Mar 29 12:01:28 2019 +0000
- Revision:
- 22:c394411633f6
- Parent:
- 3:704a199f2316
Merge pull request #228 from paul-szczepanek-arm/master
update readme to match application flow
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-ble
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Donatien Garnier |
1:916188eae2bb | 1 | # SM - example usage of the Security Manager to pair and encrypt |
Donatien Garnier |
1:916188eae2bb | 2 | |
Donatien Garnier |
1:916188eae2bb | 3 | Demonstration of possible usage of the Security Manager. Security Manager deals with pairing, authentication and encryption. |
Donatien Garnier |
1:916188eae2bb | 4 | |
mbed_official | 22:c394411633f6 | 5 | The application demonstrates usage as a central and a peripheral. |
Donatien Garnier |
1:916188eae2bb | 6 | |
mbed_official | 22:c394411633f6 | 7 | It will start advertising to demonstrate usage as a peripheral first. Please scan and connect using your peer device. Upon connection grant pairing if prompted. Upon success the application will disconnect. |
mbed_official | 22:c394411633f6 | 8 | |
mbed_official | 22:c394411633f6 | 9 | The application will switch to demonstrating the central role and will connect to the device that previously connected to it. Please have it ready and advertising. Observe the terminal to keep track of the sequence. |
Donatien Garnier |
1:916188eae2bb | 10 | |
Donatien Garnier |
1:916188eae2bb | 11 | # Running the application |
Donatien Garnier |
1:916188eae2bb | 12 | |
Donatien Garnier |
1:916188eae2bb | 13 | ## Requirements |
Donatien Garnier |
1:916188eae2bb | 14 | |
Donatien Garnier |
1:916188eae2bb | 15 | 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 : |
Donatien Garnier |
1:916188eae2bb | 16 | |
Donatien Garnier |
1:916188eae2bb | 17 | - [nRF Master Control Panel](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) for Android. |
Donatien Garnier |
1:916188eae2bb | 18 | |
Donatien Garnier |
1:916188eae2bb | 19 | - [LightBlue](https://itunes.apple.com/gb/app/lightblue-bluetooth-low-energy/id557428110?mt=8) for iPhone. |
Donatien Garnier |
1:916188eae2bb | 20 | |
Donatien Garnier |
1:916188eae2bb | 21 | Information about activity is printed over the serial connection - please have a client open. You may use: |
Donatien Garnier |
1:916188eae2bb | 22 | |
Donatien Garnier |
1:916188eae2bb | 23 | - [Tera Term](https://ttssh2.osdn.jp/index.html.en) |
Donatien Garnier |
1:916188eae2bb | 24 | |
Donatien Garnier |
1:916188eae2bb | 25 | Hardware requirements are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md). |
Donatien Garnier |
1:916188eae2bb | 26 | |
Donatien Garnier |
1:916188eae2bb | 27 | ## Building instructions |
Donatien Garnier |
1:916188eae2bb | 28 | |
Donatien Garnier |
1:916188eae2bb | 29 | Building instructions for all samples are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md). |
Donatien Garnier |
1:916188eae2bb | 30 | |
mbed_official | 3:704a199f2316 | 31 | Note: this example currently is currently not supported on ST BLUENRG targets. |