Driver Error Codes
NOTE
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
22900001 ExternalDeviceManager Service Exception or busType Parameter Error
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. You can also submit an issue online.
- Query the supported bus types using deviceManager.BusType.
26300001 ExternalDeviceManager Service Exception
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. You can also submit an issue online.
26300002 Binding Driver Client to Driver Server Failed
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.
26300003 Driver Client Not Bound to Any Driver Server
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.