简体   繁体   English

如何使用flutter_blue在flutter BLE中获取血糖仪数据

[英]How to get glucose meter data in flutter BLE using flutter_blue

I am new to flutter ble.我是 flutter ble 的新手。 I am trying to read from Accu-check the last glucose test details.我正在尝试从 Accu-check 中读取最后一次葡萄糖测试的详细信息。

This is what I get for the UUID 00002a51-0000-1000-8000-00805f9b34fb [32, 2]这是我得到的 UUID 00002a51-0000-1000-8000-00805f9b34fb [32, 2]

This is what I get for the UUID 00002a08-0000-1000-8000-00805f9b34fb [228, 7, 9, 17, 14, 30, 0]这是我得到的 UUID 00002a08-0000-1000-8000-00805f9b34fb [228, 7, 9, 17, 14, 30, 0]

How do I convert it into human readable form ?如何将其转换为人类可读的形式?

Please help.请帮忙。 Thank you.谢谢你。

The official adopted UUIDs are in the range: 0000xxxx-0000-1000-8000-00805F9B34FB官方采用的 UUID 范围为: 0000xxxx-0000-1000-8000-00805F9B34FB

You can find the names of Bluetooth SIG adopted UUIDs at: https://www.bluetooth.com/specifications/gatt/characteristics/您可以在以下位置找到蓝牙 SIG 采用的 UUID 的名称: https : //www.bluetooth.com/specifications/gatt/characteristics/

Once you have the name then you can look up the structure of the data by replacing the name in the URL below:获得名称后,您可以通过替换以下 URL 中的名称来查找数据的结构:

https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.glucose_measurement.xml https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.glucose_measurement.xml

These XML files should give you the information you need to covert those byte arrays into human readable information.这些 XML 文件应该为您提供将这些字节数组转换为人类可读信息所需的信息。

Couple of similar questions that may help:几个可能有帮助的类似问题:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM