Questions tagged [external-accessory]

The External Accessory framework provides support for communicating with external hardware connected to an iOS-based device through the 30-pin dock connector or wirelessly using Bluetooth.

Application developers can use this conduit to integrate accessory-level features into their applications.

Communicating with an external accessory requires you to work closely with the accessory manufacturer to understand the services provided by that accessory. Manufacturers must build explicit support into their accessory hardware for communicating with iOS. As part of this support, an accessory must support at least one command protocol, which is a custom scheme for sending data back and forth between the accessory and an attached application. Apple does not maintain a registry of protocols; it is up to the manufacturer to decide which protocols to support and whether to use custom protocols or standard protocols supported by other manufacturers.

As part of your communication with the accessory manufacturer, you must find out what protocols a given accessory supports. To prevent namespace conflicts, protocol names are specified as reverse-DNS strings of the form com.apple.myProtocol. This allows each manufacturer to define as many protocols as needed to support their line of accessories.

240 questions
26
votes
2 answers

How does this iOS app communicate over the USB port?

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…
user2629998
18
votes
4 answers

Provisioning profile doesn't support the Wireless Accessory Configuration capability

After upgrading from Xcode 7.3 to Xcode 8, I'm getting an error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the Wireless Accessory Configuration capability. May I know how to resolve this?
Lie-An
  • 2,563
  • 3
  • 14
  • 20
16
votes
5 answers

No EAAccessoryDidConnectNotification and EAAccessoryDidDisconnectNotification after connecting Lightning kBD or Smart KBD

I could not get these two notifications EAAccessoryDidConnectNotification and EAAccessoryDidDisconnectNotification after connecting Lightning kBD or Smart KBD with my APP. But it worked on iOS9.3 with my code as below, [[NSNotificationCenter…
Ting
  • 169
  • 1
  • 4
16
votes
2 answers

how to find Bluetooth audio devices in iOS

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…
Michael Dautermann
  • 86,557
  • 17
  • 155
  • 196
14
votes
4 answers

How get the list of paired bluetooth devices in swift?

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…
11
votes
2 answers

What's the difference between the CoreBluetooth and ExternalAccessory frameworks?

Apple provides the following two frameworks for communicating with nearby Bluetooth devices with iOS. CoreBluetooth: The Core Bluetooth framework provides the classes needed for your iOS and Mac apps to communicate with devices that are equipped…
Extragorey
  • 1,276
  • 10
  • 26
11
votes
2 answers

Getting Issues while connecting device with serial Bluetooth

I am facing 2 problems related to regular Bluetooth.Here is my code. - (void)viewDidLoad { [super viewDidLoad]; [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(showElements) userInfo:nil repeats:NO];…
Kundan
  • 3,325
  • 2
  • 26
  • 65
11
votes
1 answer

Bluetooth Classic with iOS ExternalAccessoryFramework

I'm looking at development of an iOS app that will communicate with Bluetooth classic devices using iOS Supported Bluetooth Profiles As I understand, this should be possible using the External Accessory framework and should not require participation…
TomH
  • 2,806
  • 1
  • 22
  • 49
10
votes
3 answers

Communication between PhoneGap, usb external device and Android host mode

I need to communicate with an external device with PhoneGap on Android. It is working by bluetooth with a PhoneGap plugin. Now I want to communicate by the USB port. Is is possible with PhoneGap, to have access to an external device, by using the…
iPeo
  • 407
  • 2
  • 5
  • 16
9
votes
1 answer

What hardware attributes can iOS device detect or obtain when connected to an MFI hardware?

I am dealing with External Accessories and MFI for a project and have this question: What 3rd party hardware attributes, if any, can be recognized after connecting an iOS device to the MFI hardware? Specifically, I am looking for a generic way to…
Boon
  • 37,606
  • 51
  • 186
  • 296
8
votes
1 answer

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

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] …
Nikh1414
  • 1,212
  • 1
  • 18
  • 35
8
votes
1 answer

iOS connect/reconnect to Bluetooth device when using external-accessory and MFi

my question is to those who has experience with MFi and external-accessory framework. If I work with external Bluetooth accessory, is there any way to issue connect request to a remote device? I mean programmatically, without user involvement. If…
SergeyM
  • 126
  • 1
  • 4
7
votes
3 answers

External accessory framework test hardware

I need to write an app for a client the uses the ExternalAccessory framework to communicate with some hardware, I read in 'External Accessory Programming Exercises' by Norman McEntire that the Simulator includes 2 test accessories, however when I…
marchinram
  • 5,387
  • 5
  • 45
  • 55
7
votes
2 answers

Connect the Accessory to my JailBreak iPhone Device

I am using serial programming for get connected serial cable to my iPhone my code is as under #include /* Standard input/output definitions */ #include /* String function definitions */ #include /* UNIX standard…
Raj
  • 1,213
  • 1
  • 16
  • 34
7
votes
4 answers

How to debug Lightning Accessory via Xcode on iOS

I am developing an iOS application that talks to a lightning accessory. Now, when the accessory is attached, I cannot use the lightning port to debug my application in Xcode. Is there a way to attach debugger to my application when a lightning…
Khan
  • 311
  • 2
  • 6
1
2 3
15 16