bluetooth-lowenergy

Qt and Android characteristicChanged is not emitted

*爱你&永不变心* 提交于 2020-01-15 08:12:49
问题 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

Android BLE BluetoothGattDescriptor writeDescriptor issue

依然范特西╮ 提交于 2020-01-15 05:09:08
问题 I'm Building an application which communicates with BLE. I need to write to BluetoothGattDescriptor an int value. If I do it once everything is working perfectly, but if I want to write to BluetoothGattDescriptor (in separate Characteristics) for each one, I receive a false value in method mBluetoothGatt.writeDescriptor(descriptor) but only for the second characteristic, for the first time I'm getting true . I notice that if I set a delay between them for about 1.3 seconds then I receive true

BLE send passkey programmatically [closed]

社会主义新天地 提交于 2020-01-14 05:51:10
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . When i connect my device to my peripheral, he asks me a passkey (a pop-up is shown on the device). I want to send this passkey programmatically during the connection. I'm using CBCentralManager but I can't find a way to send it. Any suggestions? 回答1: You can't do this. This is

StickNFind Bluetooth GATT Profiles

只谈情不闲聊 提交于 2020-01-14 03:43:32
问题 Does anyone know what Bluetooth LE GATT profiles/services StickNFind is using? I am working on BLE project on Android with other products. I have not purchased any StickNFind stickers. I just want to know a bit more about these stickers before considering to have the app supporting it. Many thanks. 回答1: I've already bougth one of these stickers and I'm working with. To answer your question, I don't have the LE GATT Server complete table of all the services that it supports but there's an

Ble pairing failed

做~自己de王妃 提交于 2020-01-14 03:26:50
问题 I was involved an Android APP which does BLE connection and pairing with our company Bt chip. The APP is as BLE central role, while the Bt chip is as BLE peripheral role. When the APP runs on Android 4.4 or 5.0 smart phone, the BLE connection and pairing works well. When the APP runs on Android 5.1 or the latest version 6.0, BLE pairing is terminated by error code (error code: 13), while BLE connection is succeed. Here is the air log: 4,148 0x50654c1d 0x0000 1 LL_VERSION_IND 24 2015/12/3 14

Read/Write custom characteristic from BLE device

跟風遠走 提交于 2020-01-13 22:41:53
问题 I'm trying to interact with a temperature meter BLE device using Android Studio as IDE and Java as programming language. Using an app on my smartphone I discovered the services that this device exposes during its functioning: there were a lot of generic services/characteristic and one custom service. First of all I tried to read the HEALTH THERMOMETER service (UUID = 00001809-0000-1000-8000-00805F9B34FB) TEMPERATURE MEASUREMENT characteristic (UUID = 00002A1C-0000-1000-8000-00805F9B34FB)

Read/Write custom characteristic from BLE device

人走茶凉 提交于 2020-01-13 22:40:31
问题 I'm trying to interact with a temperature meter BLE device using Android Studio as IDE and Java as programming language. Using an app on my smartphone I discovered the services that this device exposes during its functioning: there were a lot of generic services/characteristic and one custom service. First of all I tried to read the HEALTH THERMOMETER service (UUID = 00001809-0000-1000-8000-00805F9B34FB) TEMPERATURE MEASUREMENT characteristic (UUID = 00002A1C-0000-1000-8000-00805F9B34FB)

How to correctly use UUID.fromString method?

眉间皱痕 提交于 2020-01-13 19:16:18
问题 I am trying to read/write these ble characteristics: Right now, I'm trying to read AA01* I am using this library to do it. Here's my code: private void connectToSensorTag(RxBleDevice rxBleDevice) { rxBleDevice.establishConnection(getApplicationContext(), false) .doOnError(new Action1<Throwable>() { @Override public void call(Throwable throwable) { int i = 0; } }) .flatMap(rxBleConnection -> rxBleConnection.readCharacteristic(UUID.fromString("AA01*"))) .subscribe(new Subscriber<byte[]>() {

iOS stops waking up the app upon incoming BLE connection from peripheral

流过昼夜 提交于 2020-01-13 18:33:11
问题 we have a BLE peripheral that connects to the phone every hour and passes some data. Here is how the process works: Upon launch with key UIApplicationLaunchOptionsBluetoothCentralsKey in application(didFinishLaunchingWithOptions launchOptions) app re-initializes CBCentralManager with ID that was passed to it. Then it goes through the regular restoration cycle and reads data off the BLE peripheral. Performs REST request to the service in the cloud. Assuming that app has been launched at least

Android Bluetooth Low Energy readRemoteRssi

穿精又带淫゛_ 提交于 2020-01-12 05:46:08
问题 I can't figure out how to get the 'onReadRemoteRssi' callback work. My code is very simple : final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); BluetoothAdapter mBluetoothAdapter = bluetoothManager.getAdapter(); BluetoothGatt gatt; mBluetoothAdapter.startLeScan(new LeScanCallback() { @Override public void onLeScan(BluetoothDevice device, int rssi, byte[] record) { gatt = device.connectGatt(getApplicationContext(), false, new