Skip to main content
Visitor II
December 23, 2024
Question

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

  • December 23, 2024
  • 1 reply
  • 582 views

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

Andrew Neil
Super User
December 23, 2024

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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.