Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



USB host Application Development

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 04-05-2009
sanju
 
Posts: n/a
USB host Application Development

Hi All,

I'm new into USB application development and I've to develop a U.S.B
Application for a U.S.B sound device which must be able to run on
Windows XP/Vista. The purpose of this application is to get the data
from the USB port, sent by the USB sound device. The application has
to fetch the data at a good rate and without any compromise in the
data integrity.

In order to achieve the above said things, i need answers for the
questions below.

1. Which of the 3 options can be used to get access to the sound
device?
a.UMDF
b.KMDF
c.WinUSB

2.The device driver for this device is still not implemented, and on
what type of transfer could it be developed for this sound device?

a.Isochronous.
b.Bulk

If I assume it to be Isochronous then the retransmission will not be
possible. If i assume it to be Bulk Transfer, the data transfer cannot
happen continuously. Which of these 2 transfers are best suited for
the data transfer without much loss in the data?

3.In the 'WinUSB how to use WinUSB to communicate with a USB
device.doc', the control command usage and construction of a setup
packet are expalined, however these code snippets are not found in the
UMDF/KMDF. Is it specific to only WinUSB?

4.In the WDK source code sample, the USB application in the path given
below belongs to which of the 3 options?(UMDF,KMDF,WinUSB)?
C:\WinDDK\6001.18002\src\usb\isousb\exe
C:\WinDDK\6001.18002\src\usb\bulkusb\exe

Please help.

Regards,
Sanjay
Reply With Quote
  #2  
Old 05-05-2009
Doron Holan [MSFT]
 
Posts: n/a
Re: USB host Application Development

do you want this device to appear to windows as an audio device (e.g. one
that windows can play sounds on?)
Reply With Quote
  #3  
Old 07-05-2009
Member
 
Join Date: May 2009
Posts: 4
Re: USB host Application Development

Hi Doron,

Thanks for your response.

Actually, the device how it should appear and all depends on the driver developer, right?..He decides which class this device belongs to, it could be an audio class device/custom device. I want to be ready to develop an application for either of the options.

The device gives sound output for sure. Its kind of a device which gives ultrasound, and its not just another music device or anything like it. This ultrasound has to be accessible only by another application which sits on top of my application.

So i have to develop an application which can access data from the USB port sent by my device, and copy it to a buffer, do no modifications whatsoever so that the application sitting above my application cn take it.

Can I use the SetUp APIs like SetUpDiGetClassDivs()(),SetupDiEnumDeviceInterfaces()..etc to get the data from the port, or is there any better way to do it?

Please reply.

Thanks,
Sanjay
Reply With Quote
  #4  
Old 08-05-2009
Doron Holan [MSFT]
 
Posts: n/a
if you want windows to treat it as an audio device which windows renders
audio to, you hsould conform to the usb audio class spec. if you want a
device that you can speak to with a custom app, you can make it a custom
device that does not belong to any defined device class. if you do not use
isoch pipes, you can use winusb and not even have to write a driver. if you
need isoch, then you must write your own driver, I would start with usbsamp
in the latest wdk.

these let you find the device, CreateFile/DeviceIoControl are the ones that
let you open it and send it io

This posting is provided "AS IS" with no warranties, and confers no rights.
Reply With Quote
  #5  
Old 25-05-2009
sanju
 
Posts: n/a
Re: USB host Application Development

I found few device class specific functions that are used in some
applications,
For ex, for the HID devices, the Hidd_GetHidGuid, Hidd_GetAttributes,
HidD_GetPreParsedData are used along with the standard USB setup API
functions.
Does all the device classes have such device class specific functions
that have to be made use while developing the application?
Reply With Quote
  #6  
Old 27-05-2009
Doron Holan [MSFT]
 
Posts: n/a
Re: USB host Application Development

some classes like HID have APIs that you can call, others have
CreateFile/DeviceIoControl. Some have COM wrappers. there is no standard,
each class has its own APIs and API style
Reply With Quote
  #7  
Old 27-05-2009
sanju
 
Posts: n/a
Re: USB host Application Development

okay thanks doron.
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "USB host Application Development"
Thread Thread Starter Forum Replies Last Post
Best technology for web application development ? Maq.H Polls & Voting 4 12 Hours Ago 05:28 PM
Need Development Application Tips Logan 2 Software Development 5 26-02-2010 04:40 AM
DirectSound application development question. sunwins Windows Software 5 16-09-2009 03:34 PM
Mobile application development Gomeler Software Development 3 12-08-2009 08:32 AM
Oracle ADF (Application Development Framework)? Kiran123 Ebooks 2 11-02-2009 06:13 PM


All times are GMT +5.5. The time now is 06:04 AM.