bluetooth-lowenergy

Core Bluetooth and backgrounding: Detection of a device and triggering an action, even after being days in background mode?

女生的网名这么多〃 提交于 2019-12-20 08:04:46
问题 I've written an app that needs to get informed when a certain Bluetooth Low Energy device comes within range. If the BLE device gets noticed my app just stores a timestamp. As stated in the WWDC 2012 Core Bluetooth videos, there are two possibilities for apps for acting in background mode when working with Core Bluetooth: Event Backgrounding Event backgrounding is probably what most Apps will use when interacting with Bluetooth Low Energy devices. This mode does not allow for direct

How to know when to retrieve connected ble device while app is in background and its connected first in ios system?

若如初见. 提交于 2019-12-20 07:23:03
问题 Our BLE device is using ANCS and being connected as peripheral in the ios app. My problem happens in case when watch is being connected in settings screen first then it doesnt show up in scanned device thats why its not connecting while app is in background because its getting connected outside of the app, reason being iphone is bonded with ble device. Though I can retrieve it using retrievePeripheral function. But it has to be manually fired , I am looking for some kind of observer or

Does MAC ID broadcasted in Eddystone Beacon change?

余生长醉 提交于 2019-12-20 06:47:15
问题 I'll describe my setup : I have made an android application that simulates Eddystone beacon. I was able to detect the Eddystone beacon on my phone using Beacon Toy app from PlayStore. But the thing is , from the last time I checked , the MAC ID displayed has changed. I can identify its the same beacon because of the namespace and instance id being the same but under different MacID. Could someone suggest what is happening here ? I was under the impression that MacID stays constant. 回答1: Yes,

HM-10 and Arduino - Sending AT commands with no line ending from code

懵懂的女人 提交于 2019-12-20 05:12:30
问题 I need to use HM-10 with Arduino Uno or Nano. I'm not able to figure out how to send AT commands and read the reply. The commands work from serial monitor, but not from code. Here's what I've tried so far: #include <SoftwareSerial.h> SoftwareSerial blueToothSerial(0,1); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(115200); Serial.println("Serial began"); blueToothSerial.begin(9600); delay(2000); } void loop() { Serial.println("looping...");

How to decode the BLE advertisement data

懵懂的女人 提交于 2019-12-20 04:48:26
问题 After scanning for the BLE device, I call the below method: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI and receive the following advertisement data as such: { kCBAdvDataManufacturerData = <ffff0215 cf6d4a0f ..... adf2f491 ... ... > } How can I decode the data and access its information? 回答1: It seems that you are expecting this advertising packet to be decodable

BLE peripheral pairing pin on android

只愿长相守 提交于 2019-12-20 04:41:41
问题 I implemented a GATT Server and Client App on Android. The connection is working and I forced pairing by adding PERMISSION_READ/WRITE_ENCRYPTED_MITM to all of the GattCharacteristics. But the pairing behavior differs on different clients: 1) Pin is shown on the client/central (Android 5 on Samsung Galaxy S3) and should be insert on the server/peripheral (Android 7 on Nexus 5). 2) Passkey is shown on both devices client/central (Android 5 on Samsung Galaxy S3) and server/peripheral (Android 6

What specs do I need to know to develop bluetooth (AVRCP 1.4) iPhone app

戏子无情 提交于 2019-12-20 04:36:09
问题 I am new to iPhone dev't and I am going to work on a project where I have to develop a bluetooth enabled iPhone app to control a vehicle stereo, and DVD player. The vehicle has a physical remote control (IR) and the aim of this project is to replace the IR with a bluetooth enabled iPhone app to control the functions that the IR does. Play, stop, next,previous etc... The hardware can communicate with AVRCP 1.4 . I don't know every detail but that is what I know. What knowledge do I need to

What specs do I need to know to develop bluetooth (AVRCP 1.4) iPhone app

不打扰是莪最后的温柔 提交于 2019-12-20 04:36:07
问题 I am new to iPhone dev't and I am going to work on a project where I have to develop a bluetooth enabled iPhone app to control a vehicle stereo, and DVD player. The vehicle has a physical remote control (IR) and the aim of this project is to replace the IR with a bluetooth enabled iPhone app to control the functions that the IR does. Play, stop, next,previous etc... The hardware can communicate with AVRCP 1.4 . I don't know every detail but that is what I know. What knowledge do I need to

Bluetooth Low Energy advertising to be discoverable in iOS Settings

给你一囗甜甜゛ 提交于 2019-12-20 04:24:38
问题 I have an iOS app which is using CBPeripheralManager to implement a peripheral. I start advertising with the command: [self.peripheralManager startAdvertising:@{CBAdvertisementDataLocalNameKey : @"MY_DEVICE_NAME"}]; According to the Apple docuentation, https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBPeripheralManager_Class/index.html#//apple_ref/occ/instm/CBPeripheralManager/startAdvertising: only two of the keys are supported for peripheral manager objects:

How could i achieve maximum thread safety with a read/write BLE Gatt Characteristic?

倾然丶 夕夏残阳落幕 提交于 2019-12-19 15:25:36
问题 I am communicating with a BLE device that sends me lots of data via one characteristic. The same CH is used to send data to the device. Inside Androids BluetoothGattCharacteristic there are the methods public byte[] getValue() { return mValue; } public boolean setValue(byte[] value) { mValue = value; return true; } However, the execution happens from different threads. Android runs about 5 different binder-threads and they call onCharacteristicChanged(BluetoothGatt gatt,