communication_nearlink:基于 OpenHarmony 生态的星闪(NearLink)SLE 组件项目

可用于开发支持星闪技术的设备通信功能,项目包含星闪(NearLink)SLE 组件代码,覆盖标准与轻量系统,提供 Host、Announce、Seek、Connect 及 SSAP 数据交互等核心能力,对外提供 C、C++、JS 接口。【此简介由AI生成】

分支10Tags1
文件最后提交记录最后更新时间
1 年前
1 个月前
3 个月前
1 年前
3 个月前
1 年前
1 年前

版权所有 (c) 2024 深圳开鸿数字产业发展有限公司

根据 Apache 许可证 2.0 版(以下简称“许可证”)授权;

除非遵守许可证的规定,否则您不得使用此文件。

您可以在以下网址获取许可证的副本:

http://www.apache.org/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则根据许可证分发的软件

按“原样”分发,不提供任何明示或暗示的担保或条件。

请参阅许可证以获取管理权限和限制的具体条款。

communication_nearlink

说明

communication_nearlink 当前主要包含星闪(NearLink)SLE 组件代码(目录:sle),覆盖标准系统与轻量系统形态。

SLE 组件代码中已落地的核心能力模块如下:

  • Host(使能与基础管理)
  • Announce(广播)
  • Seek(扫描)
  • Connect(连接)
  • SSAP Server/Client(业务数据交互)

其中对外接口位于 sle/interface,包含 C、C++、JS 三类接口定义;底层适配与封装位于 sle/sle_hal;公共配置、日志、事件与工具位于 sle/sle_utils

目录

//foundation/communication/communication_nearlink
├── copy.sh                          # 工程文件拷贝脚本
├── openharmony                      # OpenHarmony 侧配套代码(仓内现有目录)
├── sle                              # NearLink SLE 组件源码
│   ├── interface                    # 对外接口(c/cpp/js)
│   ├── sle_hal                      # HAL 封装与 HDI 适配
│   ├── sle_lite                     # mini/small 形态实现
│   ├── sle_standard                 # standard 形态实现(framework/service/ipc)
│   ├── sle_utils                    # 配置、日志、事件、测试工具
│   ├── tests                        # 单元测试
│   ├── bundle.json                  # standard 形态组件配置
│   ├── sle.gni                      # standard 形态公共 gn 配置
│   ├── sle_lite.gni                 # lite 形态公共 gn 配置与特性参数
│   └── hisysevent.yaml              # SLE 相关事件定义
├── README.md
├── README.en.md
└── README_nearlink.md

使用说明

  • C 接口使用流程参考:sle/interface/c_interface/README.md
  • C++ 接口说明参考:sle/interface/cpp_interface/README.md
  • JS 接口说明参考:sle/interface/js_interface/README.md

添加编译子系统构建(SLE standard)

sle/bundle.json 中声明的 standard 形态主要子组件如下:

  • //foundation/communication/nearlink/sle/sle_standard/sa_profile:sle_sa_profile
  • //foundation/communication/nearlink/sle/sle_hal:sle_hal_standard
  • //foundation/communication/nearlink/sle/sle_standard/c_adapter:sle_adapter_standard
  • //foundation/communication/nearlink/sle/sle_standard/frameworks:sle_frameworks
  • //foundation/communication/nearlink/sle/sle_standard/services/service/sle_service:sle_service
  • //foundation/communication/nearlink/sle/sle_standard/services/server:sle_server
  • //foundation/communication/nearlink/sle/sle_standard/services/service/common_manager:sle_common_manager

对应系统能力(SysCap):

  • SystemCapability.Communication.Nearlink.Sle

添加编译子系统构建(SLE lite)

sle/sle_lite/bundle.json 中声明的 lite 形态主要子组件如下:

  • //foundation/communication/nearlink/sle/sle_lite:sle_service_lite
  • //foundation/communication/nearlink/sle/sle_hal:sle_hal

lite 形态适配系统类型:

  • mini
  • small

项目介绍

可用于开发支持星闪技术的设备通信功能,项目包含星闪(NearLink)SLE 组件代码,覆盖标准与轻量系统,提供 Host、Announce、Seek、Connect 及 SSAP 数据交互等核心能力,对外提供 C、C++、JS 接口。【此简介由AI生成】

定制我的领域