external-accessory

How does this iOS app communicate over the USB port?

蓝咒 提交于 2019-12-02 17:14:21
This app promises to turn your iOS device into a second monitor and uses the standard USB cable to connect to the computer, as opposed to the network which all other similar apps use. Back when I heard about it, it wasn't yet available so I thought it was a scam. To my surprise, they released the app and it actually works as described. How does it work ? As far as I know there are no APIs to drive the USB port in iOS, and the computer connected via USB through the standard charging/syncing cable doesn't count as an MFI accessory. Note that they provide the server software (the one that

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: %@"

Can't get a notification when connecting an external accessory to the 3.5 mm headphones jack

試著忘記壹切 提交于 2019-11-30 16:06:41
I've been trying to get this to work for a while now. I've done everything they say in the documentation and still got nothing. This is the code in my app delegate that registers for local notifications: - (void) registerForLocalNotifications { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_accessoryConnected:) name:EAAccessoryDidConnectNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_accessoryDisconnected:) name:EAAccessoryDidDisconnectNotification object:nil]; [[EAAccessoryManager sharedAccessoryManager]

How to list out all MFI devies into the iOS app?

陌路散爱 提交于 2019-11-30 14:19:38
I want to display the list of all MFI passed apple devices which are not paired before from iOS settings. I can list out the connected devices using below code: NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager] connectedAccessories]; So My Query is: Can i scan all the available unpaired MFI devices using "External Accessories" framework in to the iOS app and then i can pair them from the iOS app. Please help me for shorting this out. Lots of thanks in advance..... Yes, You can. From iOS 6 EA Framework provides built-in bluetooth pairing function within app. Check this: [

Can't get a notification when connecting an external accessory to the 3.5 mm headphones jack

丶灬走出姿态 提交于 2019-11-29 22:55:19
问题 I've been trying to get this to work for a while now. I've done everything they say in the documentation and still got nothing. This is the code in my app delegate that registers for local notifications: - (void) registerForLocalNotifications { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_accessoryConnected:) name:EAAccessoryDidConnectNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_accessoryDisconnected:) name

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

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

我是研究僧i 提交于 2019-11-28 01:02:24
问题 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

How get the list of paired bluetooth devices in swift?

不羁的心 提交于 2019-11-27 22:22:02
问题 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. 回答1: It's not possible to retrieve list of paired

how to find Bluetooth audio devices in iOS

谁说胖子不能爱 提交于 2019-11-27 03:42:05
Okay, I'm working on a fun project that has a hurdle where I need to enable Bluetooth audio support for my iOS app. The hurdle I'm at is that I simply can't even begin to get a list of connected Bluetooth audio devices. Even though my iPhone 5S recognizes my earpiece (a ~3 - 4 year old LG HBM-230 , to be precise) and plays audio through it for phone calls, BOTH External Accessory and CoreBluetooth are giving me nothing useful when I query both. I'm basing my own code off questions & answers I found for both the CoreBluetooth and External Accessory frameworks. When my code simply tries to "