AVR USBKEY OTG

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all,

Has anyone used the Atmel AVR Key in OTG (dual mode) design? Know of a documented project online in Avrfreaks projects or elsewhere?

I have a key that I have used to read/write flash drive or as a virtual serial port. However I have not been able make them both work simultaniously.

I have used Google to search and have not found a good resource.

Jeff

Jeff Dombach, JLD Systems
"We do the stuff behind the buttons!"
Your source for embedded solutions with a 100% Guarantee.
http://www.jldsystems.com
Phone 717.892.1100

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you using LUFA? It should have no problem allowing a device to enumerate as two classes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, this should be possible with LUFA, although it's not a common requirement. There's a sample demo in {LUFA Root}/Demos/DualRole/ClassDriver/MouseHostDevice/ which can either act as a USB mouse when plugged into a PC, or else host a mouse plugged into the AVR. You can use that as a template for splicing in the LUFA Mass Storage host and CDC Virtual Serial device class drivers.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!