bluetooth-lowenergy

iOS - How to deal with bonded devices in BLE

时光毁灭记忆、已成空白 提交于 2019-12-11 13:03:07
问题 I have interract with a BLE device using an iOS App. These devices are bonded. The problem appears when I go to Settings and I press 'Forget Device'. The application keeps trying to connect even though the device was forgotten because on the "peripheral:didDisconnect" callback I try to reconnect to the device. The bluetooth device sends a disconnect event because the bond is not good anymore. Then the application tries again a connection and so on. I tried to look at the error code in the

Android Bluetooth LE Chat example

自古美人都是妖i 提交于 2019-12-11 12:52:31
问题 I am trying to read serial data over Bluetooth LE but can't find any code examples for this type of bluetooth and api19. Does any one have an example? 回答1: There is no profile defined for serial data communication over Bluetooth Low Energy till now. For this one can use the Bluetooth classic only. In any case, Android devices can not broadcast for advertising packets. They can only scan the advertising packets. Hence, these devices will be in Central mode only. But can act as either server or

Can Two Apps Running Simultaneously On The Same iDevice Communicate through Bluetooth?

懵懂的女人 提交于 2019-12-11 12:40:15
问题 Question is as title describes. I have two apps, one CBPeripheralDelegate and one CBCentralManagerDelegate. The peripheral advertises when it is in the foreground (I think, I have no other BTLE devices to test it), but if I run the Central app in the foreground on the phone and the peripheral in the background, neither seems to see the other. I have enabled UIBackgroundModes:bluetooth-peripheral in the peripherals info.plist as per the documentation for CoreBluetooth background execution. I

How to set bluez mode?

你离开我真会死。 提交于 2019-12-11 12:09:02
问题 There are some threads for how to apply bluez as ibeacon or BLE peripheral. But when I use ble scanner (a BLE central application on Android), that reveal the bluz peripheral as dual mode. How should I do to disable the classic mode in bluez? 回答1: Since you are referring to that thread, you probably use hcitool to set the advertisement data and options. You need to set change the Flag for BR/EDR support to 0. Thats Bit 2 of the Flags field (See Part A Supplement of the Bluetooth Core

In CBPeripheralManager, how to know if user push a cancel button when it's trying to pairing

雨燕双飞 提交于 2019-12-11 11:56:06
问题 I'm making BLE connection between iPhone and device with CBPeripheralManager. If Central tried to pair with peripheral, Bluetooth pairing alertController pops up and user can choice which one there're going to use. Most of them will push a connect button. But is there a way to know when user push a cancel button? Delegate API would be good but I couldn't find it. 回答1: I'm not sure, but maybe didFailToConnectPeripheral method of CBCentralManagerDelegate is a good place to handle your case. 来源:

windows api for ble ibeacon? [duplicate]

为君一笑 提交于 2019-12-11 11:50:14
问题 This question already has answers here : Can a Windows PC act as a Bluetooth beacon? (2 answers) Closed 5 years ago . As my knowing, the Bluetooth low energy (BLE) is supported in(above) Windows 8. But I do not have any cue about how to code a iBeacon scanner in Windows. Is there are any example or reference mentioning about it? That behavior is like most iBeacon detectors/scanners app in Android/iOS. Thank your attention. 回答1: Windows currently doesn't support scanning or acting as iBeacon(s

BLE in the background

北城以北 提交于 2019-12-11 11:16:52
问题 I'm working on a project with iBeacon that requires the app run constantly in the background. Nevermind the practicality of this, please. The iBeacon API doesn't allow apps to range in the background constantly or receive any other communication other than enter/exit events (accept in the case where you set the needsDisplay flag, but this isn't as passive as I need it to be). Once in a particular region, it seems you can't detect which beacon you're closest to while the app is completely

How to fix CBPeripheralManager's transmit queue is full?

╄→гoц情女王★ 提交于 2019-12-11 11:07:56
问题 I have a problem in CBPeripheralManager 's method. - (BOOL)updateValue:(NSData *)value forCharacteristic:(CBMutableCharacteristic *)characteristic onSubscribedCentrals:(NSArray *)centrals According to Apple documentation , It will return YES if the update could be sent, or NO if the underlying transmit queue is full. And I am getting NO . How should I fix this? 回答1: When the output queue is full, you need to delay sending the response. The worker queue scheme . The easiest way to solve this

SDKs and Beacon/Bluetooth LE development

泪湿孤枕 提交于 2019-12-11 11:03:20
问题 There are a few beacon sites that released their SDK. For example, say https://www.gimbal.com/ has an SDK for you to implement in your mobile app so that you can talk to their manufactured beacons. Say you appreciated many of the features and tools that their software had, but you wanted to develop more tools... or maybe custom campaigns for their beacons to be programmed to do. How would you go about doing this? Can you build on top of an SDK? Mainly my question is, how can I program their

Read / Write error in BGAPI for BLE112 modules by BlueGiga

为君一笑 提交于 2019-12-11 10:54:38
问题 I am trying to implement a communication between a BLE112 board and a BLE112 Smart Dongle by BlueGiga. These two support AT command set. I have managed to perform pairing between these two over the BLEGUI tool as shown in the screenshot below. For the Read operations the console shows following: ble_cmd_attclient_read_by_handle connection: 0 chrhandle: 3 TX: 00030404000300 ble_rsp_attclient_read_by_handle connection: 0 result: 0 ['No Error'] RX: 00030404000000 ble_evt_attclient_attribute