This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The device is not bound.
Description
The device is not registered.
Possible Causes
The application does not call bindDevice to register the device.
Solution
Call bindDevice to register the device.
Error Message
The device is not paired.
Description
The device is not paired.
Possible Causes
The device registered by the application is not paired via Bluetooth.
Solution
Perform the Bluetooth pairing process.
Error Message
The device address has already been bound with PartnerAgentExtensionAbility.
Description
The device address has been bound to a PartnerAgentExtensionAbility.
Possible Causes
The application registers the same address again.
Solution
Call unbindDevice to deregister the current device and then registers the new ability of bindDevice.
Error Message
Bluetooth disabled.
Description
Bluetooth is disabled.
Possible Causes
Bluetooth is disabled.
Solution
Enable Bluetooth.
Error Message
The device has not initiated ranging.
Description
The device has not initiated ranging.
Possible causes
The device has not initiated ranging. For example, stopRanging is called without startRanging being called first.
Solution
You are advised to call startRanging to start ranging before performing subsequent operations.
Error Message
The device has already initiated ranging.
Description
The device has initiated ranging.
Possible causes
The device has initiated ranging. For example, startRanging is called repeatedly for the same device without calling stopRanging to stop the previous ranging first.
Solution
You are advised not to initiate ranging repeatedly. You can call stopRanging to stop the ranging and then call startRanging again to initiate ranging.
Error Message
The specified ranging service is not supported.
Description
The specified type of ranging service is not supported.
Possible causes
The specified ranging service is not supported. For example, the input ranging type is not within the specified range, or the specified ranging type is not supported on the device.
Solution
This type of service does not support ranging. Use a valid ranging type by referring to RangingTypes.
Error Message
The ranging service is disabled.
Description
The ranging service is disabled.
Possible causes
The ranging service is disabled. For example, the ranging service is not enabled or has been disabled, and the ranging operation cannot be started.
Solution
It is recommended that the user enable the service before starting ranging.
Error Message
The parameter value does not meet specifications.
Description
The parameters do not meet the service specifications.
Possible causes
The parameters do not meet the service specifications. For example, the device ID is not in the format of xx:xx:xx:xx:xx:xx (hexadecimal).
Solution
Check whether the input parameters meet the service requirements.