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

Commit 070710e

Browse files
author
Kimmo Lepikko
committed
Updated config chapters for 6LoWPAN and Thread
1 parent c78f3ad commit 070710e

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,35 @@ You can view debug traces from the gateway with a serial port monitor. The gatew
8080

8181
#### Channel settings
8282

83-
In 6LoWPAN ND and Thread mode, you need to set the channel settings to match the mbed gateway settings. Channel settings can be found in the `MACROS.txt` file. For 2.4GHz shields (AT86RF233), use the following values:
83+
The default 2.4GHz channel settings are already defined by the [mbed-mesh-api](https://github.com/ARMmbed/mbed-mesh-api) to match the mbed gateway settings. The application can override these settings by adding them to the `mbed_app.json` file in the main project directory. For example:
8484

8585
```
86-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL_PAGE=0
87-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL=12
88-
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL_PAGE=0
89-
YOTTA_CFG_MBED_MESH_API_THREAD_CONFIG_CHANNEL=12
86+
"target_overrides": {
87+
"*": {
88+
"mbed-mesh-api.6lowpan-nd-channel-page": 0,
89+
"mbed-mesh-api.6lowpan-nd-channel": 12,
90+
"mbed-mesh-api.thread-config-channel-page": 0,
91+
"mbed-mesh-api.thread-config-channel": 12
92+
}
93+
}
9094
```
9195

92-
Values for sub-GHz shields (AT86RF212B), **6LoWPAN ND only**:
96+
For sub-GHz shields (AT86RF212B) use the following overrides, **6LoWPAN ND only**:
9397

9498
```
95-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL_PAGE=2
96-
YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_CHANNEL=1
99+
"mbed-mesh-api.6lowpan-nd-channel-page": 2,
100+
"mbed-mesh-api.6lowpan-nd-channel": 1
97101
```
98102

99-
For more information about the radio shields, see [the related documentation](docs/radio_module_identify.md).
103+
For more information about the radio shields, see [the related documentation](docs/radio_module_identify.md). All the configurable settings can be found in the `mbed-client-quickstart-morpheus/mbed-os/net/mbed-mesh-api/mbed_lib.json` file.
100104

101105
#### Thread-specific settings
102106

103-
With Thread, you can change the operating mode of the device between a router and a sleepy end device as follows:
107+
With Thread, you can change the operating mode of the client from the default router mode to a sleepy end device by adding the following override to the `mbed_app.json` file:
104108

105-
In the `MACROS.txt` file, change the `YOTTA_CFG_MBED_MESH_API_THREAD_DEVICE_TYPE` to either `MESH_DEVICE_TYPE_THREAD_ROUTER` or `MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE`.
109+
```
110+
"mbed-mesh-api.thread-device-type": "MESH_DEVICE_TYPE_THREAD_SLEEPY_END_DEVICE"
111+
```
106112

107113
### Ethernet settings
108114

0 commit comments

Comments
 (0)