Re: How to develop UVC webcam driver on win2k

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Lily.Ye" <ch.ye@xxxxxxx> wrote:
Tim Roberts <t...@xxxxxxxxx> wrote:
c...@xxxxxxx wrote:

It's just another USB device. You control it with standard control
messages, and you stream from it using standard isochronous requests. There
is no magic. USBCAMD will do it, but based on my recent experience, I
think it's probably easier to write an AVStream driver.

Yes, I agree with you. But when I try it on winXP, I can only get
the first 0x212 bytes configuration descriptor with 2 interface , in
fact the config descriptor has 0x296 bytes with 4 interfaces.

How are you declaring the PnP ID in your INF file? If you are claiming,
for example, only the video interface, then the composite driver will
filter the configuration descriptor and send you only the sections for the
video interface. To get the entire configuration descriptor, you have to
match the PnP ID for the composite device.

My problem is that this UVC device is a composite USB device with one
interface for video. or opitional another interface for audio. When
standard composite USB device is plugged into win2K, system first
detects composite device, then video device, then audio device.

But for this UVC device, system can not recognize it as composite
device( I think it is caused by device descriptor describe it as UVC
class instead of composite device).

But isn't the standard usbvideo.inf claiming this device? Have you removed
it?

I cannot install the video driver
on the video interface . My question is if HW need reconfig on win2k?
Or the driver integrate the composite driver function into usbcamd
driver? I am surprised how MS UVC driver implement this?

I see. But avshws seems has no sample code for USB part. Is there any
APIs which provides iso, interrupt data transfer and management on
winXP?

I'm not sure what you mean by APIs. There are sample drivers for both bulk
and isochronous access (src\usb\bulkusb and src\usb\isousb); you can learn
how to build and submit URBs from those.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: How to develop UVC webcam driver on win2k
    ... think it's probably easier to write an AVStream driver. ... words, besides UVC HW logic, another no-UVC HW interface for custom ... My problem is that this UVC device is a composite USB device with one ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH] SCSI driver for VMwares virtual HBA.
    ... interface, which is quite different than what we do here. ... the implementation of the driver data structures. ... but it needs a standard multiqueue control plane. ... year now, and the backend is ...
    (Linux-Kernel)
  • Re: Multi Interface support in Windows CE for USB Device
    ... interface working for a composite device. ... host driver is handling interface enumeration correctly, ... LoadClients pattern for Audio Class driver with the ... Composite Driver or Audio Driver? ...
    (microsoft.public.windowsce.embedded)
  • Re: [PATCH] SCSI driver for VMwares virtual HBA.
    ... I don't see the sg_ring abstraction that you are talking about. ... interface, which is quite different than what we do here. ... the implementation of the driver data structures. ... but it needs a standard multiqueue control plane. ...
    (Linux-Kernel)
  • Re: USB Modem
    ... TTDRIVER is just the class driver. ... small subset of the actual port/class interface. ... written to a specific standard - and to tell the OP what to look for. ... Then it isn't a USB modem. ...
    (comp.os.vms)