Sensor ReadyState Verification Test
This automated WHCK test ensures the target sensor device/s enters the ‘Ready’ state within the expected time. For the expected ready state times for different sensor devices, refer to the table in More information (the table can also be found in the requirements doc).
For GPS sensor device, the test performs both HOT FIX test and COLD FIX testing. For the Hot Fix and Cold Fix times, please refer to the table in More information. The Cold Fix or the Cold Start test is repeated 5 times and the criterion for passing is 80%
Test details
Associated requirements |
Device.Input.Sensor.ALS.SupportRequiredData Device.Input.Sensor.Base.SupportDataTypesAndProperties |
Platforms |
Windows RT 8.1 Windows 8.1 x64 Windows 8.1 x86 |
Expected run time |
~2 minutes |
Categories |
Basic Certification |
Type |
Automated |
Running the test
Before you run the test, complete the test setup as described in the test requirements: Sensor Device Testing Prerequisites.
If this test is being run against a GPS sensor device node, make sure that you are running the test in an environment in which you can receive a GPS signal.
Troubleshooting
For troubleshooting information, see Troubleshooting Device.Input Testing.
More information
Sensors shall not transition to the SENSOR_STATE_READY state until valid data is available.
Sensors must complete power-up initialization tasks and transition to the SENSOR_STATE_READY after being opened by a client or resuming from system standby within the following times:
Sensor Type | Maximum time allowed to enter ready state |
---|---|
Accelerometer |
1 second |
Gyrometer |
3 seconds |
Compass |
3 seconds |
Inclinometer |
3 seconds |
Orientation sensor |
5 seconds |
Ambient Light Sensor |
2 seconds |
GPS |
See the following table |
GPS Startup requirements under clear sky conditions:
Startup type | Time elapsed from position request (in seconds) | Acceptable sensor states | Acceptable error radius |
---|---|---|---|
Cold start |
0 |
SENSOR_STATE_INITIALIZING |
n/3a |
Cold start |
45 |
SENSOR_STATE_READY |
Under 50 meters |
Warm start (powered off with assistance |
0 |
SENSOR_STATE_INITIALIZING |
n/a |
Warm start (powered off with assistance |
10 |
SENSOR_STATE_READY |
Under 300 meters |
Warm start (powered off with assistance |
20 |
SENSOR_STATE_READY SENSOR_STATE_READY |
Under 50 meters |
Hot start |
0 |
SENSOR_STATE_INITIALIZING or SENSOR_STATE_READY depending if fix was maintained |
Under 300 meters |
Hot start |
2 |
SENSOR_STATE_READY |
Under 50 meters |
Cold Start TTFF: Time Unkown, Current ephemeris unknown, position unknown.
Hot Start TTFF: Time known, Almanac known, Ephemeris known, Position within 100km of last fix.
GPS devices shall be able to acquire first fix under two seconds when 1) The radio is on, 2) Flight Mode is off, and 3) Under clear sky conditions.
GPS devices under clear sky conditions shall be able to report position from a cold start within 45 seconds.
A-GPS devices shall be able to report position within 10 seconds with 100-300 meter accuracy and within 20 seconds with 30 meter or less accuracy.
Location device shall be in initializing state after it is enabled and change to ready after acquiring the current position.
Location devices shall fire valid location data events with valid location data when in the ready state.
Location devices shall not fire data events when the device is not in either ready state or initializing state.