1. 谷歌查找我的设备配件(Google Find My Device Accessory)介绍 谷歌查找我的设备配件是与谷歌 “查找我的设备” 应用程序配合使用的配件,旨在帮助用户更方便地追踪和定位个人物品。为了更好的理解它的工作原理,我们先来了解一下谷歌查找我的设备网络FMDN(Google find my device network)。FMDN由四部分组成:附件(Accessory),所有者设备(Owner device)通常是指具有Android系统的设备如手机等,且和附件做过关联(配置),是配件的所有者,Google服务器和其它支持Google FMDN功能的手机或平板等Android设备。 做过关联的附件,在Bluetooth LE断开连接之后,会发出一种特定格式的广播。广播包含服务的UUID和一个叫EID(Ephemeral identifier)的数据。周围支持Google FMDN功能的手机或平板等Android设备,扫描并识别到这个特定的广播后,会通过EID生成一个密钥,将自己的GPS位置信息数据通过密钥加密之后传输给Google服务器,Google服务器会将这些数据存储起来。由于这些信息是加密的,Google服务器本身也识别不了,只有附件的所有者设备能解密数据从而获得附件的位置信息,别的设备即使获得了数据,也无法解密,确保了位置信息的安全性。 1.1 配件的主要功能配件,主要是指定位标签(Locator Tags)类的设备。设备如果要获得谷歌的认证,必须支持“谷歌快速配对服务规范2.0” GFPS v2.0 specification中的相关章节,以及 “查找我的设备网络规范Find My Device Network specification”中相关章节,具体内容列于 “功能列表” 部分。这其中还包括相关的 “防止不必要跟踪Unwanted Tracking Prevention” 规范,该规范提供了一种跨平台的安全机制。 下面列出了对这类设备进行认证所需的必备功能和可选功能。原文网址:https://developers.google.com/nearby/fast-pair/specifications/devicefeaturerequirement/devicefeaturerequirement_locatortags 必须支持的功能: - Device shall follow the FastPair Configuration.
- Device shall support Initial Pairing.
- Device shall advertise based on FastPair Advertising Signal.
- Device shall implement GFPSv2.0 GATT Characteristics.
- Device shall follow FastPair Procedure.
- Device shall follow Find My Device Network specification, including:
- Locator Tag guidelines.
- Unwanted Tracking Prevention.
可选的功能: - GATT Characteristics added post GFPSv2.0:
- Firmware Revision.
目前不支持的功能: - Subsequent Pairing.
- GATT Characteristics added post GFPSv2.0:
- Model ID.
- Extensions added post GFPSv2.0:
- Personalized Name.
- Retroactive Pairing.
- Message Stream.
- Battery Notification.
- Audio Switch.
Nordic的Locator tag例子里面实现了所有必需的功能,例子介绍可以访问: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/fast_pair/locator_tag/README.html#fast-pair-locator-tag |