bluetooth-lowenergy

Android BLE onCharacteristicChanged not called

≡放荡痞女 提交于 2019-12-25 05:45:34
问题 I'm working on a project which includes a Bluegiga BLE113 module and an Android app. On the Bluegiga module I've set up several characteristics. For one characteristic I defined a descriptor to activate the client notification (in My case, the client is the Android app.). The characteristic definition of the BLE113 module looks like this: : <characteristic uuid="dcfa2671-974d-4e4a-96cd-6221afeabb62" id="ez1_flow_data_out"> <!-- org.bluetooth.descriptor.gatt.characteristic_user_description -->

Unable to send data to characteristic

偶尔善良 提交于 2019-12-25 04:28:09
问题 I am able to get notified on the app when a remote device change the characteristic value, but when the app update the value back, the remote device won't see it. So ,I know my characteristic is valid, i also know that other apps are able to write back to that characteristic (The actual device prints it) So problem is of course in the app . Whats more interesting is that every characteristic has handles , which have each its own UUID. iOS will only let me see my characteristic UUID, no access

Sending BLE device data to server in background

跟風遠走 提交于 2019-12-25 02:00:31
问题 I develop an application that reading data from BLE device and send this data to MQTT broker (server). But when application entering to the background, data sending stopped after 3 minutes (I use Background Tasks). How I can increase this time. Or maybe there is an official mechanism, that Apple promotes and will not reject on the confirmation step on App Store, for reading data from BLE and sending this data to the server in the background that not limited by time? My Background Task:

didDiscoverServices is not being called after a BLE connection

情到浓时终转凉″ 提交于 2019-12-25 01:46:07
问题 I'm working with a BLE device which I need to verify. The BLE code I'm using is below //Pragma Bluetooth Methods func centralManagerDidUpdateState(_ central: CBCentralManager) { if central.state == .poweredOn { central.scanForPeripherals(withServices: nil, options: nil) } else { print("Bluetooth not available.") } } func centralManager(_ central: CBCentralManager, didDiscover peripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber){ if let peripheralName =

Unable to find BLE device when type is STEP_COUNT_DELTA

♀尐吖头ヾ 提交于 2019-12-25 01:44:52
问题 I am using the Google fit API to connect with a Sony Smartband2 band. All I am trying to do right now, is scan and claim a device. (Following This Fitness ble guide ) I can find and claim my device, when I set the data type as TYPE_HEART_RATE_BPM. However, when I set it to TYPE_STEP_COUNT_DELTA or TYPE_STEP_COUNT_CUMULATIVE, I am unable to find the device. What maybe the issue? I know that later I will also need to use the Sensors API, but to find the device, I do not need it, right? To build

Switching from iBeacon to BLE in real time?

守給你的承諾、 提交于 2019-12-25 01:24:10
问题 Our beacon hardware was programmed to be iBeacon + writeable BLE . So i can discover it with iBeacon , and also connect to it via BLE. I would like to scan for iBeacon, and when i enter the region (app is in background) , and the delegate is being called, he will than switch to BLE and connect to the device with BLE : - (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region { // here connect as usual via bluetooth } So,as i said, i can separately write/discover

Custom BLE service with SPP support?

你。 提交于 2019-12-25 01:08:20
问题 I'd like to have bluetooth module with iOS support and Rx/Tx pins. iOS devices support only MFI -certified Bluetooth 2.1 modules (and i can't find any) or BLE modules. But most BLE modules do not have Rx/Ts pins for transparent interaction. As possible solution #1 Adafruit created board based on nRF8001 bt chip with custom BLE service with 1 characteristics for Rx and 1 characteristics for Tx and but unfortunately it supports SPI only and i need direct Rx/Tx pins to be wired to Arduino board

Slow reading speed of GATT characteristics BLE

瘦欲@ 提交于 2019-12-25 00:45:10
问题 I'm working on a project to transfer data between a Bluetooth device (TI CC2650) and android. To do this, it is necessary to perform a reading of the GATT characteristic at a speed of at least 24 kbps. The Bluetooth Low Energy specification allows this transfer rate. I work in Android Studio and use standard libraries for BLE offered by the studio. When requesting a read from a master device, the characteristics of a slave device using the mBluetoothLeService.readCustomCharacteristic () or

How to edit the advertisement data?

筅森魡賤 提交于 2019-12-24 21:47:55
问题 I need to edit the advertisement data of bluetooth peripheral from central manager. i tried a lot.. The following code provides the details : 1.After the Peripheral connection: - (void)centralManager:(CBCentralManager *)central didConnectPeripheral:(CBPeripheral *)peripheral { NSLog(@"Connection successfull to peripheral: %@",peripheral); peripheral.delegate = self; [peripheral discoverServices:nil]; //Do somenthing after successfull connection. } 2.Discovering Services: - (void)peripheral:

How to respond to BLE characteristic notifications by sending a new write command

我的未来我决定 提交于 2019-12-24 20:19:04
问题 I'm updating an app to use RxAndroidBLE, and struggling with how to translate my existing callback pattern into an Rx pattern. In particular, I need to respond to characteristic notifications in different ways depending on the received data, and send a specific write command back to the device (which will then cause the characteristic to be updated, in a loop). The rationale behind this is that the BLE device I'm integrating with has a special custom characteristic, to which we can send