Re: BW QuickCam

David Mosberger-Tang (davidm@azstarnet.com)
Wed, 26 Mar 1997 18:27:10 -0700

Guido> [qcam] qc_send: sent 0x25, camera echoed 0x0f
Guido> [qcam] qc_send: (re-read does not help)
Guido> [qcam] qc_send: sent 0x68, camera echoed 0x0f
Guido> [qcam] qc_send: (re-read does not help)
Guido> [qcam] qc_send: sent 0xf6, camera echoed 0xf1
Guido> [qcam] qc_send: (re-read does not help)
Guido> [qcam] qc_send: sent 0x14a, camera echoed 0x45
Guido> [qcam] qc_send: (re-read does not help)

You may want to try to increase the delay in qc_wait() to see whether
that gets rid of the above messages. Maybe two read_lpstatus() would
work. If not, try an idle-loop or some such.

Guido> It seems like something does not work with the communication. BTW on
Guido> the machine I tested this I have to force the QuickCam interface into
Guido> UniDir Mode. BiDir gets detected but does not work (with the other
Guido> drivers).

Guido> I patched qcam.c like this:

OK, I integrated your patch. Let me know how it works (once I
uploaded & announced the latest snapshot).

Guido> PS: OK, I did a test on another machine with working BiDir port:

Guido> [qcam] qcam.start: bidir 246 lines of 330 pixels each (243540 bytes) => 330x246
^^^^^^^^^^^^

This is wrong. For a gray-scale mode, only 246*330=81180 bytes should
be expected. Maybe the Bpp in sane_get_parameters() gets computed
incorrectly? I don't see anything obvious that's wrong, but the bug
must be in that area.

--david

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com