Comments (9)
Can you tell me which Android and BLE devices you tried this with and what the Service UUID is? Perhaps I can test with a similar set of devices and (perhaps) reach the same conclusions as you. Having the plugin do filtering after discovery would then make the most sense indeed.
from ble.
In short: damn, it works now ... ;-)
Android devices:
- LG Nexus 5 with Android 6.0.1 (CM 13.0-20160209 Nightly)
- Nvidia Shield Tablet K1 with Android 6.0, build MRA58K.41524_664.1902
main testing peripheral:
blood pressure meter Medisana BW 300 connect, has service UUIDs: 1800, 1801, 180a, 180f, 1810
Originally (a few hours ago), I was scanning for service UUID 1810 (Blood Pressure) and both Android devices never found the peripheral. I did several clean builds during the test and especially no livesync.
While writing this comment I tested again with unchanged app code, but a fresh install of the plugin.
Now I see successful detections.
In both test runs I ensured that the peripheral actually has Bluetooth active when scanning.
So atm, I can't reproduce the condititions under which the problem occurs.
I did a recursive diff of the plugin (current fresh install vs. the one of the first test run) to make sure I didn't accidently break something before, but there was nothing that could have led to that.
Since this is not reproducible anymore, I suggest to close this concrete issue but to keep an eye on it.
However, while fiddling around, I found another Android issue with 128-bit-UUIDs only, but reportedly in both BLE APIs at least from 4.3 to 5.1, as the comments there suggest: https://code.google.com/p/android/issues/detail?id=59490&q=BLE&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
from ble.
Ah man that's unpleasant! I'll leave this open so you can add to it if something similar pops up. Thanks for your elaborate comments!
from ble.
Hey, just one question, I am not sure if it relevant to this issue. I tried to install the bluetooth demo on two Android mobile phones (both have Android 4.4) and they were not able to find each other. Is it expected that the plugin searching only for peripherals or also it supposed to search for other BLE phones?
from ble.
@OldrichKruchna Good question. This plugin acts as 'Central' so it can connect to peripherals. If your phone can't act as a peripheral (which to my knowledge it can't) then that won't work.
from ble.
Thank you for answer, I did some research and it seems that both IOS and Android support their phones to act as a peripheral, Android from version 5.0 and IOS from version 6:
Android 5.0, an Android device can now act as a Bluetooth LE peripheral device.
Would be pretty cool to support this functionality as well ;)
from ble.
Hi I am testing on my Lenovo TAB2 with And. 5.0.1. I have iMac with BT keyboard and mouse but none of them (iMac 27 Retina, mouse, keyboar) are found :(.
from ble.
@Pepan Because either those devices are not LE, or they're already engaged in a connection which most (all?) LE devices don't support.
from ble.
Agree with @EddyVerbruggen its either the bluetooth is not LE or its already connected to other device.
from ble.
Related Issues (20)
- Monitor Region HOT 1
- bluetooth.connect with autoDiscoverAll hangs on iOS for BT Assigned Numbers HOT 5
- demo-ng - update to latest nativescript and angular HOT 2
- Android - Characteristics Read, Write and Discover not working HOT 1
- service_not_found HOT 3
- Android issue with readCharacteristic call
- error_function_call HOT 6
- (android) startScanning unhandled rejection if user denies location permissions
- (Android) enableGPS does not attempt to enable GPS due to incorrect isGPSEnabled check HOT 1
- (iOS) startScanning() not working HOT 2
- TypeError: Cannot read properties of undefined (reading 'toLowerCase') HOT 6
- sdk 33 , permission BLUETOOTH_SCAN on startScanning HOT 1
- Can't read GATT characteristic on Android SDK 33 HOT 1
- (android) App crash on write HOT 2
- scanning does nothing and does not stop after specified time HOT 5
- Filtering for manufacturerId does not work when scanning HOT 1
- (Android) Function enable throws error on Android 13 HOT 1
- ERROR appears while executing bluetooth.write() (bluetooth class are undefined ) HOT 6
- Scan throws error on android 13+ HOT 3
- Issue running the Bluetooth plugin inside my worker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ble.