Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 49 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,69 @@

This applications is the simplest one to utilizes our Mesh networking stack. All it does is join the unsecure *6LoWPAN-ND* network.

## Setup

### Download the application

```
mbed import mbed-os-example-mesh-minimal
cd mbed-os-example-mesh-minimal
```

### Optional: change channel settings

See the file `mbed_app.json` for an example of defining an IEEE 802.15.4 channel to use.

## Changing the radio driver
### Compile the application

```
mbed compile -m K64F -t GCC_ARM
```

A binary should be generated at the end of the build process.

### Connect the RF shield to the board

By default we are using the Atmel AT86RF233 which can be purchased [here](https://firefly-iot.com/product/firefly-arduino-shield-2-4ghz/).
Place the shield on top of your board and power it up.

### Program the target

In order to run a 6LoWPAN-ND network, you need a working RF driver for Nanostack. This example uses the Atmel AT86RF233.
Drag and drop to the target to program the application.

To change drivers:
### Update the firmware of the Border Router

__1__
You can read the instructions on updating the firmware of your K64F working as 6LoWPAN Border Router [here](https://github.com/ARMmbed/mbed-os-example-client#mbed-gateway).

Please do not forget to connect the Ethernet cable between the Border Router and your home/office router. Then power up the board.

## Testing

Once both the Border Router and the target is up and running, then you can verify its correct behaviour. Open a serial console and see the IP address obtained by the device. For example:

```
mbed remove atmel-rf-driver
connected. IP = 2001:db8:a0b:12f0::1
```

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

### Optional: changing the radio driver

In order 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 default driver:
```
mbed add <your RF driver address>
mbed remove atmel-rf-driver
```

__3__
2. Install the new driver:
```
mbed add <your RF driver address>
```

3. Recompile your application:
```
`mbed compile`
```