kopia lustrzana https://gitlab.com/sane-project/website
146 wiersze
5.3 KiB
HTML
146 wiersze
5.3 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>sane-devel: Re: Backend for BearPaw 2400</TITLE>
|
||
|
<META NAME="Author" CONTENT="Henning Meier-Geinitz (hmg-ml@gmx.de)">
|
||
|
<META NAME="Subject" CONTENT="Re: Backend for BearPaw 2400">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>Re: Backend for BearPaw 2400</H1>
|
||
|
<!-- received="Fri Jan 19 12:59:31 2001" -->
|
||
|
<!-- isoreceived="20010119205931" -->
|
||
|
<!-- sent="Fri, 19 Jan 2001 21:44:00 +0100" -->
|
||
|
<!-- isosent="20010119204400" -->
|
||
|
<!-- name="Henning Meier-Geinitz" -->
|
||
|
<!-- email="hmg-ml@gmx.de" -->
|
||
|
<!-- subject="Re: Backend for BearPaw 2400" -->
|
||
|
<!-- id="20010119214400.C338@vortex.swb.de" -->
|
||
|
<!-- inreplyto="3A68A38C.E3D6AA02@sus.univ.szczecin.pl" -->
|
||
|
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20Backend%20for%20BearPaw%202400&In-Reply-To=<20010119214400.C338@vortex.swb.de>"><EM>hmg-ml@gmx.de</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Fri Jan 19 2001 - 12:44:00 PST
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0207.html">Laurent-jan: "Re: How to Run Parallel Port Scanner as Non-Root????"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0205.html">Henning Meier-Geinitz: "Re: some technical questions"</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0204.html">Slawek Kolasinski: "Backend for BearPaw 2400"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#206">[ date ]</A>
|
||
|
<A HREF="index.html#206">[ thread ]</A>
|
||
|
<A HREF="subject.html#206">[ subject ]</A>
|
||
|
<A HREF="author.html#206">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
Hi,
|
||
|
<BR>
|
||
|
<P>On Fri, Jan 19, 2001 at 09:29:00PM +0100, Slawek Kolasinski wrote:
|
||
|
<BR>
|
||
|
<P><EM>> I would like to write a backend for Mustek BearPaw 2400 on USB -
|
||
|
</EM><BR>
|
||
|
<EM>> if no one else is already working on it.
|
||
|
</EM><BR>
|
||
|
<P>I'm writing a backend for the Bearpaw 1200. As the Scanners are
|
||
|
<BR>
|
||
|
probably quite similar (9831 versus 9832) they can be supported by one
|
||
|
<BR>
|
||
|
backend. At the moment I can read and write registers, turn on the
|
||
|
<BR>
|
||
|
lamp, move the slider and reset the scanner. All this seems to work
|
||
|
<BR>
|
||
|
for the 2400, too, as far as I can tell from the first tests. I will
|
||
|
<BR>
|
||
|
email you more information and my code.
|
||
|
<BR>
|
||
|
<P>Some documentation about the chip is at
|
||
|
<BR>
|
||
|
<A HREF="http://www.geocities.com/SiliconValley/Mouse/5403/">http://www.geocities.com/SiliconValley/Mouse/5403/</A>
|
||
|
<BR>
|
||
|
<P><EM>> I read some docs and I also looked through some backends sources. I
|
||
|
</EM><BR>
|
||
|
<EM>> can't understand one thing. How can I send some configuration data to
|
||
|
</EM><BR>
|
||
|
<EM>> my scanner using only the special file /dev/usb/scanner0? I mean that
|
||
|
</EM><BR>
|
||
|
<EM>> my scanner has 127 registers and I have to choose somehow which
|
||
|
</EM><BR>
|
||
|
<EM>> register I want to read/write.
|
||
|
</EM><BR>
|
||
|
<P>For some reason this isn't explained in the documentation of the
|
||
|
<BR>
|
||
|
National Semiconductor Merlin 9831/9832 chip. At least I couldn't find
|
||
|
<BR>
|
||
|
it. It's simple (copied from my mail a few days ago:)
|
||
|
<BR>
|
||
|
<P>You need just simple reads and writes to the /dev/usbscanner or
|
||
|
<BR>
|
||
|
whatever file.
|
||
|
<BR>
|
||
|
<P>Byte 0: read (1) or write (0). Use incremental write/read: add 2.
|
||
|
<BR>
|
||
|
Byte 1: register number
|
||
|
<BR>
|
||
|
Byte 2: bytes to write/read MSB
|
||
|
<BR>
|
||
|
Byte 3: bytes to write/read LSB
|
||
|
<BR>
|
||
|
<P>For a write just add the buffer you want to send (e.g. for writing to
|
||
|
<BR>
|
||
|
one register, you would have 5 bytes total). For a read, write the
|
||
|
<BR>
|
||
|
four bytes and read as many bytes as specified after that.
|
||
|
<BR>
|
||
|
<P><EM>> I figured out that ESCape (0x1B)
|
||
|
</EM><BR>
|
||
|
<EM>> character has samoe special meaning because it's always sent as the
|
||
|
</EM><BR>
|
||
|
<EM>> first byte - how does it work? Could someone answer me?
|
||
|
</EM><BR>
|
||
|
<P>That maybe correct for the HP scanners. For the Bearpaw 2400 and 1200
|
||
|
<BR>
|
||
|
it doesn't have a special meaning. By the way, the Bearpaw 1200F seems
|
||
|
<BR>
|
||
|
to be a completely different scanner, it uses a chip named "Mustek
|
||
|
<BR>
|
||
|
1509".
|
||
|
<BR>
|
||
|
<P>Bye,
|
||
|
<BR>
|
||
|
Henning
|
||
|
<BR>
|
||
|
<P><PRE>
|
||
|
--
|
||
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
||
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Backend%20for%20BearPaw%202400&In-Reply-To=<20010119214400.C338@vortex.swb.de>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0207.html">Laurent-jan: "Re: How to Run Parallel Port Scanner as Non-Root????"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0205.html">Henning Meier-Geinitz: "Re: some technical questions"</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0204.html">Slawek Kolasinski: "Backend for BearPaw 2400"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#206">[ date ]</A>
|
||
|
<A HREF="index.html#206">[ thread ]</A>
|
||
|
<A HREF="subject.html#206">[ subject ]</A>
|
||
|
<A HREF="author.html#206">[ author ]</A>
|
||
|
</UL>
|
||
|
<!-- trailer="footer" -->
|
||
|
<HR NOSHADE>
|
||
|
<P>
|
||
|
<SMALL>
|
||
|
<EM>
|
||
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
||
|
: <EM>Fri Jan 19 2001 - 13:00:16 PST</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|