You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
With this application, you can use the [mesh networking API](https://os.mbed.com/docs/latest/apis/mesh-api.html) that [Mbed OS](https://github.com/ARMmbed/mbed-os) provides.
4
4
5
5
The application demonstrates a light control application, where devices can control the LED status of all devices in the network.
6
-
The application can be built for the unsecure 6LoWPAN-NDor Thread network.
6
+
The application can be built for the unsecure 6LoWPAN-ND, Thread or Wi-SUN network.
7
7
8
-
See the [6LoWPAN overview](https://os.mbed.com/docs/latest/reference/mesh-tech.html) for the definition of star and mesh networks. These same principles apply also to Thread protocol.
8
+
See the [6LoWPAN overview](https://os.mbed.com/docs/latest/reference/mesh-tech.html) for the definition of star and mesh networks. These same principles apply also to Thread and Wi-SUN protocols.
9
9
10
10
## Setup
11
11
@@ -28,6 +28,7 @@ Select the protocol the network is based on:
28
28
29
29
- 6LoWPAN-ND.
30
30
- Thread.
31
+
- Wi-SUN
31
32
32
33
Select the device role:
33
34
@@ -42,6 +43,7 @@ Example configuration files are provide under `configs/` directory. You may over
42
43
|------------------|-------|
43
44
|`configs/mesh_6lowpan.json`| 6LoWPAN-ND based mesh network. |
44
45
|`configs/mesh_thread.json`| Thread based mesh network. |
46
+
|`configs/mesh_wisun_S2LP.json`| Wi-SUN based mesh network. |
45
47
46
48
An example of the `mbed_app.json` file:
47
49
@@ -70,6 +72,7 @@ The following tables show the values to use in the `mbed_app.json` file for your
70
72
71
73
- For a 6LoWPAN-ND based network, use `nsapi.default-mesh-type: LOWPAN`.
72
74
- For a Thread-based network, use `nsapi.default-mesh-type: THREAD`.
75
+
- For a Wi-SUN-based network, use `nsapi.default-mesh-type: WISUN`.
73
76
74
77
#### 6LoWPAN-ND
75
78
@@ -103,6 +106,15 @@ The Thread stack learns the network settings from the commissioning process and
103
106
- Commission the device to the Thread network.
104
107
- When you restart the device next time, the device reads the Thread configuration settings from the SD card and tries to attach to an existing network.
105
108
109
+
#### Wi-SUN
110
+
111
+
**nsapi.default-mesh-type: WISUN**
112
+
113
+
|Device role|`nanostack.configuration` value|
114
+
|-----------|-------------------------|
115
+
|Mesh router (default) | ws_router |
116
+
117
+
106
118
### Requirements for hardware
107
119
108
120
The networking stack used in this example requires TLS functionality to be enabled on Mbed TLS.
@@ -118,13 +130,23 @@ You also need to check how LEDs and buttons are configured for your hardware, an
118
130
119
131
To run a 6LoWPAN-ND network, you need a working RF driver for Nanostack. This example uses the Atmel AT86RF233 by default.
120
132
121
-
To change the RF driver modify the `mbed_app.json` file by setting preferred RF driver `provide_default` value to true, For example, to use MCR20a RF driver:
133
+
To change the RF driver modify the `mbed_app.json` file by setting preferred RF driver `provide_default` value to true, For example, to use MCR20a RF driver:
122
134
123
135
```json
124
136
"atmel-rf.provide-default": false,
125
137
"mcr20a.provide-default": true,
126
138
```
127
139
140
+
To run a Wi-SUN network, there is currently only one supported Radio, STM S2LP.
141
+
142
+
To use the S2LP, modify the `mbed_app.json` file by setting:
143
+
144
+
```json
145
+
"s2lp.provide-default": true,
146
+
```
147
+
148
+
Note that the provide-default for each radio driver defaults to false, so there is no need to list all the possible drivers in the `mbed_app.json`.
0 commit comments