Introduction
FP-ATR-BLE1 is an STM32Cube function pack for asset tracking using BLE connectivity for the SensorTile.box wireless multi
sensor development kit, which helps you to build custom applications.
The package includes pressure, relative humidity, temperature and accelerometer sensors and the SPBTLE-1S Bluetooth low
energy system-on-chip application processor.
With the STEVAL-MKSBOX1V1 kit with BLE connectivity, you can monitor and log the sensor data using the ST Asset Tracking
app.
The software runs on the STM32 microcontroller and includes all the necessary drivers for the STEVAL-MKSBOX1V1
evaluation kit.
RELATED LINKS
Visit the STM32Cube ecosystem web page on www.st.com for further information
Getting started with the FP-ATR-BLE1 STM32Cube function for asset tracking
using BLE connectivity for SensorTile.box
UM2696
User manual
UM2696 - Rev 2 - April 2020
For further information contact your local STMicroelectronics sales office.
www.st.com
1 FP-ATR-BLE1 software expansion for STM32Cube
1.1 Overview
FP-ATR-BLE1 key features are:
Complete example on how to create an asset tracking application controlled by a mobile device using BLE
Ultra-low power implementation based on RTOS
Wake-up, tilt and orientation detection by the on-board accelerometer
Middleware Bluetooth connectivity using the X-CUBE-BLE2 software package
Environmental sensor data and inertial data saved on SD card using FatFs middleware
Compatible with ST Asset Tracking client application for Android/iOS to set up firmware via Bluetooth
connectivity and to read the data log created
Sample implementation available for the STEVAL-MKSBOX1V1 evaluation kit
Easy portability across different MCU families, thanks to STM32Cube
Free, user-friendly license terms
The software gathers the temperature, humidity, pressure, motion sensor drivers for the HTS221, LPS22HH,
STTS751, LIS2DW12, LIS2MDL, LIS3DHH and LSM6DSOX devices for the STEVAL-MKSBOX1V1.
1.2 Architecture
This software is based on the STM32CubeHAL. It extends STM32Cube by providing a board support package
(BSP) for the BLE, sensors and middleware components for communication with other BLE devices.
It also provides an application to demonstrate how to implement your own low power, BLE-controlled asset
tracking application using the SensorTile.box Pro Mode.
The software layers used by the application software to access and use the SensorTile.box are:
the STM32Cube HAL layer, which provides a simple, generic, multi-instance set of application programming
interfaces (APIs) to interact with the upper application, library and stack layers. It has generic and extension
APIs and is directly built around a generic architecture and allows successive layers like the middleware
layer to implement functions without requiring specific hardware configurations for a given microcontroller
unit (MCU). This structure improves library code reusability and guarantees an easy portability on other
devices.
the board support package (BSP) layer, which supports all the peripherals on the STM32 Nucleo except
the MCU. This limited set of APIs provides a programming interface for certain board-specific peripherals
like the LED, the user button, etc. This interface also helps in identifying the specific board version.
Figure 1. FP-ATR-BLE1 software architecture
FP-ATR-BLE1
Application
BLE
Middleware
STM32Cube Hardware Abstraction Layer (HAL)
Hardware
Abstraction
Hardware
STEVAL-MKSBOX1V1
evaluation board
MetaData
Manager
FreeRTOS
FatFs
UM2696
FP-ATR-BLE1 software expansion for STM32Cube
UM2696 - Rev 2
page 2/22