CN / EN
CN / EN

提问

获得支持

您的项目私密技术问题如需获得一对一支持,请点击下方联系我们。

什么是BLE服务 GR551x

已解决

fugong

2019-09-27 14:40

您好:

BLE服务是什么?有几种?主要作用是什么?

0收藏

0赞成

sherlock

汇顶员工
2019-09-29 10:25

你好,这方面建议参考Bluetooth SIG定义的Bluetooth core specification,下载地址:https://www.bluetooth.com/specifications/bluetooth-core-specification/


例如,关于服务的定义与作用,上述Bluetooth core specification Vol 1, Part A 6.5.1 章节给出定义如下:

service is a collection of data and associated behaviors to accomplish a particular function or feature of a device or portions of a device. A service may include other primary or secondary services and/or a set of characteristics that make up the service.

[服务是完成设备或设备部分的特定功能或"特征"的 数据和相关行为 的集合。 服务可以包括其他主要或辅助服务和/或组成该服务的一组"特征"。]

关于服务的种类 ,上述Bluetooth core specification Vol 1, Part A 6.5.1 章节给出定义如下:

There are two types of services: primary and secondary. A primary service is a service that provides the primary functionality of a device. A secondary serviceis a service that provides auxiliary functionality of a device and is included from at least one primary service on the device.

[有两种类型的服务:主要服务和辅助服务。 主要服务是提供设备主要功能的服务。 辅助服务是一种提供设备的辅助功能的服务,并且至少包含在设备上的一个主服务中。]


note:

  • 为了保持各类蓝牙设备之间的兼容性, Bluetooth SIG在蓝牙涉及的领域中定义了一系列的通用的标准 Service。利用这些标准 Service, 各类蓝牙设备能轻松控制对端蓝牙设备或获取相关信息: https://www.bluetooth.com/specifications/gatt/services/
  • 然而, 在某些情况下, 开发者需要实现自己的 Service。例如, 应用程序可能需要一些新的功能, 而标准 Service 并不符合这些功能,此时可参考GR551x SDK文档开发:SDK_folder\documentation\03_example_docs\应用及自定义GR551x Sample Service.pdf以下链接中也有一些相关信息可以参考: https://developers.goodix.com/zh/bbs/detail/64da211c14e14a8f96d41909d9093a87

0条评论

0赞成

0收藏

您的评论
最佳答案

Goodix Administrator

社区管理员
2019-09-30 12:05

您好!如果我们的回答能够解决您的疑问,请选择一个作为最佳答案哦。谢谢。

0条评论

0赞成

0收藏

您的评论

登录后可回答问题,请 注册

我们时刻倾听您的声音
联系销售

扫描关注公众号

打开微信,使用“扫一扫”即可关注