bluetooth-lowenergy

BlueZ BLE Ecrypted Characteristic Read fails after bonding and connecting

笑着哭i 提交于 2020-07-22 05:17:11
问题 I am using Raspberry Pi as a BLE Peripheral and nRF Connect tool as BLE Client. In Raspberry Pi, I'm running Simple Agent Test Program, Advertisement Program and Gatt Server Program given in the Bluez Test Folder. From the nRF Connect Tool, I, first bonded the devices and connected the devices. I have attached the dbus logs for the process. While bonding, the log shows the following signal time=1595076323.849939 sender=:1.15 -> destination=(null destination) serial=863 path=/org/bluez/hci0

iOS Bluetooth background mode

ぃ、小莉子 提交于 2020-07-17 08:06:08
问题 I wish to keep scanning for Bluetooth Devices and I want app to be alive in the background. Is it possible? It seems like if I have a connected Bluetooth device, and if there is data transfer, then the app stays awake in the background. However, if I am just scanning in the background, it seems like even if I have Uses Bluetooth LE accessories checked( bluetooth-central in plist), the app ends up not running. Is there a way to keep the app alive and continuous scan for devices when it is in

iOS Bluetooth background mode

こ雲淡風輕ζ 提交于 2020-07-17 08:03:51
问题 I wish to keep scanning for Bluetooth Devices and I want app to be alive in the background. Is it possible? It seems like if I have a connected Bluetooth device, and if there is data transfer, then the app stays awake in the background. However, if I am just scanning in the background, it seems like even if I have Uses Bluetooth LE accessories checked( bluetooth-central in plist), the app ends up not running. Is there a way to keep the app alive and continuous scan for devices when it is in

Android BLE peripheral disconnects with status code BLE_HCI_INSTANT_PASSED(0x28)

纵饮孤独 提交于 2020-07-09 17:02:11
问题 My application is able to connect to the BLE peripheral(which is an OBDII/J1939 device) device successfully. 2018-01-24 14:58:38,413 INFO LogUtil - GATT Server Status = (0) : BLE_HCI_STATUS_CODE_SUCCESS(0x00) 2018-01-24 14:58:38,414 INFO LogUtil - GATT Server New State = (2) : STATE_CONNECTED 2018-01-24 14:58:38,414 INFO LogUtil - Connected to GATT server. Application started communication with the device but after some time it received GATT server disconnection message in

Is Bonding required for BLE <-> Android, iOS device communication?

邮差的信 提交于 2020-07-09 06:56:26
问题 We have a BLE device and android/ios app for communication with the device. The requirement is to have an android/ios app connect to the device without any pairing request. No security is required on the device. Hereafter a few questions around this: Q1. Is it possible at all to have an android/ios app connect to a BLE device without a pairing request? Q2. Does the bonding required for the BLE communication? Q3. What is the downside of having the device with no bonding? Is it going to drop

Bluetooth Low Energy (BLE) - How to get UUIDs of Service, Characteristic and Descriptor separately

蹲街弑〆低调 提交于 2020-07-08 20:39:17
问题 Struggling quite a lot with an issue regarding Bluetooth Low Energy protocol. For example, a device has a Service, and this service contains a Characteristic which contains a Descriptor. UUIDs of the Service, Characteristic and Descriptor are not known in advance. My question is how to get UUIDs of them in a way that we know that this certain UUID is a type of Service/Charactersitic/Descriptor? BluetoothGatt.getServices() doesn't help, because it returns all UUIDs together and we don't know

Bluetooth Low Energy (BLE) - How to get UUIDs of Service, Characteristic and Descriptor separately

纵饮孤独 提交于 2020-07-08 20:38:06
问题 Struggling quite a lot with an issue regarding Bluetooth Low Energy protocol. For example, a device has a Service, and this service contains a Characteristic which contains a Descriptor. UUIDs of the Service, Characteristic and Descriptor are not known in advance. My question is how to get UUIDs of them in a way that we know that this certain UUID is a type of Service/Charactersitic/Descriptor? BluetoothGatt.getServices() doesn't help, because it returns all UUIDs together and we don't know

WARNING: The advertisement key 'Service Data' is not allowed

我是研究僧i 提交于 2020-07-05 10:26:55
问题 I am developing a BLE peripheral app. By requirement, the advertising packet must contain Service Data field. I have done this in Android, the packet should be like this: 0x16 is Service Data field listed here https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile/ Same thing, I do it in iOS. I use BluetoothCore framework to implement the bluetooth peripheral. Below is the attribute I should use to set value for Service Data field: advertisementData

How to measure the distance between an iPhone acting like an iBeacon and an Android device

混江龙づ霸主 提交于 2020-06-28 14:11:45
问题 I'm using my iPhone as an iBeacon device, and on the other side I have an Android 4.4.2 device scanning for the Bluetooth LE iBeacon signal from the iPhone. I searched for a good and easy way to calculate the distance between iBeacons and my Android phone, but I couldn't find anything that can help me with this. Could you help me on this matter? 回答1: We built a distance estimation formula into the Android Beacon Library of the form: d=A*(r/t)^B+C , where d is the distance in meters, r is the

How to measure the distance between an iPhone acting like an iBeacon and an Android device

橙三吉。 提交于 2020-06-28 14:11:29
问题 I'm using my iPhone as an iBeacon device, and on the other side I have an Android 4.4.2 device scanning for the Bluetooth LE iBeacon signal from the iPhone. I searched for a good and easy way to calculate the distance between iBeacons and my Android phone, but I couldn't find anything that can help me with this. Could you help me on this matter? 回答1: We built a distance estimation formula into the Android Beacon Library of the form: d=A*(r/t)^B+C , where d is the distance in meters, r is the