Arduino 的 WinUSB 驱动程序
我正在使用 Arduino 从网络读取数据并显示它。我可以使用提供的驱动程序轻松地以串行方式传递数据,因为它们识别 COM 端口,因此我可以将串行数据发送到 COM 端口。
但是,我想使用“真正的”USB 技术,以便设备可以像普通 USB 设备一样插入和拔出。我正在考虑使用 WinUSB 作为驱动程序。然而,USB 对我来说是全新的。是否有使用 WinUSB 和 Arduino(我有 Uno)的 .inf 文件?
缺乏这方面的信息让我觉得我的做法是错误的。
I'm using an Arduino to read data from the web and display it. I can easily pass the data as serial using the supplied drivers, because they identify the COM port so I can send serial to the COM port.
However, I want to use 'real' USB techniques so the device can be plugged in and out like a normal USB device. I'm looking at using WinUSB as the driver. However, USB is all new to me. Is there an .inf file that uses WinUSB and an Arduino (I have an Uno)?
The lack of information on this is making me think I am going about this incorrectly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明 Arduino Uno 并不是真正的 USB 设备。
它充当串行转 USB 适配器。因此 USB 驱动程序不会与它通信。
我通过编写一个草图来解决这个问题,当它从 PC 收到正确的查询时,该草图会报告它是什么设备。
在 PC 上,我只是迭代了串行端口并将查询发送到每个端口。做出回应的是Arduino。
之后,我记录端口号并将串行数据发送到 Arduino。
Turns out that an Arduino Uno is not a genuine USB device.
It acts as a Serial to USB adapter. Consequently USB drivers don't talk to it.
I got round this by writing a sketch which reported back what device it was when it got the correct query from the PC.
On the PC I just iterated the Serial ports and sent the query to each port. The one that replied was the Arduino.
After that I record the port number and send serial data to the Arduino.
要学习USB部分,也许你可以将V-USB和UNO结合起来?
查看V-USB。
虽然不一定是 Arduino,但它可以为您提供您想要的学习体验,并让您使用合并的 UNO 设备。
To learn the USB portion, maybe you could combine V-USB and the UNO?
Check out V-USB.
While not necessarily Arduino, it may provide you the learning exprience you want, and let you use incorporate your UNO device.