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

2008-07-03 Thread Gerard Klaver
On Sun, 2008-06-29 at 14:33 +0800, Paul Wise wrote:
 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.
 

Paul,

I put some lexmark2 skeleton files on my homepage, see

http://gkall.hobby.nl/dell-810.html

My Dell is detected, but no time yet to put the right usb commands in.

The Lexmark X2330 usb id are also added.


-- 

m.vr.gr.
Gerard Klaver




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

2008-06-29 Thread Paul Wise
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.

-- 
bye,
pabs

http://pabs.zip.to
-- 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
 


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

2008-06-29 Thread Gerard Klaver
On Sun, 2008-06-29 at 14:33 +0800, Paul Wise wrote:
 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.
 


Maybe using copy of the lexmark backend naming it lexmark2 or copy from
logitech1 backend (see http://gkall.hobby.nl/logitech-pagescan-usb.html)
to lexmark2 backend??

A quick check on your file seems that there are not many commands needed
to do a scan, so pasting into a backend will be not so much work.

I can take a look how i can paste it in a copy of the logitech1 backend.




-- 

m.vr.gr.
Gerard Klaver




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

2008-06-15 Thread Aapo Tahkola
Hi.

On Sat, 14 Jun 2008 19:37:10 +0800
Paul Wise pabs3 at bonedaddy.net wrote:

 Hi all,
 
 [Please CC me in all replies]
 
 I've had a Lexmark X2330 sitting next to the family Windows box for a
 couple of years, figured it was time to make it work in Linux.
 
 Is anyone else working on Lexmark X2330 support?
 
 The protocol seems fairly simple at first glance, so it shouldn't be
 much work if no-one has attempted to get it working yet.
 

I tried to hack compression algo used on Lexmark
lx2480 without success. I sort of gave up because it turned out being
so difficult to get any sort of controlled data out of it. Every
scan is different and lexmark drivers only saves
in lossy image format, making comparison difficult. Tying some of
the data pins high/low might help with this to some degree. It didn't
appear to be adaptive IIRC.
http://lists.alioth.debian.org/pipermail/sane-devel/2007-October/020075.html
has some speculation and some data if you want to compare.

-- 
Aapo Tahkola



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

2008-06-14 Thread Paul Wise
Hi all,

[Please CC me in all replies]

I've had a Lexmark X2330 sitting next to the family Windows box for a
couple of years, figured it was time to make it work in Linux.

Is anyone else working on Lexmark X2330 support?

The protocol seems fairly simple at first glance, so it shouldn't be
much work if no-one has attempted to get it working yet.

-- 
bye,
pabs

http://pabs.zip.to
-- 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/20080614/48cad1af/attachment.pgp
 


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

2008-06-14 Thread Gerard Klaver
On Sat, 2008-06-14 at 19:37 +0800, Paul Wise wrote:
 Hi all,
 
 [Please CC me in all replies]
 
 I've had a Lexmark X2330 sitting next to the family Windows box for a
 couple of years, figured it was time to make it work in Linux.
 
 Is anyone else working on Lexmark X2330 support?
 
 The protocol seems fairly simple at first glance, so it shouldn't be
 much work if no-one has attempted to get it working yet.
 
 -- 
 sane-devel mailing list: sane-devel at lists.alioth.debian.org
 http://lists.alioth.debian.org/mailman/listinfo/sane-devel
 Unsubscribe: Send mail with subject unsubscribe your_password
  to sane-devel-request at lists.alioth.debian.org


Seems the Dell 810 has the same usb endpoints as the X2330 and other
Lexmarks.

For some Dell 810 inside picture see http://gkall.hobby.nl/dell-810.html

-- 

m.vr.gr.
Gerard Klaver




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

2008-06-14 Thread Paul Wise
?[Please CC me in all replies]

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

 Seems the Dell 810 has the same usb endpoints as the X2330 and other
 Lexmarks.
 
 For some Dell 810 inside picture see http://gkall.hobby.nl/dell-810.html

Interesting, thanks for the info. I'm not really game to open this X2330
up since it is my sister's one.

Looks like that board has an ARM chip on it, you could probably run
Linux on there if you wanted :)

Do any SANE developers know any of the hardware on that board? I'm
really not a hardware person.

I have a WinXP machine and did some SniffUSB and usbsnoop2libusb.pl runs
today.

?Gerard, do you mind doing some tests if I get a stand-alone driver
working? 

-- 
bye,
pabs

http://pabs.zip.to
-- 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/20080614/c6148ca2/attachment.pgp
 


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

2008-06-14 Thread Gerard Klaver
On Sat, 2008-06-14 at 21:02 +0800, Paul Wise wrote:
 ?[Please CC me in all replies]
 
 On Sat, 2008-06-14 at 14:22 +0200, Gerard Klaver wrote:
 
  Seems the Dell 810 has the same usb endpoints as the X2330 and other
  Lexmarks.
  
  For some Dell 810 inside picture see http://gkall.hobby.nl/dell-810.html
 
 Interesting, thanks for the info. I'm not really game to open this X2330
 up since it is my sister's one.
 
 Looks like that board has an ARM chip on it, you could probably run
 Linux on there if you wanted :)
 
 Do any SANE developers know any of the hardware on that board? I'm
 really not a hardware person.
 
 I have a WinXP machine and did some SniffUSB and usbsnoop2libusb.pl runs
 today.
 
 ?Gerard, do you mind doing some tests if I get a stand-alone driver
 working? 
 

Testing is OK
Let me know when you have something.

-- 

m.vr.gr.
Gerard Klaver