harmony 鸿蒙Setting Up the Environment

  • 2025-06-06
  • 浏览 (6)

Setting Up the Environment

Development Tool and Configuration

DevEco Studio, as the driver development tool, allows you to develop, debug, and package drivers. Download and install DevEco Studio and verify basic operations to ensure that it can function properly.

Download and install DevEco Studio and verify basic operations to ensure that it can function properly. For details, see Creating and Running a Project in DevEco Studio User Guide.

SDK Version Configuration

The ArkTs APIs for peripheral management can be used only when the SDK is of API version 10 or later. For details about how to update the SDK, see OpenHarmony SDK Upgrade Assistant.

The SDK version must meet the following requirements when you develop dedicated peripheral drivers or enhanced peripheral drivers based on the DDK.

NDK API SDK Version
USB DDK API version 10 or later
HID DDK API version 11 or later
USB Serial DDK API version 18 or later
SCSI Peripheral DDK API version 18 or later

Verifying the Environment

Check whether DevEco Studio is connected to the OpenHarmony device.

Device connection

HDC Configuration

HarmonyOS Device Connector (hdc) is a command-line tool for debugging. It can be used to interact with real devices or the Emulators on Windows, Linux, and macOS. For details about the configuration, see hdc.

NOTE
Configuration of the environment variable hdc_server_port and global environment variables is mandatory.

Development Device

  • Currently, RK3568 is used as the device for development, debugging, and verification. For details about how to compile and burn the RK3568, see Quick Start.
  • During peripheral client and driver development, you need to connect an external USB device for debugging. Currently, only an external USB device is supported.
  • The product ID and vendor ID of the USB device are required for defining drivers and implementing IPC.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Driver Development Kit

harmony 鸿蒙Introduction to Driver Development Kit

harmony 鸿蒙UI-free Driver Development

harmony 鸿蒙FAQs

harmony 鸿蒙UI-based Driver Development

harmony 鸿蒙HID DDK Development

harmony 鸿蒙SCSI Peripheral DDK Development

harmony 鸿蒙Terms

harmony 鸿蒙USB DDK Development

harmony 鸿蒙USB Serial DDK Development

0  赞