Sensor Error Codes
NOTE
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
14500101 Service Exception
Error Message
Service exception.Possible causes:1. Sensor hdf service exception;2. Sensor service ipc exception;3. Sensor data channel exception.
Description
This error code is reported if the HDI service is abnormal when the on, once, or off API of the sensor module is called.
Possible Causes
The HDI service is abnormal.
Solution
- Retry the operation at a specified interval (for example, 1s) or at an exponential increase interval.
- If the operation fails for three consecutive times, stop the retry. You can also attempt to obtain the sensor list to check for device availability.
14500102 Sensor Not Supported by the Device
Error Message
The sensor is not supported by the device.
Description
This error code is reported when the getSingleSensor API is called but the device does not support the sensor.
Possible Causes
The device does not support the sensor because the underlying components are not adaptable to the sensor.
Solution
Call the getSingleSensor API. If error code 14500102 is returned, the device does not support the sensor.