3. Demo

  1. The Sensor Node needs an Border Router. Border router is a network gateway between a wireless 6LoWPAN mesh network (with nodes like the Sensor Node) and a backhaul network. It controls and relays traffic between the two networks. In this demo, a 6LoWPAN border router is connected to another router in the backhaul network over Ethernet which in turn forwards traffic to/from the internet. We have used the NUCLEO_F429ZI board with the SPIRIT module X-NUCLEO-IDS01A4.
_images/network.jpg

You have to modify the boards in order to use them in this demo:

  • On the X-NUCLEO-IDS01A4:
    • Unmount resistor R4
    • Mount resistor R7
  • On the NUCLEO_F429ZI:
    • Open solder bridge SB121
    • Close solder bridge SB122
  1. Download our firmware. If you want build it by yourself please visit the github page nanostack-border-router.
  2. Connect the Border Router via mini-usb cable to the PC.
  3. Copy the nanostack-border-router.bin file in the mass-storage of the NUCLEO_F429ZI.
  4. Connect the Border Router via Ethernet cable to the router connected to the internet.
  5. Turn-on the Sensor Node. You can power supply the board with micro-USB cables from your PC.
  6. From the mbed Device Connector login and click on Dashboard link.
  7. On the dashboard page you can see if your device is connceted. In this case you will see the text 1 of 100:
_images/dashboard.jpg
  1. Click on API Console and then to Endpoint directory lookups:
_images/apiconsole.jpg
  1. Click on GET Endpoint’s resource representation:
_images/apiconsole2.jpg
  1. From the GET form you have to select:
  • your endpoint

Note

If you have more than one node, you can know the exact endpoint of the board through the security.h file. In this file it is written the endpoint, like #define MBED_ENDPOINT_NAME “4c7f10f6-bd47-4e3e-9450-35cad6fc157f”

  • the resource you want read, in this case /3200/0/5501
  • Then click on TEST API button.
_images/apiconsole3.jpg
  1. You will read the response decoded:
_images/apiconsole4.jpg