core-bluetooth

iOS and Bluetooth Low Energy

本秂侑毒 提交于 2019-12-06 14:08:14
问题 I know that there are a lot of restrictions on bluetooth when it comes to iOS. I wanted some more information on Bluetooth Low Energy (LE) and the CoreBluetooth Framework apple provides from iOS 5.0 and greater. Can i connect ANY Bluetooth LE device to an iOS device using the Core Bluetooth Framework? Is there any Bluetooth LE device in production,that comes with a three axis accelerometer and a gyro that i could use like a Human Interface device? 回答1: Sagar, Maybe you can explain more about

Core Bluetooth - Performing Long-Term Actions in the Background

随声附和 提交于 2019-12-06 13:58:34
This is from the Core Bluetooth Background Processing for iOS Apps section found in official docs: Performing Long-Term Actions in the Background Some apps may need to use the Core Bluetooth framework to perform long-term actions in the background. As an example, imagine you are developing a home security app for an iOS device that communicates with a door lock (equipped with Bluetooth low energy technology). The app and the lock interact to automatically lock the door when the user leaves home and unlock the door when the user returns—all while the app is in the background. When the user

BTLE 4.0 - ConnectBlue Low Energy Serial Port Service

半腔热情 提交于 2019-12-06 13:05:12
问题 I am looking for a way to load data from an embedded device via a serial port (RS232) to an iPhone. The app needs to be on the AppStore and our company is not part of the MFI program. Before you say, it can't be done, we are looking into Bluetooth Low Energy 4.0 as a possible solution. We can create a device that can turn ConnectBlue's OBS421 module into a serial port adapter (with the speed bursts limitation). To that effect, connectBlue provides their own protocol called Serial Port Service

Bluetooth Pairing - HFP profile and Classic Bluetooth/BLE

落花浮王杯 提交于 2019-12-06 12:26:46
问题 Can any one help me on bluetooth pairing and communicating 1.Is it possible to view all the device trying to connect via Bluetooth in the application, not by going to settings page. 2 Can we access data from devices that use standard profile like HFP,A2DP etc without MFi.(Classic bluetooth, not BLE) How is it done and which framework? Pls help and thanks in advance 3.(Edited) Is it possible to view all devices that uses BLE (standard profiles only HFP, A2DP )in the application by using

CoreBluetooth Functions not working from Singleton

我的未来我决定 提交于 2019-12-06 12:01:29
问题 So I currently got a bluetooth connection setup between a iPad and iPhone. I've created my testcode in the ViewController and everything works fine. Now I moved it to 2 manager classes one for the CBCentralManager and one for the CBPeripheralManager above those to classes I made a BluetoothManager which is a singleton class and holds some information regarding currently connected devices. However when doing this I'm facing a problem it seems like the centralManager.connect() call doesn't

Connection problems when using iPhone as peripheral

江枫思渺然 提交于 2019-12-06 11:50:49
问题 I am using an iphone as a peripheral to expose some values over bluetooth low energy and using light blue (on another iphone) for debugging. What I am seeing is that the connection with the peripheral is lost after 20 seconds aprox? Any ideas? Peripheral iPhone: 5c iOS 8.1 Central iPhone with lightblue app: 5s iOS 8.1 Also when I use my Mac Book Pro OS X 10.9.5 with light blue desktop app the connection with the peripheral is lost. I also tried with another app I wrote to check the connection

Bluetooth Low Energy app failed to write characteristics on iOS 7

可紊 提交于 2019-12-06 11:48:59
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 has not any effect. If I use XCode to download the same app to another iPhone with iOS 6 , everything

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

扶醉桌前 提交于 2019-12-06 11:44:08
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 device. The problem appear only if i call the bluetooth picker. EDIT 2 the problem appears also with a

forget a BLE device in a iPhone 6 (8.1.3)

点点圈 提交于 2019-12-06 10:33:01
问题 I don't know how to forget a BLE device in my iPhone device. Going to Settings -> Bluetooth page , I see the list of Devices, but I don't see any option to forget it. 回答1: BLE devices will appear in one of three cases - An app has an active connection (the device will be listed under "My devices") An app has a pending connection to a device that has gone out of range (the device will be listed under "Other devices") The device is paired (bonded) (the device will be listed under "My Devices"

Peripheral transmit queue issue

£可爱£侵袭症+ 提交于 2019-12-06 08:38:22
问题 I’m working on a simple wrapper around CoreBluetooth to send any data to any device. During developing I encountered a lot of bugs in framework, they were very annoying and to make my wrapper stable I had to shorten some of functionality for reliability. For now I’m working on sending data from peripheral. Ok, so I have following case: Client asks for value of dynamic characteristic I get a callback on server-side - peripheral:didReceiveReadRequest:. Note : I need to respond to this