cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Error in hsdatalog_to_nanoedge.py when converting ISM330DHCX .dat

jtpgilej
Associate II

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

2 REPLIES 2
Julian E.
ST Employee

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:

https://wiki.st.com/stm32mcu/wiki/AI:How_to_Build_an_Anomaly_Detection_Project_for_Predictive_Maintenance_with_NanoEdge_AI_Studio

 

Have a good day,

Julian

 

 

 

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SimonePradolini
ST Employee

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.