Coder Social home page Coder Social logo

Comments (9)

EddyVerbruggen avatar EddyVerbruggen commented on May 26, 2024

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.

lhitc avatar lhitc commented on May 26, 2024

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.

EddyVerbruggen avatar EddyVerbruggen commented on May 26, 2024

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.

OldrichKruchna avatar OldrichKruchna commented on May 26, 2024

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.

EddyVerbruggen avatar EddyVerbruggen commented on May 26, 2024

@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.

OldrichKruchna avatar OldrichKruchna commented on May 26, 2024

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.

As of OS X v10.9 and iOS 6, Mac and iOS devices can also function as Bluetooth low energy peripherals

Would be pretty cool to support this functionality as well ;)

from ble.

Pepan avatar Pepan commented on May 26, 2024

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.

EddyVerbruggen avatar EddyVerbruggen commented on May 26, 2024

@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.

francorobles avatar francorobles commented on May 26, 2024

Agree with @EddyVerbruggen its either the bluetooth is not LE or its already connected to other device.

from ble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.