Running a simple 6LowPAN network consisting of one receiver node and one or more sensor nodes in a Sub-1GHz RF band

Similar documents
Getting started with FP-SNS-6LPNODE1 software for IoT sensor node connection to 6LoWPAN networks using sub-1ghz RF

Getting started with the FP-NET-6LPBLE1 function pack for 6LoWPAN IoT node connection to a smartphone via BLE interface

Getting started with MotionPM real-time pedometer library in X-CUBE-MEMS1 expansion for STM32Cube

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery. Features. Description

Getting started with MotionPM real-time pedometer library in X CUBE-MEMS1 expansion for STM32Cube

UM2350. Getting started with MotionPW real-time pedometer for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Getting started with the FP-SNS-ALLMEMS1 Bluetooth low energy and sensors software expansion for STM32Cube

Getting started with the ultra-low-power STM32 and LoRa Nucleo pack

UM2276. Getting started with MotionSD standing vs sitting desk detection library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

UM2084 User manual. Getting started with the ultra-low-power STM32 and LoRa Nucleo pack. Introduction

NUCLEO-L433RC-P NUCLEO-L452RE-P

32L476GDISCOVERY. Discovery kit with STM32L476VG MCU. Features. Description

DT0095 Design tip. Datalogging the SensorTile through a PC. Purpose and benefits. Description

UM2216 User manual. Getting started with MotionFA fitness activity library in X CUBE MEMS1 expansion for STM32Cube. Introduction

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on the STUSB1602

P-NUCLEO-IKA02A1. STM32 Nucleo pack: electrochemical toxic gas sensor expansion board with CO sensor. Description. Features

Getting started with osxmotiongc gyroscope calibration library for X-CUBE-MEMS1 expansion for STM32Cube

P-NUCLEO-USB001. STM32 Nucleo pack for USB Type-C and Power Delivery Data brief. Features. Description

Version (Apr 28, 2016)

STSW-BNRG-Mesh. Mesh over Bluetooth low energy. Features. Description. Applications

UM2194. Getting started with MotionAW activity recognition for wrist library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

EVALKITSTKNX. Miniature transceiver STKNX evaluation and development kit. Features

USB Type-C and Power Delivery Nucleo pack with NUCLEO-F072RB expansion board based on STUSB1602. Description

Getting started with MotionMC magnetometer calibration library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

Getting started with the X-CUBE-IKA02A1 multifunctional software expansion for STM32Cube

UM1982 User manual. Multi-Sensor RF 868 MHz platform. Introduction

Getting started with X-CUBE-LED channel LED driver software expansion based on LED1642GW for STM32Cube

UM2192. Getting started with MotionMC magnetometer calibration library in X-CUBE-MEMS1 expansion for STM32Cube. User manual.

Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo. Description

STSW-BLUENRG1-DK. BlueNRG-1, BlueNRG-2 DK SW package

Quick Start Guide. STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to smartphone through a BLE interface (FP-NET-6LPBLE1)

Getting started with MotionAR activity recognition library in X-CUBE-MEMS1 expansion for STM32Cube

This design tip applies to all accelerometers, ecompass modules, and inemo inertial IMUs from STMicroelectronics.

UM1978 User manual. Multi-sensor RF platform sensor board. Introduction

STM32L4R9I-EVAL. Evaluation board with STM32L4R9AI MCU. Features

AN4624 Application note

NUCLEO-L496ZG. STM32 Nucleo-144 board. Features. Description

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

STM32H7x3I-EVAL. Evaluation board with STM32H7x3XI MCUs. Data brief. Features

Getting started with osxmotionmc magnetometer calibration library for X-CUBE-MEMS1 expansion for STM32Cube

Bluetooth low energy profiles for the X-CUBE-BLE1 expansion for STM32Cube. Description

Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube

UM2045 User manual. Getting started with the X-CUBE-NFC3 near field communication transceiver software expansion for STM32Cube.

Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery with the Nucleo-F072RB board and the STUSB1602

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

Quick Start Guide STM32 ODE Function Pack for IoT sensor node connection to 6LoWPAN networks through sub-1ghz RF communication (FP-SNS-6LPNODE1)

How to configure the BlueNRG-1 and BlueNRG-2 devices in network coprocessor mode. Main components Bluetooth Low Energy wireless system-on-chip

Quick Start Guide. Contiki OS and 6LoWPAN sub-1ghz RF communication software expansion for STM32 Cube (Contiki6LP) Version 1.3 (December 10, 2018)

