Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 6f1f23f

Browse files
authored
Merge pull request #197 from ARMmbed/doc_fix
Moved the problem chapter under Building.
2 parents 30e8432 + 4401002 commit 6f1f23f

File tree

1 file changed

+48
-50
lines changed

1 file changed

+48
-50
lines changed

README.md

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ The application:
1818
* mbed 6LoWPAN shield (AT86RF212B/[AT86RF233](https://firefly-iot.com/product/firefly-arduino-shield-2-4ghz/)) for 6LoWPAN ND and Thread.
1919
* Ethernet cable and connection to the internet.
2020

21-
## Supported Target hardware configurations
21+
## Supported target hardware configurations
2222

2323
This example has been tested in following configuration
2424
* K64F + NXP MCR20 15.4 shield (mesh `NANOSTACK_FULL` mode)
2525
* NUCLEO_F429ZI + ATMEL AT233 15.4 shield (mesh `LOWPAN_ROUTER` mode)
2626
* K64F (Ethernet)
2727
* NUCLEO_F429ZI (Ethernet)
2828
* UBLOX_EVK_ODIN_W2 (WiFi & Ethernet - use the supplied `configs/eth_v4.json` for Ethernet)
29-
* K64F + GROVE SEEED shield (Wifi)
30-
* NUCLEO_F429ZI + GROVE SEEED shield (Wifi)
29+
* K64F + GROVE SEEED shield (WiFi)
30+
* NUCLEO_F429ZI + GROVE SEEED shield (WiFi)
3131

3232
Apart from this, this example can work on other mbed OS supported hardware boards which support any of the given network interface including Ethernet, WiFi, Mesh (6LoWPAN) or Thread, provided the configuration fulfills condition that the target hardware has TLS entropy implemented for it and the complete example configuration of mbed Client, selected network interface and mbed OS components fits into hardware's given memory size (Flash size and RAM size).
3333

@@ -59,9 +59,9 @@ To configure the example application:
5959
1. [Set the client credentials](#client-credentials).
6060
1. [Change 6LoWPAN ND & Thread settings](#6lowpan-nd-and-thread-settings).
6161
1. [Change Ethernet settings](#ethernet-settings).
62-
1. [Change Wi-Fi settings](#wi-fi-settings).
62+
1. [Change WiFi settings](#wifi-settings).
6363
1. [Set up an IP address](#ip-address-setup). This step is optional.
64-
1. [Change the socket type](#changing-socket-type). This step is optional.
64+
1. [Change the socket type](#changing-the-socket-type). This step is optional.
6565

6666
### Connection type
6767

@@ -86,7 +86,7 @@ To register the application with the Connector service, you need to create and s
8686

8787
First, you need to select the RF driver to be used by the 6LoWPAN/Thread stack. This example supports [AT86RF233/212B](https://github.com/ARMmbed/atmel-rf-driver) and [NXP-MCR20a](https://github.com/ARMmbed/mcr20a-rf-driver) radio shields.
8888

89-
To add the Atmel driver to you application from command line, call: `mbed add https://github.com/ARMmbed/atmel-rf-driver`.
89+
To add the Atmel driver to your application from the command line, call: `mbed add https://github.com/ARMmbed/atmel-rf-driver`.
9090
Please make sure that the `mbed_app.json` file points to the correct radio driver type:
9191

9292
```json
@@ -132,7 +132,7 @@ Alternatively, you can remove the link layer security from the `k64f-border-rout
132132

133133
#### mbed gateway
134134

135-
To connect the example application in 6LoWPAN ND or Thread mode to Connector, you need to set up an mbed 6LoWPAN gateway router as follows:
135+
To connect the example application in 6LoWPAN ND or Thread mode to mbed Device Connector, you need to set up an mbed 6LoWPAN gateway router as follows:
136136

137137
1. Use an Ethernet cable to connect the mbed 6LoWPAN gateway router to the internet.
138138
2. Use a micro-USB cable to connect the mbed 6LoWPAN gateway router to your computer. The computer will list the router as removable storage.
@@ -141,7 +141,7 @@ To connect the example application in 6LoWPAN ND or Thread mode to Connector, yo
141141
* For the **6LoWPAN ND** bootstrap, use `gateway6LoWPANDynamic.bin`.
142142
* For the **Thread** bootstrap, use `gatewayThreadDynamic.bin`.
143143

144-
The dynamic binaries use IPv6 autoconfiguration and enable the client to connect to the Connector service. The static binaries create a site-local IPv6 network and packets cannot be routed outside.
144+
The dynamic binaries use IPv6 autoconfiguration and enable the client to connect to the mbed Device Connector service. The static binaries create a site-local IPv6 network and packets cannot be routed outside.
145145

146146
4. Copy the gateway binary file to the mbed 6LoWPAN gateway router to flash the device. The device reboots automatically after flashing. If that does not happen, press the **Reset** button on the board.
147147

@@ -186,7 +186,7 @@ For running the example application using Ethernet, you need:
186186
- An Ethernet cable.
187187
- An Ethernet connection to the internet.
188188

189-
### Wi-Fi settings
189+
### WiFi settings
190190

191191
The example application uses ESP8266 WiFi Interface for managing the wireless connectivity. To run this application using WiFi, you need:
192192

@@ -231,11 +231,9 @@ For example, NUCLEO_F401RE requires a different serial connection:
231231
}
232232
```
233233

234-
235234
### IP address setup
236235

237-
This example uses IPv4 to communicate with the [mbed Device Connector Server](https://api.connector.mbed.com) except for 6LoWPAN ND and Thread. However, you can easily change it to IPv6
238-
by changing the mbed_app.json you make:
236+
This example uses IPv4 to communicate with the [mbed Device Connector Server](https://api.connector.mbed.com) except for 6LoWPAN ND and Thread. However, you can easily change it to IPv6 by changing the `mbed_app.json` you make:
239237
```
240238
"target_overrides": {
241239
"*": {
@@ -245,15 +243,15 @@ by changing the mbed_app.json you make:
245243
"mbed-trace.enable": 0
246244
}
247245
```
248-
by modifying the ipv4-enable or ipv6-enable to true/false. Only one should be true.
246+
by modifying the `ipv4-enabled` or `ipv6-enabled` to `true/false`. Only one should be true.
249247

250248
The example program should automatically get an IP address from the router when connected over Ethernet or WiFi.
251249

252250
If your network does not have DHCP enabled, you have to manually assign a static IP address to the board. We recommend having DHCP enabled to make everything run smoothly.
253251

254-
### Changing socket type
252+
### Changing the socket type
255253

256-
Your device can connect to mbed Device Connector via UDP or TCP binding mode. The default and only allowed value is UDP for Thread and 6LowPan. TCP is the default for other connections. The binding mode cannot be changed in 6LoWPAN ND or Thread mode.
254+
Your device can connect to mbed Device Connector via UDP or TCP binding mode. The default and only allowed value is UDP for Thread and 6LoWPAN. TCP is the default for other connections. The binding mode cannot be changed in 6LoWPAN ND or Thread mode.
257255

258256
To change the binding mode:
259257

@@ -314,6 +312,41 @@ To build the example using mbed CLI:
314312
315313
Import this repository in the Online IDE and continue from step 3 onwards.
316314
315+
### Compilation problems
316+
317+
If you encounter a problem like this when compiling the application:
318+
319+
```
320+
Building project mbed-os-example-client (K64F, GCC_ARM)
321+
Scan: .
322+
Scan: FEATURE_LWIP
323+
Scan: FEATURE_UVISOR
324+
Scan: FEATURE_COMMON_PAL
325+
Scan: FEATURE_BLE
326+
Scan: FEATURE_STORAGE
327+
Scan: FEATURE_THREAD_BORDER_ROUTER
328+
Scan: FEATURE_THREAD_ROUTER
329+
Scan: FEATURE_LOWPAN_BORDER_ROUTER
330+
Scan: FEATURE_LOWPAN_ROUTER
331+
Scan: FEATURE_LOWPAN_HOST
332+
Scan: FEATURE_NANOSTACK_FULL
333+
Scan: FEATURE_NANOSTACK
334+
Scan: FEATURE_THREAD_END_DEVICE
335+
Scan: mbed
336+
Scan: env
337+
Compile [ 0.3%]: NanostackRfPhyAtmel.cpp
338+
[ERROR] ./atmel-rf-driver/source/NanostackRfPhyAtmel.cpp:18:44: fatal error: nanostack/platform/arm_hal_phy.h: No such file or directory
339+
compilation terminated.
340+
```
341+
342+
You are probably using the LWIP stack with Ethernet or WiFi and you have the mesh RF stacks in the root of this example. You need to tell mbed NOT to compile the related files. To do that, set up a `.mbedignore` file. An example file is available in the `configs` folder.
343+
344+
This should resolve the issue:
345+
346+
```
347+
cp configs/eth-wifi-mbedignore ./.mbedignore
348+
```
349+
317350
## Monitoring the application
318351
319352
The application prints debug messages over the serial port, so you can monitor its activity with a serial port monitor. The application uses baud rate 115200.
@@ -375,38 +408,3 @@ The application exposes three [resources](https://docs.mbed.com/docs/mbed-device
375408
376409
To learn how to get notifications when resource 1 changes, or how to use resources 2 and 3, read the [mbed Device Connector Quick Start](https://github.com/ARMmbed/mbed-connector-api-node-quickstart).
377410
378-
#### Compilation problems?
379-
380-
If you encounter a problem like this when compiling the application:
381-
382-
```
383-
Building project mbed-os-example-client (K64F, GCC_ARM)
384-
Scan: .
385-
Scan: FEATURE_LWIP
386-
Scan: FEATURE_UVISOR
387-
Scan: FEATURE_COMMON_PAL
388-
Scan: FEATURE_BLE
389-
Scan: FEATURE_STORAGE
390-
Scan: FEATURE_THREAD_BORDER_ROUTER
391-
Scan: FEATURE_THREAD_ROUTER
392-
Scan: FEATURE_LOWPAN_BORDER_ROUTER
393-
Scan: FEATURE_LOWPAN_ROUTER
394-
Scan: FEATURE_LOWPAN_HOST
395-
Scan: FEATURE_NANOSTACK_FULL
396-
Scan: FEATURE_NANOSTACK
397-
Scan: FEATURE_THREAD_END_DEVICE
398-
Scan: mbed
399-
Scan: env
400-
Compile [ 0.3%]: NanostackRfPhyAtmel.cpp
401-
[ERROR] ./atmel-rf-driver/source/NanostackRfPhyAtmel.cpp:18:44: fatal error: nanostack/platform/arm_hal_phy.h: No such file or directory
402-
compilation terminated.
403-
```
404-
405-
You probably have the LWIP stack in use with Ethernet or WiFi and you have the mesh RF stacks in the root of this example. You need to tell mbed NOT to compile the related files. To do that, set up a `.mbedignore` file. An example file is available in the `configs` folder.
406-
407-
This should resolve the issue:
408-
409-
```
410-
cp configs/eth-wifi-mbedignore ./.mbedignore
411-
```
412-

0 commit comments

Comments
 (0)