core-bluetooth

Voice over bluetooth in iOS

心不动则不痛 提交于 2019-12-11 16:43:51
问题 I am doing research over four days, But I am not found any solution for calling over Bluetooth between two iOS devices within a distance. I found that audio streaming is possible between two iOS devices using multipeer connectivity framework but this is not helpful for me. I want real time voice chat between two devices over Bluetooth. Is there any CO-DAC for voice over Bluetooth? My code is: var engine = AVAudioEngine() var file: AVAudioFile? var player = AVAudioPlayerNode() var input

Working with MultipeerConnectivity in iOS swift

巧了我就是萌 提交于 2019-12-11 16:08:39
问题 I'm working with MultipeerConnectivity framework in iOS, followed a nice tutorial and it worked well. I have one question, I have two devices with wifi turned OFF but Bluetooth is ON, for the above approach to work, is it necessary for the two devices to be paired(via bluetooth, manually by the user in iOS settings)? Will it work even if the devices are not paired manually? If yes, do I need any special code setup or the above code will just work?(I have tried, for me It didn't work. Might be

Trouble reading data from OBD 2

隐身守侯 提交于 2019-12-11 13:36:23
问题 I am using OBD2 device to get data from different vehicles. Communication between the app and OBD2 is done using Bluetooth LE. When I use an OBD2 device I get the service UUID = FFE0 and characteristic UUID = FFE1. I can use this characteristic to write PID and I am getting data from my car without any problem. But when I use a different OBD2 I get service UUID = FFF0 and two characteristics with UUID FFE1(with property .write) and FFE2(with property .read). When I try to write a PID to the

Multiple CBCentralManager instances?

不打扰是莪最后的温柔 提交于 2019-12-11 13:11:40
问题 Are multiple CBCentralManager instances supported? If so, in which version of iOS did they begin to be supported? I've found multiple emails on the Apple mailing lists stating that they are not. However, this is not enforced with exceptions or by having a theoretical +sharedCentralManager . One states that the documentation says that they are not supported. However, that is no longer mentioned in the documentation, and the current header file comment (iOS 8.3 SDK) is: /*! * @class

Can Two Apps Running Simultaneously On The Same iDevice Communicate through Bluetooth?

懵懂的女人 提交于 2019-12-11 12:40:15
问题 Question is as title describes. I have two apps, one CBPeripheralDelegate and one CBCentralManagerDelegate. The peripheral advertises when it is in the foreground (I think, I have no other BTLE devices to test it), but if I run the Central app in the foreground on the phone and the peripheral in the background, neither seems to see the other. I have enabled UIBackgroundModes:bluetooth-peripheral in the peripherals info.plist as per the documentation for CoreBluetooth background execution. I

How to fix CBPeripheralManager's transmit queue is full?

╄→гoц情女王★ 提交于 2019-12-11 11:07:56
问题 I have a problem in CBPeripheralManager 's method. - (BOOL)updateValue:(NSData *)value forCharacteristic:(CBMutableCharacteristic *)characteristic onSubscribedCentrals:(NSArray *)centrals According to Apple documentation , It will return YES if the update could be sent, or NO if the underlying transmit queue is full. And I am getting NO . How should I fix this? 回答1: When the output queue is full, you need to delay sending the response. The worker queue scheme . The easiest way to solve this

CoreBluetooth advertisement error

心已入冬 提交于 2019-12-11 10:19:41
问题 I have a strange error when attempting to advertise some service data. func locationManager(manager: CLLocationManager, didRangeBeacons beacons: [CLBeacon], inRegion region: CLBeaconRegion) { if let beacon = beacons.first, username = NSUserDefaults.standardUserDefaults().objectForKey("username") { var major = beacon.major.integerValue var minor = beacon.minor.integerValue let advertismentData:[String:AnyObject] = [ CBAdvertisementDataServiceUUIDsKey:[AppDelegate.MajorUUID, AppDelegate

Bluetooth Speaker Playback and control by using Dual mode capability in iOS device ? without using iAP protocol

余生颓废 提交于 2019-12-11 09:28:37
问题 I have researched a lot and yet have doubts with respect Bluetooth dual mode accessory working with iOS device. help by any expert who has experience in the following case is appreciated. i need the feasible solution which can get the work done and App should not be rejected while uploading to app store . i have stated constraints and my solution let me know if this is valid . Existing Resource : i have a Bluetooth speaker which is MFI Certified and supports A2DP and AVRCP profiles , it

How do I org.bluetooth.characteristic.report_map for more than one type of report?

六眼飞鱼酱① 提交于 2019-12-11 08:04:54
问题 Alright, I'm building a keyboard with an integrated touch-screen used as a mouse, I'm sending the data generated over BLE via HID OVER GATT. This works fine for org.bluetooth.characteristic.boot_keyboard_input_report & org.bluetooth.characteristic.boot_mouse_input_report, but I'm not very certain how to configure the report_map and what I need to send according to these declarations. The Main question is really, because there is no hybrid type of Usage, I need to use two Usage. But do I need

corebluetooth and ios states

人走茶凉 提交于 2019-12-11 08:01:17
问题 Successfully connected my BLE device using corebluetooth library and set notify values for certain service from it on my ios app. Works fine in foreground and background modes. I currently save the identifiers of the device to UserDefaults and need the ios device to be always connected to the device at all times. Question: What are the best practices for corebluetooth implementation with the states of the ios app? Specifically: What should be implemented when user opens the app? (currently: I