ios-bluetooth

BLE takes too much time while sending data from iOS 7.1 to iOS 8

浪尽此生 提交于 2019-12-04 06:47:09
I have a strange issue. I am developing an app in which I am sending Chunks in 20-20 bytes. . Everything is working fine. When I am sending Bytes data from iOS 8 to iOS 8 device it take around 4-5 second to transfer from one device to another, but my problem is when I am sending Bytes data from iOs 7.1 to iOs 8 or reverse, It take around 17-20 seconds to transfer the data from one device to any device. Why it's taking too much time in iOS 7.1 to iOS 8 or reverse? Manthan Try to look at some of the links below. That might help you. Link1 Link2 This is just a reference of links that might help

iOS Detect Bluetooth connection/disconnection

谁说我不能喝 提交于 2019-12-04 04:28:03
Is it possible to be notified when a Bluetooth Device is connected or disconnected from iOS even when my app is in background ? On Android, I use the ACTION_ACL_CONNECTED and ACTION_ACL_DISCONNECTED events. But I cannot find equivalents for iOS. I found the CBCentralManager that can be used to monitor Bluetooth events, but my functions aren't called when a bluetooth device is connected/disconnected, only when I enable/disable the bluetooth. Is it an error on my side or is it normal ? I also found the doc about Audio Route changes, that can also be an idea to detect the bluetooth connections

Using Microhip's MLDP data streaming from Android or iOS

青春壹個敷衍的年華 提交于 2019-12-03 07:24:36
Microchip defined a way to stream data over BlueTooth low energy (BLE) and called it MLDP (Microchip Low-energy Data Profile). They built it into their RN4020 chip, and there is even an sample Android app . However, I can't find any specification of how the protocol works or source for the app. I'd like to be able to use it to debug an embedded device from Android and/or iOS. Does anyone know the specification for this protocol or software that implements it? Hi i was in the same problem, but at this moment i have a working code with MLDP, first you need to go to the Module web page: http:/

Bluetooth headphone music quality deteriorates when launching iOS simulator

我只是一个虾纸丫 提交于 2019-12-02 13:50:14
The situation goes a little something like this: I am programming Xcode whilst concurrently listening to music on my bluetooth headphones... you know to block out the world. Then, I go to launch my app in the iOS simulator and BOOM all of a sudden my crystal clear music becomes garbled and super low quality like it is playing in a bathtub 2 blocks away... in the 1940s. Note: the quality deterioration does NOT occur if I am playing music on my laptop or cinema display and I launch the sim. Seems to be exclusively a Sim -> bluetooth issue. The problem is more than just annoying. Because often

iOS Apps that access the same BLE peripheral: How to distinguish?

我是研究僧i 提交于 2019-12-02 04:53:07
I have to following scenario: My app requests and receives data from an BLE peripheral (a glucometer). It it possible that the user has another app (from another developer) installed, that also communicates with the peripheral. I noticed that my app receives characteristic notifications for requests that where initiated by the other app. This causes my app to receive some data twice. Is there any way to distinguish between responses to my request and responses that are caused by another app? Or how can I handle it? While the stack obviously knows which app a certain (read, write) response

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

how to get public Bluetooth Device Address using core_bluetooth

只愿长相守 提交于 2019-12-01 07:40:50
问题 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

iOS how to discover bluetooth headset and its events

夙愿已清 提交于 2019-11-29 18:10:54
I am trying to discover "Bluetooth Headset" and get its events. I read the "CoreBluetooth" documentation and implemented sample code as below. It does not fire the delegate method ' didDiscoverPeripheral '. Is there any solution for this? Code: CBCentralManager *myCentralManager; [myCentralManager scanForPeripheralsWithServices:nil options:nil]; -(void)centralManagerDidUpdateState:(CBCentralManager *)central{ //following line prints CBCentralManagerStatePoweredOn NSLog(@"state:%@", [self getCentralManagerState:central.state]); } //following method does not fire -(void)centralManager:

Get the list of classic bluetooth connected devices (no BLE) [EAAccessoryManager]

六眼飞鱼酱① 提交于 2019-11-29 07:31:23
I need to do an app which will be able to tell if I am currently connected to a classic Bluetooth device or not (actually, it will be a Bluetooth car device). My first step is to tell what are the current connected classic Bluetooth devices. I cannot use CoreBluetooth because it's only for LE. I try to use the External Accessory framework. Here is the code (a button starts the method): - (IBAction)startMethodGetConnected:(id)sender { NSLog(@"button taped"); // Get the number of accessories connected NSUInteger NumberOfAccessoriesConnected = [[EAAccessoryManager sharedAccessoryManager]

How get the list of paired bluetooth devices in swift?

风格不统一 提交于 2019-11-29 04:12:50
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. It's not possible to retrieve list of paired peripherals from iOS. Neither it's possible to check if specific peripheral is paired. Retrieving