小编Roo*_*yah的帖子

连接到 AND UA651BLE 时获取状态为 133 的 Type_Gatt_Error

我正在尝试连接到 AnD UA-651BLE 血压监测器并在 android 应用程序中获取值。该应用程序能够找到该设备,但我在“onConnectionStateChange”中收到 Type_Gatt_Error。

这适用于某些设备,如三星 Galaxy S5、Moto G4 等,但不适用于某些手机,如红米手机 3s prime 等。

这很好用,我能够读取数据,当我取消设备配对并每次重新配对时。我什么都不懂,因为我是 android-ble 集成的新手。我尝试将目标 SDK 版本更改为 21 和 23,因为我主要使用 android 5.0.1 及更高版本的设备。但没有运气

我发现门户网站中有许多人提出了类似的问题,但没有找到任何适合我的解决方案。

任何人都可以让我理解为什么会发生这种情况以及可能的解决方案是什么?

以下是我在 Android Studio 中得到的日志:

D/MYTAG:  DashBoard UnBonded Device false true
D/MYTAG:  Found device - =*******************A&D_UA-651BLE_459701
D/SN: RESU connectDevice device 6C:EC:EB:45:97:01
D/BluetoothManager: getConnectionState()
D/BluetoothManager: getConnectedDevices
W/SN: RESU Attempt to connect in state: 0
D/BluetoothGatt: connect() - device: 6C:EC:EB:45:97:01, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=e7ed0993-f27a-4e2a-bc08-93b76d55a4d5
D/SN: RESU bluetoothGatt android.bluetooth.BluetoothGatt@47015f2
D/MYTAG:  CAlling connectDevice …
Run Code Online (Sandbox Code Playgroud)

android bluetooth-lowenergy android-studio android-ble bluetooth-gatt

3
推荐指数
1
解决办法
2235
查看次数