I have been experimenting with accelerometers using several Android handsets and a smartwatch, trying to do some vibration measurements, and I'm a bit disappointed. While most devices integrate very capable accelerometers, I've found sampling rate is limited somewhere inside Android to around 200 Hz at most. E.g. the MPU-6050 accelerometer inside my Nexus 4 has a maximum 1 kHz sampling rate, but I can only get a 200 Hz sampling rate at most.
How can I unlock accelerometer sampling rate? Is it limited inside the accelerometer driver (Linux kernel module) or is it limited somewhere else inside Android sources? Any tips about where to start searching are welcome.
BTW I have searched inside Cyanogenmod kernel sources for the Nexus 4 and found no reference to mpu6050 accelerometer (found the mpu3050 driver, but I think they are not compatible).
How can I unlock accelerometer sampling rate? Is it limited inside the accelerometer driver (Linux kernel module) or is it limited somewhere else inside Android sources? Any tips about where to start searching are welcome.
BTW I have searched inside Cyanogenmod kernel sources for the Nexus 4 and found no reference to mpu6050 accelerometer (found the mpu3050 driver, but I think they are not compatible).