Sensor functional test tools
The test tools ensure the accuracy, reliability, and optimal performance of both the hardware-based and software-based sensors in your applications. The following tools facilitate comprehensive testing of the sensor functionalities.- The sensor info test provides detailed information about the sensor.
- The driver acceptance test ensures that the sensor drivers are functioning correctly and are compatible with Qualcomm sensing hub (QSH).
- The sensor workhorse is a tool to stress-test the sensors under various conditions.
ssc_sensor_info is an application within the QSH test suite. It lists the QSH supported sensors and their attributes. You can run the following query at high-level operating system (HLOS) to get the attributes of a specified data type.
ssc_sensor_info test application.
Table : Parameters of ssc_sensor_info
| Flags | Type | Value | Units | Notes |
|---|---|---|---|---|
| Sensor | string | Any valid sensor type, such as accel and gyro. | N.A. | Queries attribute information for the specified sensor type. |
| Log | int | 0 | 1 | N.A. | Enables or disables diagnostic (API) logs. |
| help(h) | int | N.A. | N.A. | Displays command usage help. |
| Duration | int | Positive values | Seconds | Specifies the wait time for the sensor attribute updates. |
| Delay | int | Positive values | Seconds | Specifies the time delay before sending the sensor requests. |
| default_only | int | 0 | 1 | N.A. | If the default_only flag is set to False, UIDs of all the available sensors that support the specified data type are sent. If the default_only flag is set to True, only the UID of the default sensor availability is sent. |
- Query the sensor attributes and generate diagnostic logs.
- Query all accel sensor attributes.
- Standard output on console
- Result file
ssc_drva_test driver acceptance test tool does the following:
- Performs sensor driver validation and operates at the QSH sensor API layer.
- Executes a range of sensor use cases, such as streaming the sensor data and batching a sensor at a selected sampling frequency.
- Accepts the parameters directly from the command line and eliminates the need for compile-time options.
ssc_drva_test test application.
Table : Parameters of ssc_drva_test
| Flag | Type | Value | Unit | Notes |
|---|---|---|---|---|
sensor | string |
| N.A. | Mandatory argument: limited to the available sensor types. |
duration | float | Positive values only | Seconds | Mandatory argument: sensor test duration in seconds. |
sample_rate | float |
| Hz | Mandatory for streaming sensors, optional for on-change sensors. |
batch_period | float | Positive floating point numbers | Seconds | This period is the same as the report period and indicates how long to buffer the samples and report outside of the low-power processor. |
iterations | int | Positive values only | N.A. | Provides the number of times the test must be repeated. |
num_samples | int | Positive values only | N.A. | Indicates the minimum number of samples intended to be collected. If a num_samples parameter is specified and the test does not collect enough samples during the test, the test sensor generates FAIL. |
factory_test | int |
| N.A. | Selects the type of factory test (from the value column) that you want to run. |
- Stream a single sensor at a selected sampling frequency for a known duration:
- Batch a single sensor at a selected sampling frequency and report period for a known duration:
- Self-test for accelerometer (hardware self-test), which checks the health and basic functionality of the accelerometer sensor by running the built-in diagnostic routines:
PASS or FAIL, which indicates only the test execution status.
The see_workhorse sensor workhorse tool does the following:
- Operates specific sensors based on the command-line arguments.
- Streamlines sensor testing and data collection in various configurations.
see_workhorse tool.
Table : Parameters of see_workhorse
| Flags | Type | Value range | Units | Notes |
|---|---|---|---|---|
sensor | string |
| N.A. | Mandatory argument: Limited to the available sensor types. |
on_change | int | 0 | 1 | N.A. |
|
sample_rate | float |
| Hz | Mandatory for streaming sensors, optional for on-change sensors. |
batch_period | float | Positive floating point numbers | Seconds | Same as the batch period or report period. |
calibrated | int | 0 | 1 | N.A. |
|
wakeup | int | 0 | 1 | N.A. |
|
display_events | int | 0 | 1 | N.A. | Display sensor events in JSON format, using the event callbacks. |
Sensing hub simulator (SHS)
SHS enables you to build algorithms for QSH using a x86 Linux platform. See Sensing hub simulator, for more information.Miscellaneous tools
Use the following tools for the build environment and functional diagnosis:- Qualcomm® Hexagon™ DSP toolchain: Hexagon 8.4.07 toolchain for the build environment.
-
QXDM Professional™ Tool: A diagnostic client used for functional diagnosis and aDSP-side debugging.
- The QSH framework can call the macros and APIs directly to send the debug information to print strings and log packets.
- The QXDM logs are primarily used for the aDSP side debugging. For more information, see Troubleshoot sensors.
- QXDM Professional requires a USB connection. The application processors have direct connectivity to a USB port, whereas the aDSP doesn’t have such connectivity. For more information, see Qualcomm® Package Manager 3 Documentation.

