I have a USB Visioneer Scanner that I would like to get working on Linux. So
far I have managed to:
1. Create snoop logs under windows
2. Execute those logs with libusb on linux
3. Determine the commands:
     - to turn the Lamp On or Off
     - to determine if a button on the scanner was pushed.
4.  I am saving the output of usb_bulk_write to files

So far I am only scanning a B&W 9 pixel x 9 pixle area ...I am expexting an
81 byte file but I am getting much more than that.
Can some one help me take this raw output and convert in into an image file
I can view ?

Here is a listing of all the output files
-rw-r--r--  1 root  root  36864 2006-01-01 22:37 00452-dat
-rw-r--r--  1 root  root  24576 2006-01-01 22:37 00458-dat
-rw-r--r--  1 root  root  12288 2006-01-01 22:37 00464-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:37 00519-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:37 00521-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:37 00585-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:37 00587-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:37 00651-dat        raw G3
data, byte-padded ( reported by file )
-rw-r--r--  1 root  root    105 2006-01-01 22:37 00653-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:37 00717-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:37 00719-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:37 00783-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:37 00785-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:37 00849-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:37 00851-dat
-rw-r--r--  1 root  root   1600 2006-01-01 22:37 00914-dat
-rw-r--r--  1 root  root  64800 2006-01-01 22:37 00916-dat
-rw-r--r--  1 root  root   7200 2006-01-01 22:37 00918-dat
-rw-r--r--  1 root  root  30600 2006-01-01 22:37 01019-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:37 01021-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:37 01023-dat
-rw-r--r--  1 root  root  30600 2006-01-01 22:38 01025-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:38 01093-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:38 01095-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:38 01159-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:38 01161-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:38 01225-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:38 01227-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:38 01291-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:38 01293-dat
-rw-r--r--  1 root  root     42 2006-01-01 22:38 01357-dat
-rw-r--r--  1 root  root    105 2006-01-01 22:38 01359-dat
-rw-r--r--  1 root  root  30600 2006-01-01 22:38 01419-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01421-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01423-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01425-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01427-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01429-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01431-dat
-rw-r--r--  1 root  root  61200 2006-01-01 22:38 01433-dat
-rw-r--r--  1 root  root  30600 2006-01-01 22:38 01435-dat
-rw-r--r--  1 root  root  12288 2006-01-01 22:38 01442-dat
-rw-r--r--  1 root  root  12288 2006-01-01 22:38 01445-dat
-rw-r--r--  1 root  root  12288 2006-01-01 22:38 01448-dat
-rw-r--r--  1 root  root  24576 2006-01-01 22:38 01454-dat
lif file ( reported by file )
-rw-r--r--  1 root  root  12288 2006-01-01 22:38 01492-dat
-rw-r--r--  1 root  root     10 2006-01-01 22:38 01533-dat
-rw-r--r--  1 root  root    110 2006-01-01 22:38 01535-dat

**
-Thanks
Steve More
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060101/27b14b0b/attachment.htm
From [email protected]  Mon Jan  2 07:27:11 2006
From: [email protected] (=?iso-8859-1?q?St=E9phane_VOLTZ?=)
Date: Mon Jan  2 07:22:10 2006
Subject: [sane-devel] snooping of USB within linux
In-Reply-To: <[email protected]>
References: <[email protected]>
        <[email protected]>
Message-ID: <[email protected]>

Le Samedi 31 D?cembre 2005 13:57, Henning Meier-Geinitz a ?crit?:
> Hi,
>
> On 2005-12-29 23:25, Stephen More wrote:
> > I thought I would try and write a backend for SANE. I have used UsbSnoop
> > on windows  to collect some of the URB Data.  What is the equivalent
> > program on linux to snoop USB to see what I am actually sending ? With
> > any luck the output of both should be the same.
>
> As far as I know, there is no such program. However, I also have never
> seen the need of one until now.
>
> What you can do to look at what's actually sent to and received from
> the scanner is to enable debugging: export SANE_DEBUG_SANEI_USB=255.
> If your backend uses sanei_usb functions, you'll get all the necessary
> information.
>
> If I remember correctly, there is a similar feature in the Linux kernel.
> Such low level debugging is usefull if you try to find hardware bugs
> like the toggle issues found in some USB chipsets.
>
> Bye,
>   Henning

        Hello,

        yes there is such a feature in linux kernel. You'll have to recompile 
your 
kernel with the following option (from kernel's configuration help):

CONFIG_USB_MON:

If you say Y here, a component which captures the USB traffic
between peripheral-specific drivers and HC drivers will be built. 
For more information, see <file:Documentation/usb/usbmon.txt>. 
 
This is somewhat experimental at this time, but it should be safe.

If unsure, say Y.
            
Symbol: USB_MON [=y] 
Prompt: USB Monitor
  Defined at drivers/usb/mon/Kconfig:5 
  Depends on: USB  
  Location:     
    -> Device Drivers 
      -> USB support 
        -> Support for Host-side USB (USB [=m]) 

Regards,
        Stef

Reply via email to