# knowledge **Repository Path**: hihope_iot/knowledge ## Basic Information - **Project Name**: knowledge - **Description**: OpenHarmony知识体系 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 8 - **Created**: 2022-11-25 - **Last Updated**: 2025-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 介绍 本仓库用于整理各类开源的OpenHarmony学习资料,以供开发者参考。 # 学习路线 整体上OpenHarmony开发分为南北向,南向代表硬件开发、北向代表应用开发,整个学习路线如下: ![南北向开发](image/南北向开发.png) # 南向 ### 1 系统框架 OpenHarmony整体遵从分层设计,从下向上依次为:内核层、系统服务层、框架层和应用层。系统功能按照“系统 > 子系统 > 组件”逐级展开,在多设备部署场景下,支持根据实际需求裁剪某些非必要的组件。OpenHarmony技术架构如下所示: ![](https://gitee.com/openharmony/docs/raw/master/zh-cn/figures/1.png) 更详细系统框架见:[OpenHarmony官方介绍](https://gitee.com/openharmony) ### 2.环境搭建 搭建好的开发环境虚拟机:[虚拟机下载地址](https://gitee.com/lianzhian/OpenHarmony-virtual-machine) Hi3861 Docker镜像 https://gitee.com/hihope_iot/docs/blob/master/HiSpark_WiFi_IoT/Software/Hi3861-docker.md Hi3516 Docker镜像 https://gitee.com/hihope_iot/docs/blob/master/HiSpark-AI-Camera-Developer-Kit/doc/Hi3516_dcoker.md 视频搭建教程:[从零开始搭建OpenHarmony开发环境](https://www.bilibili.com/video/BV16R4y157xv/?spm_id_from=333.999.0.0) ### 3.设备开发入门 [Hi3861设备开发入门](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/blob/master/%E3%80%902%E3%80%91%E8%AF%BE%E7%A8%8B%E6%96%87%E6%A1%A3%E9%85%8D%E5%A5%97%E4%BE%8B%E7%A8%8B/README.md) 包含以下文章: ![image-20221127224557040](image/文章列表.png) ### 4.内核开发 [线程](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B/OpenHarmony%20master%E7%89%88%E6%9C%AC%E4%BE%8B%E7%A8%8B/00_thread) [定时器](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B/OpenHarmony%20master%E7%89%88%E6%9C%AC%E4%BE%8B%E7%A8%8B/01_timer) [互斥锁](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B/OpenHarmony%20master%E7%89%88%E6%9C%AC%E4%BE%8B%E7%A8%8B/03_mutex) [延时](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B/OpenHarmony%20master%E7%89%88%E6%9C%AC%E4%BE%8B%E7%A8%8B/02_delay) [信号量](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B/OpenHarmony%20master%E7%89%88%E6%9C%AC%E4%BE%8B%E7%A8%8B/04_semaphore) [消息队列](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B/OpenHarmony%20master%E7%89%88%E6%9C%AC%E4%BE%8B%E7%A8%8B/05_message) ### 5.驱动和其它开发 [Hi3861智能家居套件相关例程](https://gitee.com/hihope_iot/HiHope_Pegasus_Doc/tree/master/%E3%80%903%E3%80%91%E6%99%BA%E8%83%BD%E5%AE%B6%E5%B1%85%E5%A5%97%E4%BB%B6%E5%AE%8C%E6%95%B4%E4%BE%8B%E7%A8%8B) 包含了如下例程 | 序号 | 文件夹 | 功能 | | ---- | ----------------------------------------- | -------------------------- | | 7 | 06_gpioled | LED灯 | | 8 | 07_gpiobutton | 按键 | | 9 | 08_pwmled | PWM控制LED灯 | | 9 | 09_adc | ADC功能 | | 10 | 10_i2caht20 | 温湿度传感器 | | 11 | 11_uart | 串口 | | 12 | 12_ssd1306 | OLED屏幕 | | 13 | 13_oledplayer | OLED播放 | | 14 | 14_pwmbeer | PWM驱动蜂鸣器 | | 15 | 15_pwmbeermusic | 蜂鸣器播放音乐 | | 16 | 16_trafficlight | 交通灯板 | | 17 | 17_colorfullight | 三色LED——PWM占空比控制颜色 | | 18 | 18_environment | 环境监测板上外设 | | 19 | 19_wificonnect | WiFi链接热点 | | 20 | 20_wifihotspot | WiFi热点 | | 21 | 21_tcpclient | TCP客户端 | | 22 | 22_tcpserver | TCP服务器 | | 23 | 23_udpclient | UDP客户端 | | 24 | 24_udpserver | UDP服务器 | | 25 | 25_sntp | SNTP协议 | | 26 | 26_paho.mqtt.embedded-c | MQTT协议 | | 27 | 27_httpd | HTPP协议 | | 28 | 28_easy_wifi | WiFi配网 | | 29 | 29_smart_night_light | 智能夜灯 | | 30 | 30_samart_environmental_monitoring_system | 环境监测安防报警 | ### 6.HDF驱动开发 [HDF驱动框架](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/driver/Readme-CN.md) ![image-20221127225804760](image/HDF驱动.png) ### 7.子系统开发 [子系统开发](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/Readme-CN.md) ![image-20221127225902029](image/子系统.png) ### 8.移植 [官方移植指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/Readme-CN.md) ![image-20221127230016230](image/移植.png) **连志安移植笔记:** 把最新版本的OpenHarmony轻量系统内核移植到ARM单片机上,现在代码开源、移植文章也完成7篇,后续会考虑增加视频讲解,直播。以便大家也可以自己移植。 [移植OpenHarmony轻量系统【1】移植思路](https://harmonyos.51cto.com/posts/10206) [移植OpenHarmony轻量系统【2】Board和SoC解耦的设计思路](https://harmonyos.51cto.com/posts/10219) [移植OpenHarmony轻量系统【3】Board、SOC、架构与代码对应关系](https://harmonyos.51cto.com/posts/10295) [移植OpenHarmony轻量系统【4】启动文件与链接](https://harmonyos.51cto.com/posts/10325) [移植OpenHarmony轻量系统【5】newlibc库移植](https://harmonyos.51cto.com/posts/10326) [移植OpenHarmony轻量系统【6】内核初始化和启动](https://harmonyos.51cto.com/posts/10327) [移植OpenHarmony轻量系统【7】烧录与验证](https://harmonyos.51cto.com/posts/10328) # 北向 ### 1 官方应用开发资料 官方已经提供了非常齐全的应用开发资料,可以查看: [北向应用开发资料](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/Readme-CN.md) ### 2 应用API [ 基于ArkTS的声明式开发范式](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md) [ 兼容JS的类Web开发范式](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-js/Readme-CN.md) 更多API参考:[北向应用开发资料](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/Readme-CN.md) ### 3 应用Demo [samples](https://gitee.com/openharmony/applications_app_samples/blob/master/README_zh.md) [demo](https://gitee.com/openharmony/codelabs/blob/master/README.md) # 综合项目 ### 1 智能家居场景 #### 连接模组类应用 - [智能扫地机](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_cleaner/README.md) - [智能电子牌](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/electronic_borad/README.md) - [智能垃圾桶](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_trashcan/README.md) - [智能保险柜](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_safe/README.md) #### 带屏IoT设备应用 - [智能中控面板](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_cenctrl_board/README.md) - [智能相机](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_camera/README.md) #### Camera应用 - [智能猫眼3516](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_door_viewer_3516/README.md) - [智能猫眼3518](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/smart_door_viewer_3518/README.md) #### 标准设备应用 - [数字管家DistSchedule](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/digital_housekeeper_application/README_zh.md) - [数字管家DistScheduleEts(ETS版 正在重构中)](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/FA/DistScheduleEts) - [智能停车CarParkTest](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/FA/CarParkTest/README_zh.md) - [智慧家居中控 eTS版](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/samrt_home_center/README.md) - [坚果食谱](https://gitee.com/openharmony-sig/knowledge_demo_smart_home/tree/master/docs/NutRecipes/README.md) ### 2 场景化Demos - [影音娱乐场景](https://gitee.com/openharmony-sig/knowledge_demo_entainment) - [购物消费场景](https://gitee.com/openharmony-sig/knowledge_demo_shopping) - [运动健康场景](https://gitee.com/openharmony-sig/knowledge_demo_temp) - [智能出行场景](https://gitee.com/openharmony-sig/knowledge_demo_travel) - [智慧办公场景](https://gitee.com/openharmony-sig/knowledge_demo_temp) - [其他场景](https://gitee.com/openharmony-sig/knowledge_demo_temp) ### 3 挑战赛作品 [挑战赛学生作品项目](https://gitee.com/openharmony-sig/online_event/tree/master/solution_student_challenge) 包括如下: ![image-20221127232016315](image/挑战赛作品1.png) ![image-20221127231950617](image/挑战赛作品2.png) ### 4 DAYU200体验官相关Demo [dayu200_demo下载链接](https://gitee.com/hihope_iot/dayu200_demo) [DAYU200体验官相关文章](https://ost.51cto.com/column/82) ![image-20221127232125009](image/DAYU200DEMO.png)