220 likes | 417 Views
Sensor and Location Platform: Windows Logo Testing for Drivers. Jason Scott Software Development Engineer in Test PC|3 jascott@microsoft.com. Presentation Goals. Introduce the Sensor and Location Platform, a new platform for Windows 7 Define Windows Logo Program requirements
E N D
Sensor and Location Platform:Windows Logo Testing for Drivers Jason Scott Software Development Engineer in Test PC|3 jascott@microsoft.com
Presentation Goals • Introduce the Sensor and Location Platform, a new platform for Windows 7 • Define Windows Logo Program requirements • Equip you with the knowledge to troubleshoot Logo test failures
Overview of the Sensor and Location Platform • Sensors: • Measure phenomena, such as physical environments, actions, or states • Examples: GPS device, accelerometer, ambient light sensor • The Sensor and Location Platform contains two new APIs: • Sensor API • Location API
Sensor and Location Platform Application Location API Application Sensor API Application CPL - Location and Other Sensors UMDF Sensor Driver Sensor Class Extension Sensor Hardware
The Sensor API • Offers a standard mechanism for discovering, connecting, and accessing sensor class devices • Provides an opt-in model for sensor permissions • Sensors are provided with a mechanism for eventing • All sensor devices are represented the same
The Location API • Built on the Sensor platform • Hides complexity of device and location source management from applications • Provides customized reports specific to each location device • Latitude and Longitude Report (ILatLongReport) • Civic Address Report (ICivicAddressReport) • Provides script support
Platform Driver Support A high-level view of the sensor driver stack
Sensor and Location Logo Requirements The logo requirements promote interoperability and ensure functionality with a sensor.
Location Reports from the Location API • Location reports are a packaged set of sensor data fields: • Devices in Category SENSOR_CATEGORY_LOCATION must support one or both location reports: • ILatLongReport and / or ICivicAddressReport
Data Field Support for Ambient Light Sensors • Requirement specific to Ambient Light Sensor • Sensor must report data field: SENSOR_DATA_TYPE_LIGHT_LEVEL_LUX
Testing Sensor and Location Logo Requirements An overview of the requirement testing methodology
Demo! • Standalone test • Required inputs: • Device Instance ID • Test • Yellow items are warnings • Red items are errors = failure
Links and Resources • Contact Us: • SensExt@Microsoft.com • LocExt@Microsoft.com • Sensors.h in SDK and WDK • Documentation on MSDN • PROPERTYKEY Structurehttp://msdn.microsoft.com/en-us/library/bb773381.aspx • PROPVARIANT Structurehttp://msdn.microsoft.com/en-us/library/aa380072.aspx • IPortableDeviceValues Interfacehttp://msdn.microsoft.com/en-us/library/ms740012(VS.85).aspx