bluetooth-lowenergy

Robustly communicating with multiple BLE devices simultaneously on Android

故事扮演 提交于 2019-12-20 17:42:08
问题 Although undocumented, conventional wisdom using the Android BLE apis is that certain operations like reading / writing Characteristics & Descriptors should be done one at a time (although some devices are more lenient than others). However, I am not clear on whether this policy should apply only to a single connection, or across all active connections. I've heard that its best to initiate connections to devices one at a time. That might be an example of operations (connect / connectGatt)

Analyzing Bluetooth Low Energy Traffic

假装没事ソ 提交于 2019-12-20 15:01:09
问题 While trying to study BLE I am wondering if it is possible to analyse it through tools like Wireshark and snort? I came across one by the name "ubertooth" but that's a USB device which needs to be purchased in order for us to do DPI on BLE frames, right? Is it possible to capture and analyse BLE frames on Wireshark? 回答1: Yes it's possible to use wireshark to analyse BLE packets, but you will need additional hardware. Sniffing a connection requires support from the baseband layer which is

Using CoreBluetooth with iBeacons

╄→尐↘猪︶ㄣ 提交于 2019-12-20 14:38:57
问题 I've been doing quite a bit of research on iBeacons and CoreBluetooth on iOS devices. Your posts and research have been great. I've learned quite a bit. Unfortunately, i'm running into a dead end as it pertains to what I actually want to do. I was reading this post: http://developer.radiusnetworks.com/2013/10/21/corebluetooth-doesnt-let-you-see-ibeacons.html.... ...and it points out that you can't really do much with CoreBluetooth without the proximityUUID. That said, what if I actually DO

Bluetooth 4.0 scan response

邮差的信 提交于 2019-12-20 12:38:34
问题 What exactly is a BLE scan response packet? Since there is almost nothing to be found online, we would like to now this. Does a scan response packet, respond on a device scan or is it like the advertisement packet sent every x seconds? 回答1: A BLE scan response is the packet that is sent by the advertising device (peripheral) upon the reception of scanning requests (i.e. yes, it is a response to a device scan). The scan response usually has more data than the advertising packets. In other

Heart Rate measuring using Xiaomi MiBand and BLE

我是研究僧i 提交于 2019-12-20 12:26:17
问题 I'm trying to implement simple sdk for working with fitness tracker Xiaomi Mi Band. Currently I can track steps, actuate the vibration, handle the sensor touch but I have a problem with heart rate measuring. My sdk based on https://github.com/pangliang/miband-sdk-android. To measure heart rate, I need to write descriptor to appropriate characteristic to enable handling callback when the value of this characteristic was changed and then write appropriate data to heart rate control point

Heart Rate measuring using Xiaomi MiBand and BLE

风格不统一 提交于 2019-12-20 12:26:02
问题 I'm trying to implement simple sdk for working with fitness tracker Xiaomi Mi Band. Currently I can track steps, actuate the vibration, handle the sensor touch but I have a problem with heart rate measuring. My sdk based on https://github.com/pangliang/miband-sdk-android. To measure heart rate, I need to write descriptor to appropriate characteristic to enable handling callback when the value of this characteristic was changed and then write appropriate data to heart rate control point

Android BLE GATT_ERROR(133) on connecting to device

自古美人都是妖i 提交于 2019-12-20 10:49:11
问题 I am trying to connect to a BLE device using the MAC address. BluetoothDevice device = bluetoothAdapter.getRemoteDevice(rememberedDeviceAddress) bluetoothDevice.connectGatt(context, false, bluetoothGattCallback); I get a callback in BluetoothGattCallback.onConnectionStateChange with status = 133 and newState = 2 even when my BLE device is switched off. newState = 2 refers to BluetoothProfile.STATE_CONNECTED which means that i am connected to the device and status = 133 is GATT_ERROR (instead

hcitool lescan shows I/O error

三世轮回 提交于 2019-12-20 09:28:03
问题 I'm trying to do a lescan using hcitool on the raspberry pi. The command prints out Set scan parameters failed: Input/output error. I'm not sure, what exactly happens here. My iPhone is advertising here. I'm using a BLE dongle from IOGear. However, if I restart my machine, it shows the a MAC address after I issue the lescan command, and starts showing the same error after I issue the lescan command a couple of more times. Is it like, the lescan command cannot be issued more than once? 回答1:

iOS 7 Core Bluetooth Peripheral running in background

烈酒焚心 提交于 2019-12-20 09:03:22
问题 What I want is for my iOS device to be advertising a Bluetooth LE service all the time, even when the app isn't running, so that I can have another iOS device scan for it and find it. I have followed Apple's backgrounding instructions here: https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/PerformingCommonPeripheralRoleTasks/PerformingCommonPeripheralRoleTasks.html#//apple_ref/doc/uid/TP40013257-CH4-SW1. I can get it to advertise in

Bluetooth Smart (4.0) / GATT support in Android 4.0?

我与影子孤独终老i 提交于 2019-12-20 08:26:12
问题 I'm trying to find way to work with Bluetooth 4.0 (AKA Bluetooth Smart) devices using modern Android smartphones, namely - HTC One V. As I understood, there is some issues using GATT profile even in Android 4.0 with Bluetooth 4.0 hardware because of API limitations. I saw Motorola released it's own API for BT LE, but not sure it will work for other vendors. My goal is to get universal support for all smartphones with appropriate hardware. Any suggestion for solution are highly appreciated.