Accelerometer

From AlwaysInnovating

Jump to: navigation, search

The accelerometer hardware is a Freescale MMA7455L. The driver is available on the kernel page.

The accelerometer is used by ai-daemon which handles the rotation of the device.

The device is /dev/input/accel0

The data format is

8c66 4819 99e6 0006   0003   0000   0048 0000
|------Time-------|  EV_ABS  REL_X  |-Value-|
8c66 4819 99e6 0006   0003   0001   0048 0000
|------Time-------|  EV_ABS  REL_Y  |-Value-|
8c66 4819 99e6 0006   0003   0002   0048 0000
|------Time-------|  EV_ABS  REL_Z  |-Value-|

There is also a sync message:

8c66 4819 99e6 0006   0000   0000   0000 0000

If you want to take a look:

od -x /dev/input/accel0
Personal tools