Accelerometer
From OMAPpedia
Welcome to the Accelerometer Sensor wiki.
[edit] Introduction
This webpage describes the Accelerometer software development effort, mainly its current status and features planned in the road map.
At present, accelerometer is supported only on OMAP4 platforms which uses the CMA3000 Tri-axis Accelerometer sensor. It can detect acceleration in all 3 axis i.e X, Y, Z. In addition, an accelerometer can detect free fall and change of state i.e motion by generating events.
Accelerometers can be used for games, free fall detection and also for activity monitoring.
[edit] List of Features Supported
- On OMAP4
- X-Axis Acceleration Data: Acceleration Data on X-axis in millig via /dev/eventXX
- Y-Axis Acceleration Data: Acceleration Data on Y-axis in millig via /dev/eventXX
- Z-Axis Acceleration Data: Acceleration Data on Z-axis in millig via /dev/eventXX
- Free fall event: Event generated when free fall interrupt detected via /dev/eventXX
- Mode Change: Allows changing of CMA3000 mode at runtime via sysfs
- Motion Detection Threshold Value: Allows read and update via sysfs
- Motion and Free fall detection time: Allows read and update via sysfs
- Free fall threshold value: Allows read and update via sysfs
[edit] Design
- Input Subsystem
- This is a generic Linux framework for all input devices like keyboard, mouse, touchscreen and defines a standard set of events. It interfaces to user space through /sys/class/input interface.
- Evdev
- Evdev provides a generic way for input device events to be accessible under /dev/input/eventX .
- Accelerometer Driver
- This interfaces with CMA3000-D01 accelerometer chip via GPIO and I2C bus. GPIO line is used for generating interrupts while I2C bus for accessing registers. The driver allows setting threshold values like motion detection, free fall detection and motion/free fall detection time.
[edit] Feature Status Summary
Here is the summary of completed, ongoing and planned features in the Accelerometer driver.
Accelerometer Driver
| ID | Title | Target Week | Upstream Status | Link to Patches | Priority | Owner | Dev Status | Comments & Link to Details |
| ACCL01 | Support for accelerometer sensor through Linux Input subsystem | NA | Under External Review | https://patchwork.kernel.org/patch/101297/ https://patchwork.kernel.org/patch/101302/ | NA | Hemanth | Released in L24.6 | See details |
[edit] Defect Status Summary
Here is the summary of completed, ongoing and planned defect fixes in the Accelerometer driver.
Accelerometer Driver
| ID | Title | Target Week | Upstream Status | Link to Patches | Features Impacted | Priority | Owner | Dev Status | Comments & Link to Details |
| Nothing to Report | NA | NA | NA | NA | NA | NA | NA | NA | NA |
[edit] FAQ
TBD
[edit] Feature Status Details
[edit] SR: ACCELEROMETER-SENSOR.0000
Accelerometer sensors shall be supported through the linux input interface: Supported
[edit] Defect Status Details
None reported so far
[edit] Future Development Plan
None at present
[edit] Information on Testing Procedures
To be added.
[edit] Submit Your Ideas Here
Please list them as separate subsections (use ===title===). Please include your name, email ID and date for easy processing.
[edit] Owner
Hemanth V <hemanthv@ti.com>
[edit] Contributors
Hemanth V <hemanthv@ti.com>
[edit] Patches Merged in kernel.org
None
[edit] Recent Submissions to Open Source
- SR ACCELEROMETER-SENSOR.0000
[edit] Current Status of Patches in Omapzoom Tree
None
