lufa as host.

32 views
Skip to first unread message

ulao

unread,
Mar 7, 2019, 12:46:57 PM3/7/19
to LUFA Library Support List
I was doing some reading looking for a way to read a USB device and output serial data from it.  Sort of backwards from the norm. I was certain I read that LUFA can act as a host. How hard would it be (or is it possible) to read say a Game pad USB device with LUFA (in host mod?) and get the payload so that I can send it out via serial, isp, i2c, whatever.

Dean Camera

unread,
Mar 12, 2019, 4:50:07 AM3/12/19
to lufa-s...@googlegroups.com

It's supported, but only on the two USB AVR8 models that have hosting capabilities - the AT90USB1287 and the AT90USB647. They're rather expensive these days, and I'd recommend choosing a far cheaper ARM part instead with far more performance/capabilities than the aging 8-bit devices.  Were you to use an AT90USBxxx7 part however, there's a number of LUFA examples in the Demos/Host/ directory to help you. The Demos/Host/ClassDriver/JoystickHostWithParser demo would be the closest example to what you were after.

- Dean

On 8/03/2019 4:46 am, ulao wrote:
I was doing some reading looking for a way to read a USB device and output serial data from it.  Sort of backwards from the norm. I was certain I read that LUFA can act as a host. How hard would it be (or is it possible) to read say a Game pad USB device with LUFA (in host mod?) and get the payload so that I can send it out via serial, isp, i2c, whatever.

--
You received this message because you are subscribed to the Google Groups "LUFA Library Support List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lufa-support...@googlegroups.com.
To post to this group, send email to lufa-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/lufa-support.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages