Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
803 views
in Technique[技术] by (71.8m points)

usb - What are the protocols supported in Iphone's External Accessory Framework

I'm working on an iphone/ipod app that will need to communicate with a computer (MAC for now, maybe PC if possible) though the USB dock connector cable. I'm a complete beginner with IPhone programming and from what I've been able to find out, the External Accessory framework is the place to start.

While going through the online documentation about the framework I came across references to supported protocols. I couldn't find any more information about them so I'm wondering what they mean by protocols? Are they well known ones like HTTP, FTP etc? or am I completely off the mark?

Thanks a lot

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The External Accessory framework is for communication with custom hardware via the USB dock connector on the iPhone, or through Bluetooth. The device you are attempting to connect with must be part of the Made for iPod program, and must contain a chip that will decode the communication between the iPhone and the device.

The protocols referred to in the framework documentation are particular to each piece of hardware. The hardware manufacturer of, say, a game controller could set up a protocol for reading button presses or joystick movement. Any application which handled this protocol could then use that hardware accessory.

You will not be able to use the External Accessory framework to sync data via the USB connector. As Gerry suggests, you'll need to use WiFi or some other networking means to do so. In your previous question, Saurabh Sharan pointed out a hack for doing this through a tethered USB connection that the Cultured Code folks put together.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...