Skip to content

JPeace90/Sensor-node-6lowpan

Repository files navigation

Sensor-node-6lowpan

implementation of a wireless sensor network using 6LoWPAN protocol, RPL protocol and Contiki OS


This sample application shows how to use SPIRIT1 radio and Contiki OS to enable UDP communication over 6LoWPAN network. This sample application configures a node to periodically send a message to a Gateway (Border Router).

To test this application you need:

  • one STM32 Nucleo board with its X-NUCLEO-IDS01A4 STM32 expansion board
  • a host PC running Windows or Linux (optional to print output to a serial line monitor)

On the STM32 Nucleo board this sample application for Udp-sender must be running.

Be sure to select the right X-NUCLEO-IDS01A4 or X-NUCLEO-IDS01A5 board in the code by setting the symbol X-NUCLEO-IDS01A4 for the 868MHz bandwidth, and X-NUCLEO-IDS01A5 for the 915MHz bandwidth


Hardware and Software environment

  • This example runs on STM32 Nucleo devices with X-NUCLEO-IDS01A4 or X-NUCLEO-IDS01A5 STM32 expansion board
  • This example has been tested with STMicroelectronics:
    • NUCLEO-L152RE RevC board
    • NUCLEO-F401RE RevC board and can be easily tailored to any other supported device and development board.

How to use it?

In order to make the program work, you must do the following:

  • WARNING: before opening the project with any toolchain be sure your folder installation path is not too in-depth since the toolchain may report errors after building.

  • Open IAR toolchain (see the release note for detailed information about the version). Alternatively you can use the Keil uVision toolchain (see the release note for detailed information about the version). Alternatively you can use the System Workbench for STM32 (see the release note for detailed information about the version).

  • Rebuild all files and load your image into target memory.

  • Run the example.

  • Alternatively, you can download the pre-built binaries in "Binary" folder included in the distributed package.

  • IMPORTANT NOTE: To avoid issues with USB connection (mandatory if you have USB 3.0), it is
    suggested to update the ST-Link/V2 firmware for STM32 Nucleo boards to the latest version. Please refer to the readme.txt file in the Applications directory for details.

Testing and debugging:

  • Open terminal emulator like tera-term
  • go to setup/terminal (Receive = AUTO, Trasmit = CR+LF, Local echo)
  • go to setup/Serialport (baud rate: 11500, data: 8 bit, parity: none, stop: 1 bit, flow control: none.)

END OF FILE -

About

implementation of a wireless sensor network using 6LoWPAN protocol, RPL protocol and Contiki OS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors