HOME
Shop
  • English
  • 简体中文
HOME
Shop
  • English
  • 简体中文
  • Product Series

    • FPGA+ARM

      • GM-3568JHF

        • 1. Introduction

          • GM-3568JHF Introduction
        • 2. Quick Start

          • 01 Environment Construction
          • 02 Compilation Instructions
          • 03 Burning Guide
          • 04 Debugging Tools
          • 05 Software Update
          • 06 View information
          • 07 Test Command
          • 08 Application Compilation
          • 09 Source code acquisition
        • 3. Peripherals and Interfaces

          • USB
          • Display and touch
          • Ethernet
          • WIFI
          • Bluetooth
          • TF-Card
          • Audio
          • Serial Port
          • CAN
          • RTC
        • 4. Application Development

          • 01 UART read and write case
          • 02 Key detection case
          • 03 LED light flashing case
          • 04 MIPI screen detection case
          • 05 Read USB device information example
          • 06 FAN Detection Case
          • 07 FPGA FSPI Communication Case
          • 08 FPGA DMA read and write case
          • 09 GPS debugging case
          • 10 Ethernet Test Cases
          • 11 RS485 reading and writing examples
          • 12 FPGA IIC read and write examples
          • 13 PN532 NFC card reader case
          • 14 TF card reading and writing case
        • 5. QT Development

          • 01 ARM64 cross compiler environment construction
          • 02 QT program added automatic startup service
        • 6. Others

          • 01 Modification of the root directory file system
          • 02 System auto-start service
    • ShimetaPi

      • M4-R1

        • Introduction

          • M4-R1 Introduction
        • Get started quickly

          • OpenHarmony概述
          • 镜像烧录
          • 开发环境准备
          • Hello World应用以及部署
        • Application Development

          • getting Started

            • 第一章 ArkTS语言简介
            • 第二章 UI组件介绍和实际应用(上)
            • 第三章 UI组件介绍和实际应用(中)
            • 第四章 UI组件介绍和实际应用(下)
          • Advanced

            • 第一章 入门指引
            • 第二章 三方库的引用和使用
            • 第三章 应用编译以及部署
            • 第四章 命令行恢复出厂设置
            • 第五章 系统调试--HDC调试
            • 第六章 APP 稳定性测试
            • 第七章 应用测试
        • Equipment Development

          • 第一章 环境搭建
          • 第二章 下载源码
          • 第三章 编译源码
        • Peripherals and interfaces

          • 树莓派接口
          • GPIO 接口
          • I2C 接口
          • SPI通信
          • PWM控制
          • 串口通讯
          • TF Card
          • 屏幕
          • 触摸
          • 音频
          • RTC
          • Ethernet
          • M.2
          • MINI-PCIE
          • Camera
          • WIFI&BT
          • 树莓派拓展板
        • Frequently asked questions

          • 资源下载
      • M5-R1

        • Introduction

          • Introduction to ShimetaPi M5-R1
    • OpenHarmony

      • SC-3568HA

        • Introduction

          • SC-3568HA Overview
        • Quick Start Guide

          • OpenHarmony Overview
          • Image Flashing
          • Setting Up the Development Environment
          • Hello World Application and Deployment
        • Application Development

          • ArkUI

            • Chapter 1 Introduction to ArkTS Language
            • Chapter 2 Introduction to UI Components and Practical Applications (Part 1)
            • Chapter 3 Introduction to UI Components and Practical Applications (Part 2)
            • Chapter 4 Introduction to UI Components and Practical Applications (Part 3)
          • Expand

            • Chapter 1 Getting Started Guide
            • Chapter 2 Referencing and Using Third-Party Libraries
            • Chapter 3: Application Compilation and Deployment
            • Chapter 4: Command-Line Factory Reset
            • Chapter 5: System Debugging -- HDC (Huawei Device Connector) Debugging
            • Chapter 6 APP Stability Testing
            • Chapter 7 Application Testing
        • Device Development

          • Chapter 1 Environment Setup
          • Chapter 2 Download Source Code
          • Chapter 3 Compiling Source Code
        • Peripheral And Iinterface

          • Raspberry Pi interface
          • GPIO Interface
          • I2C Interface
          • SPI communication
          • PWM (Pulse Width Modulation) control
          • Serial port communication
          • TF Card
          • Display Screen
          • Touch
          • Audio
          • RTC
          • Ethernet
          • M.2
          • MINI-PCIE
          • Camera
          • WIFI&BT
          • Raspberry Pi expansion board
        • Frequently Asked Questions

          • Resource Downloads
      • M-K1HSE

        • Introduction

          • M-K1HSE Introduction
        • Quick Start

          • Development environment construction
          • Source code acquisition
          • Compilation Notes
          • Burning Guide
        • Peripherals and interfaces

          • 01 Audio
          • 02 RS485
          • 03 Display
        • System customization development

          • System transplant
          • System customization
          • Driver Development
          • System Debugging
          • OTA Update
    • EVS-Camera

      • CF-NRS1

        • 1. Introduction

          • Event Camera Technical Documentation
        • 2. Quick Start

          • Host driver and software installation
        • 3. SDK application development

          • API Usage Instructions
      • CF-CRA2

        • Introduction

          • About CF-NRS1
    • AI-model

      • 1684XB-32T

        • Introduction

          • AIBOX-1684XB-32 Introduction
        • Get started quickly

          • First time use
          • Network Configuration
          • Disk usage
          • Memory allocation
          • Fan Strategy
          • Firmware Upgrade
        • Deployment Tutorial

          • Algorithm deployment
          • Deploy Llama3 Example
        • Application Development

          • Sophgo SDK Development
          • Sophon LLM_api_server development
          • Deploy MiniCPM-V-2_6
          • Qwen-2-5-VL Image and Video Recognition DEMO
          • Qwen3-chat-DEMO
          • Qwen3-Qwen Agent-MCP-Demo
          • Qwen3-langchain-AI Agent
      • 1684X-416T

        • Introduction

          • AIBOX-1684X-416 Introduction
        • Demo simple operation guide

          • Simple instructions for using shimeta smart monitoring demo
    • Core-Board

      • C-3568BQ

        • Introduction

          • C-3568BQ Overview
      • C-3588LQ

        • Introduction

          • C-3588LQ Introduction
      • GC-3568JBAF

        • Introduction

          • GC-3568JBAF Introduction
      • C-K1BA

        • Introduction

          • C-K1BA Introduction

第一章 入门指引

1. OpenHarmony 5.0 Release版本的配套文档

OpenHarmony官网APP开发主页地址(含完整的API参考与Demo):

[https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/application-dev-guide.md/]

TOOL

2. OpenHarmony APP开发工具下载地址:

[https://developer.harmonyos.com/cn/develop/deveco-studio/]

TOOL

[https://developer.harmonyos.com/cn/docs/documentation/doc-guides-V3/deveco\_overview-0000001053582387-V3?catalogVersion=V3]

TOOL

安装和配置可参考官方文档:

3. OpenHarmony应用程序示例

以下网址是官方关于常见的应用程序场景的示例Demo,可以根据需求参考学习

[OpenHarmony/applications_app_samples] https://gitee.com/openharmony/applications_app_samples?_from=gitee_search

TOOL

4. OpenHarmony标准SDK下载地址:

4.1 标准路径sdk

一般不用手动下载,第2步开发工具可自动下载最新的realse版本SDK

5. OpenHarmony Full-SDK 替换:

Full-SDK是提供OpenHarmony全量接口的SDK,包含了系统应用所需要的高权限API,用于厂商开发应用。

自行编译替换Full-SDK参考文档:

https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/faqs/full-sdk-switch-guide.md/

6. OS固件烧录指南

如Android各平台的烧录工具和步骤

7. USB联调调试APP指南

1.  电脑用USB线连接设备OTG口。

2.  电脑上把hdc工具添加到环境变量,路径:您的openharmonysdk/10/toolchains,

	如:D:\\SDK\\OpenHarmony\\sdk\\10\\toolchains

3.  设备上打开USB调试开关,设置-->系统-->开发者选项-->USB调试。

4.  电脑上打开命令行工具,`hdc list targets`,连接成功可打印出设备,如下:
	hdc list targets
    150100414a54443452069035fa308800

8. 常见问题&解决

8.1 选择为Openharmony SDK开发环境

build-profile.json5 声明 "runtimeOS": "OpenHarmony"

TOOL

8.2 升级App为system权限

调用system相关api,如power.reboot('reboot_test'),需要system权限。资料相对比较分散,甚至遇到一些问题。以下是配置system权限的步骤

升级APP为system权限需要修改两个位置,一是DevEco Studio里添加requestPermissions,二是OpenHarmony sdk里配置为system。下面以重启接口power.reboot('reboot_test');为例。

A. DevEco Studio 相关业务代码里使用接口:

try {
  console.info('onPageShow reboot start.')
  // @ts-ignore
  power.reboot('reboot_test')
} catch (err) {
  console.error('reboot failed, err: ' + err)
}

B. module.json5里增加权限ohos.permission.REBOOT

	"module": {
		-----
		"requestPermissions":[
		  {
			"name" : "ohos.permission.REBOOT"
		  }
		]
		----
	}

C. OpenHarmony sdk修改UnsgnedReleasedProfileTemplate.json文件,如这边的文件地址为:

	D:\SDKs\OpenHarmony\sdk\10\toolchains\lib

修改"bundle-name" 为应用包名,apl为"system_core"

	"bundle-name":"com.smdt.ostools.agingtest",
	"apl":"system_core",
	"app-feature":"hos_system_app"

D. 重新生成key,DevEco Studio-->Project Structure -> project ->Signing Configs。此处要注意,要勾掉Support HarmonyOS,进入相关文件夹,看下新生成key的修改时间,确认是否重新生成,如果未重新生成,先删掉旧key,再重新生成。

TOOL

F. 运行APP,如果安装成功,且未打印 "reboot failed, err", 重启成功,且完成System权限升级。

G. 系统签名

TOOL

在sdk目录找到如上文件,修改如下

TOOL

9. 注意

  • 多看官方文档,多百度,多试验

Edit this page on GitHub
Last Updated:
Contributors: zwhuang
Next
第二章 三方库的引用和使用