cancel
Showing results for 
Search instead for 
Did you mean: 

How to Change Sampling Rate for LSM6DSO32G in Samsung Android Kernel?

rainyday55
Visitor

I am currently working on modifying the sampling rate for the LSM6DSO32G IMU sensor in a Samsung Android kernel. After reviewing the device tree and sensor driver files, I noticed that certain parameters like odr (output data rate) seem to control the sampling rate. However, I am not sure of the exact steps to apply these changes and ensure that the modified sampling rate is reflected correctly in the system.

Here are my specific questions:

  1. Which files in the Samsung Android kernel should I modify to change the sampling rate for the LSM6DSO32G?
  2. Do I need to make changes in both the driver source code and the device tree, or is one sufficient?
  3. Is there a way to dynamically update the sampling rate (e.g., via sysfs or a similar interface) without rebuilding the kernel?
  4. Are there any specific steps or precautions I should take to test and validate the changes?

Any guidance, code examples, or references to related documentation would be greatly appreciated!

Thank you in advance for your help.

Best regards,

1 REPLY 1

You need to go to a suitable (Samsung) Android developer's forum - none of this has anything to do with ST.