-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error when reading data from device BLE-9909 Meter Powered by YINMIK Mobile App #971
Comments
@phucluke are you able to see if you can read this service/characteristic with nrf Connect on your Android phone? From the adb logs, there should be a bunch more data in theory about the underlying BLE protocol between those entries you've logged there. Are you able to extra this and include it also? I guess the last fairly normal question is does this happen across all android versions/devices, or only specific ones? |
Hi @peitschie |
Have you tried reading the values in nrf Connect via those up/down arrows next to the Unknown Characteristic heading there? |
Hi @peitschie |
@phucluke can you try using this characteristic UUID instead? Based on adafruit's documentation, it seems their 16-bit UUID is not a standard Bluetooth one: https://github.com/adafruit/bluetooth-low-energy#adafruit Just to confirm this, in the |
Hi @peitschie,
|
If you're able to help with debugging a bit, we might be able to dig a bit more. That error is thrown here: https://github.com/don/cordova-plugin-ble-central/blob/master/src/android/Peripheral.java#L775C54-L781 Are you able to get Android studio attached and drop a breakpoint there so you step through I wonder if the issue is that we are looking for the expanded If you can help me figure out what |
Hi @peitschie |
I experienced the same issue and jumped to this thread from Internet search. Great if we can have any solution for it. Thanks. |
@phucluke unfortunately I've got no great insights here 🤔 The fact that this fails in both this plugin and nrf Connect means it's more likely a quirk in the peripheral, but I'm stumped as to why Bluefruit functions better here. Bluefruit's own code here seems to be following exactly the same pattern as this plugin: https://github.com/adafruit/Bluefruit_LE_Connect_Android_V2/blob/master/app/src/main/java/com/adafruit/bluefruit/le/connect/ble/central/BlePeripheral.java#L706 Unfortunately, I don't have any access to a local device to try anything out myself. Are there any support forums within the adafruit community that might have some ideas? |
Hi team,
I'm building a cordova app for Android for reading data from device BLE-9909 Meter Powered by YINMIK.
The scanning and connecting with plugin are fine except the reading data. I'm getting the following error. Could you please provide a direction? Thanks.
Notes: Reading battery service 0x180F/characteristics 0x2A19 works on Android except the service FF01/characteristics FF02. The issue doesn't happen on BLE browser.
Here is the code snippet:
And device document
The text was updated successfully, but these errors were encountered: