You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
* 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)
31
31
32
32
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).
33
33
@@ -59,9 +59,9 @@ To configure the example application:
59
59
1.[Set the client credentials](#client-credentials).
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.
65
65
66
66
### Connection type
67
67
@@ -86,7 +86,7 @@ To register the application with the Connector service, you need to create and s
86
86
87
87
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.
88
88
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`.
90
90
Please make sure that the `mbed_app.json` file points to the correct radio driver type:
91
91
92
92
```json
@@ -132,7 +132,7 @@ Alternatively, you can remove the link layer security from the `k64f-border-rout
132
132
133
133
#### mbed gateway
134
134
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:
136
136
137
137
1. Use an Ethernet cable to connect the mbed 6LoWPAN gateway router to the internet.
138
138
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
141
141
* For the **6LoWPAN ND** bootstrap, use `gateway6LoWPANDynamic.bin`.
142
142
* For the **Thread** bootstrap, use `gatewayThreadDynamic.bin`.
143
143
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.
145
145
146
146
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.
147
147
@@ -186,7 +186,7 @@ For running the example application using Ethernet, you need:
186
186
- An Ethernet cable.
187
187
- An Ethernet connection to the internet.
188
188
189
-
### Wi-Fi settings
189
+
### WiFi settings
190
190
191
191
The example application uses ESP8266 WiFi Interface for managing the wireless connectivity. To run this application using WiFi, you need:
192
192
@@ -231,11 +231,9 @@ For example, NUCLEO_F401RE requires a different serial connection:
231
231
}
232
232
```
233
233
234
-
235
234
### IP address setup
236
235
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:
239
237
```
240
238
"target_overrides": {
241
239
"*": {
@@ -245,15 +243,15 @@ by changing the mbed_app.json you make:
245
243
"mbed-trace.enable": 0
246
244
}
247
245
```
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.
249
247
250
248
The example program should automatically get an IP address from the router when connected over Ethernet or WiFi.
251
249
252
250
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.
253
251
254
-
### Changing socket type
252
+
### Changing the socket type
255
253
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.
257
255
258
256
To change the binding mode:
259
257
@@ -314,6 +312,41 @@ To build the example using mbed CLI:
314
312
315
313
Import this repository in the Online IDE and continue from step 3 onwards.
316
314
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
+
317
350
## Monitoring the application
318
351
319
352
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
375
408
376
409
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).
377
410
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.
0 commit comments