The SensorTile.box board fits into a small plastic shroud with a long-life rechargeable battery, and the ST BLE Sensor app on your smartphone connects via Bluetooth to the board and allows you to immediately begin using the wide range of default IoT and wearable sensor applications.
Page 5
Latest info available at • Modular architecture, expandable via on-board connectors: STMOD+ and 40-pin flex general purpose expansions, 12-pin www.st.com/stwin male plug for connectivity expansions, 12-pin female plug for sensing expansions • Other kit components: Li-Po battery 480 mAh, STLINK-V3MINI debugger with programming cable, Plastic box...
FP-SNS-DATALOG1 Software Overview Software Description The FP-SNS-DATALOG1 function pack implements High Speed Datalog application for STEVAL-MKSBOX1V1, STEVAL-STWINKT1 and STEVAL-STWINKT1B. It provides a comprehensive solution to save data from any combination of sensors Overall Software Architecture and microphones configured up to the maximum sampling rate.
Page 7
Intelligent Full Speed Data Logging High Speed data log is part of FP-SNS-DATALOG1 Device Configuration Data Streaming STWIN JSON Sensors Card JSON config file Card Acquisition JSON Engine Flash • Optimized STM32 SW Supports streaming of all Sensors at Full data rate •...
Page 9
• Laptop/PC with Windows 7, 8 or 10 MicroUSB Cable • 1 x microUSB cables and 1 x USB type A to Mini-B USB cable • ST-Link/V2 in-circuit debugger/programmer for STM8 and STM32 • 1 SD card • 1 Android smartphone with ST BLESensorClassic App...
Page 10
HW prerequisites for STEVAL-STWINKT1B • 1x STEVAL-STWINKT1B development board • Laptop/PC with Windows 7, 8 or 10 • 2x microUSB cables • 1 SD card • 1 Android smartphone with ST BLESensorClassic App STEVAL-STWINKT1B MicroUSB Cable...
Page 11
• Download and install STM32CubeProgrammer • HSDatalog • Download the FP-SNS-DATALOG1 package from www.st.com, copy the .zip file contents into a folder on your PC. The package contains binaries and source code with project files (Keil, IAR, STM32CubeIDE) • ST BLESensorClassic App •...
Page 12
HSDatalog Sample applications www.st.com/stwin Package structure Docs BSP, HAL Select: drivers FP-SNS-DATALOG1 Download & unpack Sample applications Visualize log of sensors data and Use the pre-compiled binaries or re-compile the code control the device customizing your device configuration...
Page 13
HSDatalog Firmware Update HSDatalog is not the default firmware on the STEVAL-MKSBOX1V1 nor on the STEVAL-STWINKT1, so it needs to be downloaded on the board by the user. The easiest way is to use the pre-compiled binary provided in the package in the folder Projects/HSDatalog/Binary.
Page 14
2.1- Command Line Interface example: USB sensor data streaming...
Page 15
cli_example overview • The command line example is in the Utilities folder • You can run the example after connecting the SensorTile.box or the STWIN to a PC via Micro-USB cable. • USB_DataLog_Run.bat and USB_DataLog_Run.sh scripts provide a ready-to-use example. •...
Page 16
Modify device and sensors configuration • To configure selected sensors, you can simply • Use one of the available device configuration examples in Utilities/STWIN_config_examples • Define your own sensors configuration by editing one of those examples (e.g. enable only a selected subset of sensors)
Run the application • Double click on the USB_DataLog_Run batch script • The application starts, and the command line appears, showing information about the connected board. • Press any key to start the datalogging • Application will stop automatically if a timeout was set •...
Page 18
2.2- HSDatalog and BLESensorClassic App: save data on SD card...
Page 19
ST BLESensorClassic App: HSDatalog tab • HSDatalog application can be controlled via Bluetooth using the ST BLESensorClassic app (available for Android and iOS) which lets you manage the board and sensor configurations, start/stop data acquisition on SD card and control data labelling.
Page 20
Configure MLC, save/load configuration • You can also: • send a UCF configuration file to setup the LSM6DSOX (available on the SensorTile.box) or the ISM330DHCX (available on the STWIN) Machine Learning Core and visualize its outputs. The UCF file could be retrieved either from the smartphone memory or from a cloud storage (e.g.
Page 21
Acquisition settings and control • By clicking to the play button you can switch to the acquisition settings and control tab to: • start and stop an acquisition (to an SD card) • choose which tag classes will be used for the next acquisition (both HW and SW tags) •...
Page 22
2.3- HSDatalog standalone: save data on SD card...
Page 23
Start an acquisition in standalone mode • HSDatalog can work also standalone, saving all the sensor data at the highest possible rate into the SD card • HSDatalog can also read a custom sensors configuration from the SD card root folder. To do so, you can simply save a JSON configuration file in the root folder of the SD card (same as described in 2.1).
Automode • DATALOG1 also features the automode, which can be initiated automatically at the device power-up or reset • This mode can be used to start the datalog operations or to pause all the executions for a specific period by putting the sensor node in the "idle"...
Page 25
Automode • As for the standalone mode, to enable the automode you must setup properly the execution_config.json • auto_mode: if true, auto-mode will start after reset and node initialization • execution_plan: is a sequence of maximum ten execution steps • start_delay_ms: indicates the initial delay in milliseconds applied after reset and before the first execution phase starts when auto-mode is selected •...
Page 27
HSDPython_SDK • Starting from v1.5.0, FP-SNS-DATALOG1 provides a dedicated Python SDK, ready-to-use for integration into any data science design flow. • HSDPython_SDK is provided also in FP-SNS- DATALOG2 and can handle data acquired from both packages • HSDPython_SDK has been developed in Python 3.10...
Page 28
HSDPython_SDK • Before using HSDPython_SDK, Python (from version 3.10 on) must be properly installed on your machine. • The following steps are valid for a Windows machine. Similar approach can be used also on other OS. • Download the installer from python.org and launch it •...
Page 29
HSDPython_SDK • To fully exploit HSDPython_SDK capabilities and solve inter-dependencies, installer scripts are st_hsdatalog provided. • By simply launching the needed install.bat (in HSD_GUI HSD_utils HSD_link Windows environment) or .sh (in Linux environment), the SDK is properly installed. • For Linux user, further steps are needed. Step-by-step procedure is described in detail in the readme_linux file.
Page 30
HSDPython_SDK scripts • User is free to develop its own projects by including modules or by modifying the already available scripts • Here the list of the scripts available in examples folder: • hsdatalog_check_dummy_data.py can be used to debug the complete application and verify that data are stored or streamed correctly. You must recompile the firmware enabling HSD_USE_DUMMY_DATA define (set #define HSD_USE_DUMMY_DATA 1).
Page 31
HSDPython_SDK scripts • You can execute them in your preferred Python environment (i.e.: use the command python hsdatalog_plot.py) • Each scripts can accept optional parameters. You can see them by executing the example with the –h option (i.e.: python hsdatalog_ploy.py –h)
Page 33
• DB4345: STWIN SensorTile Wireless Industrial Node development kit and reference design for industrial IoT applications – databrief • UM2777: How to use the STEVAL-STWINKT1B SensorTile Wireless Industrial Node for condition monitoring and predictive maintenance applications – user manual Visit www.st.com for the complete list...
Page 34
4- STM32 Open Development Environment: Overview...
Page 35
The STM32 Open Development Environment (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.
Page 36
Environment prototyping hardware can be directly used in an Software advanced prototyping board or in and end product design using the same commercial ST components, or components from the same family as those found on the STM32 Nucleo Power supply...
Need help?
Do you have a question about the FP-SNS-DATALOG1 and is the answer not in the manual?
Questions and answers