Regarding: USB hardware access

Hi all

i am asked to develop an application which would test USB hardware to determine if the hardware is working as expected.

i browsed the KMDF USB samples , can anyone suggest me the right sample to use for this purpose, i am an application developer with little knowledge on USB and hardware access.

i have done some homework on WDF and WDM and do understand the basics of IO handling and other basic driver concepts.

//KMDF USB samples list
http://code.msdn.microsoft.com/windowshardware/site/search?f[0].Type=Topic&f[0].Value=usb

regards
pradish

Hello Pradish,

do you really want to go the (hard) way to write a device driver
or would it be enough to send and receive some USB packets from an application?
If this is sufficient, perhaps have a look for “winusb” or “libusb-win32”.

Best regards,

Martin

I would strongly recommend using winusb for this and skip writing a driver altogether

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, January 10, 2013 10:49 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Regarding: USB hardware access

Hi all

i am asked to develop an application which would test USB hardware to determine if the hardware is working as expected.

i browsed the KMDF USB samples , can anyone suggest me the right sample to use for this purpose, i am an application developer with little knowledge on USB and hardware access.

i have done some homework on WDF and WDM and do understand the basics of IO handling and other basic driver concepts.

//KMDF USB samples list
http://code.msdn.microsoft.com/windowshardware/site/search?f[0].Type=Topic&f[0].Value=usb

regards
pradish


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

i am planning to develop a GUI application, that will be able to display all the “Alternate Setting” and when the user clicks any of the setting form 0,1…N , the PipeName, PipeType, direction and Packet size should be diaplayed to the right in a list control, and also provide Read and Write options for the user to send some data and verify.

is it possible to develope all the above things wiht the WinUSB sample ?

regards
pradish

xxxxx@gmail.com wrote:

i am planning to develop a GUI application, that will be able to display all the “Alternate Setting” and when the user clicks any of the setting form 0,1…N , the PipeName, PipeType, direction and Packet size should be diaplayed to the right in a list control, and also provide Read and Write options for the user to send some data and verify.

is it possible to develope all the above things wiht the WinUSB sample ?

Everything except for isochronous. Note that “write some data and
verify” requires intimate knowledge of the device you are communicating
with.

Cypress ships an application that does exactly what you’re describing
with their FX2 development kits. It used to be called EzMr, but I
assume it has a more “hip” name now.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Hi all

I am trying to install the Winusb on Windows 7 32 bit, i followed the steps mentioned in “How to install Winusb.sys as the device’s function driver” i am ignoring the step 6 , which is “Create a signed catalog file for the package. This file is required to install WinUSB on x64 versions of Windows.”
as the platform that i am targetting is 32 bit.

since my requirement is to display all the configuration(interface,pipetype, pipe name,bandwidth and its direction) of the USB device.

i connected a usb drive, and the driver for it was automatically installed. then i opened the Device Manager and under USB section, i found the following device.

Universal Serial Bus controllers
-Generic USB hub
-Standard Enhanced PCI to USB Host Controller
-Standard Universal PCI to USB Host Controller
-USB Composite Device
-USB Mass Storage Device
-USB Root Hub
-USB Root Hub

which device should i select from the above to upgrade to WinUSB.sys as the function driver.
also from where do i get the winusb.sys and Winusb.dll

Note: I dont have the OSR-USB Fx2 tool kit, instead iam using a simple pen drive

regards
pradish