iOS USB HID 编程
我正在尝试编写一些有关 USB HID 设备的代码。我发现一篇关于蓝牙编程的文章,它使用游戏套件框架。
现在我正在寻找一些教程或者一些代码来通过 USB 连接 HID 设备。我应该去哪里看? Game Kit
是正确的方法吗? iOS与HID设备之间的通信很难实现吗?
I am trying to make some code regarding USB HID devices. I have found an article about Bluetooth programming which uses Game Kit Framework.
Now I'm looking for some tutorial or maybe some code to work on connecting HID device via USB. Where should I look? Is Game Kit
the right way? Is it difficult to implement communication between iOS and HID device?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,我刚刚发现您可以使用 MFi 程序 为外部设备进行开发。 这里有很好的描述。 Apple 的文档中还有一些技术信息。
但我真的不知道这意味着什么......?
Actually I just found out that you can develop for external devices with MFi program. It's nicely described here. Also some technical info in Apple's documentation.
But I don't really know what that means... ?
您可以将 IOKit 用于 USB,但它是 iOS 上的私有框架 - 因此这取决于您是否要部署到 App Store。
这是Mac 版 USB 简介,我不确定 iOS 上是否相同 - 但只是为了了解一下。
You can use
IOKit
for USB, but it's a private framework on iOS - so it depends if you want to deploy to the App Store.Here is the USB Intro for Mac, I'm not sure if it's the same on iOS - but just to get the idea.