bluetooth-gatt

Scanning for BLE devices on Android 8+ in the background

穿精又带淫゛_ 提交于 2019-12-08 19:02:26
I'm using the following method from BLE scanner API on Android 8+ to scan for BLE Beacons startScan(List<ScanFilter> filters, ScanSettings settings, PendingIntent callbackIntent) The problem is that after sometimes I can see Scan Logs but nothing is delivered by the callbackIntent any idea why is this happening? This is the expected behavior on Android 8+. if you need to scan continuously a periodic mechanism is needed in this case. For more information about scanning on different Android versions and different ways. Have a look here 来源: https://stackoverflow.com/questions/52777982/scanning

Scanning for BLE devices on Android 8+ in the background

穿精又带淫゛_ 提交于 2019-12-08 08:36:27
问题 I'm using the following method from BLE scanner API on Android 8+ to scan for BLE Beacons startScan(List<ScanFilter> filters, ScanSettings settings, PendingIntent callbackIntent) The problem is that after sometimes I can see Scan Logs but nothing is delivered by the callbackIntent any idea why is this happening? 回答1: This is the expected behavior on Android 8+. if you need to scan continuously a periodic mechanism is needed in this case. For more information about scanning on different

Why value does not fall within the expected range when setting Value Changed for Gatt Characteristic

爱⌒轻易说出口 提交于 2019-12-08 04:41:16
问题 I would like to keep on reading characteristic/set value changed event handlers for characteristics from my BLE 4.0 device, by using the ValueChanged callback in Universal Windows Platform C# in Visual Studio 2017. I followed some tutorial from these sites: Damian Blog's Windows Universal with BLE, Bluetooth Gatt's Git Hub, Bluetooth Generic Attribute Profile - Heart Rate Service and Dr. Jukka's mobile Blog on BLE. All of them are using ValueChanged and I have tried to follow what they did.

Which GATT Profile and Services are used by OBD BLE Adapters like LELink, Automatic, Carista?

本小妞迷上赌 提交于 2019-12-02 03:43:30
I am exploring building apps (Android & iOS) for Car OBD2 Adapters that support BLE (Bluetooth Low Energy). In order for the app to be able to work with such adapters from different vendors, I presume there would be a standard set of GATT profile i.e. Services and Characteristics that these adapters would be using for standard features like engine RPM, Fuel level etc. Is this info available somewhere that I can refer while building the mobile app? OBD2 BLE adapters don't use any fixed GATT profiles. The way most (if not all) BLE OBD2 adapters work, is that they offer one service with one or

Communication between BLE device and different android apps on same device

可紊 提交于 2019-11-30 21:39:27
I'm new in Android BLE so my question may be uncorrect or naive in some way. If this is the case please explain me where I'm wrong and kindly show me the correct way to manage this scenario. Scenario is the following: my Android app communicates with a BLE device sending commands and getting answers from device using BLE characteristics. Sequence is: Device wakes up the app (the onConnectionStateChange method is called) My app writes a command in a characteristic (I call writeCharacteristic putting the command in value parameter). Device sends back the answer to command to my app (the

Communication between BLE device and different android apps on same device

六眼飞鱼酱① 提交于 2019-11-30 05:34:23
问题 I'm new in Android BLE so my question may be uncorrect or naive in some way. If this is the case please explain me where I'm wrong and kindly show me the correct way to manage this scenario. Scenario is the following: my Android app communicates with a BLE device sending commands and getting answers from device using BLE characteristics. Sequence is: Device wakes up the app (the onConnectionStateChange method is called) My app writes a command in a characteristic (I call writeCharacteristic