Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Feb 19 20:47:12 2019 +0000
Parent:
89:2f7ae1d76d7a
Child:
91:d58d68b11052
Commit message:
Merge pull request #157 from ARMmbed/config_fixes

Configuration fixes for Wi-SUN
.
Commit copied from https://github.com/ARMmbed/nanostack-border-router

Changed in this revision

README.md Show annotated file Show diff for this revision Revisions of this file
configs/Wisun_Stm_s2lp_RF.json Show annotated file Show diff for this revision Revisions of this file
--- a/README.md	Wed Feb 13 18:38:23 2019 +0000
+++ b/README.md	Tue Feb 19 20:47:12 2019 +0000
@@ -1,6 +1,8 @@
 # Nanostack Border Router
 
-Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.
+Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND, Thread or Wi-SUN border router initialization logic.
+
+Note: Wi-SUN is currently available for partners only.
 
 Border router is a network gateway between a wireless 6LoWPAN mesh network and a backhaul network. It controls and relays traffic between the two networks. In a typical setup, a 6LoWPAN border router is connected to another router in the backhaul network (over Ethernet or a serial line) which in turn forwards traffic to/from the internet or a private company LAN, for instance.
 
@@ -146,6 +148,26 @@
 | `pskd`                              | Pre-Shared Key for the device. |
 | `thread-master-key`                 | A key used to derive security material for MAC and MLE protection. |
 
+### Wi-SUN configuration
+
+The Wi-SUN -specific parameters are listed below.
+
+| Field                               | Description                                                   |
+|-------------------------------------|---------------------------------------------------------------|
+| `network-name`                      | Network name for Wi-SUN the network, MUST be same for all the devices in the network |
+| `regulatory-domain`                 | Defines regulatory domain, refer to [ws_management_api](https://github.com/ARMmbed/mbed-os/blob/master/features/nanostack/sal-stack-nanostack/nanostack/ws_management_api.h) for correct values for your region. |
+| `operating-class`                   | Defines operating class, limited by the regulatory domain |
+| `operating-mode`                    | Defines the operating mode, limited by the regulatory domain |
+| `uc-channel-function`               | Unicast channel function |
+| `bc-channel-function`               | Broadcast channel function |
+| `uc-fixed-channel`                  | Fixed channel for unicast |
+| `bc-fixed-channel`                  | Fixed channel for broadcast |
+| `uc-dwell-interval`                 | Unicast dwell interval. Range: 15-255 milliseconds |
+| `bc-interval`                       | Broadcast interval. Duration between broadcast dwell intervals. Range: 0-16777216 milliseconds |
+| `bc-dwell-interval`                 | Broadcast dwell interval. Range: 15-255 milliseconds |
+
+Regulatory domain, operating class and operating mode are defined in the Wi-SUN PHY-specification.
+
 
 For the Thread Border Router, there are example configuration files for `SLIP` and `ETH` backhaul connectivity:
 
@@ -227,7 +249,7 @@
 
 ```
         "radio-type":{
-            "help": "options are ATMEL, MCR20, SPIRIT1",
+            "help": "options are ATMEL, MCR20, SPIRIT1, S2LP",
             "value": "ATMEL"
         },
 ```
@@ -236,7 +258,7 @@
 
 ```
         "radio-type":{
-            "help": "options are ATMEL, MCR20, SPIRIT1",
+            "help": "options are ATMEL, MCR20, SPIRIT1, S2LP",
             "value": "MCR20"
         },
 ```
@@ -245,11 +267,19 @@
 
 ```
         "radio-type":{
-            "help": "options are ATMEL, MCR20, SPIRIT1",
+            "help": "options are ATMEL, MCR20, SPIRIT1, S2LP",
             "value": "SPIRIT1"
         },
 ```
 
+To select the STM S2LP radio shield, use the following:
+```
+        "radio-type":{
+            "help": "options are ATMEL, MCR20, SPIRIT1, S2LP",
+            "value": "S2LP"
+        },
+```
+
 In case you have choosen the STM Spirit1 Sub-1 GHz RF expansion board [X-NUCLEO-IDS01A4](https://github.com/ARMmbed/stm-spirit1-rf-driver), you need also to configure its MAC address in the `mbed_app.json` file, for example:
 
 ```json
@@ -264,6 +294,10 @@
 
 After changing the radio shield, you need to recompile the application.
 
+#### Wi-SUN RF shield
+
+Currently there is only one radio shield with a support for Wi-SUN, the STM S2LP radio shield.
+
 ## File system support
 
 The Application can enable use of file system as instructed in [mbed OS storage documentation](https://os.mbed.com/docs/latest/reference/storage.html). File system is not enabled by default due variety of possible configurations.
--- a/configs/Wisun_Stm_s2lp_RF.json	Wed Feb 13 18:38:23 2019 +0000
+++ b/configs/Wisun_Stm_s2lp_RF.json	Tue Feb 19 20:47:12 2019 +0000
@@ -27,9 +27,9 @@
         "backhaul-mac": "{0x02, 0x00, 0x00, 0x00, 0x00, 0x01}",
         "debug-trace": "false",
         "backhaul-dynamic-bootstrap": true,
-        "backhaul-prefix": "fd00:db8:ff1::",
-        "backhaul-default-route": "::/0",
-        "backhaul-next-hop": "fe80::1",
+        "backhaul-prefix": "\"fd00:db8:ff1::\"",
+        "backhaul-default-route": "\"::/0\"",
+        "backhaul-next-hop": "\"fe80::1\"",
         "multicast-addr": "ff05::7",
         "LED": "NC",
         "SERIAL_TX": "NC",
@@ -53,7 +53,8 @@
             "nanostack.configuration": "ws_border_router",
             "platform.stdio-convert-newlines": true,
             "platform.stdio-baud-rate": 115200,
-            "platform.stdio-buffered-serial": true
+            "platform.stdio-buffered-serial": true,
+            "mbed-mesh-api.use-malloc-for-heap": true
         },
         "K64F": {
             "kinetis-emac.tx-ring-len":4,