Windows 10 – Let’s Have a Look at The New Sensor Features

commas-left

Do you know that Microsoft has added numerous new multiple sensor features, innovations and changes to Windows 10?

No?

Are you still unaware about it? Well not to bother just go through this blog and find detail information about these innovative features!

commas-right

windows 10 New Sensor Features

In the most powerful computer operating system Windows 10, the company has added a multiple new sensor features, changes and innovations. In the earlier official blog of the company, the spokesperson has already talked about the new contextual sensing features, including barometer, activity sensors, pedometers and proximity sensors.

Windows 10 is a personal computer operating system developed by Microsoft as part of the Windows NT family of operating systems. Below, you can find a complete overview about three additional sensor features in Windows 10: Sensor batching, ReadingTransform and custom sensors.

ReadingTransform

Have you feel irritated with supporting your application to the display orientation you required? Now, it becomes a lot easier for you to perform with a one line code change with Windows 10 UWP APIs. Here, you can get more information about it.

Windows Phone as well as Windows desktop both are describing their sensor coordinate systems very differently – because of this, you required to write extensive code to transform the sensor data coordinates with the display orientation.

There are lots of sensors like gyroscope, magnetometer and accelerometer data includes the readings in X. Y and Z axes that mainly depends on the entire way integrated to the system.

However, all landscape-first devices integrate sensors in such way, which their X-axis along with the longer edge and Axis the shorter edge of the device. Z-axis is vertical to the display.

However, the portrait-first devices mixing the sensors in a way that their X-axis is along the shorter edge and Y-axis is along the longer edge of the device. Z-axis will remain vertical to the display. It made it quite difficult to have your application on multiple devices as you were needed to transform the sensor data to the needed display direction.

Now, the company has added new feature that is named as ReadingTransform, which enables people to give the display orientation you want to align the Sensor data.

It becomes a lot easier to do following things, let’s have a look:

  • If you want to have your UWP apps align with the display direction, you can specify to get it work across the entire family of Windows 10 devices, comprising desktop, Xbox, phone, HoloLens, SurfaceHub and loT.
  • You can convert your already obtainable desktop or Phone application to a UWP app, which will work across multiple device families.

Here you can see the C++ sample code change required to make this happen, with the help of accelerometer as an example:

void Scenario4_OrientationChanged::OnOrientationChanged(Windows::Graphics::Display::DisplayInformation ^sender, Platform::Object ^args)
{
if (nullptr != accelerometer)
{
accelerometer->ReadingTransform = sender->CurrentOrientation;
}
}

Sensor Batching

Are you trying to make an application for sleep monitoring, but worried about the power impacts? In Windows 10, the company has introduced the Sensor Batching for accelerometer. When it comes to talking about the sensor batching, it is a sensor, which equipments batching capable of shielding sensor samples in sensor hardware and offering them in batch rather than offering constantly.

It enables the application processor to save power as it can wake-up less often to get sensor samples together in a batch. Below, you can find the diagram that shows how data is collected and then offered, both continuous offering and batched delivery.

windows 10 sensor Batch

With batching, accelerometer now has 2 additional properties:

MaxbatchSize: before it is forced to send them, the maximum number of events, which the sensor can cache. If it is zero, batching is not supported by the sensor. Since the batch FIFO can be shared by multiple sensors, the real size may be smaller than this number size.

ReportLatency: It will enable an application to power how often the sensor sends sets by adjusting the latency. When the property is set for an application, the sensor will send data once the specified amount of time. You are also allowed to control how much data is accumulated over a given latency by setting the ReportInterval property.

Custom Sensors

Hardware manufacturers have the capability to add new sensor types, which don’t have a first class needs, for example air quality sensor, heart rate sensors, temperature sensor and more.

Custom sensors offer a general API by which IHVs can explose any type of sensors and release them independent of Microsoft’s OS ship cycle.

Partners, who are using the Win32 sensors API for custom sensors can develop Windows Store apps without changing their hardware.

Important Points to Consider:

  • Added a new namespace Windows.Devices.Sensor.Custom for Custom Sensors.
  • The CustomSensorReadingChangeEventArgs and CustomSensorReading classes modeled very similar to the other sensor classes.
  • However, the CustomSensorReading class comes with a complete list of property of key/value pairs, which contains the custom data sent from the sensor’s driver to UWP app.

For more information on Windows 10 and its latest features, you can stay connected with us as we will bring more and latest information about it. However, you can also get assistance from our experienced Windows developers, who have hands-on experience in Windows industry.

Contact Us

Leave a Reply

Your email address will not be published. Required fields are marked *

*