Download Print this page
ST FP-SNS-FLIGHT1 User Manual
ST FP-SNS-FLIGHT1 User Manual

ST FP-SNS-FLIGHT1 User Manual

Getting started with the stm32cube function pack for iot node with ble connectivity and time-of-flight sensors
Hide thumbs Also See for FP-SNS-FLIGHT1:

Advertisement

Quick Links

UM2026
User manual
Getting started with the STM32Cube function pack for IoT node with BLE
connectivity and time-of-flight sensors
Introduction
The
FP-SNS-FLIGHT1
is an
STM32Cube
function pack, which lets your IoT node connect to a smartphone via BLE and uses a
suitable Android™ or iOS™ application like the
STBLESensor
app to view real-time object distance data read by the Time-of-
Flight sensor.
The package also enables advanced functions, such as presence detection inside a fixed range distance.
This package, together with the suggested combination of the STM32 and ST devices, can be used to develop wearable
applications or smart thing applications in general.
The software runs on the STM32 microcontroller and includes all the necessary drivers to recognize the devices on the STM32
Nucleo development board.
The software is available also on GitHub, where the users can signal bugs and propose new ideas through [Issues] and [Pull
Requests] tabs.
UM2026 - Rev 11 - March 2025
www.st.com
For further information, contact your local STMicroelectronics sales office.

Advertisement

loading
Need help?

Need help?

