none
CamTest2.exe webcam driver problem on WinCE 5.0

    Question

  • Hi all!

    I want to use the UVC camera with WinCE 5.0. I tried to use that with WinCE 6.0 and that worked fine with microsoft usb camera driver. But I need in this for WinCE 5.0.

    I know that there is webcam driver for WinCE 5.0 (webcam.dll) and application for working with that (CamTest2.exe). I included this driver into my WinCE 5.0 OS image and download into the device CamTest2.exe . But I have problem with that, I don't see video from my usb camera. It's strange because when I try to use another camera (Logitech) I see video fine!

    I tried debug webcam driver and app. Seems, that the initialization of the driver is good. The fail occurs when I start CamTest2 app. It's debug log:

     

    WebCam: USBDeviceAttach++
    WebCam: ParseStreamInterfaces++
    WebCam: Looking for Ctl IF 14 1 and Stream IF 14 2
    WebCam: Found 8 stream interfaces. ID 1
    WebCam: ParseStreamInterfaces--
    WebCam: Video Class interface found.
             WebCam: ParseFeatureParameters++
    WebCam: EnableSupportedFeatures++
    WebCam: EnableSupportedFeatures--
    WebCam: EnableSupportedFeatures++
    WebCam: EnableSupportedFeatures--
    WebCam: ParseFeatureParameters--
    WebCam: GetConfigData++
    WebCam: GetConfigData--
    WebCam: USBDeviceAttach--
    WebCam: CAM_Open++ dwContext: 5a3b0
    WebCam: GetPower++
    WebCam: DoVendorTransfer++
    WebCam: DoVendorTransfer-- rc 0
    WebCam: GetPower-- rc 0 error code 32
    WebCam: SetPower++
    WebCam: DoVendorTransfer++
    WebCam: Error calling IssueVendorTransfer rc: 31 ExtErr: 31
    WebCam: DoVendorTransfer-- rc 31
    WebCam: Error set camera power rc 31
    WebCam: SetPower-- rc 31 error code 0
    Detected 5 decoders
    Name >B<
    Desc >W<
    
    Name >B<
    Desc >J<
    
    Name >B<
    Desc >G<
    
    Name >B<
    Desc >P<
    
    Name >B<
    Desc >I<
    
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:1
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: mdd_GetVideoFormat-- rc 0
    WebCam: CAM_IOControl-- rc = 0
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:2
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: mdd_GetVideoFormat-- rc 0
    WebCam: CAM_IOControl-- rc = 0
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:3
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: mdd_GetVideoFormat-- rc 0
    WebCam: CAM_IOControl-- rc = 0
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:4
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: mdd_GetVideoFormat-- rc 0
    WebCam: CAM_IOControl-- rc = 0
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:5
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: mdd_GetVideoFormat-- rc 0
    WebCam: CAM_IOControl-- rc = 0
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:6
    WebCam: ProcessFrameFormats++
    WebCam: pdd_GetFormatParameters-- found:0
    Error calling pdd_GetFormatParameters rc -3
    WebCam: mdd_GetVideoFormat-- rc 87
    WebCam: CAM_IOControl-- rc = 87
    
    ReadFrameThread++
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230410
    WebCam: mdd_GetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:1
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: mdd_GetVideoFormat-- rc 0
    WebCam: CAM_IOControl-- rc = 0
    Format  7
    dwWidth  640
    dwHeight  480
    dwMaxBuff 614400
    nNumInterval 2
    Detected 5 decoders
    Name >B<
    Desc >W<
    
    Name >B<
    Desc >J<
    
    Name >B<
    Desc >G<
    
    Name >B<
    Desc >P<
    
    Name >B<
    Desc >I<
    
    WebCam: CAM_IOControl++ dwOpen: 5a3b0 dwCode: 230414
    WebCam: mdd_SetVideoFormat++
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:1
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: MM buffer at 44a00258
    WebCam: MM buffer at 44a96258
    WebCam: MM buffer at 44b2c258
    WebCam: MM buffer at 44bc2258
    WebCam: MM buffer at 44c58258
    WebCam: pdd_StartVidStream++ Fmt 1
    WebCam: pdd_GetFormatParameters++ Fmt:1 Frm:1
    WebCam: ProcessFrameFormats++
    WebCam: ProcessFrameFormats--
    WebCam: NegotiateQuality++
    WebCam: GetMinMaxQuality++
    WebCam: GetVendorTransferLen++
    WebCam: Error calling IssueVendorTransfer rc: 31 ExtErr: 31
    WebCam: GetVendorTransferLen-- len 4 rc 31
    WebCam: DoVendorTransfer++
    WebCam: DoVendorTransfer-- rc 0
    WebCam: DoVendorTransfer++
    WebCam: Error calling IssueVendorTransfer rc: 31 ExtErr: 31
    WebCam: DoVendorTransfer-- rc 31
    WebCam: Error getting min value. rc 31
    WebCam: GetMinMaxQuality-- rc 31
    WebCam: NegotiateQuality-- rc 31
    WebCam: Probe/Commit failed. Not enough bandwidth for Fmt: 1 Frm: 1
    WebCam: StartVidStream-- rc 31
    WebCam: mdd_SetVideoFormat-- rc 31
    WebCam: CAM_IOControl-- rc = 31
    failure calling IOCTL_CAMERA_DEVICE_STARTVIDEOSTREAM rc 31
    ReadFrameThread--

     

    What is the cause of this problem? The all seem fine except the call of the IssueVendorTransfer function. Why is it fail in that?

     

    Thanks a lot!

    Dave


    Thursday, August 25, 2011 3:02 PM

All replies

  • Maybe, problem is that driver can not gets power value properly, isn't it? Did somebody work with webcam driver and CamTest2.exe app?

    I see that there are a lot of questions about "Error 31" on the forums, but there are not answers!(((

     

    Monday, August 29, 2011 2:15 PM