core-bluetooth

Core Bluetooth - constant RSSI updates of in-range devices

二次信任 提交于 2019-11-28 04:35:28
I just started with the core bluetooth framework for iOS and I'm developing an app that needs to constantly scan for BLE devices so that I can retrieve their RSSI number every minute or so. Currently I have: manager = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:FALSE], CBCentralManagerScanOptionAllowDuplicatesKey, nil]; [manager scanForPeripheralsWithServices:nil options:options]; this starts my app scanning for BLE devices and calls this delegate method when a device is discovered: -

How to get Mac Address From CBPeripheral And CBCenter

时光毁灭记忆、已成空白 提交于 2019-11-28 04:22:30
问题 I need to take target mac address from input connection and outgoing connection from CBPeripheral And CBCenter. identifier dose not define in them. look was remove from iOS 7. Is there any other way? https://developer.apple.com/library/prerelease/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html 回答1: You can't get the MAC address for a CBPeripheral but you can get the identifier property, which is a UUID that iOS computes from the MAC amongst other information. This

iBeacon in the background - Use cases

落爺英雄遲暮 提交于 2019-11-28 03:12:24
The number of questions on SO related to iBeacon and its background capabilities is increasing and there is some confusion on that point. I have been testing the AirLocate project. iBeacon has 2 "capabilities": Region monitoring and Ranging. Region monitoring is limited to 20 regions and can function in the background (of the listening device) and has different delegates to notify listening app (and user) of entry/exit in the region - even if app is in the background or phone is locked. Ranging works only in the foreground but will return (to the listening device) an array (unlimited?) of all

How get the list of paired bluetooth devices in swift?

不羁的心 提交于 2019-11-27 22:22:02
问题 I need to get the list of paired bluetooth devices(iOS Devices) as same as the list in 'Bluetooth' section in iOS settings as shown in below picture. Is it possible? Have you seen any apps doing this type of functionality? I have tried the following: link1, link2, link3, link4, link5, link6 But nothing helped me clearly to get the exact list. I hope there should be a way to achieve this. Please help me by sharing your experience. Thank you. 回答1: It's not possible to retrieve list of paired

Background time issue for Bluetooth LE app for Iphone 4s

故事扮演 提交于 2019-11-27 20:30:41
问题 I am using core-bluetooth framework for my app in Iphone-4s. This is typically has to be a background app which can run as longer as possible. Now it is only running for 40 min - 1 hour max. I am hoping for at least 1 day or so. For this "bluetooth-central" value is added in "Required background modes" key in .plist file. It seems like my app is going to "suspend" mode, at the end. since when I open the app again (background to foreground state) it is sending the notification again, it means

How to wake up iOS app with bluetooth signal (BLE)

南楼画角 提交于 2019-11-27 19:28:52
using the BLE with CoreBluetooth (no iBeacon), is there a way to wake app a not running app when the device receives a bluetooth signal? I'm simulating a beacon with the redbearlab's BLE Shield ( http://redbearlab.com/bleshield/ ). Thanks, DAN * UPDATE 03/05/14 * It looks like Apple has introduced a major update with iOS 7.1: now iOS will open your app for you if it detects a UUID that matches your app. The app only needs to be installed, it doesn't have to be running (logic in AppDelegate needed to answer the wake-up call). If the app was running in the background and then closed (I mean here

Bluetooth framework for older iOS devices

夙愿已清 提交于 2019-11-27 19:02:12
问题 My question is related with Bluetooth technology around iOS. I've watched WWDC about Bluetooth Low Energy 101, what's new, the basics etc, and about using the CoreBluetooth framework available in iOS 5 and later. I've looked through different sites and documentations trying to find more information about Bluetooth 2.1 and 4, but there is so few. GameKIt is not an answer, I am developing an app to work with an non-iOS device. Some of the topics I've went through: Connecting to a Bluetooth

iOS Core Bluetooth Not asking for Pair

倖福魔咒の 提交于 2019-11-27 17:49:01
问题 In My recent project, I need to communicate a Hardware (Bluetooth Low energy).I have implement all the delegate methods code. I am able to Connect hardware and device, But I am not getting pairing alert (Attached screen shot). Why not it is asking for pairing? Thank you. #import "BTWCentralConnectionManager.h" @implementation BTWCentralConnectionManager @synthesize cbcManager; @synthesize discoveredPeripheral; @synthesize findMeServiceCharacteristic; @synthesize findMeService; @synthesize

Bluetooth LE RSSI for proximity detection iOS

久未见 提交于 2019-11-27 17:31:40
I'll start with the question. Is the BTLE RSSI a good way to indicate two devices proximity to each other or not? does it only work with small devices like fobs etc? The Issue: I am currently looking at making an app that will use BTLE and allow connections based on proximity. In this regard it is much like the demo app that apple show in the Advanced Core Bluetooth keynote (When two devices are almost touching they then connect). As I understand it the proximity is determined based on the RSSI value when the central discovers the peripheral. When I try this however with two iPads the signal

Reading a BLE Peripheral Characteristic and checking its value?

强颜欢笑 提交于 2019-11-27 15:05:53
问题 I'm writing an app using Swift on Xcode that connects to a bluetooth BLE peripheral. I've established a connection to a the device, and want to read some data from a specific characteristic (specifically FFF1 in service UUID FFF0). I'm able to request a read of characteristics using the following code if the characteristic that I want to find info for is characteristicx : peripheral.readValueForCharacteristic(charactericsx) What I want to know is this: How do I check that this read value is