[sane-devel] usbsniff
Pierre Willenbrock
pierre at pirsoft.dnsalias.org
Sun Feb 8 15:49:12 UTC 2009
Roland Graf schrieb:
> Hallo Pierre,
>
> the testprogram gives me only an:
>
> roland roland # /home/roland/Doku/G4010/testprog
> Fatal: Device not found!
> roland roland #
>
> With #lsusb I can see the scanner. I
> Best regards
>
> Roland
>
Hello Roland,
either my guess for your device-id was wrong(0x03f0:0x4505, see
usb_con.c:86), or you are lacking permissions to access the device.
Regards,
Pierre
>
> Am Samstag 07 Februar 2009 21:55:11 schrieben Sie:
>> Roland Graf schrieb:
>>> Hallo Pierre,
>>>
>>> was it possible to decode my log?
>>>
>>> Thanks
>>>
>>> Roland
>> Hello Roland,
>>
>> try this "small" program. If i got it right, this should replay your
>> usbsniff. It will dump any data received on stdout, so it should
>> probably be redirected into a file. All you need is a working libusb and
>> compilation environment, compilation is done by the usual "make".
>>
>> A quick way to view the resulting data is to convert it into a
>> portable-gray-map(.pgm) by prepending "P5 <width> <height> 255 " or "P5
>> <width> <height> 65535 " (note the final space), depending on whether
>> you want to see the data interpreted as 8 bit or 16 bit. If the byte
>> order is not correct for 16 bit, just add another space before the
>> "real" data(the least significant byte can be ignored for now). For
>> <width> and <height> you need to experiment. "xv" and "display" are able
>> to show 16 bit pgm.
>>
>> I did not have a close look at the actual mode the gl843 is programmed
>> to, but for cis sensors, color information is transfered in three lines,
>> each line taken with one of the three led colors, for ccd sensors the
>> usual per pixel color information is used.
>>
>> Regards,
>> Pierre
>
>
>
>
More information about the sane-devel
mailing list