一篇文章: https://cdn-learn.adafruit.com/downloads/pdf/introduction-to-bluetooth-low-energy.pdf
Profiles A Profile doesn't actually exist on the BLE peripheral itself, it's simply a pre-defined collection of Services that has been compiled by either the Bluetooth SIG or by the peripheral designers. The Heart Rate Profile, for example, combines the Heart Rate Service and the Device Information Service. The complete list of officially adopted GATT-based profiles can be seen here: Profiles Overview (https://adafru.it/E8u).
That’s absolutely correct! In BLE terminology, Profiles do not physically exist on the peripheral device. Instead, a Profile is a logical collection of Services defined by either the Bluetooth Special Interest Group (SIG) or custom-developed by the designers of the peripheral device.
才发现,蓝牙的 Profile、Service、Characteristics 概念与 Apple 的 HomeKit 几乎一致;只不过在 Apple 里面,Profile 被称作 Accessories(配件)。
You could implement a simple UART-type interface with a custom 'UART Service' and two characteristics, one for the TX channel and one for the RX channel, where one characteristic might be configured as read only and the other would have write privileges.
Connect to Bluetooth Low Energy devices using Golang
- 写一个 SSH over Bluetooth 实现:
- 在树莓派上用蓝牙的读、写转换成网络连接用于连接 SSHD;
- 在 Mac 上用蓝牙连接,并作为 SSH 的 ProxyCommand 底层。
- 完整代码:https://github.com/movsb/tcp-over-bt。