gatt

How to send command to BLE device and show result

◇◆丶佛笑我妖孽 提交于 2019-12-08 07:18:59
问题 @Override public void onServicesDiscovered(final BluetoothGatt gatt, int status) { super.onServicesDiscovered(gatt, status); if (status == BluetoothGatt.GATT_SUCCESS) { List<BluetoothGattCharacteristic> characteristics = null; List<BluetoothGattService> services = gatt.getServices(); //I am getting all services for (final BluetoothGattService service : services) { characteristics = service.getCharacteristics(); //I am getting all characteristics for each services } } } I am able to connect

Listening to and accepting a BLE Connect request in windows

丶灬走出姿态 提交于 2019-12-08 07:14:18
问题 I've been trying to connect an iOS device to windows using Bluetooth low energy, and I find the windows BLE API very.. unclear. The windows is acting as the peripheral and the iOS device the Central I think that my Swift code on the iOS device is fine, it works with BLE devices (like a climate device I have) what I'm doing on the iOS side is: - Launching the scan for BLE Advertisements - Upon receiving an Advertisements, if the ManufacturerData is what I'm looking for, I try to connect to the

Android Ble GATT_ERROR 133 getting often with samsung devices

浪尽此生 提交于 2019-12-07 11:56:46
问题 I am working on BLE Applications, I have tested with different devices like Nexus, Moto, Samsung, LG. I am getting the GATT Error 133 in Samsung Devices alone(Samsung A5 2016). Trying to connect 10 times it gets connected only 2 or 3 times.Please Help me out. 来源: https://stackoverflow.com/questions/40465373/android-ble-gatt-error-133-getting-often-with-samsung-devices

Advertise Bluetooth LE Service using HCITool

牧云@^-^@ 提交于 2019-12-07 05:53:57
问题 I'm experimenting with creating a Bluetooth Low Energy Peripheral on my Linux computer (The goal is to send data over Bluetooth From an iPhone). Im currently using the Tools hciconfig , hcitool and hcidump . My current experiment is to advertise a Service with a Specific UUID, that the iOS CoreBluetooth Library will pick up. (Note: I'm not trying to create an iBeacon). Right now, it's actually as simple as One Single Command that is bugging me. hcitool -i hci0 cmd 0x08 0x0008 15 02 01 1a 11

Android BLE 4.3 onDescriptorWrite returns status 128 on enabling characteristics notification

守給你的承諾、 提交于 2019-12-07 04:21:46
问题 A question on enabling characteristics using the new android BLE 4.3: I am not getting any notification from the BLE device though I enable notification on characteristics one by one asynchronously using a queue. I also write the descriptor with UUID "00002902-0000-1000-8000-00805f9b34fb" with ENABLE_NOTIFICATION_VALUE. I have followed the recommendation from Google sdk doc and as well suggestions from various forums. By the way I get status = 128 on "onDescriptorWrite". Any idea as what this

BLE subscribe to notification using gatttool or bluepy

只愿长相守 提交于 2019-12-07 04:15:21
问题 I am writing a program using bluepy that listen for a characteristic sent by a bluetooth device. I can also use any library or language, the only constraint is to run on Linux and not in mobile environment (it seems is widely used only in mobile devices, no one use BLE with desktop). Using bluepy I register the delegate and after trying to register for notification calling write('\x01\x00') as described in the bluetooth rfc. But it doesn't work, any notification for the characteristic is

How to send command to BLE device and show result

孤人 提交于 2019-12-06 15:12:51
@Override public void onServicesDiscovered(final BluetoothGatt gatt, int status) { super.onServicesDiscovered(gatt, status); if (status == BluetoothGatt.GATT_SUCCESS) { List<BluetoothGattCharacteristic> characteristics = null; List<BluetoothGattService> services = gatt.getServices(); //I am getting all services for (final BluetoothGattService service : services) { characteristics = service.getCharacteristics(); //I am getting all characteristics for each services } } } I am able to connect with BLE device and I am getting all services and characteristics, now I have send some commands, like to

While connecting to BLE113 from android 4.3 is logging “Client registered, waiting for callback”

北战南征 提交于 2019-12-06 13:44:47
问题 I'm trying to connect to a BlueGiga BLE113 device and my Samsung Galaxy S4(Android 4.3). I can successfully discover the device but unable to connect and discover services. This is the log after pushing the button to connect. 12-30 16:38:34.012: D/BluetoothGatt(11280): registerApp() 12-30 16:38:34.012: D/BluetoothGatt(11280): registerApp() - UUID=5a5ac8ad-7583-457f-ba60-373c3beaf1b2 12-30 16:38:34.022: D/BluetoothGatt(11280): onClientRegistered() - status=0 clientIf=8 12-30 16:38:34.022: I

How to get Disconnect Event from GATT Server on Bluez/Linux

前提是你 提交于 2019-12-06 07:12:16
Environment: Bluez 5.14, Linux 3.1, USB Plugable BLE radio, TI BLE keyfob (CC2541 dev kit) Linux Device <---hci----> USB BLE Radio We enabled key press events on TI keyfob using gatttool and started to listen for events gatttool -b [hardware ID] --char-write-req -a [handle] -n [value] --listen (gatttool -b 90:59:AF:09:E1:5D --char-write-req -a 0x0048 -n 0100 --listen) Pressing buttons on the keyfob and see these events Notification handle = 0x0047 value: 02 Notification handle = 0x0047 value: 00 Notification handle = 0x0047 value: 02 Hence we can receive the key press events from the Keyfob

Android Ble GATT_ERROR 133 getting often with samsung devices

元气小坏坏 提交于 2019-12-05 23:01:29
I am working on BLE Applications, I have tested with different devices like Nexus, Moto, Samsung, LG. I am getting the GATT Error 133 in Samsung Devices alone(Samsung A5 2016). Trying to connect 10 times it gets connected only 2 or 3 times.Please Help me out. 来源: https://stackoverflow.com/questions/40465373/android-ble-gatt-error-133-getting-often-with-samsung-devices