Testing Sensor Functionality
You can use the Sensor Diagnostic Tool to test your sensor's functionality. Use the tool to ensure that your driver and firmware correctly forwards data from the device, and correctly responds to requests from applications. In addition, you can use the tool to verify that your driver correctly supports changes to the current report interval and change sensitivity.
The Sensor platform (API and DDI) supports both event notifications and property retrieval.
- An application can register to receive events (or notifications) from a device. The driver fires these events when a specified report interval occurs, or when a certain change-sensitivity value is exceeded. For example, a game application can register to receive accelerometer event notifications twenty times a second, or whenever the sensor detects movement in excess of 0.2 g.
- There are instances where an application retrieves sensor data by using a property rather than an event. For example, an application that controls brightness of a display may choose to only retrieve the current light level, after a human-presence sensor has detected the user's presence.
For a more complete description of events, report intervals, and change sensitivity (and their interrelationship), see the Filtering data topic. For information about using the Sensor Diagnostic Tool to test event handling, see the Testing Sensor Events topic.
For information about using the Sensor Diagnostic tool to test property retrieval, see the Testing Sensor Properties topic.
Build date: 1/30/2014