sane-project-website/old-archive/2001-03/0184.html

225 wiersze
7.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Canoscan FB630U</TITLE>
<META NAME="Author" CONTENT="Glenn Ramsey (glenn@componic.com)">
<META NAME="Subject" CONTENT="Re: Canoscan FB630U">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Canoscan FB630U</H1>
<!-- received="Fri Mar 23 13:35:31 2001" -->
<!-- isoreceived="20010323213531" -->
<!-- sent="Sat, 24 Mar 2001 09:41:52 +1200" -->
<!-- isosent="20010323214152" -->
<!-- name="Glenn Ramsey" -->
<!-- email="glenn@componic.com" -->
<!-- subject="Re: Canoscan FB630U" -->
<!-- id="3ABBC320.4F2FB75E@goata.nz.componic.com" -->
<!-- inreplyto="Pine.SOL.4.30.0103231630080.14871-100000@mimosa.csv.warwick.ac.uk" -->
<STRONG>From:</STRONG> Glenn Ramsey (<A HREF="mailto:glenn@componic.com?Subject=Re:%20Canoscan%20FB630U&In-Reply-To=&lt;3ABBC320.4F2FB75E@goata.nz.componic.com&gt;"><EM>glenn@componic.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Mar 23 2001 - 13:41:52 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0185.html">Robert N. Eaton: "Re: Getting my scanner to work"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0183.html">Mark Perks: "HP ScanJet Plus woes"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0182.html">Simon Heywood: "Canoscan FB630U"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#184">[ date ]</A>
<A HREF="index.html#184">[ thread ]</A>
<A HREF="subject.html#184">[ subject ]</A>
<A HREF="author.html#184">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Simon Heywood wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Having had a poke around with the USB-sniffer program (the latest version
</EM><BR>
<EM>&gt; of which was broken :-( ) I managed to produce the output -
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; <A HREF="http://www.warwick.ac.uk/~phucq/scanner/usb-init.txt">http://www.warwick.ac.uk/~phucq/scanner/usb-init.txt</A>
</EM><BR>
<P>I'm no expert however I have been working with a device that uses
<BR>
control transfers so that is all that I can help with.
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>
00000038 00:22:22 &gt;&gt;&gt;&gt;&gt;&gt;&gt; URB 29 going down...
<BR>
00000039 00:22:22 -- URB_FUNCTION_CLASS_OTHER:
<BR>
00000040 00:22:22 TransferFlags =
<BR>
00000003 (USBD_TRANSFER_DIRECTION_IN,
<BR>
USBD_SHORT_TRANSFER_OK)
<BR>
00000041 00:22:22 TransferBufferLength =
<BR>
00000004
<BR>
00000042 00:22:22 TransferBuffer =
<BR>
c178d490
<BR>
00000043 00:22:22 TransferBufferMDL =
<BR>
00000000
<BR>
00000044 00:22:22 UrbLink =
<BR>
00000000
<BR>
00000045 00:22:22 RequestTypeReservedBits = a3
<BR>
00000046 00:22:22 Request = 00
<BR>
00000047 00:22:22 Value =
<BR>
0000
<BR>
00000048 00:22:22 Index =
<BR>
0001
<BR>
00000049 00:22:22
<BR>
00000050 00:22:22 &lt;&lt;&lt;&lt;&lt;&lt;&lt; URB 29 coming back...
<BR>
00000051 00:22:22 --
<BR>
URB_FUNCTION_CONTROL_TRANSFER:
<BR>
00000052 00:22:22 PipeHandle =
<BR>
c17af49c
<BR>
00000053 00:22:22 TransferFlags = 00000003
<BR>
(USBD_TRANSFER_DIRECTION_IN, USBD_SHORT_TRANSFER_OK)
<BR>
00000054 00:22:22 TransferBufferLength =
<BR>
00000004
<BR>
00000055 00:22:22 TransferBuffer =
<BR>
c178d490
<BR>
00000056 00:22:22 TransferBufferMDL =
<BR>
c179ed40
<BR>
00000057 00:22:22 0000:
<BR>
00000058 00:22:22 01 01 01 00
<BR>
00000059 00:22:22 UrbLink =
<BR>
00000000
<BR>
00000060 00:22:22 SetupPacket : a3 00 00
<BR>
00 01 00 04 00
<BR>
<P>The last line contains the setup packet and is described on page
<BR>
183 of the USB 1.1 spec. In the originating URB this information
<BR>
has already been decoded for you by usbsnoopy.
<BR>
<P><EM>&gt; - but unfortunately I'm not too clued up on USB programming; the
</EM><BR>
<EM>&gt; documentation at www.usb.org isn't exactly in plain English.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Please could someone enlighten me as to how to go about deciphering this
</EM><BR>
<EM>&gt; output (produced when I plugged the scanner in under Win98) and reproduce
</EM><BR>
<EM>&gt; the effect under Linux (possibly as some variant of Vladimir's ct.c code.
</EM><BR>
<P>We have some perl scripts that can extract relevant info from the
<BR>
logs. The scripts are specific to the Microtek Scanmaker 3600
<BR>
would proabably provide you with a good starting point.
<BR>
<P>Have a look at <A HREF="http://sm3600.sourceforge.net">http://sm3600.sourceforge.net</A> for some backgound
<BR>
info and get the microtek3600.tar.gz tarball from
<BR>
<A HREF="http://privat.schlund.de/eichholz">http://privat.schlund.de/eichholz</A> (it will also be in CVS on
<BR>
sourceforge soon, this weekend maybe).
<BR>
<P>There is also a modifed version of usbsnoopy that does not log the
<BR>
bulk transfer buffer. We found that the debugview program couldn't
<BR>
keep up with the messages and we were losing important parts of
<BR>
the logs. I'm not sure if it is available for downloaded yet but
<BR>
mail me if you want it.
<BR>
<P>As for reproducing the ouptut, if you are using Linux, there is a
<BR>
tool called usb-robot available from sourceforge. It can replay
<BR>
some snoopy logs using libusb, it didn't work for the scanmaker
<BR>
3600 but provided a good starting point and is an example of how
<BR>
to use libusb.
<BR>
<P>HTH
<BR>
g
<BR>
<P><PRE>
--
Glenn Ramsey
<A HREF="mailto:glenn@componic.com?Subject=Re:%20Canoscan%20FB630U&In-Reply-To=&lt;3ABBC320.4F2FB75E@goata.nz.componic.com&gt;">glenn@componic.com</A>
<P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Canoscan%20FB630U&In-Reply-To=&lt;3ABBC320.4F2FB75E@goata.nz.componic.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0185.html">Robert N. Eaton: "Re: Getting my scanner to work"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0183.html">Mark Perks: "HP ScanJet Plus woes"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0182.html">Simon Heywood: "Canoscan FB630U"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#184">[ date ]</A>
<A HREF="index.html#184">[ thread ]</A>
<A HREF="subject.html#184">[ subject ]</A>
<A HREF="author.html#184">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri Mar 23 2001 - 13:36:57 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>