Skip to main content
aditi1prakash
Associate II
November 30, 2021
Solved

How to set Output data rate for Accelerometer and receive more samples in Sensortile.box?

  • November 30, 2021
  • 1 reply
  • 2084 views

I am trying to get values at highest data rate(6.6kHz) from Accelerometer on Serial terminal from SensorTile.box.

Sensor - LSM6DSOX

Binary - 'DataLogExtended.bin' from FP-SNS-STBOX.

I tried using the (void)BSP_MOTION_SENSOR_SetOutputDataRate(AccInstance,MOTION_ACCELERO,6667); API. Adding this function further reduced the number of samples received per second rather.

What am I missing here? How to read 6600 samples of ACC data per second?

Regards,

Aditi Prakash

This topic has been closed for replies.
Best answer by Eleon BORLINI

Hi Aditi Prakash @aditi1prakash​ ,

If you use the Serial terminal, you might have some limitation in the baud rate matching between the Serial terminal and the SensorTile.box's firmware allowed throughput.

Our expert's suggestion is: first step, use Unicleo-GUI to interface the SensorTile.box running the DataLogExtended application. Second step, enable only the accelerometer sensor. Then the maximum speed can be reached but at this point the 6.6kHz capability also depends on USB throughput and PC speed.

If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster. 

-Eleon

1 reply

Eleon BORLINI
Eleon BORLINIBest answer
ST Employee
December 1, 2021

Hi Aditi Prakash @aditi1prakash​ ,

If you use the Serial terminal, you might have some limitation in the baud rate matching between the Serial terminal and the SensorTile.box's firmware allowed throughput.

Our expert's suggestion is: first step, use Unicleo-GUI to interface the SensorTile.box running the DataLogExtended application. Second step, enable only the accelerometer sensor. Then the maximum speed can be reached but at this point the 6.6kHz capability also depends on USB throughput and PC speed.

If my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster. 

-Eleon

aditi1prakash
Associate II
December 2, 2021

Hi @Eleon BORLINI​ ,

Thanks for your answer.

I have a question here though. Both terminal and the GUI use the serial port for data reception.

So, how is it that UNICLEO is able to receive the same data at a higher rate?

Regards

Aditi Prakash

Eleon BORLINI
ST Employee
December 2, 2021

Hi @aditi1prakash​ ,

I believe Unicleo is doing some optimization in the serial communication.

Did you tested it, as suggested?

-Eleon