2021-11-30 07:00 AM
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
Solved! Go to Solution.
2021-12-01 06:31 AM
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
2021-12-01 06:31 AM
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
2021-12-02 02:14 AM
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
2021-12-02 06:58 AM
Hi @aditi1prakash ,
I believe Unicleo is doing some optimization in the serial communication.
Did you tested it, as suggested?
-Eleon
2021-12-02 07:36 AM
Hi @Eleon BORLINI ,
Yes, Unicleo provides apx 6000 samples per second.
I am more interested in getting those samples at that rate independent of the GUI.
Regards
Aditi Prakash
2021-12-02 07:39 AM
Hi @aditi1prakash ,
Understood, in this case a firmware modification of the DataLogExtended project is needed.
But this has to be evaluated internally, so I suggest you to open a request with an OLS ticket: they will evaluate the requests case by case.
-Eleon
2021-12-03 01:56 AM
Hi @Eleon BORLINI ,
Sure, thank you :)
Regards
Aditi Prakash