Problems connecting to i.MX31

Jul 26, 2007 at 2:04 AM
Hi Doug, It's my honor for me to talk to you even though it's through the internet.

I'm connecting QuickCam Pro 5000 WebCam to our(company) i.MX31 based test board.

I'm using "WebCam008 " driver and "CamTest2_007" Application. (which are from the gotdotnet)

Our speculation summary is as follows

  • CPU : i.MX31
  • OS : Windows CE 5.0
  • PORT : using USB OTG port (when connecting to webcam, it works as a host)


When I execute the CamTest2.exe application, the symtoms are as follows

  1. Broken screen (1/10 top portion of the screen we get the clean screen, but rest of the part, all color and images are broken)
  2. Error is 30%~60%
  3. When I change the size of screen, Error become 100% and we get fail in IssueIsochTransfer function. (screen shows nothing)


Please help me....
I'm spending terrible time with QuickCam Pro 5000 in these days... (Actually I've got chronic headache since I started webcam porting work.. T.T)


FYI I add my serial log.... THANKS a lot.... (Your small comment will be very helpful to me.. and us (developers..))


From First Execution of CamTest2.exe (the part I'm curious is bold part)

WebCam: ZONE_USBLOAD - ParseStreamInterfaces++
WebCam: ZONE_USBLOAD - Looking for Ctl IF 14 1 and Stream IF 14 2
WebCam: ZONE_ERROR - No stream interfaces
WebCam: ZONE_USBLOAD - ParseStreamInterfaces++
WebCam: ZONE_USBLOAD - Looking for Ctl IF 255 1 and Stream IF 255 2
WebCam: ZONE_USBLOAD - Found 12 stream interfaces. ID 1
WebCam: ZONE_USBLOAD - ParseStreamInterfaces--
WebCam: ZONE_USBLOAD - Video Class interface found. * --> Is it right to find IF 255 instead of 14??*
WebCam: ZONE_FUNC - ParseFeatureParameters++
WebCam: ZONE_FUNC - EnableSupportedFeatures++
WebCam: ZONE_FUNC - EnableSupportedFeatures--
WebCam: ZONE_FUNC - EnableSupportedFeatures++
WebCam: ZONE_FUNC - EnableSupportedFeatures--
WebCam: ZONE_FUNC - ParseFeatureParameters--
WebCam: ZONE_FUNC - GetConfigData++
WebCam: ZONE_FUNC - GetConfigData--
WebCam: ZONE_USBLOAD - USBDeviceAttach--
WebCam: ZONEEXENTRY - CAMOpen++ dwContext: 935580
WebCam: ZONE_FUNC - GetPower++
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - GetPower-- rc 0 error code 0
WebCam: ZONE_FUNC - SetPower++
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - SetPower-- rc 0 error code 1
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:1
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:2
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:3
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:4
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:5
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:6
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:7
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:8
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:9
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WODM_CLOSE
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:10
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONEFUNC - pddGetFormatParameters-- found:0
ZONEERROR - Error calling pddGetFormatParameters rc -3
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 87
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 87
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230410
WebCam: ZONEFUNC - mddGetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:1
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONEFUNC - mddGetVideoFormat-- rc 0
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230414
WebCam: ZONEFUNC - mddSetVideoFormat++
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:1
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONE_VIDFRAME - MM buffer at 4b400258
WebCam: ZONE_VIDFRAME - MM buffer at 4b409858
WebCam: ZONE_VIDFRAME - MM buffer at 4b412e58
WebCam: ZONE_VIDFRAME - MM buffer at 4b41c458
WebCam: ZONE_VIDFRAME - MM buffer at 4b425a58
WebCam: ZONEFUNC - pddStartVidStream++ Fmt 1
WebCam: ZONEFUNC - pddGetFormatParameters++ Fmt:1 Frm:1
WebCam: ZONE_FUNC - ProcessFrameFormats++
WebCam: ZONE_FUNC - ProcessFrameFormats--1
WebCam: ZONE_FUNC - NegotiateQuality++
WebCam: ZONE_FUNC - GetMinMaxQuality++
WebCam: ZONE_FUNC - GetVendorTransferLen++
WebCam: ZONE_FUNC - GetVendorTransferLen-- len 26 rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - GetMinMaxQuality-- rc 0
WebCam: ZONE_PROBE - Probe/Commit trying interval rate 666666 Comp: min 4 max 32 int 4
WebCam: ZONEFUNC | ZONEPROBE - ProbeCommitVidStream++ Fmt: 1 Frm: 1 Interval 666666 Compression 32
WebCam: ZONE_FUNC - GetVendorTransferLen++
WebCam: ZONE_FUNC - GetVendorTransferLen-- len 26 rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONE_FUNC - DoVendorTransfer++
WebCam: ZONE_FUNC - DoVendorTransfer-- rc 0
WebCam: ZONEFUNC | ZONEPROBE - ProbeCommitVidStream-- Fmt: 1 Frm: 1 Compression 32 Interval 666666 T
ransfer size: 192 Frame size 15360 BW 230
WebCam: ZONE_FUNC - SetStreamInterface++ Interface:1 pktsize:230
WebCam: ZONE_FUNC - SetStreamInterface-- rc 0
WebCam: ZONE_PROBE - Probe/Commit complete. Fmt: 1 Frm: 1 rate 666666 Compression 32 Bandwidth 230
WebCam: ZONE_FUNC - NegotiateQuality-- rc 0
WebCam: ZONEFUNC | ZONETHREAD - ReaReadIsocThreaddThread++ ID:00000041
WebCam: ZONE_FUNC - StartVidStream-- rc 0
WebCam: ZONEFUNC - mddSetVideoFormat-- rc 0
WebCam: ZONE_READDATA && (dwBytes > 12) - Read 24 bytes at 4b400258 dw: 0
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONEEXENTRY - CAMIOControl-- rc = 0
WebCam: ZONEEXENTRY - CAMIOControl++ dwOpen: 935580 dwCode: 230418
WebCam: ZONE_READDATA && (dwBytes > 12) - Read 24 bytes at 4b400258 dw: 0
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONEFUNC - mddGetNextVideoFrame++
WebCam: ZONEFUNC - pddGetNextVideoFrame++
WebCam: ZONE_READDATA && (dwBytes > 12) - Read 24 bytes at 4b400258 dw: 0
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONE_READDATA && (dwBytes > 12) - Read 24 bytes at 4b400258 dw: 0
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONE_READDATA && (dwBytes > 12) - Read 24 bytes at 4b400258 dw: 0
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONE_READDATA && (dwBytes > 12) - Read 24 bytes at 4b400258 dw: 0
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC
WebCam: ZONETHSTATE - STREAMTHDFRAMESYNC

Rest of the log'll be continue in the next article.