Do you have a question about the FP-SNS-FLIGHT1 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST FP-SNS-FLIGHT1

  • Page 1 The package also enables advanced functions, such as presence detection inside a fixed range distance. This package, together with the suggested combination of the STM32 and ST devices, can be used to develop wearable applications or smart thing applications in general.
  • Page 2: Acronyms And Abbreviations

    UM2026 Acronyms and abbreviations Acronyms and abbreviations Table 1. Acronyms and abbreviations Acronym Description Bluetooth low energy Time-of-Flight UM2026 - Rev 11 page 2/38...
  • Page 3: Fp-Sns-Flight1 Software Description

    UM2026 FP-SNS-FLIGHT1 software description FP-SNS-FLIGHT1 software description Overview The key features of the FP-SNS-FLIGHT1 package are: • Complete firmware to develop an IoT node with BLE connectivity, and Time-of-Flight sensors • Compatible with STBLESensor application for Android/iOS to perform distance data reading and firmware update (FOTA) •...
  • Page 4: Folder Structure

    Figure 1. FP-SNS-FLIGHT1 software architecture Folder structure Figure 2. FP-SNS-FLIGHT1 package folder structure The following folders are included in the software package: • Documentation: contains a compiled HTML file generated from the source code, detailing the software components and APIs.
  • Page 5: Flash Management

    UM2026 FP-SNS-FLIGHT1 software description Flash management For NUCLEO-F401RE, NUCLEO-L476RG and NUCLEO-U575ZI-Q the FP-SNS-FLIGHT1 uses the Flash memory to: 1. Save firmware information (node name, firmware ID, etc.) in the dedicate flash address. 2. Allow the Firmware-Over-The-Air update. For NUCLEO-F401RE and NUCLEO-L476RG, to enable these features, the whole Flash is divided into the following distinct regions: 1.
  • Page 6: The Boot Process

    2. replaces its content with the FOTA 3. erases the “magic number” used to check FOTA presence 4. restarts the board If there is no FOTA available, the boot loader jumps directly to the FP-SNS-FLIGHT1 firmware. UM2026 - Rev 11 page 6/38...
  • Page 7: Nucleo-U575Zi-Q Boot Process

    UM2026 FP-SNS-FLIGHT1 software description Figure 5. FP-SNS-FLIGHT1 Flash structure 2.5.2 NUCLEO-U575ZI-Q boot process The FLIGHT1 firmware uses the dual bank flash features to allow firmware over-the-air update of a running program without using the bootloader. For the first installation, after the full flash erases (suggest procedure), use...
  • Page 8: The Installation Process For Nucleo-F401Re Or Nucleo-L476Rg Board

    • precompiled FLIGHT1 plus BootLoader firmware to be directly flashed to a supported STM32 Nucleo development board with the ST-LINK or via drag and drop (STM32 Nucleo boards only) Note: This precompiled binary is not compatible with the FOTA update procedure.
  • Page 9: Figure 9. Bootloader And Fp-Sns-Flight1 Installation

    UM2026 FP-SNS-FLIGHT1 software description Figure 9. BootLoader and FP-SNS-FLIGHT1 installation UM2026 - Rev 11 page 9/38...
  • Page 10: Firmware-Over-The-Air (Fota) Update

    To update the firmware, the STBLESensor application sends the update size (bytes) and its associated CRC (cyclic redundancy check) value to the FP-SNS-FLIGHT1. Once the update has been received, the FP-SNS- FLIGHT1 uses the hardware CRC calculation unit included in the processor to check update integrity.
  • Page 11: Apis

    UM2026 FP-SNS-FLIGHT1 software description APIs Detailed technical information regarding the APIs available to the user can be found in a compiled HTML file located inside the “Documentation” folder of the software package, where all the functions and parameters are fully described.
  • Page 12: Figure 12. Uart Console Output

    UM2026 FP-SNS-FLIGHT1 software description Figure 12. UART console output When an Android/iOS device is connected to the NUCLEO-F401RE or NUCLEO-L476RG or NUCLEO-U575ZI-Q board, it is possible to control data transmitted by the board (see the following figure). UM2026 - Rev 11...
  • Page 13: Figure 13. Uart Console Output When A Device Connects To The Board

    UM2026 FP-SNS-FLIGHT1 software description Figure 13. UART console output when a device connects to the board UM2026 - Rev 11 page 13/38...
  • Page 14: Android And Ios Sample Client Application

    Figure 14. ST BLE Sensor Connected Board With the "Plot Data" selection the ToF Distance plot is displayed. UM2026 - Rev 11 page 14/38...
  • Page 15: Figure 15. Stblesensor (Android Version) Tof Distance Plot

    UM2026 FP-SNS-FLIGHT1 software description Figure 15. STBLESensor (Android version) ToF distance plot UM2026 - Rev 11 page 15/38...
  • Page 16: Figure 16. Stblesensor (Android Version) Menu Selection

    UM2026 FP-SNS-FLIGHT1 software description Figure 16. STBLESensor (Android version) menu selection If the debug console is enabled, stdin is displayed and any message written triggers a reply with the same message if the command line is not recognized, as shown below.
  • Page 17: Figure 17. Stblesensor (Android Version) Debug Console (Stdin/Stdout/Stderr)

    UM2026 FP-SNS-FLIGHT1 software description Figure 17. STBLESensor (Android version) Debug console (stdin/stdout/stderr) The [help] command shows a list of the recognized commands. UM2026 - Rev 11 page 17/38...
  • Page 18: Figure 18. Stblesensor (Android Version) Debug Console - Help Command

    UM2026 FP-SNS-FLIGHT1 software description Figure 18. STBLESensor (Android version) Debug console - help command [ToF Objects Detection] shows the distances of the detected objects (up to four objects) or the person presence. UM2026 - Rev 11 page 18/38...
  • Page 19: Figure 19. Stblesensor (Android Version) Tof Objects Detection - Distance

    UM2026 FP-SNS-FLIGHT1 software description Figure 19. STBLESensor (Android version) ToF Objects Detection - distance UM2026 - Rev 11 page 19/38...
  • Page 20: Figure 20. Stblesensor (Android Version) Tof Objects Detection - Presence

    UM2026 FP-SNS-FLIGHT1 software description Figure 20. STBLESensor (Android version) ToF Objects Detection - presence The presence is identified inside a fixed range distance that can be modified by the following defines: • #define PRESENCE_MIN_DISTANCE_RANGE 300 • #define PRESENCE_MAX_DISTANCE_RANGE 800 in Applications\FLIGHT1\Inc\FLIGHT1_config.h.
  • Page 21: Figure 21. Stblesensor (Android Version) Led Switch Page

    UM2026 FP-SNS-FLIGHT1 software description Figure 21. STBLESensor (Android version) LED switch page With the board configuration page a few firmware details can be shown. The image below shows the available commands: Figure 22. STBLESensor (Android version) Board Configuration UM2026 - Rev 11...
  • Page 22: Figure 23. Stblesensor (Android Version) Board Configuration - Commad Version Firmware, Info, Help

    UM2026 FP-SNS-FLIGHT1 software description Figure 23. STBLESensor (Android version) Board Configuration - Commad Version Firmware, Info, Help A new IoT node name can selected and firmware download or swap memory bank can be do, too. Figure 24. STBLESensor (Android version) Board Configuration - Commad Firmware Download, Swap...
  • Page 23: Firmware Over-The-Air (Fota) Update With Stblesensor

    UM2026 FP-SNS-FLIGHT1 software description 2.11 Firmware over-the-air (FOTA) update with STBLESensor If the Firmware upgrade option menu is selected in the STBLESensor main application page, the following page appears. Figure 25. STBLESensor (Android version) firmware upgrade page STBLESensor application shows which version of the...
  • Page 24: Figure 26. Stblesensor (Android Version) Firmware Update File Selection

    Figure 26. STBLESensor (Android version) firmware update file selection STBLESensor sends an update of a certain byte size and corresponding CRC value to FP-SNS-FLIGHT1. The figure below shows the terminal window with the debug information returned during FOTA for the STM32...
  • Page 25: Figure 27. Terminal Window Information During Fota

    UM2026 FP-SNS-FLIGHT1 software description Figure 27. Terminal window information during FOTA During the FOTA procedure, the STBLESensor application shows the remaining packets to be sent and the total update time when the procedure ends. UM2026 - Rev 11 page 25/38...
  • Page 26: Figure 28. Stblesensor (Android Version) Application Page During Fota And On Completion

    UM2026 FP-SNS-FLIGHT1 software description Figure 28. STBLESensor (Android version) application page during FOTA and on completion UM2026 - Rev 11 page 26/38...
  • Page 27: System Setup Guide

    STM32 microcontroller line. The Arduino connectivity support and ST morpho connectors make it easy to expand the functionality of the STM32 Nucleo open development platform with a wide range of specialized expansion boards to choose from.
  • Page 28: X-Nucleo-Bnrg2A1 Expansion Board

    The expansion board features the Bluetooth v5.2 compliant and FCC certified BlueNRG-M2SP application processor module based on the ST BlueNRG-2 System-on-Chip. This SoC manages the complete Bluetooth® Low Energy stack and protocols on its Cortex-M0 core and programmable flash memory, which can accommodate custom applications developed using the SDK.
  • Page 29: X-Nucleo-53L3A2 Expansion Board

    X-NUCLEO-53L3A2 expansion board X-NUCLEO-53L3A2 expansion board is designed around the VL53L3CX ranging sensor and is based on the ST patented FlightSense technology. The expansion board is delivered with two VL53L3CX breakout boards. To allow the user to validate the VL53L3CX...
  • Page 30: Satel Breakout Boards

    STM32 Nucleo equipped with time-of-flight sensor and BlueNRG expansion boards: • FP-SNS-FLIGHT1: a Bluetooth low energy and Time-of-Flight sensors software for STM32Cube. The SNS-FLIGHT1 firmware and related documentation is available on www.st.com. • Development tool-chain and Compiler: The...
  • Page 31: Hardware Setup

    STM32 Nucleo and sensor expansion board setup STM32 Nucleo development board integrates the ST-LINK/V2-1 debugger/programmer. You can download the relevant version of the ST-LINK/V2-1 USB driver by searching STSW-LINK008 or STSW-LINK009 www.st.com (based on your version of Microsoft Windows). Connect the expansion boards through the Arduino UNO R3 extension connector as shown in the following pictures.
  • Page 32: Figure 34. Stm32 Nucleo Development Board Plus X-Nucleo-Bnnrg2A1 And X-Nucleo-53L3A2 Expansion Boards

    UM2026 System setup guide Figure 34. STM32 Nucleo development board plus X-NUCLEO-BNNRG2A1 and X-NUCLEO-53L3A2 expansion boards Note: You must connect the boards in the sequence shown above to optimize the performance of the BlueNRG-2 module on the X-NUCLEO-BNRG2A1 expansion board and to reduce interference from its antenna. UM2026 - Rev 11 page 32/38...
  • Page 33: Revision History

    Figure 15: "BlueMS (android version) initial page after BLE 05-Dec-2016 connection", Figure 1: "FP-SNS-FLIGHT1 software architecture" and Figure 18: "BlueMS (android version) Serial console (stdout/stderr)"; Added Section 2.6: "Flash organization", Section 2.7: "The boot process", Section 2.8: "Firmware-Over-The-Air (FOTA) update"...
  • Page 34 Section 3.1.2 X-NUCLEO-NFC04A1 expansion board and Section 3.4.2 Important additional hardware information. Added Section 3.1.2 X-NUCLEO-BNRG2A1 expansion board. 06-Jun-2023 Updated Overview. Added compatibility to STM32CubeMX. Updated Section 2: FP-SNS-FLIGHT1 software description 05-Mar-2025 Section 2: FP-SNS-FLIGHT1 software description. UM2026 - Rev 11 page 34/38...
  • Page 35: Table Of Contents

    FP-SNS-FLIGHT1 software description ........
  • Page 36: List Of Tables

    UM2026 List of tables List of tables Table 1. Acronyms and abbreviations ............2 Table 2.
  • Page 37 BootLoader and FP-SNS-FLIGHT1 installation ........
  • Page 38 ST’s terms and conditions of sale in place at the time of order acknowledgment. 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’...