IoT node with BLE connectivity, digital microphone, environmental and motion sensors, motion and audio middleware libraries.

Main components MEMS motion sensor: low power high g 3-axis digital accelerometer inemo inertial module: 3D accelerometer and 3D gyroscope

32F469IDISCOVERY. Discovery kit with STM32F469NI MCU. Features. Description

Getting started with the X-CUBE-NFC5 high performance HF reader / NFC initiator IC software expansion for STM32Cube

STEVAL-BCNKT01V1. BlueCoin Starter kit. Features. Description

Wi-Fi expansion board based on SPWF01SA module for STM32 Nucleo. Description

32F746GDISCOVERY. Discovery kit with STM32F746NG MCU. Features. Description

32F412GDISCOVERY. Discovery kit with STM32F412ZG MCU. Features. Description

UM2361. Getting started with the ST BlueNRG-Mesh ios application. User manual. Introduction

STSW-BNRGUI. BlueNRG GUI SW package. Data brief. Features. Description

TN1235 Technical note

Getting started with the FP-IND-PLCWIFI1 function pack for PLC management via Wi-Fi

X-NUCLEO-53L0A1. Ranging and gesture detection sensor expansion board based on VL53L0X for STM32 Nucleo. Description. Features

X-NUCLEO-53L1A1. Long distance ranging Time-of-Flight sensor expansion board based on VL53L1X for STM32 Nucleo. Description.

Getting started with the digital MEMS microphone expansion board based on MP34DT01-M for STM32 Nucleo

STEVAL-STLKT01V1. SensorTile development kit. Description. Features

Quick Start Guide (V1.0 May2015) Dynamic NFC tag expansion board based on M24SR for STM32 NUCLEO (X-NUCLEO-NFC01A1)

UM1853 User manual. STM32CubeF1 Nucleo demonstration firmware. Introduction

Getting started with the X-CUBE-53L1A1 Time-of-Flight long distance ranging sensor software expansion for STM32Cube

UM2051 User manual. Getting started with the STM32 Nucleo pack for USB Type-C and Power Delivery. Introduction

STSW-STWBCFWDT. STWBC firmware downloader tool. Description. Features

Getting started with the P-NUCLEO-IKA02A1 STM32 Nucleo pack for electrochemical toxic gas sensor expansion board with CO sensor

Getting started with STEVAL-IDB007V1 and STEVAL-IDB008V1 evaluation boards

How to upgrade the firmware on the STEVAL-USBC2DP USB Type-C to DisplayPort adapter

Using the GPIOs and interrupt controller to drive LEDs on STM8 Nucleo-64 boards

Quick Start Guide. Long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo (X-NUCLEO-53L1A1) Version (February 20, 2018)

ST25DV-DISCOVERY. Discovery kit for the ST25DV04K dynamic NFC/RFID tag. Features

Description. January 2019 DB2381 Rev 3 1/5

Quick Start Guide. High power stepper motor driver expansion board based on powerstep01 for STM32 Nucleo (X-NUCLEO-IHM03A1)

UM2495. High performance HF reader / NFC initiator IC software expansion for NUCLEO-8S208RB. User manual. Introduction

Getting started with VL53L0X ranging and gesture detection sensor software expansion for STM32Cube

Software GUI user guide for STEVAL-ISV021V1, STEVAL- IDS002V1 and STEVAL-IDS003V1 evaluation boards

Quick Start Guide. GNSS expansion board based on Teseo-LIV3F module for STM32 Nucleo (X-NUCLEO-GNSS1A1) Version 2.1 (Nov 9, 2018)

