bluetooth-lowenergy

Android 4.3 Bluetooth Low Energy unstable

↘锁芯ラ 提交于 2019-12-17 02:28:27
问题 I am currently developing an application that will use Bluetooth Low Energy (testing on the Nexus 4). After getting started with the official BLE APIs in Android 4.3, I have noticed that after I connect a device for the first time I am rarely able to successfully connect to / communicate with that device or any other device again. Following the guide here, I can successfully connect to a device, scan services and characteristics, and read/write/receive notifications without any issues.

RxAndroidBle can connect to peripheral but standard Android can't

此生再无相见时 提交于 2019-12-14 03:13:19
问题 Hoping that the experts might have a tip: I've inherited some code that uses the Android BLE API. It works OK with most devices, but will not connect to one, a blood pressure monitor. I wrote a quick test app using RxAndroidBle that connects fine as long as autoConnect is true. If it's false, I get an "already connected" error. With autoConnect true, I get the same error but after a few seconds it corrects itself and connects, then works as expected. With the legacy code, the call to connect

Bluetooth LE device stopped connecting in Windows 10 v1709

旧时模样 提交于 2019-12-14 02:36:03
问题 I've created a WDK library for interacting with a Bluetooth LE device (closly following the example here). The library worked well on a previous version of Windows - I was able to connect to my device, write characteristics and get asynchronous notifications. Once I updated to Windows to version 1709 (build 16299.98), the library stopped working: pair the device via Settings-->Devices-->Bluetooth the BLE device blinks a led as an indication of Advertising Run my application which uses

iOS - iBeacon - Advertise (Broadcast) as beacon in Background after iOS 7.1 update

风流意气都作罢 提交于 2019-12-14 02:00:31
问题 I am trying to make an Application using iBeacon in which One device will work as beacon Broadcaster and another one as Receiver.I gone through the similar thing in Run iPhone as an iBeacon in the background but the solution that present there is not for API of iBeacon so i am asking this thing again. I succeed in being notified on Detector Device(receiver) even the App is in Background or in Quit mode. but Whenever Broadcaster Device's App goes in Background it stops Broadcasting packets and

UWP BLE device pairing

孤街浪徒 提交于 2019-12-14 00:29:11
问题 I initiate pairing procedure of ble device via: DevicePairingResult dpr = await deviceInfo.Pairing.PairAsync() PairAsync returns in a few moments but after that Windows still installs the paired device. The install procedure completes in approx 3 seconds on my computer. After that the BLE device is ready to be used. My question is how to catch the event when the paired BLE device is ready to use after pairing? 回答1: As far as I know, after a sucessfull pairing, you have to monitor the Device

Sending Large File via BLE API on android

寵の児 提交于 2019-12-14 00:24:56
问题 I have created BLE sender class for the sending large ByteArray via Bluetooth LE The logic of the send process following: Write descriptor to enable notification on characteristics that sends data Notify peripheral about data sending process via writing to corresponding characteristics (Size of data: chunk size: number of chunks) Wait for peripheral to notify for chunk 0 to send on data sending characteristics On notification received start sending the first chunk 1000 byte by blocks of 20

Why bluetoothAdapter callback is throwing error while connecting BLE device?

谁都会走 提交于 2019-12-13 17:20:03
问题 I am working with BluetoothAdapter and trying to connect BLE device. While I am trying to detect BLE device it throws following error . 2018-12-17 18:19:03.374 15642-15663/? E/ScanRecord: unable to parse scan record: [2, 1, 5, 17, 6, 67, 79, 77, 46, 72, 65, 78, 78, 65, 73, 78, 83, 84, 95, -80, -1, 2, -1, 0, 21, 9, 72, 73, 49, 48, 56, 51, 50, 32, 112, 72, 32, 49, 49, 32, 97, 110, 100, 32, 50, 32, 5, 18, -112, 0, -96, 0, 2, 10, 0, 0, 0, 0, 0, 0, 0, 0] 2018-12-17 18:19:03.375 15642-15663/? E

Android BLE - Connecting to multiple devices seem to fail and GATT Response is the same for both connections?

懵懂的女人 提交于 2019-12-13 16:30:40
问题 I am developing an Android Application that connects to a BLE Device and reads the specific GATT Characteristics and Services that I need to check. I used the BluetoothLeGATT example from the Android Dev site as my reference. I can connect to a predefined Address without problems and read the GATT Attribute updates. What I want to do next is to be able to connect to two BLE Devices simultaneously. However, this seems to be a challenge. What I did was to essentially duplicate the code needed

What happens to connection with BLE device when Android goes in sleep mode

时光毁灭记忆、已成空白 提交于 2019-12-13 15:11:39
问题 What happens to connection with BLE device connection when Android goes in sleep mode? So if application establishes a connection with BLE device and then Android goes sleep, will the connection be maintained? Will the application be informed about disconnects or re-connection? 回答1: BLE is devided in two parts, physical layer and link layer implemented in the BLE controller (frontend) upper layers implemented on host side (Android system) both parts connect via the HCI interface. (Which you

Android/ios/Mobile : How can we “SECURELY” do bluetooth pairing without prompting anything on user screen?

不羁的心 提交于 2019-12-13 09:24:46
问题 I know we can pair any bluetooth device without promoting on user screen but it is not secure. I guess as passkey will remain same for such connections for all the devices so anyone can sniff or do eavesdropping. How can we reduce the risk or make it more secure? I heard somebody is saying user public/private key to generate the link key but is that possible for such insecure connections?? Ref Secure Simple Pairing I hope I am able to put the question clearly ! 回答1: I've only been working