core-bluetooth

Connect to Paired Bluetooth Device iOS8.1

家住魔仙堡 提交于 2019-12-08 06:09:01
问题 Newbie to all things CoreBlooth here. I have successfully written a small app to connect to a Wahoo Blue HR heart rate monitor and retrieve the bpm for my heart rate etc. I used the tutorial below but rewrote the code into swift. Link to tutorial I am now trying to write a simple app to retrieve the Blood Pressure readings from a Bluetooth LE BP reader I have. The model in question is an iHealth BP5. When I scan for this device using the following code I get nothing. func

CoreBluetooth / L2CAP channels, not working

泄露秘密 提交于 2019-12-08 04:55:13
问题 I have recently been experimenting quite a bit with CoreBluetooth , and now I want to use L2CAP channels. For that I have set up two iOS apps, one is the peripheral and the other one is the central. At this point, when I run them, here is what I see in the Xcode debugging console. On the peripheral side I get this: peripheralManager(_:didAdd:error:) peripheralManager(_:didPublishL2CAPChannel:error:) PSM: 192 peripheralManagerDidStartAdvertising(_:error:) On the central side I get that:

How possible ANCS ( Apple Notification Center Service ) send phone call or sms to wearable devices?

流过昼夜 提交于 2019-12-08 04:52:45
问题 As we know ANCS provides the chance to send notification to paired BLE devices such as Pebble alike watches. My question is Is that possible to send the telephone call info (i.e, the calling number ) or SMS message to the paired BLE devices via ANCS ? Quite new to ANCS, got a lot sample code from this question here to verify if the wearable device can know who is calling my iphone, or what message is sending to me. I know Apple has high protection for users, call and sms are high sensitive

Bluetooth Low Energy app failed to write characteristics on iOS 7

帅比萌擦擦* 提交于 2019-12-08 01:49:03
问题 I have a Bluetooth Low Energy (BLE) app that communicates with a BLE device through open connection. I am using CoreBluetooth library. After I upgraded my iPhone to iOS 7 and XCode to XCode 5. I recompiled my Bluetooth Low Energy app and found it no longer working. The connection is successful. The services and characteristics are discovered with no problems. Even the reading of the characteristics seems fine. But writing to a characteristic which should trigger some action on the BLE device

How to ask for authentication before connect to devices using bluetooth?

蓝咒 提交于 2019-12-08 01:18:26
问题 I want to make demo application, which contains following features. search and show device list in my device Bluetooth range. connect(pair) selected devices. then share string data. For doing that I am using core Bluetooth framework(Central and peripheral classes). using that I am able to search devices, connect devices and transfer string data also. but I am not able to authenticate devices before pairing(when I call connect method it is directly shown me connected status). how is it handled

iPad Air - CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth

做~自己de王妃 提交于 2019-12-08 00:57:33
问题 I'm working with the "ExternalAccessory framework". I encountered a problem trying my app on a new iPad Air. When i try to show the bluetooth picker this error appear: CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth The bluetooth is ON . Picker return this error: Error Domain=EABluetoothAccessoryPickerErrorDomain Code=3 "The operation couldn’t be completed. My app work on every Apple Device, except the new iPad Air. EDIT I can connect and communicate with my

TI Sensortag, how to use push buttons?

强颜欢笑 提交于 2019-12-07 18:43:32
问题 I am working with the new TI Sensortag. I'm trying to do a simple iOS app that reads the state of those buttons. I've found a lot of guide, tutorial etc. about using Sensortag's sensors (humidity, IR Temperature, ...) but no one talks about push buttons on his top. Has anyone an idea about them? Tank you very much Reda P.S. I'm using an iPhone 5 回答1: 0xFFE1 SK_KEY_PRESSED GATT_PERMIT_READ Left/Right Keys, Side key as Bit 2 in test mode only. http://processors.wiki.ti.com/index.php/File:BLE

how can scan bluetooth devices using core bluetooth sdk?

与世无争的帅哥 提交于 2019-12-07 17:54:19
I'm currently creating an iPhone app (Xcode 6.2, IOS 8.2) that could use Bluetooth devices! Main goal of this application is only search the available bluetooth devices and whenever you go to out of range from bluetooth devices one alert message pop up.and when ever you come in range automatically connected. The only solution I see here (to keep my app on AppStore) is to try scan for available bluetooth devices! I tried to use CoreBluetooth framework, but I don't get list of available devices! I wants to hit my head on my monitor i am very frustrated with this problem. My code is here: #import

Does CBCentralManager connect ever time out?

最后都变了- 提交于 2019-12-07 16:53:57
问题 I know the answer is nominally "no", but I mean really —what if the app goes into the background (with BTLE background processing enabled)? For 24 hours? Across an app update? Under the heading "Reconnecting to Peripherals", this Apple documentation describes a reconnection workflow that first tries to reconnect to previously paired peripherals found via retrievePeripheralsWithIdentifiers: but then starts scanning again if you fail to connect. How do you know when to give up on connect -ing

peripheral writeValue: forCharacteristic: type: return null error and value

一世执手 提交于 2019-12-07 11:47:53
问题 I am using the code below written by Apple. https://developer.apple.com/library/mac/samplecode/HeartRateMonitor/Listings/HeartRateMonitor_HeartRateMonitorAppDelegate_m.html#//apple_ref/doc/uid/DTS40011322-HeartRateMonitor_HeartRateMonitorAppDelegate_m-DontLinkElementID_4 Here is the writeValue section written by Apple if ([aChar.UUID isEqual:[CBUUID UUIDWithString:@"2A39"]]) { uint8_t val = 1; NSData* valData = [NSData dataWithBytes:(void*)&val length:sizeof(val)]; [aPeripheral writeValue