STMicroelectronics / fp-sns-datalog2

The FP-SNS-DATALOG2 function pack represents an evolution of FP-SNS-DATALOG1 and provides a comprehensive solution for saving data from any combination of sensors and microphones configured up to the maximum sampling rate. Please check st.com where a more recent version of the software might be available.
https://www.st.com/en/embedded-software/fp-sns-datalog2.html
Other
17 stars 1 forks source link

Recording from several devices at same times lead to time values of zero in .dat files. #21

Open Ferag-AG opened 1 week ago

Ferag-AG commented 1 week ago

Hi all,

I have two STWIN.boxes connected by USB to a Raspberry and I'd like to record vibration (iis3dwb_acc) and sound (imp23absu_mic) data with these two STWIN.boxes simultaneously. Data logging using SensorAcquisitionThread behaves correctly, but when data from the imp23absu_mic.dat file is read in later using get_dataframe, the sound data have a time value only up to few seconds, after which this value remains at zero.

Recording from only one STWIN.boxe over USB works as expected.

fp-sns-datalog2 version used: 2.2.0

Rasberry Infos

==== Raspberry Pi Hardware and Software Summary ====
Model and Revision:
Revision    : d03115
Model       : Raspberry Pi 4 Model B Rev 1.5

OS Information:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian

Kernel Version:
6.6.51+rpt-rpi-v8

Architecture (32-bit or 64-bit):
64-bit

Firmware Version:
Aug 30 2024 19:17:39 
Copyright (c) 2012 Broadcom
version 2808975b80149bbfe86844655fe45c7de66fc078 (clean) (release) (start)

Memory Info:
               total        used        free      shared  buff/cache   available
Mem:           7.6Gi       2.5Gi       3.9Gi       105Mi       1.5Gi       5.1Gi
Swap:          199Mi          0B       199Mi
arm=948M
gpu=76M

Attachments

ZIP containig the recording Python script and device_config ZIP of the recorded data

pradolis commented 6 days ago

Hello @Ferag-AG I'll review and debug your files, then I'll come back soon. I'm happy to see an example of a custom application built upon top of our SDK. The multiuse case has never been tested internally or natively supported by our examples. Let see if I can help you debug your application.

Best regards,