Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Writing USB Host Software

Status
Not open for further replies.

cromlech

Newbie level 1
Joined
Jan 30, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
Hello,

Does anyone know the best way to write host software to communicate with a USB HID device? I have created a USB HID keyboard and mouse using an Atmega32 microcontroller and it works with my PC, but I would like to be able to receive input from the microcontroller and write to the microcontroller's memory from an application.
 

I have done this 7 years back using VB6. I made a USB camera and connected it to the PC. My host Software was written in VB6. It was a straight forward implementation.
--
Amr Ali
www.embedded-tips.blogspot.com
 

I wonder if Atmel has PC example code with their USB demonstrations. Microchip has e.g. a lot of it. Basically, the access can
be performed at the Windows application level. You utilize setupapi.dll to identify the device and perform device IO to exchange
HID messages.
 

If it works with you PC and it is HID compliant then what is left? If it is USB HID compliant, windows (and Linux) on PC already supports that without any add on.

If you haven't put the HID function class driver in your microcontroller and just interfaced a keypad with that then it makes sense to write something on host side. You can use WinUSB to communicate with your non-standard USB device on windows.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top