quick start guide fp-net-6lpwifi1 · building block approach 20 the building blocks your need our...

20
Version 1.0 (December 15, 2017) Quick Start Guide STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to the Internet through an Ethernet Network (FP-NET-6LPETH1)

Upload: others

Post on 24-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Version 1.0 (December 15, 2017)

Quick Start GuideSTM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to

the Internet through an Ethernet Network

(FP-NET-6LPETH1)

Page 2: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Quick Start Guide Contents2

FP-NET-6LPETH1: STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to the Internet through an Ethernet Network

Hardware and Software overview

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Page 3: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Sub-1 GHz RF expansion boards

Hardware Overview (1/5) 3

SPSGRF-868 or

SPSGRF-915 (*)

X-NUCLEO-IDS01A4/5 Hardware description

• The X-NUCLEO-IDS01A4, X-NUCLEO-IDS01A5

are evaluation boards based on the SPIRIT1 RF

modules SPSGRF-868 and SPSGRF-915

• The SPIRIT1 module communicates with the

STM32 Nucleo developer board host

microcontroller though an SPI link available on the

Arduino UNO R3 connector.

EEPROM

Arduino UNO R3 connector

Key products on board

SPSGRF

Sub-GHz (868 or 915 MHz) low power

programmable RF transceiver modules

SPIRIT1

Low data-rate, low-power sub-1GHz transceiver)

module

M95640-R

64 Kbit SPI bus EEPROM with high-speed clock

Latest info available at www.st.com

X-NUCLEO-IDS01A4

X-NUCLEO-IDS01A5

(*) Identification of the operating frequency of the X-NUCLEO-

IDS01Ax (x=4 or 5) is performed through two resistors (R14 and R15).

Page 4: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

FP-NET-6LPETH1 Sub-1GHz and Ethernet software

Software Overview 4

Overall Software Architecture

Latest info available at www.st.com

FP-NET-6LPETH1

FP-NET-6LPETH1 Software Description

FP-NET-6LPETH1 is an STM32 ODE function pack. Thanks to this

package you can connect your IoT node inside a 6LoWPAN

Wireless Sensors Network to the Internet, through an Ethernet

network, leveraging IP64/NAT64 technology. A sample application is

provided to access the resources (e.g. sensors or actuators) on the

6LoWPAN nodes by the means of a IoT Application protocol like, for

example, the OMA Lightweight M2M protocol.

Key features

• Complete firmware to connect 6LoWPAN and Ethernet networks

• Middleware libraries to support Contiki OS and Contiki 6LoWPAN

protocol stack 3.x

• Support for mesh networking technology via the standard RPL

protocol

• Sample implementations available for X-NUCLEO-IDS01A4 or X-

NUCLEO-IDS01A5 boards connected to a NUCLEO-F429ZI

board

• Easy portability across different MCU families, thanks to

STM32Cube

• Free, user-friendly license terms

Page 5: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Quick Start Guide Contents5

FP-NET-6LPETH1: STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to the Internet through an Ethernet Network

Hardware and Software overview

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Page 6: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

X-NUCLEO-IDS01A4

X-NUCLEO-IDS01A5

Setup & Demo Examples

HW prerequisites (1/2)

• 1x STM32 Nucleo Sub-1GHz RF expansion board

(X-NUCLEO-IDS01A4 or X-NUCLEO-IDS01A5)

• 1x STM32 Nucleo development board

(NUCLEO-F429ZI)

• 1x PC with Windows 7, 8 or 10

• 1x USB type A to micro USB type B cable

• 1x Ethernet cable (RJ45)

6

Micro USB

NUCLEO-F429ZI

Tera Term terminal (*)

running on PC

RouterPC

Router with Ethernet

ports, internet

connection and

DHCPv4 server

(*) or equivalent terminal

Additional requirements

STM32 Nucleo board equipped with the Sub-1GHz RF expansion board

Ethernet

Page 7: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Setup & Demo Examples

HW prerequisites (2/2)

Important note: two hardware modifications are required on both the NUCLEO-F429ZI and

the X-NUCLEO-IDS01Ax expansion board• These are needed in order to avoid resource usage conflicts between the two boards

• On NUCLEO-F429ZI the 0-Ohm resistance located at position SB121 must be moved to the position

SB122 (bottom side of the board, see picture 1)

• On X-NUCLEO-IDS01Ax the 0-Ohm resistance located at position R4 must be moved to the position R7

(upper side of the board, see picture 2)

7

Figure 1: HW modification on NUCLEO-F429ZI Figure 2: HW modification on X-NUCLEO-IDS01Ax

Page 8: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Setup & Demo Examples

HW prerequisites for the 6LoWPAN Nodes (OPTIONAL)• 1x STM32 Nucleo Sub-1GHz RF expansion board

