
1FP-SNS-SMARTAG2 software description
1.1 Overview
The key features of the FP-SNS-SMARTAG2 package are:
• Complete firmware to access data from an IoT node with a dynamic NFC tag, environmental, motion, and
ambient light sensors
– Compatible with the STAssetTracking application for Android/iOS. This allows data logs reading from
the NFC tag and data logs sending to the DSH-ASSETRACKING cloud-based dashboard
– Compatible with the STNFCSensor application for Android/iOS for reading and setting the data logs
• The package contains also one example that shows how to update the firmware using the fast transfer mode
protocol (ST25FTM)
– Compatible with the ST25 NFC tag application to download the firmware on the board via NFC
• Sample implementation available for the STEVAL-SMARTAG2 evaluation board
• Easy portability across different MCU families, thanks to STM32Cube
The package contains software to:
1. track the temperature, pressure, luminosity, and vibration values in a fixed time range, sending them via
NFC. Using an Android or iOS device, you can monitor and display the logged data
The software gathers:
– the temperature, pressure, luminosity, and vibration sensor data for the STS22H, LPS22DF, VD6283,
LSM6DSO32X, and ST25DV64K devices for the STEVAL-SMARTAG2 evaluation board running the
STM32
This package is compatible with the STAssetTracking Android (version 3.1.0 or higher)/iOS (version 3.1.0 or
higher) application and with the STNFCSensor Android/iOS application (version 1.3.0 or higher) available on
GooglePlay/App stores, to read the information sent via the NFC/RFID tag IC protocol
2. update the firmware, using the ST25 NFC tag application (version 3.7.0 or higher) available on
GooglePlay/App stores
1.2 Architecture
The STM32Cube function packs leverage the modularity and interoperability of the STM32 Nucleo and the
expansion boards, as well as of the STM32Cube and the expansion software, in order to create function
examples, embodying some of the most common use cases for each application area.
These software function packs are designed to exploit as much as possible the underlying STM32 ODE hardware
and software components to fit best the requirements of final users’ applications.
Moreover, function packs may include additional libraries and frameworks, which do not present the original
expansion software packages, thus enabling new functionalities and creating a real and usable system for
developers.
To access and use the sensor expansion board, the application software uses:
•STM32Cube HAL layer: provides a simple, generic, and multiinstance set of generic and extension APIs to
interact with the upper layer application, libraries, and stacks. It is directly based on a generic architecture
and allows the layers that are built on it, such as the middleware layer, to implement their functions without
requiring the specific hardware configuration for a given microcontroller unit (MCU). This structure improves
the library code reusability and guarantees an easy portability across other devices.
•Board support package (BSP) layer: supports the peripherals on the STM32 Nucleo development board
(except the MCU) with a limited set of APIs, providing a programming interface for certain board-specific
peripherals like the LED, the user button, etc. It helps determine the specific board version. For the sensor
expansion board, it provides the programming interface for various inertial and environmental sensors and
supports the sensor data initialization and reading.
UM3073
FP-SNS-SMARTAG2 software description
UM3073 - Rev 1 page 2/42