cancel
Showing results for 
Search instead for 
Did you mean: 

HSDatalog : how to fill "start_time" in AcquisitionInfo.json

anthonyADV
Associate II

Hello,

I’m using the STEVAL-STWIN KT1B to log data. I flashed HSDatalog onto it and used the ST BLE Sensor Classic iOS app to log data and save it to an SD card.

After acquisition, when I check the AcquisitionInfo.json file, I notice that "start_time" and "end_time" are always empty. I’d like to know how to automatically set "start_time" to the current timestamp when I press the Start button to begin logging.

In the iOS app, I tried going to Settings → Nucleo Settings → Set node time and clicked to synchronize the mobile and node time. A window pops up saying "Sync Time - Sync Done", but after logging, "start_time" is still empty.

Is there something I’m missing?

Thanks!

Best, 

Anthony 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @anthonyADV 

In DATALOG1, it’s the host that manages start_time and end_time parameters. DATALOG1 is compatible with the STBLESensClassic application (enabling data saving on SD card). It’s compatible also with Windows or Linux PC, enabling data streaming via USB and saving onto the PC.

start_time and end_time are filled by PC utilities only. STBLESensClassic is managing the DATALOG1 demo in High Speed Datalog demo page only and there it isn’t sending those parameters.

STBLESensClassic is limited to support only old-fashioned demos with firmware older than a couple of years. No new features or maintenance is intended for this app. Only patches for security issues, critical or blocking bugs will be considered.

So, I'm sorry, but this feature won't be available in DATALOG1 + STBLESensClassic setup.

 


@anthonyADV wrote:

 

[...] then used the STBLE Sensor classic application for iOS to log data (as I did with HSDatalog). I'm not sure what the application is supposed to display, but I don't have access to many features (as shown in the video file attached) :

  • I can't select various tags and configure sensors (full scale, ODR).
  • The "Set Node Time" tool is greyed out and cannot be used.
  • Also, even when starting the acquisition, no files are written to the sd card.

DATALOG2 instead can manage those parameters independently. By simply connecting the board both to a PC via USB or to the STBLESensor app via BLE, a time-synchronization algorithm is enabled. So, the firmware is able to save start_time and end_time as expected.

Notice that DATALOG2 is compatible only with the most recent and continuously updated STBLESensor app only.

Would you like to download the latest app and test the DATALOG2 and give us a further feedback?

 

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.

View solution in original post

4 REPLIES 4
SimonePradolini
ST Employee

Hello @anthonyADV 

I can try to help you, but I need to ask you a couple of questions.

By using HSDatalog are you referring to the firmware example distributed in FP-SNS-DATALOG1?

Which version of firmware and STBLESensClassic app are you using?

Are you aware of FP-SNS-DATALOG2? It’s the most recent and updated function pack dedicated to data logging. It supports STEVAL-STWINKT1B also and it’s compatible with STBLESensor application that is the most updated application both in terms of look-and-feel and features supported.

If there’s no strong need to stay on the old FP-SNS-DATALOG1, I strongly suggest you move forward and use the just-released FP-SNS-DATALOG2.

 

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.

Hello @SimonePradolini,

Thanks for your reply!

Yes, it's HSDatalog from FP-SNS-DATALOG1 (en.fp-sns-datalog1\STM32CubeFunctionPack_DATALOG1_V1.5.1\Projects\STM32L4R9ZI-STWIN\Applications\HSDatalog\Binary). I'm using STBLESensClassic version 4.20.1 for iOS.

Until now, I was using the FP-SNS-DATALOG1 version and was very satisfied with it (except for the missing start_time and end_time). To test, I switched to the FP-SNS-DATALOG2 version:

I flashed the binary en.fp-sns-datalog2\STM32CubeFunctionPack_DATALOG2_V3.0.0\Projects\STM32L4R9ZI-STWIN\Applications\DATALOG2\Binary\DATALOG2_Release.bin onto the board, then used the STBLE Sensor Classic application for iOS to log data (as I did with HSDatalog). I'm not sure what the application is supposed to display, but I don't have access to many features (as shown in the video file attached) :

  • I can't select various tags and configure sensors (full scale, ODR).
  • The "Set Node Time" tool is greyed out and cannot be used.
  • Also, even when starting the acquisition, no files are written to the sd card.

So I'd prefer to stick with the FP-SNS-DATALOG1 version. If you have any suggestions on how to obtain start_time and end_time with this version, I'd be very grateful.

Best regards,

Anthony

Hello @anthonyADV 

In DATALOG1, it’s the host that manages start_time and end_time parameters. DATALOG1 is compatible with the STBLESensClassic application (enabling data saving on SD card). It’s compatible also with Windows or Linux PC, enabling data streaming via USB and saving onto the PC.

start_time and end_time are filled by PC utilities only. STBLESensClassic is managing the DATALOG1 demo in High Speed Datalog demo page only and there it isn’t sending those parameters.

STBLESensClassic is limited to support only old-fashioned demos with firmware older than a couple of years. No new features or maintenance is intended for this app. Only patches for security issues, critical or blocking bugs will be considered.

So, I'm sorry, but this feature won't be available in DATALOG1 + STBLESensClassic setup.

 


@anthonyADV wrote:

 

[...] then used the STBLE Sensor classic application for iOS to log data (as I did with HSDatalog). I'm not sure what the application is supposed to display, but I don't have access to many features (as shown in the video file attached) :

  • I can't select various tags and configure sensors (full scale, ODR).
  • The "Set Node Time" tool is greyed out and cannot be used.
  • Also, even when starting the acquisition, no files are written to the sd card.

DATALOG2 instead can manage those parameters independently. By simply connecting the board both to a PC via USB or to the STBLESensor app via BLE, a time-synchronization algorithm is enabled. So, the firmware is able to save start_time and end_time as expected.

Notice that DATALOG2 is compatible only with the most recent and continuously updated STBLESensor app only.

Would you like to download the latest app and test the DATALOG2 and give us a further feedback?

 

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.

Hello @SimonePradolini,

Thanks for your support ! I downloaded the latest ST BLE Sensor app and tested it with DATALOG2—everything works perfectly now, and both start_time and end_time are correctly filled.

Much appreciated!

Best,

Anthony