2024-12-27 04:17 AM
Hopefully someone can give me a hint on what I am doing wrong.
I am logging sensor data with the STEVAL-PROTEUS1 board to the PC using the fp-sns-datapro1 project and the cli_example method. When I try to convert the binary .dat to .csv of the ISM330DHCX by using the HS-DL_NanoEdge_Conversion.bat the hsdatalog_to_nanoedge.py script rises and exception at line 102
HSDatalogApp.st_hsdatalog.HSD.HSDatalog_v1 - ERROR - Memory Error occoured! You should batch process your ...
It also crashes when converting IIS3DWB .dat, but data logged from IIS2DLPC and SST22H sensors are converted correctly.
I have also tried to convert the example samples provided in directory STM32CubeFunctionPack_DATAPRO1_v1.1.0\Utilities\SwUtilities\HS_Datalog\PROTEUS_batch_file_examples\AcquisitionExample and the same behaviour occurs.
I am using python 3.8 and fp-sns-datapro1 version 1.1
.dat collected by bluetooth via STSBLESens App or by USB in MSD mode have also the same problem.
Best regards
2025-01-06 01:00 AM
Hello @jtpgilej,
Happy new year!
I am looking for the people that made this FP.
In the meantime, is there a specific reason that make you use the FP specifically or do you just want to log data with the PROTEUS?
An alternative (and simplier way) is to use NanoEdge AI Studio's datalogger generator. You can take a look here:
https://wiki.st.com/stm32mcu/wiki/AI:NanoEdge_AI_Studio#Datalogger
Please find the source code here, if you need:
stm32ai-nanoedge-datalogger/Projects at main · stm32-hotspot/stm32ai-nanoedge-datalogger · GitHub
Here is a complete tutorial where we use the datalogger generator to collect data, create the complete project and finally use the code source of the datalogger to build the application:
Have a good day,
Julian
2025-01-09 07:30 AM
Hello @jtpgilej
I suggest updating the Python to v3.12 as recommended in the introduction of the UM3396 (https://www.st.com/resource/en/user_manual/um3396-getting-started-with-the-stm32cube-function-pack-for-stevalproteus1-sensor-data-log-and-file-transfer-over-ble-and-usb-stmicroelectronics.pdf).
I have just executed the batch file “HS-DL_NanoEdge_Conversion.bat”. It converted all the .dat files contained in the folder “Acquisition example”. .csv file contents are compliant with the NanoEdge format.
I used Python 3.12.4. Here’s the list of Python packages installed (you can retrieve it with the pip list command):
Package Version
--------------- -----------
asciimatics 1.15.0
click 8.1.7
colorama 0.4.6
matplotlib 3.9.1
numpy 2.0.0
pandas 2.2.2
pip 24.0
st-hsdatalog 3.0.1
st-pnpl 2.1.0
Best regards,
Simone