External Accessory Command Protocol

Could anyone tell me about the format of command bytes sent by the external accessory as per the declared protocol in the firmware of accessory and the info.plist of the iOS app code? I am aware that protocol name and bundle identifier name should be the same in the firmware and in the app code.

For example...

if(buf[0] == 0x10){Do something} , 0x10 

is the command byte sent by the external accessory when user presses button A on external accessory.

Who defines these command bytes, the manufacturer or is it dependent on the iOS app developer? Is there any way by which an iOS developer can know about these command bytes on the basis of protocol name if in case aceessory manufacturer does not provide it?

Answers


Late answer, but based on this answer to another question (specifically the first link), there is a set of generic commands which originated with the iPod and which (or some of which, at least) still apply to iPhone etc. Most of them obviously have to do with playing audio files.


Need Your Help

Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”

ios objective-c xcode relative-path info.plist

I'm running into what seems to be common error, in that Xcode can't seem to find my 'Info.plist' file.

How can I get Perl to give a warning message when a certain package/tag is imported?

perl import packages warnings

I have a package that I just made and I have an "old-mode" that basically makes it work like it worked before: importing everything into the current namespace. One of the nice things about having ...