Iphone的外部附件框架支持哪些协议 [英] What are the protocols supported in Iphone's External Accessory Framework

查看:203
本文介绍了Iphone的外部附件框架支持哪些协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款需要与计算机通信的iphone / ipod应用程序(现在是MAC,如果可能,可能是PC),通过USB基座连接器电缆。我是一个完整的IPhone编程初学者,从我能够找到的,外部附件框架是开始的地方。

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.

关于框架的在线文档我遇到了对支持的协议的引用。我找不到关于它们的更多信息,所以我想知道它们的协议意味着什么?他们是众所周知的HTTP,FTP等吗?还是我完全没有了?

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?

非常感谢

推荐答案

外部附件框架用于通过iPhone上的USB基座连接器或通过蓝牙与自定义硬件进行通信。您尝试连接的设备必须是Made for iPod程序的一部分,并且必须包含一个解码iPhone和设备之间通信的芯片。

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.

您将无法使用外部附件框架通过USB连接器同步数据。正如格里所说,你需要使用WiFi或其他一些网络方式来实现这一目标。在上一个问题中,Saurabh Sharan指出通过串联USB连接进行黑客攻击,文化代码人员将这些连接放在一起。

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.

这篇关于Iphone的外部附件框架支持哪些协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