core-bluetooth

iOS and Bluetooth Low Energy

不问归期 提交于 2019-12-04 19:01:28
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? Sagar, Maybe you can explain more about what you want to do. Any BT4.0 LE device can connect and communicate with a iOS app using the CoreBluetooth

How to reboot CoreBluetooth manager instance at fixed interval in background

我的未来我决定 提交于 2019-12-04 18:27:51
I'm developing a iOS application of using CoreBluetooth and i have one problem in application BackGround. Generally, iOS application can't run long-term in Background. (e.g. pushing HomeButton. switching other application) But my application is set "Uses Bluetooth LE accessories" as BackGroundMode, so i can monitor region in Background. And i implemented startRangingBeaconsInRegion in didEnterRegion. When enter a region, Ranging region will be started and will be stopped after about 10 sec by iOS. But i want to always use ranging in Background. Because my app use only one UUID for detecting

How to transfer a data in Binary form via Bluetooth in iPhone App

蓝咒 提交于 2019-12-04 18:22:56
I am developing a device driver software for iOS and mac. In this I want to transfer a Number data in Binary form from my iPhone App to a device via blutoogh. Suppose I want to transfer a Data like 20 Jan 2013 10:30 am the i need to transfer 200120131030 in a binary sequence. means first binary of 20 then binary of 01 then binary of 2013 and so on... other device is not running on iOS. I convert this number to NSData but can't understand that NSData is abinary data or not. Is there a way to make it binary and transfer it. (I can transferred data via bluetooth) Let's say you decide to represent

i schedule a Timer to read RSSI using readRSSI function ,but the timer stops when my app go into background

穿精又带淫゛_ 提交于 2019-12-04 17:42:55
I schedule a Timer to read RSSI using readRSSI function ,but the timer stops when my app go into background. Maybe there is a good method to get RSSI value from peripheral's notification when app comes into background . But I don't know how to do. Could anybody help me? Anyone has a better method? I have got the same problem, and I have two idea. 1. First, you should have some service that got corebluetooth delegate periodly. F or my example, I have a battery service that I can got delegate with didUpdateValueForCharacteristic periodly. Second, set readRSSI function in

iOS 8 Core Bluetooth not discovering peripherals

感情迁移 提交于 2019-12-04 17:42:04
问题 I'm having trouble getting Core Bluetooth to discover peripherals on iOS 8. Same code works fine on iOS 7 device. Initially I thought it would be a permissions issue since I had been doing some iBeacon work and there are some changes in Core Location permissions on iOS 8. I couldn't find anything online that helped with that however. Here is a link to a sample project that works fine for me on iOS 7 but not on iOS 8: https://github.com/elgreco84/PeripheralScanning If I run this project on an

Ios Peripheral Device in BACKGROUND

筅森魡賤 提交于 2019-12-04 16:12:20
We need in our project to detect the proximity of an iPhone that is running a custom APP that is using Bluetooth LE. The detector (Scanner, Central...) will be implemented using a BLE Integrated Circuit (from Texas or Nordic). I mean that the scanner is not another IOS device... running Core Bluetooth as a Central.. For the detector to guess the proximity, the idea is very simple, just advertise a service with an UUID proprietary. While in foreground all works OK, and the UUID and a Local name are advertised (The UUID in the main advertise packet, and the Local Name in the SCAN Response packet

How to use service soliciting with IOBluetooth/CoreBluetooth?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 15:57:51
问题 What I'm trying to do is use the Apple Notification Center Service (ANCS) from my iPhone on my Mac. To make my Mac show up on in my iPhone's Bluetooth settings, I apparently need to use service soliciting. What I've tried so far is initiate a CBPeripheralManager on my Mac, add the ANCS service to it and start advertising. That doesn't seem to do it, as my Mac doesn't show up in my iPhone's Bluetooth settings. What I've also tried is initiate a CBCentralManager and start scanning, with the

didDiscoverPeripheral is not called

一曲冷凌霜 提交于 2019-12-04 15:48:51
I'm connecting to a Bluetooth device. However, the didDiscoverPeripheral delegate method is never called. I'm scanning for the device with the UUID. This is straight from the TemperatureSensor example code. [centralManager scanForPeripheralsWithServices:uuidArray options:options]; Oddly enough, if I comment out this method, retrieveConnectedPeripherals finds the device just fine. I'm calling retrieveConnectedPeripherals when the device is powered on. Only when didRetrieveConnectedPeripherals is implemented will the device actually be detected. However, there's still no call to

CoreBluetooth Functions not working from Singleton

久未见 提交于 2019-12-04 15:46:12
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 actually work. I debugged my entire code and after that line nothing seems to happen and I can't seem to

Connection problems when using iPhone as peripheral

廉价感情. 提交于 2019-12-04 15:38:28
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 error and I get the 'the peripheral has disconnected from us' as the error message and this app is