Hi there, I have a requirement to get a faster barometer update rate on a phone (S10) or really any device with a barometer, and I'm wanting to know I can I do that by changing the Android code.
BACKGROUND:
Ive used sensorManager.registerListener() to toggle through all the preset delays (SENSOR_DELAY_NORMAL etc..) and have even tried typing in my own delay in us.
I think the issue is that chip is limited somehow in the Android OS, as I when I get the chip data from debugger:
{Sensor name="LPS22HH Barometer", vendor="STMicro", version=514, type=6, maxRange=1260.0, resolution=2.0E-4, power=0.275, minDelay=40000}
I see the minDelay is 40,000us which is about the limit I currently get, around 25 Hz.
If I look at the LPS22HH chip spec sheet I see its capable of supplying a much faster update rate.
THE QUESTION:
If I learn how to recompile the Android OS, can I configure the registers on the chip to get a faster update rate?
OTHER CONCERNS:
- Ramp on learning how to compile the Android OS.
- Some other aspect of the Android OS that may be limiting the update rate that I will have zippo control over OS recompile or not.
Thanks for any response!
BACKGROUND:
Ive used sensorManager.registerListener() to toggle through all the preset delays (SENSOR_DELAY_NORMAL etc..) and have even tried typing in my own delay in us.
I think the issue is that chip is limited somehow in the Android OS, as I when I get the chip data from debugger:
{Sensor name="LPS22HH Barometer", vendor="STMicro", version=514, type=6, maxRange=1260.0, resolution=2.0E-4, power=0.275, minDelay=40000}
I see the minDelay is 40,000us which is about the limit I currently get, around 25 Hz.
If I look at the LPS22HH chip spec sheet I see its capable of supplying a much faster update rate.
THE QUESTION:
If I learn how to recompile the Android OS, can I configure the registers on the chip to get a faster update rate?
OTHER CONCERNS:
- Ramp on learning how to compile the Android OS.
- Some other aspect of the Android OS that may be limiting the update rate that I will have zippo control over OS recompile or not.
Thanks for any response!