(X-NUCLEO-IDS01A4 or X-NUCLEO-IDS01A5)

• 1x Motion MEMS and environmental sensor expansion board

(optional)

(X-NUCLEO-IKS01A2 or X-NUCLEO-IKS01A1)

• 1x STM32 Nucleo proximity, gesture and ambient light expansion

board (optional)

(X-NUCLEO-6180XA1)

• 1x STM32 Nucleo development board

(NUCLEO-F401RE)

• 1x USB type A to Mini-B USB cable

• The FP-SNS-6LPNODE1 Function Pack contains source code and

pre-compiled binary firmware files for demonstration and evaluation

purpose for three different wireless node configurations, as shown in

the following pictures, please refer to the relevant documentation.

8

Mini USB

NUCLEO-F401RE

X-NUCLEO-IKS01A2

X-NUCLEO-IKS01A1

(optional)

Node Configuration 1

NUCLEO-F401RE

+ X-NUCLEO-IDS01A4

(or X-NUCLEO-IDS01A5)

Node Configuration 2

NUCLEO-F401RE

+ X-NUCLEO-IDS01A4 (or X-NUCLEO-IDS01A5)

+ X-NUCLEO-IKS01A2 (or X-NUCLEO-IKS01A1)

Node Configuration 3

NUCLEO-F401RE

+ X-NUCLEO-IDS01A4

(or X-NUCLEO-IDS01A5)

+ X-NUCLEO-6180XA1

X-NUCLEO-6180XA1

(optional)

X-NUCLEO-IDS01A4

X-NUCLEO-IDS01A5

Page 9: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Setup & Demo Examples

SW prerequisites 9

• STSW-LINK009:

• ST-LINK/V2-1 USB driver

• STSW-LINK007:

• ST-LINK/V2-1 firmware upgrade

• FP-NET-6LPETH1

• Copy the .zip file content into a folder on your PC

• The package will contain source code example (Keil, IAR, System Workbench for STM32) based only on NUCLEO-F429ZI

Page 10: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

FP-NET-6LPETH1

Start coding in few minutes 10

Download & unpack

FP-NET-6LPETH1

Go to www.st.com/stm32ode-fp1

Select FP-NET-6LPETH12

3

4

5

Open the project example:

IP64Router

6

Download and install

STM32 Nucleo

ST-LINK/V2-1 USB driver

Modify and build the application

Docs

BSP, HAL and Drivers

6LoWPAN

Application examples

FP-NET-6LPETH1 package structure

Page 11: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

FP-NET-6LPETH1 – IP64Router Application

System Overview – End-to-End Deployment Example 11

Page 12: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

FP-NET-6LPETH1 – IP64Router ApplicationFirmware compilation, flashing and serial line configuration 12

Configure the serial line monitor (speed, data, parity, LF, …)

USB type A to Micro-B USB cable

Compile (or use the pre-built binary file)

and program the IP64Router firmware

Reset the MCU by pressing the RESET button on the STM32 Nucleo board

6LoWPAN-Ethernet Bridge

1

2

3

Router (with DHCPv4 server)

Ethernet cable

Page 13: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

FP-NET-6LPETH1 – IP64Router Application

Connecting the IP64Router to a Router/AP 13

Ethernet (auto)-Configuration

• At boot time, some parameters about

SPIRIT1 radio and Contiki

configuration are printed. They are not

all shown in this slide, please note in

particular the last three of them that

affect the IP64Router behavior. Most

important, we are assuming auto-

configuration via DHCPv4 protocol is

enabled (IP64_DHCP parameter).

• If the Router/AP the NUCLEO-F429ZI

is attached to provides the DHCPv4

server functionality, the IP64Router

application retrieves Ethernet

parameters via auto-configuration.

After this step the application is

running.

• By pressing the (Blue) User Button at

any time, the IPv4 address and

netmask associated to the embedded

Ethernet interface will be printed on

the console.

4

5

• IoT nodes leveraging a 6LoWPAN network over the SPIRIT1 radio

can now be connected to the Internet/Cloud services by means of

the IP64Router. An out-of-the box example using OMA-LWM2M

protocol is available in the FP-SNS-6LPNODE1 software package,

please refer to its documentation for additional information.

Page 14: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Documents & Related Resources

FP-NET-6LPETH1:

• DB3490: STM32 ODE function pack for connecting 6LoWPAN IoT nodes to the Internet through an Ethernet network – Data brief

• UM2341: Getting started with the FP-NET-6LPETH1 software package connecting 6LoWPAN IoT nodes to the Internet via Ethernet networks – User

Manual

• Software setup file

X-NUCLEO-IDS01A4:

• Gerber files, BOM, and schematics

• DB2552: Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo – Data brief

• UM1872: Getting started with the Sub-1 GHz expansion board based on the SPSGRF-868 and SPSGRF-915 modules for STM32 – User Manual

