-
Notifications
You must be signed in to change notification settings - Fork 116
Security Manager example #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
69b8e79
security manager example
paul-szczepanek-arm 21b7443
single ble and event reused
paul-szczepanek-arm 43d16f3
documentation
paul-szczepanek-arm 1f382d5
connect to any device
paul-szczepanek-arm f4f3a9b
revert baud rate to default
paul-szczepanek-arm 0c7bb81
comments
paul-szczepanek-arm c481fba
comments and prints
paul-szczepanek-arm 55d2582
typo, comment and label
paul-szczepanek-arm 73bf646
fix prints and using namespace resolution
paul-szczepanek-arm bfd754d
class renamed to match os
paul-szczepanek-arm 5633f75
reverse order of demos to save the peer address to reconnect to it later
paul-szczepanek-arm 1b22598
point to 5.8 instead of private fork
paul-szczepanek-arm 6fc7a5c
note aout cordio port
paul-szczepanek-arm 698cd80
upgrade branch to 5.8.2
paul-szczepanek-arm 9640a8d
commit number instead of human readable branch
paul-szczepanek-arm b818bdb
Merge https://github.com/ARMmbed/mbed-os-example-ble
paul-szczepanek-arm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ROOT=. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) for Android. | ||
|
||
- [LightBlue](https://itunes.apple.com/gb/app/lightblue-bluetooth-low-energy/id557428110?mt=8) for iPhone. | ||
|
||
Information about activity is printed over the serial connection - please have a client open. You may use: | ||
|
||
- [Tera Term](https://ttssh2.osdn.jp/index.html.en) | ||
|
||
Hardware requirements are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md). | ||
|
||
## Building instructions | ||
|
||
Building instructions for all samples are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md). | ||
|
||
Note: example currently doesn't use ST provided stack and instead uses a Cordio port for the ST. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/ARMmbed/mbed-os/#f9ee4e849f8cbd64f1ec5fdd4ad256585a208360 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"target_overrides": { | ||
"K64F": { | ||
"target.features_add": ["BLE"], | ||
"target.extra_labels_add": ["ST_BLUENRG"] | ||
}, | ||
"NUCLEO_F401RE": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please document that it is using the Cordio port for ST (as opposed to ST's official stack) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note made about it in the readme |
||
"target.features_add": ["BLE"], | ||
"target.extra_labels_add": ["ST_BLUENRG", "CORDIO"] | ||
}, | ||
"DISCO_L475VG_IOT01A": { | ||
"target.features_add": ["BLE"], | ||
"target.extra_labels_add": ["ST_BLUENRG", "CORDIO"] | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "ble-securitymanager", | ||
"version": "0.0.1", | ||
"description": "BLE Security Manager usage example", | ||
"licenses": [ | ||
{ | ||
"url": "https://spdx.org/licenses/Apache-2.0", | ||
"type": "Apache-2.0" | ||
} | ||
], | ||
"dependencies": { | ||
"ble": "^2.0.0" | ||
}, | ||
"bin": "./source" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/ARMmbed/cordio-ble-x-nucleo-idb0xa1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Phase two will start whether phase 1 succeed or not. Could you indicate that if phase 1 fail, the peripheral will request pairing or if phase 1 succeeded then the link is encrypted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reversed the order