iPhone 上的 USB 编程
我想做的就是通过 USB 端口发送/接收数据。 使用官方 SDK 是不可能的 - 除了 MFi。
您会建议哪些其他方法可以与其他设备进行有线通信?
非常感谢!
GD
all i want to do is to sent/receive data over the USB Port.
With the official SDK it is not possible - apart from MFi.
Which other methods to communicate wired with other devices are possible and would you propose?
Many Thanks in advance!
GD
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
软件开发人员不需要 MFI 会员资格,只有硬件开发人员需要 MFI 会员资格。另外你指的是哪个USB端口?你指的是 iPhone 的 32 针连接器吗?您始终可以使用蓝牙将数据发送到硬件设备。
更新 1 -
首先,抱歉,代码可能看起来很复杂,我从当前的项目中粘贴此代码。如果您想要示例项目,请发表评论。
首先,您需要在视图中注册通知已加载
- 然后您应该找到附加的附件 -
然后检查这是您正在寻找的正确附件 -
然后打开一个会话 -
然后将调用流委托 -
MFI membership is not needed for software developers its only needed for hardware developer. Also what USB port are you referring? are you referring the iPhone's 32 pin connector? You can always send data to hardware device using bluetooth.
update 1 -
First of all Sorry the code may look complex I am pasting this from my current project. Post comment if you want a sample project.
first you need to register for notifications in view did load-
Then you should find the attached accessories -
Then check this is the correct accessory you are looking for -
Then open a session -
Then the stream delegate will be called -
查看 http://redpark.com
他们出售 USB 电缆和 iOS SDK,用于向通过以下方式连接的设备读取/写入数据USB。
我已经成功地使用它将 iPad 连接到各种硬件。
check out http://redpark.com
they sell an USB cable and iOS SDK for reading/writing data to a device connected via USB.
i have used it successfully to interface the iPad to various hardware.