Quick Start Guide. Dual-channel high side driver expansion board based on VPS2535H for STM32 Nucleo (X-NUCLEO-IPS02A1) Version 1.0 (Sept.

Getting started with the STSW-BCNKT01 software package for STEVAL-BCNKT01V1 based on STM32Cube

Quick Start Guide. Bipolar stepper motor driver expansion board based on L6208 for STM32 Nucleo (X-NUCLEO-IHM05A1) Version 1.1.

Getting started with the software package for STEVAL-STLKT01V1 based on STM32Cube

Quick Start Guide. Dynamic NFC/RFID tag IC expansion board based on ST25DV04K for STM32 Nucleo (X-NUCLEO-NFC04A1) Version 1.

L9958 Evaluation board for high current (8.6A) DC and Stepper Motors. Description

Quick Start Guide. STM32Cube function pack for IoT sensor node with telemetry and device control applications for Amazon AWS Cloud (FP-CLD-AWS1)

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

Computing tilt measurement and tilt-compensated e-compass

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Getting started with X-NUCLEO-53L1A1 long distance ranging ToF sensor expansion board based on VL53L1X for STM32 Nucleo

P-NUCLEO-53L1A1. VL53L1X nucleo pack with X-NUCLEO-53L1A1 expansion board and STM32F401RE nucleo board. Description. Features

Quick Start Guide. Stepper motor driver expansion board based on L6474 for STM32 Nucleo (X-NUCLEO-IHM01A1) Version 1.2.

Motor control power board based on the SLLIMM-nano 2 nd series

Quick Start Guide. Bluetooth Low Energy expansion board based on SPBTLE-RF module for STM32 Nucleo (X-NUCLEO-IDB05A1) Version 1.

Description. July 2016 DocID Rev 2 1/6

STEVAL-BFA001V1B. Predictive maintenance kit with sensors and IO-Link capability. Data brief. Features. Description

Power line communication expansion board based on ST7580 for STM32 Nucleo. Description

Transcription:

DT0067 Design tip Running a simple 6LowPAN network consisting of one receiver node and one or more sensor nodes in a Sub-1GHz RF band By Salvo Bonina Main components SPSGRF X-NUCLEO-IDS01A4 X-NUCLEO-IDS01A5 X-NUCLEO-IKS01A1 NUCLEO-L152RE STM32L152RET6 Sub-GHz (868 or 915 MHz) low power programmable RF transceiver modules Sub-1 GHz RF expansion board based on the SPSGRF-868 module for Sub-1 GHz RF expansion board based on the SPSGRF-915 module for Motion MEMS and environmental sensor expansion board for STM32 Nucleo -64 development board with STM32L152RE MCU, supports Arduino and ST morpho connectivity Ultra-low-power 32-bit MCU ARM -based Cortex -M3 with 512KB Flash, 80KB SRAM, 16KB EEPROM, LCD, USB, ADC, DAC Purpose and benefits Description This design tip explains how one receiving and multiple transmitting boards running the Contiki operating system s 6LoWPAN protocol stack and related applications can exchange and process sensor data. Each of these boards is equipped with one of either the X-NUCLEO-IDS01A4 or X-NUCLEO-IDS01A5 Sub 1 GHz RF X-Nucleo expansion board, but they all must be the same type. Additionally, each transmitting mode is equipped with one X-NUCLEO-IKS01A1 motion MEMS and environmental sensors X- Nucleo expansion board to generate data for transmission. HARDWARE PREREQUISITES The complete list of the hardware (HW) prerequisites is the following: Receiver node (one unit): 1 NUCLEO-L152RE board 1 X-NUCLEO-IDS01A4 Sub-1 GHz RF expansion board based on the SPSGRF- 868 module or alternatively 1 X-NUCLEO-IDS01A5 Sub-1 GHz RF expansion board based on the SPSGRF-915 module August 2016 DT0067 Rev 1 1/6

Sensor nodes (2 or more units): 2 or more NUCLEO-L152RE boards 2 or more X-NUCLEO-IDS01A4 Sub-1 GHz RF expansion boards based on the SPSGRF-868 module or alternatively 2 or more X-NUCLEO-IDS01A5 Sub-1 GHz RF expansion boards based on the SPSGRF-915 module, but they must agree with the Receiver board. 2 or more X-NUCLEO-IKS01A1 Motion MEMS and environmental sensor expansion boards System setup: 1 Laptop/PC with Windows 7/8 3 or more USB type A to Mini-B USB cables for connecting and supplying power to the 3 or more boards. The complete system is shown in Figure 1. Figure 1: System Setup SOFTWARE PREREQUISITES osxcontiki6lp software available for download from http:// or from Contiki GitHub repository: https://github.com/contiki-os/contiki ST-LINK/V2-1 USB driver A serial terminal emulator, e.g. Tera Term August 2016 DT0067 Rev 1 2/6

SOLUTION DESCRIPTION For your convenience, use the binary files for the firmware of each example: \Projects\Multi\Applications\Contiki\ Or https://github.com/stclab/stm32nucleo-spirit1-examples/tree/master/binaries In the second case, you can use the following folders for 868MHz and 915 bandwidth respectively 868-MHz 915-MHz Programming the sensor node Connect the Wireless Sensor Board to a PC USB slot and program the device. Copy one of the binary files provided in the folder \Projects\Multi\Applications\Contiki\Udp-sender\Binary\STM32L152RE-Nucleo between STM32L1xx-Nucleo-Udp_sender_IDS01A4.bin (for 868MHz) or STM32L1xx-Nucleo-Udp_sender_IDS01A5.bin (for 915MHz). You can use the drag & drop feature to the USB mass storage drive corresponding to the STM32 Nucleo board. Programming the Receiver node Connect the board to the USB and program the device. Copy one of the binary files provided in the folder \Projects\Multi\Applications\Contiki\Udp-receiver\Binary\STM32L152RE-Nucleo between STM32L1xx-Nucleo-Udp_receiver_IDS01A4.bin for 868MHz or STM32L1xx-Nucleo-Udp_receiver_IDS01A5.bin for 915MHz (e.g. drag & drop) to the USB mass storage corresponding to the board. The user can connect the Receiver node to the PC and using a terminal emulator (e.g. TeraTerm), display the content of all packets received from the one or more Sensor nodes. The data includes temperature, humidity, and pressure from the environmental sensors and the 3-dimensional data from the accelerometer, gyroscope, and magnetometer. Additionally, some radio parameters are displayed as follows: RSSI: Received Signal Strength Indicator. This is a measure of the received signal power at the antenna in the channel selected. The measured power is reported in steps of half a db from 0 to 255 and is offset in such a way that -120 dbm corresponds to 20. LQI: Link Quality Indicator. This represents the signal quality versus the noise received, measured after demodulation. Higher values mean better quality and less noise. The terminal emulator should be configured as follows (in the pictures below, the setup for TeraTerm is shown): August 2016 DT0067 Rev 1 3/6

- Click on Setup and Serial port to configure the parameters as shown in Figure 2. Note that the COM port must match the one assigned by Microsoft Windows to the Receiver node. Figure 2: Serial port setup - Click on Setup and Terminal to configure the parameters as in Figure 3. Figure 3: Terminal setup As soon as the Sensor nodes join the network created by the Receiver node, the Sensor nodes begin transmitting the sensor data to the Receiver node and the Receiver node displays the data on the terminal as illustrated in Figure 4. The data displayed includes the IPv6 address of the Sensor node which sent the packet. Figure 4: Terminal emulator output on the receiver board August 2016 DT0067 Rev 1 4/6

Support material Related design support material X-NUCLEO-IKS01A1: Motion MEMS and environmental sensor expansion board for STM32 Nucleo X-NUCLEO-IDS01A4: Sub-1 GHz RF expansion board based on the SPSGRF-868 module for X-NUCLEO-IDS01A5: Sub-1 GHz RF expansion board based on the SPSGRF-915 module for NUCLEO-L152RE: -64 development board with STM32L152RE MCU, supports Arduino and ST morpho connectivity Documentation DS10619: X-NUCLEO-IKS01A1, Motion MEMS and environmental sensor expansion board for DB2884: Contiki OS/6LoWPAN middleware add-on for X-CUBE-SUBG1 expansion for STM32Cube DB2552: X-NUCLEO-IDS01A4, Sub-1 GHz RF expansion board based on the SPSGRF-868 module for DB2553: X-NUCLEO-IDS01A5, Sub-1 GHz RF expansion board based on the SPSGRF-915 module for UM2040: Getting started with osxcontiki6lp, Contiki OS and 6LoWPAN sub-1ghz RF communications software expansion for STM32Cube UM1872: Getting started with the Sub-1 GHz expansion board based on SPSGRF-868 and SPSGRF-915 modules for UM1820: Getting started with motion MEMS and environmental sensor expansion board for UM1724: -64 boards DS10955: Sub-GHz (868 or 915 MHz) low power programmable RF transceiver modules DS10002: STM32L152RE, Ultra-low-power 32-bit MCU ARM -based Cortex -M3 Revision history Date Version Changes 22-Aug-2016 1 Initial release August 2016 DT0067 Rev 1 5/6

IMPORTANT NOTICE PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products. No license, express or implied, to any intellectual property right is granted by ST herein. Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product. ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces information previously supplied in any prior versions of this document. 2016 STMicroelectronics All rights reserved August 2016 DT0067 Rev 1 6/6