This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
ExternalDeviceManager service exception or busType parameter error.
Description
This error code is reported if the ExternalDeviceManager service is abnormal or the busType parameter is invalid.
Possible Causes
The product type is incorrect. Only PCs/2-in-1 products are supported.
An internal communication error occurs in the ExternalDeviceManager service.
The busType parameter is not properly set.
Solution
Change the product type.
Restart the device. or submit a trouble ticket through Customer Service.
Query the supported bus types using deviceManager.BusType.
Error Message
ExternalDeviceManager service exception.
Description
This error code is reported if the ExternalDeviceManager service is abnormal.
Possible Causes
The product type is incorrect. Only PCs/2-in-1 products are supported.
An internal communication error occurs in the ExternalDeviceManager service.
Solution
Change the product type.
Restart the device. or submit a trouble ticket through Customer Service.
Error Message
The driver service does not allow any client to bind.
Description
This error code is reported if a driver client is prohibited from binding a driver server.
Possible Causes
An incorrect value is set for ohos.permission.ACCESS_DDK_ALLOWED in the metadata attribute of the extensionAbilities structure whose type is driver.
Solution
In the source code project of the non-standard peripheral driver, open the entry/src/main/module.json5 file, and assign the value true to ohos.permission.ACCESS_DDK_ALLOWED in the metadata attribute of the extensionAbilities structure whose type is driver.
Error Message
There is no binding relationship.
Description
This error code is reported if a driver client is not bound to any driver server.
Possible Causes
unbindDriverWithDeviceId is called when bindDriverWithDeviceId is not called or fails to be called.
Solution
Call unbindDriverWithDeviceId only after bindDriverWithDeviceId is called successfully.