|
2 | 2 |
|
3 | 3 | This applications is the simplest one to utilizes our Mesh networking stack. All it does is join the unsecure *6LoWPAN-ND* network. |
4 | 4 |
|
| 5 | +## Setup |
| 6 | + |
| 7 | +### Download the application |
| 8 | + |
| 9 | +``` |
| 10 | +mbed import mbed-os-example-mesh-minimal |
| 11 | +cd mbed-os-example-mesh-minimal |
| 12 | +``` |
| 13 | + |
| 14 | +### Optional: change channel settings |
| 15 | + |
5 | 16 | See the file `mbed_app.json` for an example of defining an IEEE 802.15.4 channel to use. |
6 | 17 |
|
7 | | -## Changing the radio driver |
| 18 | +### Compile the application |
| 19 | + |
| 20 | +``` |
| 21 | +mbed compile -m K64F -t GCC_ARM |
| 22 | +``` |
| 23 | + |
| 24 | +A binary should be generated at the end of the build process. |
| 25 | + |
| 26 | +### Connect the RF shield to the board |
| 27 | + |
| 28 | +By default we are using the Atmel AT86RF233 which can be purchased [here](https://firefly-iot.com/product/firefly-arduino-shield-2-4ghz/). |
| 29 | +Place the shield on top of your board and power it up. |
| 30 | + |
| 31 | +### Program the target |
8 | 32 |
|
9 | | -In order to run a 6LoWPAN-ND network, you need a working RF driver for Nanostack. This example uses the Atmel AT86RF233. |
| 33 | +Drag and drop to the target to program the application. |
10 | 34 |
|
11 | | -To change drivers: |
| 35 | +### Update the firmware of the Border Router |
12 | 36 |
|
13 | | -__1__ |
| 37 | +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). |
| 38 | + |
| 39 | +Please do not forget to connect the Ethernet cable between the Border Router and your home/office router. Then power up the board. |
| 40 | + |
| 41 | +## Testing |
| 42 | + |
| 43 | +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: |
14 | 44 |
|
15 | 45 | ``` |
16 | | -mbed remove atmel-rf-driver |
| 46 | +connected. IP = 2001:db8:a0b:12f0::1 |
17 | 47 | ``` |
18 | 48 |
|
19 | | -__2__ |
| 49 | +You can use this IP address to `ping` from your PC and verify that the connection is working correctly. |
| 50 | + |
| 51 | +### Optional: changing the radio driver |
| 52 | + |
| 53 | +In order to run a 6LoWPAN-ND network, you need a working RF driver for Nanostack. This example uses the Atmel AT86RF233 by default. |
20 | 54 |
|
| 55 | +To change the RF driver: |
| 56 | + |
| 57 | +1. Uninstall the default driver: |
21 | 58 | ``` |
22 | | -mbed add <your RF driver address> |
| 59 | +mbed remove atmel-rf-driver |
23 | 60 | ``` |
24 | 61 |
|
25 | | -__3__ |
| 62 | +2. Install the new driver: |
| 63 | +``` |
| 64 | +mbed add <your RF driver address> |
| 65 | +``` |
26 | 66 |
|
| 67 | +3. Recompile your application: |
27 | 68 | ``` |
28 | 69 | `mbed compile` |
29 | 70 | ``` |
0 commit comments