Iphone的外部配件框架支持哪些协议
我正在开发一个 iphone/ipod 应用程序,需要通过 USB 底座连接器电缆与计算机(目前是 MAC,如果可能的话,可能是 PC)进行通信。我是 iPhone 编程的完全初学者,从我所了解到的情况来看,外部附件框架是一个起点。
在浏览有关该框架的在线文档时,我遇到了对受支持协议的引用。我找不到有关它们的更多信息,所以我想知道协议是什么意思?它们是众所周知的 HTTP、FTP 等吗?或者我完全偏离了目标?
多谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
外部附件框架用于通过 iPhone 上的 USB 底座连接器或通过蓝牙与自定义硬件进行通信。您尝试连接的设备必须是 Made for iPod 计划的一部分,并且必须包含能够解码 iPhone 和设备之间通信的芯片。
框架文档中引用的协议特定于每个硬件。例如,游戏控制器的硬件制造商可以设置一个协议来读取按钮按下或操纵杆移动。任何处理该协议的应用程序都可以使用该硬件附件。
您将无法使用外部附件框架通过 USB 连接器同步数据。正如 Gerry 所建议的,您需要使用 WiFi 或其他一些网络方式来执行此操作。在你之前的问题中,Saurabh Sharan 指出了黑客通过文化代码人员组合在一起的系留 USB 连接来执行此操作。
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.
我认为这是针对定制设备的。为了与计算机通信,我会使用 Wi-Fi。
如果您要与 Mac 应用程序同步数据,我会查看 ZSync。
I think that is for custom devices. For communicating with computers, I would use Wi-Fi.
If you are syncing data with a Mac app, I would check out ZSync.