This project is a simple demo for the Synchronous Data Stream (SDS) Framework.
The application reads sensors, optionally records the sensor data and prints the sensor data to a terminal. Push button (vioBUTTON0) starts and stops the operations.
Demo is available for the following targets:
- HW: runs on B-U585I-IOT02A board with on-board WiFi module
- reads actual sensor data from hardware
- records sensor data via socket (using WiFi interface) to files on the host PC
- prints sensor data to a terminal
- AVH: runs on Arm Virtual Hardware (AVH) for MPS3 platform with Corstone-300
- reads sensor data from files on the host PC (previously recorded)
- prints sensor data to a terminal
- B-U585I-IOT02A Discovery kit from STMicroelectronics
- WiFi Access Point (board and PC connected to the same local network)
- CMSIS-Toolbox 1.5.0 or later
- Arm Compiler 6.18 or later
- python 3.9 or later
- Required packs are listed in the file
Demo.csolution.yml
Packs can be installed by executing the followingcsolution
andcpackget
commands:csolution list packs -s Demo.csolution.yml -m >packs.txt cpackget add -f packs.txt
Host PC IP Address:
- Modify the following definitions in sdsio_socket.c:
SERVER_IP
: IP address of the host PC running python script (SDS-Socket.py
)
WiFi Access Point:
- Modify the following definitions in socket_startup.c:
SSID
: WiFi Access Point SSIDPASSWORD
: WiFi Access Point PasswordSECURITY_TYPE
: WiFi Access Point Security
-
Use the
csolution
command to create.cprj
project files.> csolution convert -s Demo.csolution.yml
-
Use the
cbuild
command to create executable files.> cbuild Demo.Debug+HW.cprj > cbuild Demo.Debug+AVH.cprj
Use a programmer to download the HW image to the hardware target.
Execute the following steps:
- run SDSIO-Server to start the SDS I/O server on the host PC
- connect the board's ST-Link USB to the PC (provides also power)
- open terminal on the PC and connect to the board's serial port (Baud rate: 115200)
- reset the target (press RST button on the board)
- wait until connected to WiFi (status printed to the terminal)
- press USER (vioBUTTON0) button to start/stop reading and recording sensor data
Note: The recordings start with index 0 and increment for each subsequent start/stop.
Sensor data is recorded to files <sensor_name>.<index>.sds
and also printed to the terminal.
Execute the following steps:
- run the VHT model from the command line by executing:
VHT_MPS3_Corstone_SSE-300 -f Board/AVH_MPS3_Corstone-300/fvp_config.txt -V ../sensor/vsi/python out/Demo/AVH/Debug/Debug+AVH.axf
- press PB0 (vioBUTTON0) button (double click PB0 in the VHT visualization dialog) to start/stop reading sensor data
Sensor data is read from files <sensor_name>.<index>.sds
and also printed to the terminal.