Go to file
chenbo ecd1232c0a 【公钥日志打印优化,仅打印前1/2部分】
Signed-off-by: chenbo <chenbo18@huawei.com>
2024-08-24 17:13:27 +08:00
hdc_rust Revert "interactive shell command kill child process" 2024-07-26 11:15:14 +08:00
hdcd_user_permit update hdcd_user_permit/src/main.cpp. 2024-08-08 07:46:29 +00:00
scripts !1461 feat:添加文件夹安装用例 2024-08-14 11:00:38 +00:00
src 【公钥日志打印优化,仅打印前1/2部分】 2024-08-24 17:13:27 +08:00
sudo 【sudo告警清理】【sudo支持cfi保护】 2024-08-08 15:52:29 +08:00
test !1469 【fix】test的build.gn不规范依赖整改 2024-08-16 09:56:25 +00:00
.gitattributes 202106 fixes 2021-06-30 22:07:29 +08:00
BUILD.gn !1374 修复part_config中配置的musl feature 2024-08-09 04:31:38 +00:00
bundle.json user模式下支持sudo操作 2024-08-07 11:07:30 +08:00
hdc.gni user模式下支持sudo操作 2024-08-07 11:07:30 +08:00
LICENSE update OpenHarmony 2.0 Canary 2021-06-02 02:19:53 +08:00
README_zh.md feat:Readme描述修改 2024-06-17 09:16:59 +08:00
README.md change name hdc_std to hdc 2022-10-14 10:45:10 +08:00

HDC-OpenHarmony Device Connector

Introduction

HDC (OpenHarmony Device Connector) is a command-line tool for developers to connect and debug the device. The PC-side development machine uses the command-line tool hdc (for convenience, collectively referred to as hdc below). This tool needs to support deployment on Windows/Linux /Mac and other systems to connect and debug communication with OpenHarmony devices (or simulators). The PC-side hdc tool needs to release corresponding versions for the above development machine operating system platforms, and the device-side hdc daemon needs to follow the device image release including support for the simulator. The following will introduce the commonly used commands and usage examples of hdc.

Architecture

HDC mainly consists of three parts:

  1. The hdc client part: the client running on the development machine, the user can request to execute the corresponding hdc command under the command terminal of the development machine (windows cmd/linux shell), running on the development machine, other terminal debugging IDEs also include hdc client .

  2. The hdc server part: As a background process, it also runs on the development machine. The server manages the communication between the client and the device-side daemon, including the multiplexing of connections, the sending and receiving of data communication packets, and the direct processing of individual local commands.

  3. The hdc daemon part: the daemon is deployed on the OpenHarmony device running on demand, and is responsible for processing requests from the client side.

Table of Contents

/developtools
├── hdc # hdc code directory
│ └── src
│ ├── common # Code directory shared by the device side and the host side
│ ├── daemon # Code directory on the device side
│ ├── host # The code directory of the host
│ └── test # Code directory of test case

PC-side compilation instructions

Compilation steps of hdc pc executable file:

  1. Compile command: Please refer to https://gitee.com/openharmony/build/blob/master/README_zh.md to compile the sdk instructions, execute the specified sdk compile command to compile the entire sdk, hdc will be compiled Pack it inside.

  2. Compile: Run the sdk compilation command adjusted above on the target development machine, and the normal compilation of hdc will be output to the relevant directory of the sdk platform; Note: Only the windows/linux version tools can be compiled in the ubuntu environment, and the mac version needs to be on the macos development machine Compile.

Getting instructions on pc

1. Download sdk to obtain (recommended)

Download the dailybuilds or officially released sdk compressed package by visiting the community website, and unzip and extract it according to your platform to the corresponding directory toolchain

2. Compile by yourself

For compilation, please refer to the separate section above. Prebuilt is no longer available in the prebuilt directory of this project warehouse.

3. Support operating environment

The linux version is recommended to be 64-bit above ubuntu 16.04, and other similar versions are also available; libc++.so quotes errors, please use ldd/readelf and other commands to check the library. Windows version is recommended. Windows 10 64-bit is recommended. If the lower version of the windows winusb library is missing, please use zadig to update the library. .

More help and docs

Please check the Chinese description file README_zh.md or raise an issue in the gitgee community.