cancel
Showing results for 
Search instead for 
Did you mean: 

Accelerometer data throughput or retrieval by request on Teseo VIC3

RGOrdeig
Associate

Hello, I'm working with a Teseo EVB-VIC3DA.

I want to control the data flow on the UART and query only the sensor data I'm interested in.

After setting the baud rate to 921600, I proceeded to disable all automatically sent messages using the command $PSTMNMEAONOFF,0.

My idea was to use the $PSTMNMEAREQUEST command to retrieve only the messages of interest.
When sending $PSTMNMEAREQUEST,0x2,0*06, I correctly receive the $GPGGA message as specified in CDB-ID 201 of the documentation (UM2791 - TeseoVIC3 Software Instructions, STMicroelectronics).

My question is whether it is possible to do the same with the DRAW messages ($PSTMDRSENMSG 30,31 and 3, bitmask 0x10000000), as I am interested in accelerometer, gyroscope, and odometer data.
When I try $PSTMNMEAREQUEST,0,0x10000000*35, I only receive an acknowledgment from the device.

If this is not possible, I am interested in reducing the message rate from these sensors.
I attempted to do this using the command $PSTMCFGMSGL,0,50,0,0x10000000*01, but after saving, I did not see any change in the data rate.

Thank you in advance for your assistance!

1 REPLY 1
GalaxyQuest
ST Employee

Hi Rodrigo,

Apologies for the late reply. Have you worked with ST local sales or distribution in your region? 

Regarding slowing down the IMU sampling rate, you can modify CDB-684.

This parameter sets the sampling rate for on board IMU, expressed in Hz. Values from 15 to 150 Hz are accepted.
Letting the value to ‘0’ implies the usage of default fix rate, which is 100 Hz. A value lower than 15 also implies 100Hz
sampling rate.

You can modify CDB-684 by the following command,

$PSTMSETPAR,1684,<sampling rate> //save command to local memory
$PSTMSAVEPAR //save to flash
$PSTMSRR // reset device for setting to take effect

 

Regarding being able to query message, let me get back to you since this is not often requested. I will have to try it out on my test board.

 

Thanks,

George

 


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.