Datasheet STM32Cube Datasheet (STMicroelectronics)

Page 1
ST Restricted
Version 1.0 (April 7, 2020)
Quick Start Guide
STM32Cube Function Pack for Asset Tracking with LTE connectivity, GNSS and MEMS sensors
Version 1.2 (February 16, 2021)
Page 2
ST Restricted
Agenda
Hardware and Software overview
Documents & Related Resources
STM32 Open Development Environment: Overview
2
Setup & Demo Examples
Page 3
ST Restricted
1- Hardware and Software overview
Page 4
ST Restricted
P-L496G-CELL02 discovery kit
Hardware Overview
4
P-L496G-CELL02 Hardware Description
The STM32 Discovery pack (P-L496G-CELL02) is a turnkey development platform for cellular and cloud technology based solutions.
The pack contains an STM32L496AGI6-based low-power Discovery mother board and an STMod+ Cellular LTE IoT worldwide expansion
board with antenna.
It features STM32L496AGI6 Arm®-based microcontroller featuring 1 Mbyte of Flash memory and 320 Kbytes of RAM in a UFBGA169
package
Board expansion features Quectel BG96 worldwide cellular modem LTE Cat M1/Cat NB1/EGPRS module, 300 kbps downlink, 375 kbps
uplink.
Latest info available at www.st.com
P-L496G-CELL02
Page 5
ST Restricted
Key products on board
LSM6DSO
MEMS 3D accelerometer (±2/±4/±8/±16 g) + 3D gyroscope (±125/±250/±500/±1000/±2000 dps)
LIS2DW12
MEMS 3D accelerometer (±2/±4/±8/±16 g)
LIS2MDL
MEMS 3D magnetometer (±50 gauss)
LPS22HH
MEMS pressure sensor, 260-1260 hPa absolute digital output barometer
HTS221 Capacitive digital relative humidity and temperature STTS751
Digital Temperature sensor
DIL 24-pin
Socket available for additional MEMS adapters and other sensors (UV index)
X-NUCLEO-IKS01A3 Hardware description
The X-NUCLEO-IKS01A3 is a motion MEMS and environmental sensor evaluation board system.
It is compatible with the Arduino UNO R3 connector layout, and is
designed around ST’s latest sensors.
Motion MEMS and environmental sensors expansion board
Hardware Overview
5
Latest info available at www.st.com
X-NUCLEO-IKS01A3
DIL 24-pin
Arduino UNO R3 connector
ST morpho connector**
HTS221
LPS22HH
LSM6DSO LIS2DW12
LIS2MDL
STTS751
** Connector for the STM32 Nucleo Board
Page 6
ST Restricted
GNSS expansion board
Hardware Overview
6
X-NUCLEO-GNSS1A1 Hardware Description
The X-NUCLEO-GNSS1A1 expansion board is based on the Teseo-LIV3F tiny GNSS
module.
It represents an affordable, easy-to-use, global navigation satellite system (GNSS) module,
embedding a Teseo III single die standalone positioning receiver IC, usable in different configurations in your STM32 Nucleo project.
The Teseo-LIV3F is a compact (9.7x10.1 mm) module that provides superior accuracy
thanks to the on-board 26 MHz temperature compensated crystal oscillator (TCXO) and a reduced time-to-first fix (TTFF) with its dedicated 32 KHz real-time clock (RTC) oscillator.
The Teseo-LIV3F module runs complete GNSS firmware (X-CUBE-GNSS1) to perform all
GNSS operations including acquisition, tracking, navigation and data output without external memory support.
The X-NUCLEO-GNSS1A1 expansion board is compatible with the Arduino™ UNO R3
connector and the ST morpho connector, so it can be plugged to the STM32 Nucleo development board and stacked with additional STM32 Nucleo expansion boards.
Key Products on board
Teseo LIV-3F: Single die standalone positioning receiver IC working on multiple
constellations, 10x10mm compact size. 26MHz Temperature Compensated Crystal Oscillator (TCXO) and reduced Time To First Fix
(TTFF) relying to a 32KHz Real Time Clock (RTC) oscillator for superior accuracy.
Latest info available at www.st.com
X-NUCLEO-GNSS1A1
Tee
Teseo-LIV3F
Battery holder
Antenna connector
Arduino UNO R3 Connectors
Page 7
ST Restricted
FP-ATR-LTE1 Software Description
FP-ATR-LTE1 is a STM32Cube Function Pack. That lets you connect your IoT node to Amazon Web Services using LTE cellular connectivity and expose the GNSS and MEMS sensors data using standard application layer protocols.
It fully supports security and protocol requirements to interface with AWS cloud thanks to the integrated Amazon AWS IoT SDK.
The DSH-ASSETRACKING dashboard for asset tracking is available to quickly evaluate the firmware package functions for an easy sensor data visualization.
Key features
Complete firmware to connect a node with GNSS and MEMS sensors to a cellular network using LTE communication technology
Middleware library with FreeRTOS, mbedTLS and Amazon Web Services
SDK.
Software interface to access GNSS sensor (Teseo-LIV3F), temperature and humidity sensor (HTS221), pressure sensor (LPS22H) and motion sensor (LSM6DSO)
Example implementation available for X-NUCLEO-GNSS1A1 and X­NUCLEO-IKS01A3 s when connected to a P-L496G-CELL02 LTE cellular to cloud pack.
Easy portability across different MCU families, thanks to STM32Cube
Free, user-friendly license terms
FP-ATR-LTE1
Software Overview
7
Overall Software Architecture
FP-ATR-LTE1
Latest info available at www.st.com
Page 8
ST Restricted
2- Setup and demo examples
Page 9
ST Restricted
9
STM32 ST-Link Utility
Download and install STSW-LINK004 from www.st.com
FP-ATR-LTE1
Download FP-ATR-LTE1 package from www.st.com, copy the .zip file content into a folder on your
PC. The package contains binaries and source code with project files (Keil, IAR, System Workbench) based on STM32L496G-DISCOVERY.
Serial line monitor, e.g. TeraTerm (https://ttssh2.osdn.jp/)
Chrome web browser (https://www.google.com/chrome/ ); tested with Chrome version
88.0.4324.146
Software prerequisites
Page 10
ST Restricted
Hardware prerequisites
10
1x P-L496G-CELL02 STM32 discovery pack for cellular to cloud, which contains:
1x expansion board with Quectel BG96 LTE modem (for CELL02), compatible with STMod+ connector
1x STM32 Discovery development board 32L496GDISCOVERY
2G/3G antenna
1x STM32 Nucleo expansion board with Teseo-LIV3F GNSS sensor (X-NUCLEO-GNSS1A1)
1x STM32 Nucleo expansion board with motion MEMS and environmental sensors (X-NUCLEO-IKS01A3)
Laptop/PC with Windows 7, 8 or 10
1 x micro USB cable
X-NUCLEO-IKS01A3MicroUSB Cable
P-L496G-CELL02 discovery pack
X-NUCLEO-GNSS1A1
Page 11
ST Restricted
2.1- Step by step setup
Page 12
ST Restricted
Cellular pack set-up using the external SIM
12
Use your local telecom service SIM and Insert it to Micro SIM card socket
The SW will detect it and connect it to your local telecom service provider.
If necessary, provide your provider’s APN (Access Point Name) in the file set_credentials.c, recompile and flash the new
binary
Page 13
ST Restricted
Connecting the boards
13
X-NUCLEO-IKS01A3
P-L496G-CELL02
+
(back side)
+
X-NUCLEO-GNSS1A1
Page 14
ST Restricted
GNSS jumpers settings
The following are the jumper settings on the X-NUCLEO-GNSS1A1 expansion board, as shown in the figure.
Open jumpers: J1 to J10.
Closed jumpers: J11 to J15.
14
Page 15
ST Restricted
Get results in few minutes
15
Download & unpack
FP-ATR-LTE1
Go to www.st.com/stm32ode-fp
1
Select FP-ATR-LTE1
2
3
5
6
Open project examples for
different IDEs
Download and install
STSW-LINK004
Docs BSP, HAL and Drivers AWS IoT SDK, Cellular, FreeRTOS Asset Tracker application
FP-ATR-LTE1 package structure
4
7
Release Notes
Read First 16 bytes of SIM Id from terminal
Build & Run the application
(or use pre-compiled binaries)
Page 16
ST Restricted
16
Configure Serial Terminal (1/2)
Open serial terminal then configure baud rate speed to 115200 (Setup Serial port in TeraTerm).
Page 17
ST Restricted
17
Configure Serial Terminal (2/2)
Configure New-line (Rx:AUTO/Tx:CR+LF) and enable local echo in Terminal configuration (Setup Terminal in TeraTerm).
Page 18
ST Restricted
At the beginning, you will be asked to provide your cellular configuration parameters: access point name (APN), username (can be empty) and password (can be empty).
Cellular parameters configuration
18
Page 19
ST Restricted
19
Retrieving the SIM ID
Read First 16 bytes of SIM Id from terminal
Page 20
ST Restricted
20
Register a new board
into the asset tracking dashboard
Visit the DSH-ASSETRACKING page (Link) then login with an existing account or create a new account.
Add a new device as “Device LTE”, provide the LTE SIM ID as “Device ID” and choose a Custom Name of your preference.
After registration, the file “device_id.pem” will be automatically downloaded.
Page 21
ST Restricted
21
Copy certificate and key to device (1/3)
You will be asked to provide the device connection parameters.
In serial terminal, enter ‘n’ to confirm first default value of AWS IoT endpoint.
Page 22
ST Restricted
22
Copy certificate and key to device (2/3)
In the serial terminal, enter ‘n’ to confirm first default value of Root CA.
In serial terminal, enter ‘n’ to confirm first default value SIM Id (First 16 bytes) as Device ID.
Page 23
ST Restricted
23
Copy certificate and key to device (3/3)
Open certificate file “device_id.pem” in a text editor, then copy/paste device certificate and key in serial terminal when requested.
Page 24
ST Restricted
Data entry process complete
Now data entry process is complete
The device will connect to the network and publish data
Go to the Asset Tracking dashboard to see the published data
24
Page 25
ST Restricted
2.2- Using the Asset Tracker Web Dashboard
(DSH-ASSETRACKING)
Page 26
ST Restricted
26
Visit the DSH-ASSETRACKING page (Link) then click on “Register and configure your devices”.
Login
Page 27
ST Restricted
27
After login you will see the list of available devices.
Select the device you want to monitor. The dashboard will tell you the last activity of the device.
Device select
Page 28
ST Restricted
28
After clicking on the device, select “telemetry” to view detailed sensor data.
Dashboard settings
Page 29
ST Restricted
Select the device, the desired telemetry data to display and the window time, then press the blue arrow.
29
Telemetry
Page 30
ST Restricted
30
Temperature data displayed
Page 31
ST Restricted
31
Pressure data displayed
Page 32
ST Restricted
32
Humidity data displayed
Page 33
ST Restricted
Accelerometer data displayed
33
Page 34
ST Restricted
34
Geo tracking data displayed
Page 35
ST Restricted
35
To delete a device from the dashboard click on the trash bin icon.
Device delete
Page 36
ST Restricted
To logout from the dashboard, click on “Logout” in the menu.
36
Logout
Page 37
ST Restricted
3- Documents & Related Resources
Page 38
ST Restricted
FP-ATR-LTE1:
DB4191: STM32Cube function pack for asset tracking with LTE connectivity, GNSS and MEMS sensors – data brief
UM2712: Getting started with the FP-ATR-LTE1 software package for asset tracking with LTE connectivity, GNSS and MEMS sensors – user manual
Software setup file
DSH-ASSETRACKING:
DB4207: Cloud Amazon-based web application for asset tracking – data brief P-L496G-CELL02 :
Gerber files, BOM, Schematic
DB3530: STM32 discovery pack for LTE IoT cellular to cloud – data brief
UM2365: STM32 Discovery pack for LTE IoT cellular to cloud – user manual
X-NUCLEO-IKS01A3:
Gerber files, BOM, Schematic
DB3851: Motion MEMS and environmental sensor expansion board for STM32 Nucleo data brief
UM2559: Getting started with motion MEMS and environmental sensor expansion board for STM32 Nucleo user manual
X-NUCLEO-GNSS1A1:
Gerber files, BOM, Schematic
DB3458: GNSS expansion board based on Teseo-LIV3F module for STM32 Nucleo – data brief
UM2327: Getting started with the X-NUCLEO-GNSS1A1 expansion board based on Teseo-LIV3F tiny GNSS module for STM32 Nucleo – user manual
38
All documents are available in the DESIGN tab of the related products webpage
Consult www.st.com for the complete list
Documents and related resources
Page 39
ST Restricted
4- STM32 Open Development
Environment: Overview
Page 40
ST Restricted
STM32 Open Development Environment
Fast, affordable Prototyping and Development
40
The STM32 Open Development Environment (STM32 ODE) is an open, flexible, easy, and affordable way
to develop innovative devices and applications based on the STM32 32-bit microcontroller family combined with other state-of-the-art ST components connected via expansion boards. It enables fast prototyping with leading-edge components that can quickly be transformed into final designs
For further information, please visit 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 41
© STMicroelectronics - All rights reserved. The STMicroelectronics corporate logo is a registered trademark of the STMicroelectronics group of companies. All other names are the property of their respective owners.
Thank you
Loading...