Skip to content

Commit 1fd5b21

Browse files
authored
Update README.md with more detailed instructions
1 parent 5d94bbb commit 1fd5b21

File tree

1 file changed

+49
-8
lines changed

1 file changed

+49
-8
lines changed

README.md

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,69 @@
22

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

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+
516
See the file `mbed_app.json` for an example of defining an IEEE 802.15.4 channel to use.
617

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
832

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.
1034

11-
To change drivers:
35+
### Update the firmware of the Border Router
1236

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:
1444

1545
```
16-
mbed remove atmel-rf-driver
46+
connected. IP = 2001:db8:a0b:12f0::1
1747
```
1848

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.
2054

55+
To change the RF driver:
56+
57+
1. Uninstall the default driver:
2158
```
22-
mbed add <your RF driver address>
59+
mbed remove atmel-rf-driver
2360
```
2461

25-
__3__
62+
2. Install the new driver:
63+
```
64+
mbed add <your RF driver address>
65+
```
2666

67+
3. Recompile your application:
2768
```
2869
`mbed compile`
2970
```

0 commit comments

Comments
 (0)