X-NUCLEO-IDS01A5:

• Gerber files, BOM, and schematics

• DB2553: Sub-1 GHz RF expansion board based on the SPSGRF-915 module for STM32 Nucleo – Data brief

• UM1872: Getting started with the Sub-1GHz expansion board based on the SPSGRF-868 and SPSGRF-915 modules for STM32 – User Manual

14

All documents are available in the DESIGN tab of the related products webpage

Consult www.st.com for the complete list

Page 15: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Quick Start Guide Contents15

FP-NET-6LPETH1: STM32 ODE Function Pack for connecting 6LoWPAN IoT Nodes to the Internet through an Ethernet Network

Hardware and Software overview

Setup & Demo Examples

Documents & Related Resources

STM32 Open Development Environment: Overview

Page 16: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

STM32 Open Development Environment

Fast, affordable Prototyping and Development 16

• The STM32 Open Development Environment (ODE) consists of a set of stackable boards

and a modular open SW environment designed around the STM32 microcontroller family.

www.st.com/stm32ode

Function Packs

(FP)

STM32Cube

development software

STM32 Nucleo

expansion boards

(X-NUCLEO)

STM32 Nucleo

development boards

STM32Cube

expansion software

(X-CUBE)

Page 17: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Power supply

through USB or

external source

Integrated debugging

and programming

ST-LINK probe

STM32 microcontroller

Complete product range

from ultra-low power to high-performance

ST morpho extension header

STM32 Nucleo

Development Boards (NUCLEO)

• A comprehensive range of affordable development boards for all the STM32

microcontroller series, with unlimited unified expansion capabilities and integrated

debugger/programmer functionality.

17

www.st.com/stm32nucleo

Arduino™ UNO R3 extension headers

Page 18: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

Move/ActuatePower InteractConnect

Sense

STM32 Nucleo

Expansion Boards (X-NUCLEO)

• Boards with additional functionality that can be plugged directly on top of the STM32

Nucleo development board directly or stacked on another expansion board.

18

DIL24 support for

new devices

Motion MEMS sensors

Environmental sensors

www.st.com/x-nucleo

Example of STM32 expansion board (X-NUCLEO-IKS01A1)

Page 19: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

STM32 Open Development Environment

Software components

• STM32Cube software (CUBE) - A set

of free tools and embedded software bricks

to enable fast and easy development on

the STM32, including a Hardware

Abstraction Layer and middleware bricks.

• STM32Cube expansion software

(X-CUBE) - Expansion software provided

free for use with the STM32 Nucleo

expansion board and fully compatible with

the STM32Cube software framework. It

provides abstracted access to expansion

board functionality through high-level APIs

and sample applications.

19

www.st.com/x-cube

• Compatibility with multiple Development Environments - The STM32 Open Development

Environment is compatible with a number of IDEs including IAR EWARM, Keil MDK, and GCC-based

environments. Users can choose from three IDEs from leading vendors, which are free of charge and

deployed in close cooperation with ST. These include Eclipse-based IDEs such as Ac6 System

Workbench for STM32 and the MDK-ARM environment.

Tools& IDEs

Application examples(e.g. basedonSTOpenSoftwareX)

Hardware

SampleapplicationsApplications

IAREWARM,Keil MDK-ARM,GCC-basedIDEs(e.g. Ac6System Workbenchfor STM32)

STM32CubeHardware Abstraction Layer (HAL)

STM32Cubemiddleware

Upper level middleware(e.g. STOpenSoftwareX)

Middleware

HardwareAbstraction

STM32Cubeexpansion middleware

STM32 Nucleo expansion boards (X-NUCLEO)

STM32 Nucleo developer boards

OPEN LICENSE MODELS: STM32Cube software and sample applications are covered by a

mix of fully open source BSD license and ST licenses with very permissive terms.

www.st.com/stm32cube

Page 20: Quick Start Guide FP-NET-6LPWIFI1 · Building block approach 20 The building blocks Your need Our answer Move / Actuate Connect Power Sense Process Inertial modules, magnetometer

STM32 Open Development Environment

Building block approach 20

The building blocks Your need Our answer

Move /

Actuate

Connect

Power

Sense

Process

Inertial modules, magnetometer

Proximity, microphone

Pressure, temperature, humidity

Bluetooth LE, Sub-GHz radio

NFC, Wi-Fi, GNSS

Energy management & battery

General-purpose microcontrollers

Stepper motor driver

DC & BLDC motor driver

Audio amplifier

COLLECT

TRANSMIT

ACCESS

CREATE

POWER

PROCESS

Software

Secure microcontrollers

Touch controller

Operation Amplifier

Accelerometer, gyroscope

Translate

Industrial input / output

www.st.com/stm32ode