bluetooth-lowenergy

Android Bluetooth LE MAC Address Randomization

≯℡__Kan透↙ 提交于 2019-12-21 17:53:04
问题 Bluetooth LE introduced the capability to randomize the Bluetooth device address of an advertising device. Playing around with the BluetoothLeAdvertiser class in Android API21, I am missing the method to enable this feature. The device address of my test device is always the same (no randomization whatsoever). How is it possible to use Bluetooth LE device address randomization in Android? Thanks, Martin 回答1: The blog you mention also says: In general, those random, private MAC addresses

Scanning for BLE Devices from C/C++

孤街醉人 提交于 2019-12-21 12:56:02
问题 from the "Bluetooth Device Access Guide", I've read that the Bluetooth API should be accessable from C or from C++. I've found some C-headers (IOBluetoothUserLib.h, Bluetooth.h) in the IOBluetooth framework that are related to Bluetooth and contain enumerations and data structured to define search creteria but I fail to find any function that takes such enumeration or data structure as parameter. According to the documentation I would have to create a CBCentralManager but I fail to find a way

Scanning for BLE Devices from C/C++

本小妞迷上赌 提交于 2019-12-21 12:54:58
问题 from the "Bluetooth Device Access Guide", I've read that the Bluetooth API should be accessable from C or from C++. I've found some C-headers (IOBluetoothUserLib.h, Bluetooth.h) in the IOBluetooth framework that are related to Bluetooth and contain enumerations and data structured to define search creteria but I fail to find any function that takes such enumeration or data structure as parameter. According to the documentation I would have to create a CBCentralManager but I fail to find a way

Connecting to a Polar H7 Heart Rate Monitor from WP8

感情迁移 提交于 2019-12-21 12:26:23
问题 Is there any way to connect to Bluetooth Low Energy devices from Windows Phone 8? e.g. Heart Rate Monitors such as the Polar H7. Some background I've tried: I've seen this sample for Windows 8 - http://code.msdn.microsoft.com/windowshardware/Bluetooth-Generic-4f4ea968/view/Discussions - which seems to require quite a deep level of knowledge. I've seen this closed question here: https://stackoverflow.com/questions/13224392/nokia-lumia-920-and-bluetooth-low-energy-devices I've implemented WP8

Android BLE can't receive Gatt Characteristic notification from device

笑着哭i 提交于 2019-12-21 05:39:08
问题 I'm trying to receive a notification from the device when I write a value on a characteristic, but I don´t receive anything. I enable the notification on the characteristic and then I write the value. I've seen that the characteristic in the device have changed its value but I can't get the notification. Here is my code: DeviceActivity: public class DevicesActivity extends Activity { private BLEService mBluetoothLeService; private String mDeviceAddress; private boolean mConnected = false;

How do I read Bluetooth Low Energy transmitted data programmatically on Mac OS X 10.9.5?

不羁岁月 提交于 2019-12-21 04:33:17
问题 I'm trying to read Bluetooth Low Energy transmitted data programtically using Ruby. Bluetooth Low Energy technology provides no support for the Serial Port Profile (SPP) in the standard Specification v4.0. With older Bluetooth communication methods, one can just read the serial port for Bluetooth incoming data ( /dev/tty.Bluetooth-Incoming-Port ). Clearly, this won’t work for Bluetooth Low Energy, given it works almost completely differently. I came across a few tools like LightBlue and XCode

Maximum data size when sending data via BTLE on iOS

本秂侑毒 提交于 2019-12-21 04:04:10
问题 I am currently implementing an iOS application that uses CoreBluetooth to transfer data between 2 devices. For example, to send data from the central to the peripheral, I use this code: NSData *data = [NSJSONSerialization dataWithJSONObject:dictionary options:NSJSONWritingPrettyPrinted error:nil]; NSLog(@"Writing data of length %d", [data length]); [peripheral writeValue:data forCharacteristic:characteristic type:CBCharacteristicWriteWithResponse]; This works absolutely fine, but the thing is

Oreo, BLE scanner startScan with PendingIntent not working on Samsung device

做~自己de王妃 提交于 2019-12-21 03:01:40
问题 I am trying to scan for beacons using startScan(filters, settings, callbackIntent). I have an implementation that works fine for Sony Xperia XZ, and Nexus 5X. The only other device with Android O I have available is a Samsung Galaxy S8, and what works for the other devices produce nothing on the Samsung. (The bluetooth scan is really imbedded in a library module, but even when creating a dummy app the samsung fails, so I'll use that in this example). I have removed the filter and the settings

Using Microhip's MLDP data streaming from Android or iOS

♀尐吖头ヾ 提交于 2019-12-21 02:26:11
问题 Microchip defined a way to stream data over BlueTooth low energy (BLE) and called it MLDP (Microchip Low-energy Data Profile). They built it into their RN4020 chip, and there is even an sample Android app. However, I can't find any specification of how the protocol works or source for the app. I'd like to be able to use it to debug an embedded device from Android and/or iOS. Does anyone know the specification for this protocol or software that implements it? 回答1: Hi i was in the same problem,

ReadRSSI doesn't call the delegate method

南笙酒味 提交于 2019-12-21 01:21:12
问题 I got a problem since the iOS 8 update, right now my app is connected to a BLE device and periodically reads the RSSI thanks to a timer and the ReadRSSI method. The readRSSI method is called (checked with a breakpoint) so until this point everything is fine. According to the documentation calling the readRSSI should trigger the callback - (void)peripheral:(CBPeripheral *)peripheral didReadRSSI:(NSNumber *)RSSI error:(NSError *)error However, this delegate method is not called every time. But