在单个 BTLE 系统上支持多个蓝牙配置文件

Support Multiple Bluetooth Profiles on a single BTLE system

我正在开发一个可以插入许多不同传感器的健康系统,但在给定时间可能没有连接所有或任何受支持的设备。理想情况下,系统可以通过 BTLE 公布每个关联的配置文件,但我对这个解决方案有几个问题,我似乎无法找到可靠的答案。

1) 单个系统可以支持多个 BTLE 配置文件吗?

2) 为了支持一个配置文件,如果支持配置文件需要支持的服务和特性就够了吗?每个配置文件文档都概述了一些特定的连接间隔,我不确定这是必需的还是建议的实施。

3) 是否可以在 运行 时修改已启用的配置文件,因为工具已连接到基本系统,如果可以,是否会对当前连接或配对的设备产生任何影响?

1) Can a single system support multiple BTLE Profiles?

规范不禁止单个系统支持多个BTLE配置文件,但大多数只支持一个配置文件。配置文件的定义在 BTLE 上较弱,但您可以在一个配置文件上添加更多服务。

2) In order to support a profile, if the services and characteristics required by the profile need to be supported are supported is that enough? Each of the profile documents outlines some specific connection intervals and and I wasn't sure if this is a requirement or a suggested implementation.

如果设备和APP都是自己开发的,可以自定义service/characteristics。 这是一个建议的考虑,但是如果这个词是 "shall" 那么它是强制性的。

3) Is it possible to modify the enabled profiles at run time as tools are connected to the base system, and if so will it have any affect on currently connected or paired devices?

您当然可以在 运行 时动态添加或删除服务。它不会影响当前连接或配对的设备。