Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

OOB test mbed OS 5.4 #190

Merged
merged 11 commits into from
Mar 9, 2017
Binary file modified GW_Binary/gateway6LoWPANDynamic.bin
100644 → 100755
Binary file not shown.
Binary file modified GW_Binary/gateway6LoWPANStatic.bin
100644 → 100755
Binary file not shown.
Binary file modified GW_Binary/gatewayThreadDynamic.bin
100755 → 100644
Binary file not shown.
Binary file modified GW_Binary/gatewayThreadStatic.bin
100755 → 100644
Binary file not shown.
31 changes: 10 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,27 +110,17 @@ If your connection type is `MESH_THREAD` then you may want to use the THREAD_ROU

6LoWPAN ND and Thread use IPv6 for connectivity. Therefore, you need to verify first that you have a working IPv6 connection. To do that, ping the Connector IPv6 address `2607:f0d0:2601:52::20` from your network.

<span class="notes">**Note:** If you are using the [k64f-border-router](https://github.com/ARMmbed/k64f-border-router) (that can be used only as a 6LoWPAN BR and only with FRDM-K64F), you need to enable another security feature. By default, the `k64f-border-router` uses `PSK` as security.</span>
#### Border router

You can enable the security here on your mbed-os-example-client application, for example:
There are two options for border router.

```json
"target_overrides": {
"*": {
"mbed-mesh-api.6lowpan-nd-security-mode": "PSK",
}
}
```
##### Nanostack-border-router

Alternatively, you can remove the link layer security from the `k64f-border-router`. To do that, change the [mbed_app.json](https://github.com/ARMmbed/k64f-border-router/blob/master/mbed_app.json) fetched from the `k64f-border-router` repository, for example:
The [Nanostack-border-router](https://github.com/ARMmbed/nanostack-border-router-private) can be configured and built for the 6LoWPAN ND or Thread mode.

```json
"config": {
"security-mode": "NONE",
}
```
##### mbed gateway

#### mbed gateway
The mbed gateway is a binary release only.

To connect the example application in 6LoWPAN ND or Thread mode to mbed Device Connector, you need to set up an mbed 6LoWPAN gateway router as follows:

Expand Down Expand Up @@ -283,13 +273,12 @@ To build the example using mbed CLI:
mbed import mbed-os-example-client
```

3. Copy the relevant example configuration file from configs/xxx.json to mbed_app.json and
[Configure](#application-setup) the client application.

4. To build the application, select the hardware board and build the toolchain using the command:

```
mbed compile -m K64F -t GCC_ARM -c
Specify the config file in the build command, for example for 6LoWPAN

```
mbed compile -m K64F -t GCC_ARM -c --app-config configs/6lowpan_Atmel_RF.json
```

mbed CLI builds a binary file under the project’s `BUILD/` directory.
Expand Down
4 changes: 2 additions & 2 deletions configs/mesh_thread.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"target.features_add": ["NANOSTACK", "THREAD_ROUTER", "COMMON_PAL"],
"platform.stdio-baud-rate": 115200,
"platform.stdio-convert-newlines": true,
"mbed-mesh-api.thread-config-channel": 12,
"mbed-mesh-api.thread-config-panid": "0xDEFA",
"mbed-mesh-api.thread-config-channel": 22,
"mbed-mesh-api.thread-config-panid": "0x0700",
"mbed-trace.enable": 0
}
}
Expand Down
2 changes: 1 addition & 1 deletion mbed-client.lib
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://github.com/ARMmbed/mbed-client/#d41459d8b514d72d525e761fb4e34031e09f76e7
https://github.com/ARMmbed/mbed-client/#52e65b46dff7935024e91ed045eadaab298149b6

2 changes: 1 addition & 1 deletion mbed-os.lib
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/ARMmbed/mbed-os/#5faf4b26c5954d15c7c1cccac6498e0c690ad101
https://github.com/ARMmbed/mbed-os/#305f5c491e34d86098e9da91b322017549c189ff