If the default_only field is set to True and:
A default for the data type is explicitly configured, then only the SUID of the default sensor is sent through the SUID event when available.
A default for the data type is not explicitly configured, then the SUID of the first sensor with the matching data type is sent through the SUID event.
If the default_only field is set to False, then all the sensors with the matching data type are sent as and when they become available.
64‑bit integer value represented as major[31:16].minor[15:8].revision[7:0], denoting the sensor version.
Example in hexadecimal: major: 0x0002 minor: 0x00 revision: 0x36.
DRIVER_VERSION 0x00020036.
True = DRI
False = IBI
The size (in bytes) of the data event (protocol-buffer-encoded) produced by this sensor.
For physical and virtual sensors, this value refers to the size of their sensor sample
Used by the HAL for maximum batching capacity determination.
0 = continuous periodic sampling
1 = on-change
2 = single output (one-shot)
0 = sensor hardware is on the display side
1 = sensor hardware is on the keyboard side
2 = sensor hardware is mounted on an external device
True, if physical sensor.
False, if virtual sensor.
Get /calculate corr_matrix and bias scale values (if applicable) for your device with the help of the sensor vendor.
Set these values in the corr_matrix section of the sensor’s platform-specific magnetometer JSON file.
While keeping the device stationary, request the gyroscope calibration sensor gyro_cal data for more than 120 sec and then stop.
After the command is executed, check the status field in the received event for the calibration accuracy status.
Bring the device to an open area where there is no magnetic field interference.
Stream the magnetometer data and move the device in motion 8 for more than 60sec. Moving the device in motion 8 is mandatory.
After the command is executed, check the status field in the received event for the calibration accuracy status.