目录

Setting Up the Environment

Development Tool and Configuration

DevEco Studio is a required tool for driver development. You can use it to develop, debug, and package drivers.

Download and install DevEco Studio using your HUAWEI ID. Then, follow the instructions in Creating a Project in the tool overview to perform basic verification and ensure that DevEco Studio runs properly.

SDK Version Configuration

The ArkTS APIs provided by the extended peripheral management module are applicable only when the SDK is of API version 10 or later.

The following table lists the SDK versions required to develop dedicated peripheral drivers or enhanced peripheral drivers based on the DDK.

NDK API SDK Version
UsbDdk API version 10 or later
HidDdk API version 11 or later
USBSerialDDK API version 18 or later
ScsiPeripheralDDK API version 18 or later

Verifying the Environment

Check whether DevEco Studio is connected to an HarmonyOS device.

HDC Configuration

HarmonyOS Device Connector (hdc) is a command-line debugging tool. It enables interaction with real devices or emulators on Windows, Linux, and Mac systems. For details, see hdc.

Configuring the environment variable hdc_server_port and global environment variables is mandatory.

Development Device