ios-bluetooth

Getting list of available bluetooth devices in ios

对着背影说爱祢 提交于 2019-12-24 04:12:13
问题 Is there a way to get list of mac addresses of available bluetooth devices in ios? I'm working on a programm which finds people nearby using bluetooth mac addresses. 回答1: I'm sure you have: [centralManager scanForPeripheralsWithServices:nil options:nil]; That means your app is searching for BLE peripherals. Every time your app discovers a peripheral invokes: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *

iOS External Accessory Framework: how to get a protocol string for certain MFI device

半世苍凉 提交于 2019-12-23 11:24:15
问题 I'm writing an iOS application for communicating with mini mPlay Drumi MP18B (a small Bluetooth loudspeaker). As far as I know, showBluetoothAccessoryPickerWithNameFilter displays only devices with protocol strings added to Supported External Accessory Protocols key of Info.plist. So I need to add this protocol string to a list. Where can I get a protocol string for this certain device? Is there a list of device supported protocols anywhere in an internet? Most of manufactures doesn't mention

In CBCentralManager delegate method didDiscoverPeripheral: never called

只愿长相守 提交于 2019-12-22 01:15:24
问题 I initialize the CBCenteralManager in viewdidload on main queue. First time update state method is called and start scanning for bluetooth devices but didDiscoverPeripheral: delegate method never get called. Code is : - (void)viewDidLoad { [super viewDidLoad]; self.CM = [[CBCentralManager alloc]initWithDelegate:self queue:nil]; } -(void)centralManagerDidUpdateState:(CBCentralManager *)central{ if (central.state == CBCentralManagerStatePoweredOn) { [self.CM scanForPeripheralsWithServices:nil

Using Microhip's MLDP data streaming from Android or iOS

♀尐吖头ヾ 提交于 2019-12-21 02:26:11
问题 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? 回答1: Hi i was in the same problem,

Send image file between Android and iPhone by bluetooth

时间秒杀一切 提交于 2019-12-13 09:45:40
问题 I need a your help I'm making a file transfer app By Bluetooth and Wifi But i can't find how send files from Android to iPhone by bluetooth 1 ) How send files from Android to iPhone ?? 2 ) Where is sample codes ? 回答1: On iOS there are currently two ways to send/receive files over Bluetooth. The first way is over Bluetooth Classic which uses the External Accessory Framework. This does however require that the device you are connected to is MFi enabled, which (to the best of my knowledge) no

Scanning for beacons using universal beacon library

柔情痞子 提交于 2019-12-13 03:21:29
问题 I am trying to implement a mobile app (on iPhone) that just scans for beacons and displays a notification for each one. I am a noob with beacons/bluetooth. I implemented it using the universal beacon library (https://github.com/andijakl/universal-beacon) and i've attached my ios bluetooth implementation. my problem is that i receive about 12 beacon added events even though i only have two (I assume it is picking up all my other bluetooth devices). I also only receive the local name in the

Enable Bluetooth for pjsip voice call in ios

谁都会走 提交于 2019-12-11 17:49:33
问题 I am making VOIP app and now we required to connect voice calls with Bluetooth. We tried to connect the call with Bluetooth but not hear anything. /* Initialize audio session category and mode */ { AVAudioSession *sess = [AVAudioSession sharedInstance]; pj_bool_t err; if ([sess respondsToSelector:@selector(setCategory:withOptions:error:)]) { err = [sess setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:nil] != YES; } else { err =

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

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 to advertise in the background as a beacon when entering a beacon region

随声附和 提交于 2019-12-11 06:26:13
问题 I'm currently working on developing an app that is heavily dependent on iBceaons. I managed to create a beacon region which wakes up the app process in the background for 10 seconds when entering the region. The next step is making phone it self advertise when it enters the region while in background Currently while the app is open it keeps ranging and transmits as a beacon while its in a region where as when the app is in the background , it ranges for 10 seconds but doesn't transmit as a