core-bluetooth

Connection Interval Core Bluetooth

三世轮回 提交于 2019-12-01 21:03:34
Is there any way to change connection interval through Core Bluetooth? I am transferring chunks of data to Peripheral and it's talking much time to transfer the data. I want to reduce this time. Please let me know, if it is possible to write or update the connection interval from iOS using core bluetooth. Thank You Only by sending connection parameter update from your Peripheral to iOS. Min:20ms (parameter=16) Max:40 (parameter=32) is best legal parameters according to CoreBluetooth. Actually you will get better performance with Min=10 Max=20 or 30 from which CoreBluetooth will select

iOS 8.0 bluetooth peripheral manager giving no callback for addService

北城以北 提交于 2019-12-01 20:27:23
I have created a bluetooth peripheral manager. I am adding some services to this peripheral manager using [self.peripheralManager addService:myService]. For iOS7.0 I am getting a callback for this method - (void)peripheralManager:(CBPeripheralManager *)peripheral didAddService:(CBService *)service error:(NSError *)error But for iOS8.0 I am not getting any callback for the same method and I am not able to establish a connection. Here are the steps that I followed: Create a peripheral manager using [[CBPeripheralManager alloc] initWithDelegate: self queue:nil options:@

How to get the list of the paired devices through Bluetooth in iOS?

旧巷老猫 提交于 2019-12-01 20:03:02
It's for AppStore, so I don't want any private framework. I want to get the list of the paired(even not connected). There are Core Bluetooth and External Accessary frameworks in iOS. I tried both of these, but nothing listed. Tyr to use this one but i'm not sure its working or not for offline devices. Create EAAccessory object and initialize it. And then call the property name on your accessory object NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager] connectedAccessories]; EAAccessory *accessory = nil; for (EAAccessory *obj in accessories) { NSLog(@"Found accessory named: %@"

What, exactly, is a BLE connected device on iOS?

懵懂的女人 提交于 2019-12-01 16:48:10
The CBCentralManager retrieveConnectedPeripherals method says it gets "the list of the peripherals currently connected to the system." The definition of system is a bit ambiguous here. Does this mean I get a list of peripherals connected to my app, or a list of peripherals connected to any app? If I can get peripherals connected to another app, does this also mean multiple apps can connect to the same peripheral? Can this only happen if the app is in the foreground, or do I need to allow for the possibility that a background app is sending commands to a peripheral I think my app owns?

how to get public Bluetooth Device Address using core_bluetooth

独自空忆成欢 提交于 2019-12-01 13:29:02
We have one bluetooth devices.Bluetooth devices have one public bluetooth device address(BDA).In android they get bluetooth like (30:03:5B:00:15:12) .I can get only device name and device UUID like this -(void) centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI { NSLog(@"Discovered peripheral %@ (%@) (%@)",peripheral.name,peripheral.identifier.UUIDString); //PHARMACELL CAREOUSEL (0BEF07EA-7680-4223-2D5E-6CE159333F7E) } Please any one guide to us how to get BDA value The simple

iOS Core bluetooth get all features description from device

落爺英雄遲暮 提交于 2019-12-01 13:20:50
How to can I get all available features from my device using Core Bluetooth. I figured that before get any information we need to observe all devices via low energy bluetooth. So the first step is scan for all peripheral devices scanForPeripheralsWithServices via CBCentralManager . In the delegate callback: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI we can save peripheral identifier and save peripheral to handle it in future like change some characteristics, switch

iOS Core bluetooth get all features description from device

天涯浪子 提交于 2019-12-01 11:21:50
问题 How to can I get all available features from my device using Core Bluetooth. I figured that before get any information we need to observe all devices via low energy bluetooth. So the first step is scan for all peripheral devices scanForPeripheralsWithServices via CBCentralManager . In the delegate callback: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI we can save

terminate a connection CBPeripheralManager side

爱⌒轻易说出口 提交于 2019-12-01 09:21:54
Is there a recommended way for CBPeripheralManager to terminate a connection. The best way I have found so far is simply not to respond to dynamic value, then the BLE stack seems to close the connection, but that seems rather crude. There must be a better way? No, you can't forcefully close a connection in a clear way from the peripheral side. There is no API for it. You can break the connection abruptly by not responding to a request, which results in disconnection at most after 30 seconds. This is the standard behavior defined by the Bluetooth specification Vol.3 Part F 3.3.3 A transaction

I want to trigger iOS7 to ask users permission to use Bluetooth and Twitter account

别来无恙 提交于 2019-12-01 09:08:25
This is somewhat backward to what most people ask. I want to purposely trigger the dialog asking for the users permission to: Connect to bluetooth devices, even when offline. Access there iOS-based Twitter account. I already have a similar dialog for location working fine. I'm doing this because I want to make the process of asking permission a bit more gentle, like Heyday, by showing a welcome screen explaining why the app needs this service then when the user taps OK, initiating the request and triggering the dialog. I have tried some things already. For Twitter I have tried the following: -

Core Bluetooth deprecations for iOS 7

允我心安 提交于 2019-12-01 08:48:06
In iOS 7, some Core Bluetooth things are now deprecated like CBUUIDGenericAccessProfileString and CBUUIDDeviceNameString. The apple docs state "(Deprecated. There are no replacements for these constants.)" I am wondering what we are supposed to do to replace these GAP things, as the apple docs and examples are of no help. The entire internet also seems to be silent about this. My code is pretty much just like the Heart Rate Monitor example which still has the deprecated code /* GAP (Generic Access Profile) for Device Name */ if ( [aService.UUID isEqual:[CBUUID UUIDWithString