6

Whenever I connect the MFi accessory for the first time which protocols do I need to declare in the plist file and from where can I get it`s name?
Even after connecting my MFi accessory and running the EADemo code still it says that No Accessory Connected ?
I assume that the EADemo code will not work unless and until some proper accessory related protocol strings would be written instead of com.apple.p1 and com.apple.p2.

I know there is a class called EAAccessory and using the property protocolString, I can know the protocol String name.But in the first place even that requires a protocol string name listed in plist file in order to run the code.

Do I need to ask the manufacturer to know about the protocol string or is there any universal protocol that can work for all MFi accessories?

RLH
  • 15,230
  • 22
  • 98
  • 182
iOS_Passion
  • 788
  • 1
  • 7
  • 17
  • Did you get any further here? – newenglander Apr 08 '12 at 09:38
  • 2
    Hi...I did not get any further. Actually the external accessory with which I was working was not a MFi accessory(i.e. not an apple approved one). So my client could never provide me with the related protocol strings that have to be mentioned in the info.plist file. – iOS_Passion Apr 09 '12 at 13:45
  • Hello, Same issues i am also facing, Have you got any solution. Please let me know. – Hari c Jul 18 '17 at 12:41

2 Answers2

0

I tested deleting the Supported Accessories (which contains com.apple.p1 and com.apple.p2) and the EADemo sample app still detected connected accessories and allowed me to view the protocols that they support.

I didn't test sending data but as far as the above mentioned functionality is concerned, I saw identical behavior.

To answer your general question, yes, if you want to communicate with an ExternalAccessory you should specify the protocol of the accessory in your info plist.

I did some more googling but couldn't find many mentions of com.apple.p1. The only place I could find was in this project on GitHub. However, I think this may be a case of Cargo Cult Programming.

Or maybe the protocols do something and I just wasn't able to see a difference in behavior.

funroll
  • 35,925
  • 7
  • 54
  • 59
  • I am too having similar issue that EAdemo isn't detecting anything evn I even deleted the com.apple.p1/p2, could you please suggest some other links if any! Thanks. – Vish Nov 28 '13 at 11:32
  • @Vish You should create your own question since that isn't the scope of this one. But if the EADemo app isn't detecting anything, I would make sure the device you're testing with actually uses EA. – funroll Dec 02 '13 at 21:54
0

MFI have a complicated process with Apple device, and sometimes the manufacturer didn't finished all the process. And base on your describe, the problem not just the protocolString is not right. the manufacturer needed much work to do. you should try another manufacturer's accessory.

Scott
  • 16