Imagine Cup

Problem with web cam

Last post 05-22-2009 12:57 PM by Makovetskiy Sergey. 10 replies.

Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 05-12-2009 4:46 AM

    Problem with web cam

    Hi! I have a problem with Web Cam. I am use Genius i-Slim 321R Web Cam (UVC supported). When I plug in cam -   eBox4300 freezes :( I plug camera, when Windows CE is loaded. And also I try plug in camera, when only DOS is loaded, but eBox4300 freezes again. Please help me :)

  • 05-13-2009 5:14 AM In reply to

    Re: Problem with web cam

    The web cam will not work under DOS since the required drivers are not available.

    To make it work under CE you will need to include the USB Camera Driver in your OS image.  You should also produce a debug build of your OS image so that you can see the many diagnostic messages produced during device enumeration when the web cam is first detected.  If the driver has any problems working with the camera a debug message will be produced and appear in the Output tab under VS 2005.

    Once you have verified that the camera driver was successfully loaded you will need to write some application code to acquire the images.  Various examples exist on the internet for accessing camera devices on Windows Mobile devices and this should be a good starting point for your work under CE.

    James Y. Wilson
    Microsoft Embedded MVP
    http://www.learningce.com
    Fortudine Vincimus!
  • 05-13-2009 10:43 AM In reply to

    Re: Problem with web cam

    Thank You for quik answer. I know this, I include this USB driver. And also I am use debug build. When I plug another USB device (such as FTDI chip, we use this chip in our project), I can see debug message, driver successfully loading, but when I plug this camera - system is freezes :( . Also I tried to use other the driver (Webcam.dll, from Examples), but result is not good :( .

    I have other Web camera (this camera does not support UVC). When I connect this camera driver is loading. Debug messages is:

    1312291 PID:400002 TID:2550002 OSAXST1: >>> Loading Module 'usbcam.dll' (0x84E7A9B4) at address 0xC0DA0000-0xC0DBF000 in Process 'NK.EXE' (0x82AEBC80)PB Debugger Loaded symbols for 'C:\WINCE600\OSDESIGNS\ImagineCup2009\ImagineCup2009_v1_0\RELDIR\ICOP_eBox4300_60CS_x86_Debug\USBCAM.DLL'

     

    1314145 PID:400002 TID:2550002 *** DLL_PROCESS_ATTACH - Current Process: 0x42, ID: 0x400002 ***

     

    1314170 PID:400002 TID:2550002 USBCam: USBDeviceAttach++

     

    1314205 PID:400002 TID:2550002 USBCam: *** Device appears to pre-date final Video Class standard, may not be fully supported by this driver! ***

     

    1314248 PID:400002 TID:2550002 USBCam: USBDeviceAttach--

     

    1314302 PID:400002 TID:2550002 -CHub(Root tier 0)::AttachDevice - port = 2, fIsLowSpeed = 0, address = 1

     

    But this camera does not supported for this driver.. :( Sorry, my English is not so good :)

  • 05-14-2009 5:27 AM In reply to

    Re: Problem with web cam

    The messages for the other USB camera you tried indicate that the driver was successfully loaded, although with a warning message.  Rather than try to debug why the driver is causing the system to lockup with the first camera you tried (the UVC compliant camera), I would recommend you use the other USB camera.

    I would get started writing your application code and see if you can at least capture a still image from the camera.  This is generally the easiest code to write before moving on to streaming video. 

    The fact that you have successfully built an OS image with the correct driver and received debug messages is very encouraging.  You are making good progress.

    James Y. Wilson
    Microsoft Embedded MVP
    http://www.learningce.com
    Fortudine Vincimus!
  • 05-14-2009 6:40 AM In reply to

    Re: Problem with web cam

    I have bouht a new UVC camera - Microsoft LifeCam today. Driver is loaded ok, without warnings :). Now I am trying writing an application for capturing still image from this camera. Whether there are the test programs for testing of chamber under windows Embedded CE 6.0?

  • 05-14-2009 9:51 AM In reply to

    Re: Problem with web cam

    Debug message for Microsoft Life Cam.  

      33907 PID:400002 TID:2f90002 OSAXST1: >>> Loading Module 'usbcam.dll' (0x8BDF2240) at address 0xC1280000-0xC129F000 in Process 'NK.EXE' (0x835FCC80)

      35505 PID:400002 TID:2f90002 *** DLL_PROCESS_ATTACH - Current Process: 0x42, ID: 0x400002 ***  

      35505 PID:400002 TID:2f90002 USBCam: USBDeviceAttach++

      35505 PID:400002 TID:2f90002 USBCam: ParseStreamInterfaces++  

      35505 PID:400002 TID:2f90002 USBCam: Found 7 stream interface(s)

      35505 PID:400002 TID:2f90002 USBCam: ParseStreamInterfaces-- 

      35505 PID:400002 TID:2f90002 USBCam: Video Class interface found.

       35505 PID:400002 TID:2f90002 DEVICE!RegReadActivationValues RegQueryValueEx

    (Drivers\USB\ClientDrivers\Video_Class\BusPrefix) returned 2

     35508 PID:400002 TID:2f90002 CAM_Init: context Drivers\Active\44 35513 PID:400002 TID:2f90002 DEVICE!RegReadActivationValues RegQueryValueEx(Software\Microsoft\DirectX\DirectShow\Capture\PIN1\BusPrefix) returned 2 35515 PID:400002 TID:2f90002 PIN_Init: context Drivers\Active\45   35515 PID:400002 TID:2f90002 PIN_Init: returning 0xd5b31f90  35516 PID:400002 TID:2f90002 USBCam: PreferredWidth = 176 35516 PID:400002 TID:2f90002 USBCam: PreferredHeight = 144   35516 PID:400002 TID:2f90002 USBCam: MJPEG Support = 0   35516 PID:400002 TID:2f90002 USBCam: Uncompressed Support = 1   35518 PID:15d0006 TID:ce0002 [NOTIFY] HandleSystemEvent 7 /ADD PIN1:   35520 PID:400002 TID:2f90002 USBCam: Error calling IssueVendorTransfer rc: 31 USB Err: 4  ExtErr: 31   35520 PID:400002 TID:2f90002 USBCam: Error code 0x1f setting camera power   35520 PID:400002 TID:2f90002 USBCam: Camera may not support setting power   35610 PID:400002 TID:2f90002 CAM_Init: returning 0xd5b31830   35611 PID:400002 TID:2f90002 USBCam: USBDeviceAttach--   35615 PID:400002 TID:2f90002 USBCam: USBDeviceAttach++   35615 PID:400002 TID:2f90002 USBCam: USBDeviceAttach--   35616 PID:400002 TID:2f90002 -CHub(Root tier 0)::AttachDevice - port = 2, fIsLowSpeed = 0, address = 1

      35616 PID:15d0006 TID:ce0002 [NOTIFY] HandleSystemEvent 7 /ADD CAM1:

     

    Question: why driver don't see VGA(640x480) resolution on my web cam.35516 PID:400002 TID:2f90002 USBCam: PreferredWidth = 176  35516 PID:400002 TID:2f90002 USBCam: PreferredHeight = 144 "
  • 05-15-2009 9:34 AM In reply to

    Re: Problem with web cam

    Thank You,James, for advice!

    Microsoft Cam is the better cam!! :)

    Today I included a test DirectX Project to my OS design and Microsoft LifeCam is began to work!!! :) Now the resolution is only 176x144, but I think, if we will be chosen for 3-th round, I will changing this resolution by using other driver or will try to modify existing driver :)

  • 05-15-2009 9:15 PM In reply to

    Re: Problem with web cam

    Good job!  I am glad to hear you got it working.

    James Y. Wilson
    Microsoft Embedded MVP
    http://www.learningce.com
    Fortudine Vincimus!
  • 05-18-2009 8:54 PM In reply to

    Re: Problem with web cam

    Hi James,

     Did you used the longitech pro cam 5000?

    Regards,

    Roger. 

  • 05-22-2009 12:06 PM In reply to

    Re: Problem with web cam

    Yes.  I happen to have three of these cameras purchased at different times, but I receive different results with one of the three. 

    My guess is that Logitech did not maufacture this particular model with the same internal hardware, even though the model number has remained the same over the years.  So even though you may have the Pro 5000, you may still have compatibility problems with the web cam driver.

    James Y. Wilson
    Microsoft Embedded MVP
    http://www.learningce.com
    Fortudine Vincimus!
  • 05-22-2009 12:57 PM In reply to

    Re: Problem with web cam

     I did not say, I had used a Microsoft LifeCam VX-700.

    I tried to use Logitech Pro 3500, but it did not begin to work for me.

Page 1 of 1 (11 items)

Software

Discounts

Student Activities

Student Resources

Fun Stuff

Windows 7 DreamSpark Microsoft Student Partners MSCOM/Student Windows Media Center
Expression Studio Certification Exams Imagine Cup Students to Business AutoCollage
Visual Studio Authorized Reseller Finder Student Rally Own Your Future Games for Windows
Windows Live JourneyEd Facebook Microsoft Math Xbox
Microsoft Office Microsoft Office Microsoft Student Lounge Student Newsletter Windows Mobile
© Copyright 2009-2010 Microsoft Corporation. All Rights Reserved.
 
This site is developed and hosted for Microsoft by Fast Track Team, Inc.