This application is the simplest one to utilize our mesh networking stack. It just joins your device to the unsecure 6LoWPAN-ND network. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-mesh-minimal

Example mesh application for Mbed OS

With this application, you can use our mesh networking stack. This application joins your device to the unsecure 6LoWPAN-ND network.

Setup

Building with Mbed CLI

If you'd like to use Mbed CLI to build this offline, then you should refer to the Mbed CLI documentation. The instructions here relate to using the Mbed Online Compiler

  1. Click `Import this application` button.
  2. Change the channel settings: See the file `mbed_app.json` for an example of defining an IEEE 802.15.4 channel to use.
  3. Compile the application

A binary is generated at the end of the build process.

Connect the RF shield to the board

By default, we are using the Atmel AT86RF233, which you can purchase. Place the shield on top of your board, and power it on.

Program the target

Drag and drop the binary to the target to program the application.

Update the firmware of the border router.

You can read the instructions on updating the firmware of your board working as 6LoWPAN border router here.

Please remember to connect the Ethernet cable between the border router and your router. Then, power up the board.

Testing

As soon as both the border router and the target are up and running, you can verify the correct behavior. Open a serial console, and see the IP address obtained by the device.

Note: This application uses a baud rate of 115200.

Quote:

connected. IP = 2001:db8:a0b:12f0::1

You can use this IP address to ping from your PC and verify that the connection is working correctly.

Changing the radio driver (optional)

To run a 6LoWPAN-ND network, you need a working RF driver for Nanostack. This example uses the Atmel AT86RF233 by default.

To change the RF driver:

  1. Uninstall the Atmel RF driver.
  2. Install the new driver. (For example, for the FRDM-CR20A radio shield based on the MCR20A device.)
  3. Recompile your application.

History

Merge branch 'mbed-os-5.14' default tip

4 weeks ago, by mbed_official [Fri, 18 Oct 2019 11:00:34 +0100] rev 136

Merge branch 'mbed-os-5.14'

* mbed-os-5.14:
Updating mbed-os to mbed-os-5.14.1

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


OOB - WiSUN example never connects with default configuration. Checked and default configuration works. Connection can take long time, up yo 15 minutes

6 weeks ago, by mbed_official [Wed, 09 Oct 2019 11:00:34 +0100] rev 135

OOB - WiSUN example never connects with default configuration. Checked and default configuration works. Connection can take long time, up yo 15 minutes

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Merge branch 'mbed-os-5.14'

8 weeks ago, by mbed_official [Thu, 26 Sep 2019 09:00:33 +0100] rev 134

Merge branch 'mbed-os-5.14'

* mbed-os-5.14:
Updating mbed-os to mbed-os-5.14.0-rc3
Check if RELAY pin is configured before controlling (#283) (#286)
Updating mbed-os to mbed-os-5.14.0-rc1

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Check if RELAY pin is configured before controlling (#283)

2 months ago, by mbed_official [Fri, 13 Sep 2019 14:00:31 +0100] rev 133

Check if RELAY pin is configured before controlling (#283)


.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Merge pull request #279 from ARMmbed/fix-smoke

2 months ago, by mbed_official [Tue, 03 Sep 2019 16:00:31 +0100] rev 132

Merge pull request #279 from ARMmbed/fix-smoke

Fixed smoke test
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


add contributing file

2 months ago, by mbed_official [Thu, 29 Aug 2019 09:00:31 +0100] rev 131

add contributing file

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Merge branch 'mbed-os-5.13'

2 months ago, by mbed_official [Wed, 28 Aug 2019 15:00:30 +0100] rev 130

Merge branch 'mbed-os-5.13'

* mbed-os-5.13:
Updating mbed-os to mbed-os-5.13.4 (#277)

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Fixes in README.md and wisun config

2 months ago, by mbed_official [Wed, 28 Aug 2019 13:00:31 +0100] rev 129

Fixes in README.md and wisun config

Adresses issues #263, #264, #265, #266, #267

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Merge branch 'mbed-os-5.13'

3 months ago, by mbed_official [Mon, 19 Aug 2019 14:00:33 +0100] rev 128

Merge branch 'mbed-os-5.13'

* mbed-os-5.13:
Updating mbed-os to mbed-os-5.13.3 (#275)
Update mesh_minimal_startup.py
Updating mbed-os to mbed-os-5.13.2 (#274)

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal


Update mesh_minimal_startup.py

3 months ago, by mbed_official [Mon, 19 Aug 2019 09:00:30 +0100] rev 127

Update mesh_minimal_startup.py

Adjust Wi-SUN bootstrap waiting time
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-mesh-minimal