hidden hit counter
Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

USB host Application Development

 
   Soft32 Home -> Windows -> Device Driver RSS
Next:  unable to connect to the internet  
Author Message
sanju

External


Since: May 04, 2009
Posts: 5



(Msg. 1) Posted: Mon May 04, 2009 5:02 am
Post subject: USB host Application Development
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

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
Back to top
Login to vote
Doron Holan [MSFT]

External


Since: May 05, 2009
Posts: 3



(Msg. 2) Posted: Tue May 05, 2009 10:48 am
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

do you want this device to appear to windows as an audio device (e.g. one
that windows can play sounds on?)

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"sanju" <sunwins RemoveThis @gmail.com> wrote in message
news:80cb2be0-1563-4e5f-8cfd-f5801ca3d1fd@x1g2000prh.googlegroups.com...
> 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
Back to top
Login to vote
sunwins

External


Since: May 07, 2009
Posts: 1



(Msg. 3) Posted: Thu May 07, 2009 9:20 am
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


--
sunwins
------------------------------------------------------------------------
sunwins's Profile: http://forums.techarena.in/members/96929.htm
View this thread: http://forums.techarena.in/windows-device-drivers/1173403.htm

http://forums.techarena.in
Back to top
Login to vote
Doron Holan [MSFT]

External


Since: May 05, 2009
Posts: 3



(Msg. 4) Posted: Thu May 07, 2009 2:27 pm
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.

> SetUpDiGetClassDivs()(),SetupDiEnumDeviceInterfaces()..etc to get the
these let you find the device, CreateFile/DeviceIoControl are the ones that
let you open it and send it io

d
--

This posting is provided "AS IS" with no warranties, and confers no rights.


"sunwins" <sunwins.3rtfbb.TakeThisOut@DoNotSpam.com> wrote in message
news:sunwins.3rtfbb@DoNotSpam.com...
>
> 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
>
>
> --
> sunwins
> ------------------------------------------------------------------------
> sunwins's Profile: http://forums.techarena.in/members/96929.htm
> View this thread:
> http://forums.techarena.in/windows-device-drivers/1173403.htm
>
> http://forums.techarena.in
>
Back to top
Login to vote
sanju

External


Since: May 04, 2009
Posts: 5



(Msg. 5) Posted: Mon May 11, 2009 9:56 pm
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On May 8, 2:27 am, "Doron Holan [MSFT]"
<doron.ho... DeleteThis @online.microsoft.com> wrote:
> 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.
>
> > SetUpDiGetClassDivs()(),SetupDiEnumDeviceInterfaces()..etc to get the
>
> these let you find the device, CreateFile/DeviceIoControl are the ones that
> let you open it and send it io
>
> d
> --
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "sunwins" <sunwins.3rt... DeleteThis @DoNotSpam.com> wrote in message
>
> news:sunwins.3rtfbb@DoNotSpam.com...
>
>
>
> > 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
>
> > --
> > sunwins
> > ------------------------------------------------------------------------
> > sunwins's Profile:http://forums.techarena.in/members/96929.htm
> > View this thread:
> >http://forums.techarena.in/windows-device-drivers/1173403.htm
>
> >http://forums.techarena.in

thanks doron. Thanks for your help.
Back to top
Login to vote
sanju

External


Since: May 04, 2009
Posts: 5



(Msg. 6) Posted: Sun May 24, 2009 10:10 pm
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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?
Back to top
Login to vote
Doron Holan [MSFT]

External


Since: May 05, 2009
Posts: 3



(Msg. 7) Posted: Tue May 26, 2009 4:15 pm
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"sanju" <sunwins RemoveThis @gmail.com> wrote in message
news:c6eb2b9f-9d6c-4e46-8281-2bdbf83033d4@c36g2000yqn.googlegroups.com...
> 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?
Back to top
Login to vote
sanju

External


Since: May 04, 2009
Posts: 5



(Msg. 8) Posted: Wed May 27, 2009 3:24 am
Post subject: Re: USB host Application Development [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

okay thanks doron.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
About multipage Bitmap printer drive development - 8) hi, i am new one to driver programming, now i m trying to do Bitmap driver, based on WDK6000 sample Bitmap driver..

how application use Driver allocated memory space. - Hello all, i allocate memory in driver and pass the base address of this memory into the application. how the..

How to find out how much Power (electric current) Device c.. - Hi, please can someone have a look at this question:..

enable VGA monitor in Windows XP - I disbled the VGA and now the monitor does not work the XP logo shows up on reboot but then the screen goes black, the...

newbie's question - C:\test>build -WXP XmlLog::File::CopyXslFile(): Unable to copy the XML Style Sheet. C:\WinDDK\600 bin\x86\build.xsl ...

NDAS Scsi Controller driver problem, leads to blue screen... - Up until recently, my pc (PC1) accessed my network drive correctly along with 2 other pc's on my home network... Driv...
       Soft32 Home -> Windows -> Device Driver All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]