Test your universal sensor driver

This topic provides suggestions for how to test your universal sensor driver.

Sensor driver-specific testing

After you successfully connect your sensor to the Sharks Cove board, and you write and deploy your universal sensor driver, you can use the following tool for testing/debugging the universal sensor driver.

  • MALT (Microsoft Ambient Light Tool)

    You can use the MALT tool as a light testing solution. For more info, see Building a Light Testing Tool.

  • The SensorInfo App

    If you want to use a Universal Windows Platform (UWP) app test sensor driver, then you can use the SensorInfo app. This app will automatically detect any sensors that are attached to (or embedded in) your platform, and then invoke the associated drivers. The app will then display the information that it reads from the sensors, and display the information as moving waveforms.

  • The sensor diagnostic tool

    If you simply want to monitor data retrieval, event handling, report intervals etc., then install this tool on Sharks Cove to monitor these sensor values. The sensor diagnostic tool ships with the Windows driver kit (WDK) and can be found in the following folder: <Kit root>\Tools\<architecture>\sensordiagnostictool.exe.

    For example, if your driver development computer is an x64-based machine, and you installed the WDK to the default location, then you will find the sensor diagnostic tool in the following folder:

    C:\Program Files (x86)\Windows Kits\10\Tools\x64\sensordiagnostictool.exe

    Note

    The Sensor Diagnostic Tool is now deprecated for Windows 10. Please use the SensorInfo App from the Microsoft Store, for all sensor testing and diagnostics.

General driver testing

If you want to find out about testing drivers in general, see the following resources.

  • Visual Studio Kernel-Mode Debugging, using Serial over USB

    Use this test/debug option, if you want the help of Visual Studio in setting up the debugging session for your sensor and its universal sensor driver. For more information, see Setting Up Kernel-Mode Debugging using Serial over USB in Visual Studio.

  • Manually set up Kernel-Mode Debugging, using Serial over USB

    If you want to test/debug your universal sensor driver, but don't want to use Visual Studio for doing the setup, you can use this option. For instructions on how to do this, see Setting Up Kernel-Mode Debugging using Serial over USB Manually.

  • WDK driver testing interface

    You can use the Windows driver kit (WDK) driver testing interface via Microsoft Visual Studio, to test drivers. For information about how to do this, see Testing a Driver.

For information about how to monitor the operation of trace providers, see Collecting and decoding WPP logs.