OpenHarmony OneConnect 2.0.0 Release发布啦!
OpenHarmony OneConnect 2.0.0 Release
版本概述
OpenHarmony OneConnect 2.0.0 Release是基于OpenHarmony 5.0 Release版本打造的OpenHarmony统一互联Release版本。相比OpenHarmony 5.0 Release版本新增了统一互联相关的功能特性,包括富对瘦设备控制,富对富投屏,富对富文件互传,分布式摄像头(注:其中富表示富设备,即标准设备;瘦表示瘦设备,即轻量设备、小型设备)。欢迎大家关注并使用,如有疑问可以在laval社区交流,提问题备注【统一互联】,期待您的宝贵建议!
特性说明
富对瘦设备控制
-
支持HarmonyOS Next手机通用互联APP对OpenHarmony WiFi/BLE combo 设备进行发现、连接、配网,并能进行端云控制;
-
支持HarmonyOS Next手机通用互联APP对OpenHarmony WiFi/BLE/SLE 桥设备(L2)、SLE/BLE Combo 生态设备(L0)进行发现、连接、配网,桥设备管理子设备,能进行端云控制;
-
支持搭载HarmonyOS Next系统手机靠近OpenHarmony设备进行发现与弹框配对;
-
支持星闪互联,构建燃气系统,实现燃气泄漏快速响应,自动远程关闭阀门。
富对富设备文件互传
-
支持OpenHarmony L2设备之间互相分享文件管理器中的文件或文件夹;
-
支持OpenHarmony L2设备之间互相分享图库应用中的图片或视频。
富对富设备投屏
-
支持OpenHarmony设备作为Miracast source端,向支持标准Miracast协议的各种目标设备进行投屏播放;
-
支持OpenHarmony设备作为Miracast sink端,接收各种Miracast source端设备的投屏内容;
-
支持DLNA投屏功能,支持OpenHarmony设备作为DLNA sink端,被DLNA source端上第三方应用直接发现和投屏。
分布式摄像头
- 支持海思平台OpenHarmony L2设备发现,连接海思平台OpenHarmony IPC 摄像头,进行预览,转向控制。
版本软件与工具配套关系
| 软件 | 版本 | 备注 |
|---|---|---|
| OneConnect | 2.0.0 Release | 统一互联大版本 |
| —— OpenHarmony | 5.0.0 Release | 配套OpenHarmony的代码基线 |
| —— HarmonyOS Next | 5.1.0 及以上 | 配套HarmonyOS Next手机版本 |
| —— HUAWEI DevEco Studio | 5.0.5 Release | OpenHarmony应用开发推荐使用 |
源码获取
前提条件
-
注册码云gitee帐号。
-
注册码云SSH公钥,请参考码云帮助中心。
-
git config --global user.name "yourname" git config --global user.email "your-email-address" git config --global credential.helper store -
安装码云repo工具,可以执行如下命令。
curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中chmod a+x /usr/local/bin/repo pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
代码下载
富对瘦设备控制相关代码仓
-
统一互联星闪(桥)设备开发-DAYU200(RK3568)+外挂Hi3873E
repo init -u git@gitcode.com:ohos-oneconnect/manifest.git -b OpenHarmony-5.0.0-Release -m nearlink.xml --no-repo-verify repo sync -c repo forall -c 'git lfs pull' repo forall -c "git checkout OneConnect-v1.3.0-Release" repo forall -c 'git lfs pull' -
统一互联星闪(生态)设备开发-BearPi-Pico H3863 (Hi3863)
repo init -u git@gitcode.com:ohos-oneconnect/manifest.git -b OpenHarmony-5.0.0-Release -m nearlink.xml -g ohos:mini --no-repo-verify repo sync -c repo forall -c 'git lfs pull' repo forall -c "git checkout OneConnect-v1.3.0-Release" repo forall -c 'git lfs pull' -
关键仓库列表
序号 仓库名 仓库路径 备注 1 communication_iot_connect https://gitcode.com/ohos-oneconnect/communication_iot_connect 连接控制组件,提供基于WiFi、BLE等通信方式的设备发现配网能力 2 applications_sample_iot_connect_samples https://gitcode.com/ohos-oneconnect/applications_sample_iot_connect_samples 富对瘦设备控制WiFi/BLE combo等构建示例 3 communication_nearlink https://gitcode.com/ohos-oneconnect/communication_nearlink 星闪协议栈,富对瘦项目桥 & 生态设备构建示例 4 ohos-connect-hap https://gitcode.com/ohos-oneconnect/ohos-connect-hap 通用互联APP,用于鸿蒙生态设备控制,能够运行在HOS Next手机上 -
云平台代码
序号 仓库名 仓库路径 备注 1 cloud-account https://gitee.com/link?target=https://gitcode.com/ohos-oneconnect/cloud-account 账号云 2 cloud-model https://gitee.com/link?target=https://gitcode.com/ohos-oneconnect/cloud-model 物模型云 3 cloud-device https://gitee.com/link?target=https://gitcode.com/ohos-oneconnect/cloud-device 设备管理云 4 cloud-business https://gitee.com/link?target=https://gitcode.com/ohos-oneconnect/cloud-business 场景云 5 cloud-manager https://gitee.com/link?target=https://gitcode.com/ohos-oneconnect/cloud-manager 云平台后台管理
文件互传相关代码仓
-
文件互传工程代码下载
repo init -u https://gitcode.com/ohos-oneconnect/manifest -b OpenHarmony-5.0.0-Release -m m_file_share.xml repo sync -c repo forall -c git lfs pull repo forall -c "git checkout OneConnect-v1.1.0-Release" repo forall -c 'git lfs pull' -
关键仓库列表
序号 仓库名 仓库路径 备注 1 applications_share https://gitcode.com/ohos-oneconnect/applications_share 文件互传应用 2 applications_photos https://gitcode.com/ohos-oneconnect/applications_photos 图库应用 3 applications_filemanager https://gitcode.com/ohos-oneconnect/applications_filemanager 文件管理器应用 4 distributeddatamgr_file_share https://gitcode.com/ohos-oneconnect/distributeddatamgr_file_share 文件互传部件 5 distributedhardware_device_manager https://gitcode.com/ohos-oneconnect/distributedhardware_device_manager 设备管理部件 6 communication_dsoftbus https://gitcode.com/ohos-oneconnect/communication_dsoftbus 分布式软总线组件
投屏相关代码仓
-
投屏工程代码下载
repo init -u https://gitee.com/ohos-oneconnect/manifest -b OpenHarmony-5.0.0-Release -m m_miracast.xml repo sync -c repo forall -c 'git lfs pull' repo forall -c "git checkout OneConnect-v1.2.0-Release" repo forall -c 'git lfs pull' -
关键仓库列表
序号 仓库名 仓库路径 备注 1 applications_systemui https://gitcode.com/ohos-oneconnect/applications_systemui 系统界面,在系统通知、控制栏、消息栏增加无线投屏相关界面。 2 applications_settings https://gitcode.com/ohos-oneconnect/applications_settings 系统设置,增加无线投屏相关配置选项。 3 applications_cast https://gitcode.com/ohos-oneconnect/applications_cast 无线投屏应用源码仓(sink端使用) 4 castengine_cast_framework https://gitcode.com/ohos-oneconnect/castengine_cast_framework 音视频投播管理服务框架部件,DLNA source能力 5 castengine_wifi_display https://gitcode.com/ohos-oneconnect/castengine_wifi_display Miracast投屏服务部件 6 castengine_dlna https://gitcode.com/ohos-oneconnect/castengine_dlna DLNA无线投屏服务部件、sink端应用(sink端使用)
分布式摄像头相关代码仓
- 关键仓库列表
序号 仓库名 仓库路径 备注 1 applications_distributed_camera https://gitcode.com/openharmony/distributed_camera 分布式相机组件
版本获取
- 各特性对应组件获取路径
特性 软件 版本 下载站点 备注 富对富文件互传 OneConnect_ OhShare 1.1.0 站点 富对富文件互传镜像 富对富投屏 OneConnect_Miracast 1.2.0 站点 富对富投屏镜像 富对瘦设备控制 OneConnect_ Control 1.3.0 站点 富对瘦设备控制镜像 分布式摄像头 OneConnect_ DistributedCamera 1.4.0 站点 分布式摄像头镜像
使用说明
富对瘦设备控制
- WiFi/BLE Combo设备端云控制
-
联系OpenHarmony统一互联PMC,进行APP白名单配置;
-
编译ohos-connect-hap源码,安装编译的hap 至HarmonyOS Next 手机上;
-
使用dayu200开发板烧录WiFi/BLE Combo镜像;
-
打开通用互联APP,在我的页面点击设备库同步将设备库更新到最新版本;
-
点击通用互联APP底部设备tab,点击设备tab右上角“+”号按钮扫描,可发现对应设备;
-
在扫描结果中点击对应设备,输入需要配置的WiFi账号密码,点击下一步,即可对设备开始配网;
-
对应设备连接到WiFi,配网成功,APP自动退回设备页面并显示已配网的设备;
-
点击设备页面已配网设备,在设备详情页-可控制设备的亮灭屏状态与设备关机/重启等。
- 星闪互联
-
参考“端云控制”中通用互联APP的安装教程
-
镜像烧录
-
星闪桥设备: 使用DAYU200 (RK3568)开发板搭载Hi3873E透传模块模拟星闪网关/桥设备,烧录上述富对瘦设备WiFi/BLE/SLE镜像。
-
星闪生态设备: 使用BearPi-Pico H3863(Hi3863V100芯片平台)开发版模拟燃气检测仪、燃气控制阀,烧录SLE/BLE Combo镜像。
-
-
桥设备发现、配网、上线
参考“WiFi/BLE Combo设备端云控制”中dayu200设备的发现、连接、配网流程。
-
生态设备发现、配网、上线
-
确保手机设备、星闪桥设备均接入WiFi网络;
-
通用互联APP扫描发现生态设备:如“燃气泄漏检测仪”、“燃气控制阀”等;
-
生态设备配网:选择对应设备后,直接点击下一步开始配网;
-
完成生态设备入网:生态设备配网完成后,桥设备更新接入的生态设备拓扑图到云,云同步到App,用户级联可查桥设备下挂的生态子设备。
-
-
星闪互联-燃气场景
“燃气泄漏”事件发生后,会向燃气站控制器(星闪桥设备)上报,燃气站控制器根据用户编排定义的场景,自动下发指令控制阀门关闭。
富对富投屏
- Miracast投屏
-
准备两台OpenHarmony设备(如DAYU200开发板)安装烧录富对富投屏镜像,分别作为源端与接收端。操作前请确保两台设备均已开启Wi-Fi功能。(注:源端设备也可使用HarmonyOS设备,如HarmonyOS Next手机)
-
源端设备在SystemUI下拉框中点击无线投屏开关,接收端设备打开Miracast投屏应用或者打开设置中Miracast投屏设置的无线投屏开关,则源设备可扫描到接收端设备;
-
源端根据弹出的投屏搜索结果列表,选择对应的接收投屏设备,等待接收端响应;
-
连接成功后,即可将源端设备上的屏幕镜像显示到接收端显示器上,源端界面可以进行投播控制;
-
如需结束投屏,源端设备通过SystemUI下拉框的无线投屏开关关闭或者状态栏开关可以关闭投屏。
- DLNA投屏
-
OpenHarmony设备安装烧录DLNA投屏镜像;
-
在OpenHarmony设备中,点击设置-投屏,打开投屏功能;
-
HarmonyOS、OpenHarmony、安卓设备在优酷,爱奇艺,哔哩哔哩等应用中点击投屏;
-
根据弹出的投屏搜索结果列表,选择对应的接收投屏设备,等待Sink端响应;
-
连接成功后,可将优酷,爱奇艺,哔哩哔哩等应用的视频画面投到OpenHarmony设备上,源端手机页面,被投端均可以进行投播控制;
-
优酷,爱奇艺,哔哩哔哩等应用点击结束投屏,等待几秒关闭投屏。
富对富文件互传
- 使用说明
- 支持的OpenHarmony L2设备烧录文件分享镜像;
- 两个OpenHarmony L2设备均打开蓝牙开关、WiFi开关、“统一互联分享”开关,打开图库应用或文件管理器应用,发送端长按选择图片/视频,点击分享按钮,设备之间距离不超过5米;
- 发送端图库或者文件管理器APP弹出文件分享弹窗,并自动扫描附近支持统一互联文件分享的设备,选择相应设备分享图片/视频;
- 接收端收到文件分享通知,点击确认后,自动弹出接收弹窗,显示文件接收进度。接收完成后,接收弹窗消失,并自动打开接收到的文件。
分布式摄像头
- 使用说明
-
安装并打开 3519 烧录工具 ToolPlatform-Hi3519DV500,通过串口烧写v900和3519;
-
烧写完成后,将 3519 板卡、v900 板卡以及显示屏连接,有线模式需要连接网线,且通过eth0+ip命令连接摄像头;
-
无线模式(WiFi)则需要通过busybox vi /data/network.ini 命令,修改WiFi名称,无需连接网线;
-
启动设备,运行统一互联 App,点击【我的】进入分布式摄像头模块;
-
在未信任设备中找到摄像头,输入PIN码绑定设备,就可以进入预览设备;
-
绑定设备成功后,可以在设备页面进行图像预览、拍照、转向、保存至相册等操作。
遗留缺陷列表
| ISSUE | 问题描述 | 影响 |
|---|---|---|
| ID0OUK | source端反复执行投屏操作,概率出现控制中心无线投屏按钮点击无响应 | 自动化反复执行投屏操作,概率出现投屏按钮无响应 |
| IBSJD7 | 投屏连接成功后,在source端(OpenHarmony设备)执行操作,存在小概率花屏现象可立即恢复,连续投屏15min以上sink出现卡死不动现象 | 仅RK3568做source端存在此问题 |
| ID0HNI | 【WiFi/BLE Combo】设备配网失败后,立即重新扫描添加设备,概率出现扫描到两条设备信息 | 不影响功能 |
| ICW6RN | 配网成功后,重启设备后app删除桥设备不删除data/app/iotc目录下的conn_data和dev_data,则桥设备无法被app发现。 | 手动删除可恢复 |
| ICU2SU | 【WiFi/BLE Combo】APP端扫描到设备并进行配网,概率性失败,无法完成配网 | 低概率配网失败 |
| ICX1XP | 桥设备在wifi第二次断开后无法重连云端。 | 非常用场景, 待解决 |
| ICYSWA | 【无线】转向操作后返回上一步跳到输入设备序列号界面,再重新进入控制中心后会出现黑屏和摄像头转动不了情况。 | 转向未完成前退出页面才有此问题,仅无线版本概率出现 |
| ICQEUY | 摄像头重启后,主控端无法看到预览画面和控制 | 重启app可恢复,待解决 |
更多推荐
所有评论(0)