当前位置:   article > 正文

蓝牙开发之 IOS ANCS_蓝牙外设 ancs

蓝牙外设 ancs

转载:蓝牙开发之 IOS ANCS

个人博客

所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 nixgnauhcuy’s blog

如需转载,请标明出处!

2022-04-12:更新 蓝牙开发之 IOS AMS,有兴趣的可以点击链接进入~

2022-04-08:更新接收推送效果
在这里插入图片描述
上图演示了,接收微信通知和 QQ 通知的展示,短信来电等我就不一一展示了。

什么是 ANCS

ANCS 介绍(Introduction)

ANCS 全称 Apple Notification Center Service(苹果通知中心服务),是提供给 BLE 设备的一种获取 IOS 设备通知的方法。ANCS围绕三个原则进行设计:简单,高效和可扩展性。

以下引用自 ANCS 规范

The purpose of the Apple Notification Center Service (ANCS) is to give Bluetooth accessories (that connect to iOS devices through a Bluetooth low-energy link) a simple and convenient way to access many kinds of notifications that are generated on iOS devices.

The ANCS is designed around three principles: simplicity, efficiency and scalability. As a result, accessories ranging from simple LEDs to powerful “companion” devices with large displays can find the service useful.


ANCS 字节序和字节码(Endianness and String Encoding)

除非另有规定,否则通过 ANCS 传输的所有数值都应是小端格式。
除非另有规定,否则通过 ANCS 传输的所有字符串值都应是 UTF-8 编码的 unicode 字符所组成的。


依赖性(Dependencies)

除了标准的通用属性配置文件(GATT)子程序集外,ANCS 没有任何依赖性。作为 GATT 客户端的设备在使用 ANCS 时,可以自由访问和使用 iOS 设备提供的其他服务。

术语(Terminology)

  1. 苹果通知中心服务应称为 ANCS。

  2. ANCS 服务的发布者(也就是我们的 iOS 设备)应被称为通知提供者(NP)。

  3. ANCS 服务的任何客户端(也就是我们的蓝牙设备)应被称为通知消费者(NC)。

  4. 在 iOS 通知中心显示在 iOS 设备上的通知,应称为 iOS 通知。

  5. GATT 特性作为异步消息发送的通知,应称为 GATT 通知。


ANCS 理解

上面的对于什么是 ANCS,基本上都是其 ANCS 规范中所提及的,不过不能在水文水下去了(在水下去怕读者打我

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/146731
推荐阅读
相关标签