sane-project-website/old-archive/1998-07/0111.html

62 wiersze
3.0 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Tue Jul 21 09:21:14 1998 PDT" -->
<!-- sent="Tue, 21 Jul 1998 17:00:23 +0100 (BST)" -->
<!-- name="Jon Knight" -->
<!-- email="jon@net.lut.ac.uk" -->
<!-- subject="Re: developing plustek driver-- questions" -->
<!-- id="" -->
<!-- inreplyto="Pine.BSF.4.00.9807201328030.22329-100000@weevil.nac.net" -->
<title>sane-devel: Re: developing plustek driver-- questions</title>
<h1>Re: developing plustek driver-- questions</h1>
<b>Jon Knight</b> (<a href="mailto:jon@net.lut.ac.uk"><i>jon@net.lut.ac.uk</i></a>)<br>
<i>Tue, 21 Jul 1998 17:00:23 +0100 (BST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#111">[ date ]</a><a href="index.html#111">[ thread ]</a><a href="subject.html#111">[ subject ]</a><a href="author.html#111">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0112.html">Alessandro Russo: "sane-epson driver &amp; ava-1505"</a>
<li> <b>Previous message:</b> <a href="0110.html">Dr. Andreas Bolsch: "Re: Mustek ScanExpress Backend"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
On Mon, 20 Jul 1998, Antal Novak wrote:<br>
<i>&gt; Also, for parallel port scanners, how should a backend determine the port</i><br>
<i>&gt; to use for the scanner? Although 0x378 is all but standard, I would like</i><br>
<i>&gt; to make this as portable as possible. Should it simply read that from its</i><br>
<i>&gt; config file, I wonder?</i><br>
<p>
My thoughts on this part was to make a loadable kernel module for the<br>
parallel port low level driver which could then have its port address<br>
default to 0x378 but also have a different port address passed in on the<br>
command line. Of course this ties the solution down to Linux (in my case<br>
- I've not got a FreeBSD box so I don't know if they can support loadable<br>
kernel modules or not). The SANE code then talks to this low level,<br>
platform dependant code using /dev/scanner or /dev/plustek.<br>
<p>
Tatty bye,<br>
<p>
Jim'll<br>
<p>
#!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50! <br>
use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s=<br>
IO::Socket::INET-&gt;new(PeerAddr=&gt;"$h:$p")||return;print $s "$q\r\n";while(&lt;$s&gt;)<br>
{next if(/^%/);if(/^# SERVER-TO-ASK/){while(&lt;$s&gt;){$x=$1 if/Name: (.*)\r\n$/;$y<br>
=$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&amp;&amp;!$a{$f})}}else{<br>
print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query<br>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0112.html">Alessandro Russo: "sane-epson driver &amp; ava-1505"</a>
<li> <b>Previous message:</b> <a href="0110.html">Dr. Andreas Bolsch: "Re: Mustek ScanExpress Backend"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>