Skip to content

Commit

Permalink
Merge pull request AVSystem#2 from maciejbocianski/btt_demo
Browse files Browse the repository at this point in the history
use secure connection only
  • Loading branch information
maciejbocianski authored Jan 4, 2022
2 parents 492b384 + 8b3cefb commit 29236a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,16 @@ future bootups.
## Running demo
1. Change branche to `btt_demo`
2. Setup workspace: `mbed deploy`
3. Change your device `endpoint_name` in `mbed_app.json`
3. Change your
3. Set/change following configs in `mbed_app.json`:
- device `endpoint_name` to `urn:dev:os:XXXXXXXXXXX`
- set `psk_identity` to the same value as in `endpoint_name`
- `psk_key` to any key you want to use or use existing
4. Mock custom board: `mbedls --mock 0828:BT_01001_V0_2`
5. If using mbed-os 5.X apply AT_Handler patch from https://github.com/Waleed-Elmughrabi/BTTM-IOT-NODE-Master
6. Build&flash: `mbed compile -m BT_01001_V0_2 --profile debug --flash`
7. Add device to Coiote Device Management
* Go to Device Inventory, click `+ Add device` button
* Than Connect your LwM2M device via via the Management server: set `endpoint_name` as `Device ID`, any `Friendly name`, and `Security mode` as `NoSec` than click `Add device`
* Than Connect your LwM2M device via via the Management server: set `endpoint_name` as `Device ID`, and set `Friendly name`, and set `Security mode` as `PSK` and set `psk_identity` as `Key Identity` and set `psk_key` as `Key` than click `Add device`
* Flash device and wait until it get connected then move to next step
8. You have connected device
10 changes: 4 additions & 6 deletions mbed_app.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,16 @@
}
},
"config": {
"endpoint_name": "\"urn:dev:os:BTT_non_secure_01\"",
"__endpoint_name": "\"urn:dev:os:BTT_secure_01\"",
"endpoint_name": "\"urn:dev:os:BTT_secure_01\"",
"rg_nosec_addr": "\"coap://lwm2m-test.avsystem.io:5683\"",
"rg_dtls_addr": "\"coaps://lwm2m-test.avsystem.io:5684\"",
"bs_nosec_addr": "\"coap://lwm2m-test.avsystem.io:5693\"",
"bs_dtls_addr": "\"coaps://lwm2m-test.avsystem.io:5684\"",
"with_rg_server": true,
"with_bs_server": false,
"with_dtls": false,
"psk_identity": "\"urn:dev:os:BTT_non_secure_01\"",
"__psk_identity": "\"urn:dev:os:BTT_secure\"",
"psk_key": "\"11111111111111111111111111111111111111111111111111111111111111\"",
"with_dtls": true,
"psk_identity": "\"urn:dev:os:BTT_secure_01\"",
"psk_key": "\"111111111111111111111111\"",
"serial_menu_echo": true
}
}

0 comments on commit 29236a1

Please sign in to comment.