如何执行此操作:使用插入的USB设备进行嵌入式USB主机通信

时间:2022-05-01 23:37:50

I am currently practising with USB programming on an AT91SAM9G20-Evaluation Kit. I learned much about USB devices and USB device port drivers while "playing" with the ATMEL provided USB device port projects (CDC-driver, ..).

我目前正在使用AT91SAM9G20评估套件进行USB编程。我在ATMEL提供的USB设备端口项目(CDC驱动程序,...)“玩”时学到了很多关于USB设备和USB设备端口驱动程序的知识。

But now i'd like to write a small driver to controll a wireless stick which i plugged into one of the boards USB-A Host Ports.

但现在我想写一个小驱动程序来控制一个无线棒,我插入其中一个板USB-A主机端口。

I read a lot on *, the OpenHCI specification and even found some libraries on the net, but i am not sure if its a good way to implement my own stack with out any "good" knowledge in USB Host Port programming.

我在*,OpenHCI规范上阅读了很多,甚至在网上找到了一些库,但我不确定它是否是一个很好的方法来实现我自己的堆栈,没有USB主机端口编程的任何“好”知识。

Is there a small and easy way to control the wireless-stick at the boards USB Host port? (Like using the USART-Interfaces?)

是否有一种小而简单的方法来控制主板USB主机端口的无线棒? (比如使用USART接口?)

Not sure if its just too late today or i am "blind", but can you maybe please give a hint on how to implement RTUSB or libUSB in to the AT91?

不确定今天是否太晚或者我是“盲目的”,但是你可以请一点暗示如何在AT91中实现RTUSB或libUSB吗?

Thanks in advance!

提前致谢!

Regards, Aureon

1 个解决方案

#1


0  

You can download AT91LIB version 1.9 from atmel from this page

您可以从此页面下载atmel的AT91LIB 1.9版

The usb host libraries are under at91lib/usb/host. They're not the complete package you need though since they're just the OHCI driver -- you still need a USB driver and class drivers to implement what you want.

usb主机库位于at91lib / usb / host下。它们不是您需要的完整软件包,因为它们只是OHCI驱动程序 - 您仍然需要USB驱动程序和类驱动程序来实现您想要的。

You could try an RTOS with USB Host support like rt-usb32

您可以尝试使用USB主机支持的RTOS,如rt-usb32

#1


0  

You can download AT91LIB version 1.9 from atmel from this page

您可以从此页面下载atmel的AT91LIB 1.9版

The usb host libraries are under at91lib/usb/host. They're not the complete package you need though since they're just the OHCI driver -- you still need a USB driver and class drivers to implement what you want.

usb主机库位于at91lib / usb / host下。它们不是您需要的完整软件包,因为它们只是OHCI驱动程序 - 您仍然需要USB驱动程序和类驱动程序来实现您想要的。

You could try an RTOS with USB Host support like rt-usb32

您可以尝试使用USB主机支持的RTOS,如rt-usb32