bluetooth-lowenergy

Android BLE: “Scan failed, reason app registration failed for UUID”

自闭症网瘾萝莉.ら 提交于 2020-01-23 06:37:13
问题 I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually between 5 and 24h, the scan stops working. Every time a scan is supposed to be started, I get: 09-05 09:08:37.160 8160-8160/myapp D/BluetoothAdapter: startLeScan(): null 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09

Android BLE: “Scan failed, reason app registration failed for UUID”

爱⌒轻易说出口 提交于 2020-01-23 06:35:45
问题 I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually between 5 and 24h, the scan stops working. Every time a scan is supposed to be started, I get: 09-05 09:08:37.160 8160-8160/myapp D/BluetoothAdapter: startLeScan(): null 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09

BLE GATT onCharacteristicChanged not called after subscribing to notification

扶醉桌前 提交于 2020-01-23 05:32:22
问题 this is my first post on SO. I have some problems subscribing to GATT notifications on android 5.0.2 . What I aim to do is to connect an Arduino with a BLE Shield to my Android phone. I have a sensor connected to the Arduino and want to send the data from the Arduino to my phone by using the BLE shield. There is a nRF8001 on the shield which is the server, my phone/app is the client. What I did so far was to create an Android app which scans for BLE devices. It can connect to a device and

Bluetooth low energy low rate on Windows?

爷,独闯天下 提交于 2020-01-23 02:50:06
问题 I have a device with a custom service which sends sensor data in a very high rate using the BLE notification feature. I'm using the the following API on a Windows 10 machine: https://msdn.microsoft.com/en-us/library/windows/hardware/jj159880(v=vs.85).aspx I'm searching the device by the custom service ID using SetupDi API, and then "connect" to it using CreateFile. When I pair the device with Windows for the first time it immediately shows "Connected" in the Bluetooth Settings window, and

Raspberry iBeacon not detecting

半城伤御伤魂 提交于 2020-01-20 19:55:09
问题 I recently was trying to configure ibeacon on a BLE dongle (cambridge silicon radio) on a raspberry pi. Reference: http://developer.radiusnetworks.com/2013/10/09/how-to-make-an-ibeacon-out-of-a-raspberry-pi.html I get this message : HCI Command: ogf 0x08, ocf 0x0008, plen 44 1E 02 01 1A 1A FF 4C 00 02 15 E2 C5 6D B5 DF FB 48 D2 B0 60 D0 F5 A7 10 96 E0 00 00 00 00 C9 00 00 00 00 00 00 00 00 00 00 00 00 00 > HCI Event: 0x0e plen 4 01 08 20 12 And the app does not even locate the beacon. Though

Is there any proper documentation from Android Team why filter in BLE is not working for android 4.4 and 4.3 devices?

一笑奈何 提交于 2020-01-17 08:32:08
问题 Is there any proper reason from Android team why BLE filter is not working for Android 4.3 and 4.4 devices? I need to explain this issue to my client. private List<UUID> parseUuids(byte[] advertisedData) { List<UUID> uuids = new ArrayList<UUID>(); ByteBuffer buffer = ByteBuffer.wrap(advertisedData).order(ByteOrder.LITTLE_ENDIAN); while (buffer.remaining() > 2) { byte length = buffer.get(); if (length == 0) break; byte type = buffer.get(); switch (type) { case 0x02: // Partial list of 16-bit

Why are there multiple DBT_DEVICEREMOVECOMPLETE messages for a BLE HID device?

倖福魔咒の 提交于 2020-01-16 19:25:16
问题 When looking for a WM_DEVICECHANGE message for a BLE HID device via WndProc the arrival and removal messages sometimes occur 1-4 times without any actual removal or turning off of the device. On arrival, I setup communication and on removal I end communication. However, I wanted to see if communication could still occur if I ignored subsequent removal messages and kept reading from the device via ReadFile . What I found is that I would get a read failure if another removal message came in.

connection interval for BLE on Galaxy S3 Android 4.3

谁说胖子不能爱 提交于 2020-01-15 08:41:11
问题 when I send data from my perifpheral ( CC2541 ) to my GalaxyS3 ( Android 4.3 ) I see that regardless of the connection interval that I set in the peripheral ( 7.5msec ) I get packets sent at intervals of ~100msec. That is really poor data rate. Any advice of how I can speed things up? ( I already turned off the WiFi ) Thanks 回答1: As you might already know, there's no way to configure the connection interval from Android BLE API, thus, the only way left is to set it from the peripheral device.

connection interval for BLE on Galaxy S3 Android 4.3

我是研究僧i 提交于 2020-01-15 08:41:05
问题 when I send data from my perifpheral ( CC2541 ) to my GalaxyS3 ( Android 4.3 ) I see that regardless of the connection interval that I set in the peripheral ( 7.5msec ) I get packets sent at intervals of ~100msec. That is really poor data rate. Any advice of how I can speed things up? ( I already turned off the WiFi ) Thanks 回答1: As you might already know, there's no way to configure the connection interval from Android BLE API, thus, the only way left is to set it from the peripheral device.

Qt and Android characteristicChanged is not emitted

冷暖自知 提交于 2020-01-15 08:14:35
问题 I have a problem with testing my application on Android platform. I have functional application on x86 architecture. This application can connect to Bluetooth LowEnergy device and communicate with it. BT device is HM-10 module - serial line. But when I try the same application, but just compiled for Android, I'm not able to receive any data back. On the other hand I can see on remote device that all data from mobile terminal are sent. What I suspect as a possible problem is that signal