<br><div><span class="gmail_quote">On 1/2/06, <b class="gmail_sendername">Henning Meier-Geinitz</b> &lt;<a href="mailto:henning@meier-geinitz.de">henning@meier-geinitz.de</a>&gt; wrote:</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Which scanner exactly?</blockquote><div><br>
Visioneer OneTouch 7600 USB<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; 4.&nbsp;&nbsp;I am saving the output of usb_bulk_write to files<br><br>So the files mentioned below is the data that is sent to the scanner?
<br>Or do you mean bulk_read?</blockquote><div><br>
Ahh ! I think this leads to a bug in : <a href="http://protu.it.helsinki.fi/~lindi/usb/usbsnoop2libusb.pl">http://protu.it.helsinki.fi/~lindi/usb/usbsnoop2libusb.pl</a><br>
<br>
I gave it my snoop log and it only produced libusb code with usb_bulk_write statements.<br>
<br>
I guess OUT OUT should be usb_bulk_write and OUT IN should be usb_bulk_read<br>
<br>
[60017 ms]&nbsp; &gt;&gt;&gt;&nbsp; URB 537 going down&nbsp; &gt;&gt;&gt;<br>
-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:<br>
&nbsp; PipeHandle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = c1bf3a28 [endpoint 0x00000081]<br>
&nbsp; TransferFlags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 00000000 (USBD_TRANSFER_DIRECTION_OUT, ~USBD_SHORT_TRANSFER_OK)<br>
&nbsp; TransferBufferLength = 0000002a<br>
&nbsp; TransferBuffer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = edab2cc0<br>
&nbsp; TransferBufferMDL&nbsp;&nbsp;&nbsp; = 00000000<br>
&nbsp;&nbsp;&nbsp; 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&nbsp;&nbsp;&nbsp; 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&nbsp;&nbsp;&nbsp; 00000020: 00 00 00 00 00 00 00 00 00 00<br>
&nbsp; UrbLink&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 00000000<br>
[60169 ms] UsbSnoop - MyInternalIOCTLCompletion(ff1ad4c0) : fido=ed03ec38, Irp=ed0577a0, Context=ed1d2e10, IRQL=2<br>
[60169 ms]&nbsp; &lt;&lt;&lt;&nbsp; URB 537 coming back&nbsp; &lt;&lt;&lt;<br>
-- URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:<br>
&nbsp; PipeHandle&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = c1bf3a28 [endpoint 0x00000081]<br>
&nbsp; TransferFlags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 00000001 (USBD_TRANSFER_DIRECTION_IN, ~USBD_SHORT_TRANSFER_OK)<br>
&nbsp; TransferBufferLength = 0000002a<br>
&nbsp; TransferBuffer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = edab2cc0<br>
&nbsp; TransferBufferMDL&nbsp;&nbsp;&nbsp; = ed0b16a0<br>
&nbsp;&nbsp;&nbsp; 00000000: 29 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&nbsp;&nbsp;&nbsp; 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
&nbsp;&nbsp;&nbsp; 00000020: 00 00 00 00 00 00 00 00 00 00<br>
&nbsp; UrbLink&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 00000000<br>
[60170 ms] UsbSnoop - DispatchAny(ff1abd30) : IRP_MJ_INTERNAL_DEVICE_CONTROL<br>
[60170 ms] UsbSnoop - MyDispatchInternalIOCTL(ff1ad590) : fdo=c1bc7468, Irp=ed0597b0, IRQL=0<br>
<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; So far I am only scanning a B&amp;W 9 pixel x 9 pixle area ...I am expexting an
<br>&gt; 81 byte file but I am getting much more than that.<br>&gt; Can some one help me take this raw output and convert in into an image file<br>&gt; I can view ?<br><br>Well, that depends on the format of that data :-)
<br><br>Some general hints: If the scanner has a real black&amp;white/lineart<br>mode, the size of the image data itsself can be even smaller<br>(something like 9 * ceil (9 / 8)).<br><br>If the scanner uses its gray mode, the minimum is 81 bytes. However,
<br>the scanner may have a minimum size, so the driver may actually scan<br>more data (e.g. 1&quot;x1&quot;, or 256 pixels at minimum, or similar).<br><br>Before you get scan data from the device you may receive calibration
<br>data, which can be much bigger than the 9x9 pixel. E.g. Full lines at<br>full resolution, 16 bit/color.</blockquote><div><br>
Perhaps after I&nbsp; generate some usb_bulk_read&nbsp; I will be able to find&nbsp; some&nbsp; kind of image in those files.<br>
<br>
-Thanks<br>
Steve More <br>
</div><br></div><br>