Hi,
Im trying to develop a driver for USB2.0 camera.

I was going through the Microsoft DDK site and it mentions that future driver development must be done with the Windows Server 2003 DDK. So, I have installed this DDK and on going through the samples have come across a driver for an Intel USB Camera.

This sample is located in the "...\WINDDK\3790\src\wdm\videocap\usbintel\sys". folder.

On going through this example I find that it is based on USBCAMD and on the "stream class" architecture. The "USBCAMD" is fine, but the "stream class architecture" is not. The DDK documentation states that the "stream class architecture" should no longer be used, though it is still provided. The document states that new video drivers must follow the "AVstream architecture".

So, I was wondering if there's any way I could get a similar sample driver code for a Video streaming USB device based on USBCAMD and the AVstream class architecture.

Please suggest.

Thank you,

Ravi.

Re: Video streaming USB device driver based on USBCAMD and AVstream ar by Antonio

Antonio
Mon Jul 19 12:02:36 CDT 2004


> Im trying to develop a driver for USB2.0 camera.

Me too... still uncertain about correct route....

> I was going through the Microsoft DDK site and it mentions that future
driver development must be done with the Windows >Server 2003 DDK. So, I
have installed this DDK and on going through the samples have come across a
driver for an Intel USB >Camera.

Why not consider also implementing the relatively new USB Video Class spec ?

The forthcoming Windows XP SP2 will contain a MS driver for USB video class.
You can already download the RC2 version from MS site.

If you can live with XP compatibility only, you gain true "plug and play"
behaviour (with the new SP2 installed, recommended anyway), without writing
any host side driver at all.

Besides, if your device is USB Video class, chances are that someone,
somewhere, will write a driver for older systems (2000, etc).

Opinions ?




Re: Video streaming USB device driver based on USBCAMD and AVstream ar by Tim

Tim
Mon Jul 19 23:42:37 CDT 2004

"Ravi" <Ravi@discussions.microsoft.com> wrote:
>
> Im trying to develop a driver for USB2.0 camera.
>
> I was going through the Microsoft DDK site and it mentions that
>future driver development must be done with the Windows Server 2003
>DDK. So, I have installed this DDK and on going through the samples
>have come across a driver for an Intel USB Camera.
>
> This sample is located in the "...\WINDDK\3790\src\wdm\videocap\usbintel\sys". folder.
>
> On going through this example I find that it is based on USBCAMD
>and on the "stream class" architecture. The "USBCAMD" is fine, but
>the "stream class architecture" is not. The DDK documentation states
>that the "stream class architecture" should no longer be used, though
>it is still provided. The document states that new video drivers must
>follow the "AVstream architecture".

That restriction should be read as banning writing DIRECTLY to stream
class. After all, AVStream builds on "stream class". I do not believe
Microsoft intends to forbid us from writing drivers to USBCAMD or 1394CAMD.
That would be foolish.

> So, I was wondering if there's any way I could get a similar
>sample driver code for a Video streaming USB device based on USBCAMD
>and the AVstream class architecture.

There is no such thing. I doubt there ever will be. Just use USBCAMD.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc

Re: Video streaming USB device driver based on USBCAMD and AVstream ar by dmaddy

dmaddy
Tue Jul 27 20:51:38 CDT 2004

------=_NextPart_0001_01E31C54
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Dear Ravi and Antonio and Tom:

"...\src\wdm\videocap\usbintel" should really be considered as an USB
camera minidriver sample since that is the section in the DDK docs that
describe its operation.

Since you are writing a USB camera minidriver you should not be too
concerned about the warnings in the Streaming Minidrivers section note
"This section details the outdated Stream.sys class driver."

Ravi: > So, I was wondering if there's any way I could get a similar sample
driver code for a Video streaming USB device
Ravi: > based on USBCAMD and the AVstream class architecture.

There is no sample like that.

Tim: > There is no such thing. I doubt there ever will be. Just use
USBCAMD.

You can use USBCMD2 but please consider using USB Video Class.

Antonio: > Why not consider also implementing the relatively new USB Video
Class spec?

Please do.

Thank you,

Dan Maddy
Microsoft DDK Support

This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_01E31C54
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Dear Ravi and Antonio and Tom:
\par
\par "...\\src\\wdm\\videocap\\usbintel" should really be considered as an USB camera minidriver sample since that is the section in the DDK docs that describe its operation.
\par
\par Since you are writing a USB camera minidriver you should not be too concerned about the warnings in the Streaming Minidrivers section note "This section details the outdated Stream.sys class driver."
\par
\par Ravi: > So, I was wondering if there's any way I could get a similar sample driver code for a Video streaming USB device
\par Ravi: > based on USBCAMD and the AVstream class architecture.
\par
\par There is no sample like that.
\par
\par Tim: > There is no such thing. I doubt there ever will be. Just use USBCAMD.
\par
\par You can use USBCMD2 but please consider using USB Video Class.
\par
\par Antonio: > Why not consider also implementing the relatively new USB Video Class spec?
\par
\par Please do.
\par
\par Thank you,
\par
\par Dan Maddy
\par Microsoft DDK Support
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par }
------=_NextPart_0001_01E31C54--