The Windows Club

Sensor Batching, ReadingTransform, Custom Sensor features in Windows 10

Windows 10 is not just the latest operating system from Windows; but it is also a bundle of advanced features. Ever since this new operating system from Windows was conceptualized, Windows 10 has been studded with many features, making it the most advanced operating system of its genre. Recently, Microsoft introduced three new sensor features in Windows 10; namely, Sensor Batching, ReadingTransform and Custom Sensors. Here are some important points regarding these three sensor features.

Different sensor features in Windows 10

Sensor batching

One of the sensor features in Windows 10 is Sensor Batching. Sensor batching is the solution created for accelerometer that reduces power impacts during sleep monitoring. Windows Blogs mentions what Sensor Batching is.

“It is a sensor that implements batching capable of buffering sensor samples in sensor hardware and delivering them in a batch instead of delivering continuously.”

The Sensor batching feature lets the application processor to save power; while it wakes-up less frequently to receive the sensor samples together in a batch rather than stay awake to process samples at data intervals.

Here is a diagram that explains how data is collected and then delivered, both continuous delivery as well as batched delivery.

Due to Sensor Batching, one of the important sensor features in Windows 10, accelerometer has got two additional properties. One of them is MaxBatchSize, due to which accelerometer is able to  catch maximum number of events before it is forced to send them. Another property is ReportLatency, which allows the application to influence how often the sensor sends batches by adjusting the latency.


The second in the list of sensor features in Windows 10 is ReadingTranform. This feature helps app developers to align their apps to the display orientation on Windows desktops and Windows Phones. With ReadingTransform feature it is possible with only a one-line code change with Windows 10 UWP APIs.

This feature is highly useful as Windows desktop and Windows Phone define their sensor coordinate systems differently. The data of most sensors, like accelerometer, gyroscope and magnetometer, includes the readings in X, Y and Z axes. All landscape-first devices integrate sensors in such a way that their X-axis is along the longer edge and Y-axis is along the shorter edge of the device. Z-axis is perpendicular to the display. On the other hand, all portrait-first devices integrate the sensors in such a way that their X-axis is along the shorter edge and Y-axis is along the longer edge of the device. Z-axis remains perpendicular to the display.

This process is quite complex, but with ReadingTransform feature, it becomes easy to specify the display orientation the developers want to align the Sensor data.

Custom Sensors

With Windows 10, hardware manufacturers can add new sensor types with no first class representation such as air quality sensor, temperature sensor and heart rate sensors. Rinku Sreedhar, Senior Program Manager at Microsoft, mentions in his blog about the Custom Sensor, the third in the list of sensor features in Windows 10.

“Custom sensors provide a generic API through which IHVs can expose any type of sensors and release them independent of Microsoft’s OS ship cycle.  Partners who used the Win32 sensors API for custom sensors can now develop Windows Store apps without modifying their hardware, and without the complexity of using low-level HID.”

For complete information on the new sensor features in Windows 10, visit The Windows Blog.