[sane-devel] anyone working on Lexmark X2330 support?

Paul Wise pabs3 at bonedaddy.net
Sun Jun 29 06:33:59 UTC 2008

On Sat, 2008-06-14 at 15:42 +0200, Gerard Klaver wrote:

> Let me know when you have something.

Ok, the attached c file works with my scanner. I haven't tested it
exhaustively yet, there are timing issues in general (grabbing the data
too slowly or too quickly leads to badness and the need for resetting)
and you have to edit the code to change the scan parameters, but it
works for me in a few cases (colour/greyscale at 150 DPI).

I'll do some more tweaking/testing, try to figure out some of the
unknown bits in the protocol and the advanced stuff the Lexmark Windows
app can do and make it a bit more robust with resetting the scanner to a
good state in case of failure.

To compile it with GCC you'll probably need to delete the first line,
I've been using tcc to merge compile+run into just run.

It needs libusb and libpng installed to compile/run and will write out
lexmark_scanner.png to the current directory and a bunch of debugging
output to stdout.

Hopefully some SANE developer can help me turn it into a SANE backend.
I'd also like to know if it is similar to any other scanners that are
already supported and maybe an existing driver should be extended.

I also wrote a short protocol document, not sure if that is useful to
SANE developers or not though.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: lexmark-x2330-scanner.c
Type: text/x-csrc
Size: 10857 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080629/0a25344a/attachment-0001.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080629/0a25344a/attachment-0001.pgp 

More information about the sane-devel mailing list