[sane-devel] Ricoh IS450 Family of Scanners

2007-09-26 Thread jazz_john...@verizon.net
Hi, I have a Ricoh IS450DE Scanner which I'd like to write a sane-backend driver. As I have no experience whatsoever writing a driver, I was wondering if any other Sane users would be interested in helping out. Mattias Kregert was kind enough to mail me the SCSI Specifications for the IS450 Famil

[sane-devel] Found a few minor typos in backend-writing.txt

2007-09-26 Thread jazz_john...@verizon.net
$ diff backend-writing.txt.original backend-writing.txt 125c125 < directories. This is especially usefukl for frimware directories. See --- > directories. This is especially useful for firmware directories. See 129c129 < complexity of the backend, splitting it toseveral files can be ap

[sane-devel] Preliminary Testing of Ricoh IS450 (HS2P)

2007-10-04 Thread jazz_john...@verizon.net
Hi, I've begun preliminary testing of the Ricoh IS450 scanner. I began by copying all the ibm* backend files to hs2p* backend files and simply globally substituting as follows :%s/ibm/hs2p/g :%s/IBM/HS2P/g and added IS450 to the string comparison in hs2p.c as well as #defines for papersize L

[sane-devel] Sanning from command line - need find out correct device name

2007-10-04 Thread jazz_john...@verizon.net
On Thursday 04 October 2007, rog70 wrote: > PC: Debian Etch, samba + CUPS server (no GUI), sane-utils installed > 3 printer on CUPS: > 1. Samsung CPL-500 color laser > 2. HP DeskJet 5150 > 3. Samsung SCX-4200 (all-in-one) > CUPS is handling the 3 printers without fuss -> raw queue, windows drivers

[sane-devel] scanadf on Mac OS X

2007-10-11 Thread jazz_john...@verizon.net
On Thursday 11 October 2007, Yoshi wrote: > Hello. > > I am a Mac OS X 10.4.10 user and I installed latest sane-backends > from source code with installing libusb on it, but then I couldn't find > scanadf command. I have ever installed sane-backends on a gentoo > linux server where I could successf

[sane-devel] General question on C programming

2007-10-17 Thread jazz_john...@verizon.net
I've been working on writing a driver (hs2p) for the Ricoh IS450/IS420 scanners. I've drawn mainly from the bh and ibm drivers, but also a little from the avision and canon drivers. My plan was to split the code into several parts: hs2p.c{sane_init(), sane_get_devices(), sane_open(),

[sane-devel] General question on C programming

2007-10-17 Thread jazz_john...@verizon.net
On Wednesday 17 October 2007, Julien BLACHE wrote: > jazz_johnson at verizon.net wrote: > > Hi, > > > So, is the static keyword necessary to prevent backend drivers from > > interfering with each other, or is the keyword unnecessary? > > Every function in a backend that isn't part of the SANE API d

[sane-devel] question about SANE_FIX macro

2007-10-23 Thread jazz_john...@verizon.net
Hi, I've been debugging my hs2p Ricoh IS450/420 driver and am having a problem with set_window() returning with ILLEGAL REQUEST: [hs2p] sane_start: sending SET WINDOW DATA [hs2p] >> set_window [hs2p] set_window: SET WINDOW COMMAND Transfer Length = 648 (should be 648) [hs2p] set_window: SET WIND

[sane-devel] scsi scan command

2007-10-24 Thread jazz_john...@verizon.net
Ricoh IS450 hs2p backend update: I found the bug in my set_window() command. The Manual said that the default value of the double-byte bit-order was that bits 0-2 were '0' and the remaining bits '1' which conflicted with the further specification that bits 6-4 were reserved and hence unset. Cha

[sane-devel] hs2p finally working

2007-10-25 Thread jazz_john...@verizon.net
Hi, I finally got my hs2p driver to do basic scanning: # scanimage -T -d hs2p:/dev/sg0 scanimage: scanning image of size 4672x6787 pixels at 1 bits/pixel scanimage: acquiring gray frame, 1 bits/sample scanimage: reading one scanline, 584 bytes... PASS scanimage: reading one byte... PA

[sane-devel] scsi scan command

2007-10-25 Thread jazz_john...@verizon.net
On Thursday 25 October 2007, m. allan noah wrote: > did this help? THANKS alot, yes it did! > > On 10/24/07, m. allan noah wrote: > > On 10/24/07, jazz_johnson at verizon.net > > wrote: > > > Where, according to the MANUAL, > > > > > > "the Transfer Length is the > > > byte-length of the Window

[sane-devel] sane_control_option debugging

2007-10-26 Thread jazz_john...@verizon.net
Hi, My hs2p Ricoh driver seems to be working just fine with the cmdline tool scanimage. However, when I try scanning with xscanimage or xsane, I get a popup error msg: "Failed to start scanner. Invalid argument" If I retry, I get "Failed to start scanner. Device Busy." Nothing more is written to

[sane-devel] hs2p: xsane debug problem solved

2007-10-26 Thread jazz_john...@verizon.net
Finally figured out why I wasn't seeing any DBG() statements with Xsane: I was connecting to the scanner over the network. My scanner runs off a scsi card in an old Pentium III with no monitor, so I ssh'd to the remote PIII computer to edit my hs2p backend and to run scanimage, so naturally my DB

[sane-devel] basic hs2p backend working

2007-10-30 Thread jazz_john...@verizon.net
I've finally got the major features of the IS450 working but would appreciate some advice on implementing reading duplex window data in SANE. in sane_start() I have something like: sane_start() { select Flatbed/ADF scan source if ADF select simplex/duplex (continuous?) select endorse

[sane-devel] basic hs2p backend working

2007-10-30 Thread jazz_john...@verizon.net
On Tuesday 30 October 2007, m. allan noah wrote: > you need to buffer the backside data, and return it (instead of > scanning) after the second call to sane_start. there is no way to tell > the frontend that half the data you are sending should be held for > later. OK. > > > I have an sp15c which

[sane-devel] duplexing question

2007-10-31 Thread jazz_john...@verizon.net
I looked over the fujitsu backend and see why it must buffer the RGB frames which are not returned sorted by page side. For my hs2p backend, I only have one GRAY frame, the first window of which is the image data for the 1st side, and the 2nd window for the 2nd side. So all I need is a boolean flag

[sane-devel] hs2p backend update

2007-11-01 Thread jazz_john...@verizon.net
The hs2p backend is basically finished, except for adding support for continuous scanning and support for uploading custom halftone patterns and gamma vectors. I do not plan to add support for reading/changing IPU parameters since I don't have a scanner with such an option. Nor do I plan on adding

[sane-devel] doc/Makefile question

2007-11-01 Thread jazz_john...@verizon.net
I can't seem to generate doc/Makefile from doc/Makefile.in which is crashing my compile/install: #SANE_BACKENDS="hs2p" emerge sane-backends <...> Generating manpage sane-hp3500.5... Generating manpage sane-pixma.5... make[1]: *** No rule to make target `sane-hs2p.5', needed by `all'. Stop. make[

[sane-devel] BRIGHTNESS / CONTRAST controls

2007-11-05 Thread jazz_john...@verizon.net
I've been debugging my hs2p backend and have a question about BRIGHTNESS/CONTRAST controls. Following the ibm, bh, and sp15c backends, I initialized a SANE option OPT_BRIGHTNESS in init_options() { s->opt[OPT_BRIGHTNESS].name = SANE_NAME_BRIGHTNESS; s->opt[OPT_BRIGHTNESS].title = SANE_TITL

[sane-devel] Timetable for sane-backends 1.0.19

2007-11-16 Thread jazz_john...@verizon.net
On Friday 16 November 2007, m. allan noah wrote: > This is the proposed timetable for the release of sane-backends 1.0.19: > > 2008-01-06 Feature freeze > 2008-01-20 Code freeze > 2008-02-03 Release > > The dates may move a few days if required. This is a longer > 'pre-freeze' period than normal, b

[sane-devel] hs2p backend

2007-11-16 Thread jazz_john...@verizon.net
On Friday 16 November 2007, m. allan noah wrote: > i've taken a cursory glance at the code, and have the following comments: > > 1. what does the name hs2p mean? I don't know. Ricoh's developer manual is entitled "HS2P (IS450) SCSI Interface Specifications (Programming Guide) Version 1.0" and the

[sane-devel] hs2p backend

2007-11-16 Thread jazz_john...@verizon.net
Oops! I left out the sane-backends/doc/{sane-hs2p*} and sane-backends/doc/descriptions/hs2p.desc new tarball and patch at: http://www.acjlaw.net:8080/~jeremy/Ricoh/hs2p_sane_backend/hs2p.tar.bz2 http://www.acjlaw.net:8080/~jeremy/Ricoh/hs2p_sane_backend/patch #!/bin/sh VER="h

[sane-devel] hs2p backend

2007-11-17 Thread jazz_john...@verizon.net
I made a new patch per your instructions: diff -r -N -u ${CVS} ${NEW} | gzip -c - > hs2p_patch.gz and placed it at http://www.acjlaw.net:8080/~jeremy/Ricoh/hs2p_sane_backend/hs2p_patch.gz It patches the following 16 files (I hope I haven't forgotten something): # zgrep "diff -r" hs2p_patch.gz |

[sane-devel] hs2p backend

2007-11-18 Thread jazz_john...@verizon.net
On Saturday 17 November 2007, m. allan noah wrote: > ok, i've used your patch to add the backend into my local tree and > build it. it does build, but it gives quite a few warnings. my current > system is 64 bit, hence some of these might appear new to you. > > Others are C90/C99 issues, which shou

[sane-devel] hs2p backend

2007-11-19 Thread jazz_john...@verizon.net
On Saturday 17 November 2007, m. allan noah wrote: > ok, i've used your patch to add the backend into my local tree and > build it. it does build, but it gives quite a few warnings. my current > system is 64 bit, hence some of these might appear new to you. > > Others are C90/C99 issues, which shou

[sane-devel] hs2p backend

2007-11-19 Thread jazz_john...@verizon.net
On Monday 19 November 2007, m. allan noah wrote: > On Nov 18, 2007 11:08 PM, wrote: > > On Saturday 17 November 2007, m. allan noah wrote: > > As you can see, there's still one unused parameter in sense_handler(..., > > void *arg) definition and there's a bunch of hs2p scsi commands for which >

[sane-devel] hs2p backend

2007-11-20 Thread jazz_john...@verizon.net
On Monday 19 November 2007, m. allan noah wrote: > oops- with patch this time. > > On Nov 19, 2007 3:33 PM, m. allan noah wrote: > > ok, lets try this again. i should have listened to the reversed patch > > complaints :) > > > > this is your current master patch, i guess no need to apply the _new

[sane-devel] How to avoid gcc warnings (was: hs2p backend)

2007-11-20 Thread jazz_john...@verizon.net
On Tuesday 20 November 2007, Mattias Ellert wrote: > 20 nov 2007 kl. 12.32 skrev Volker Grabsch: > > On Mon, Nov 19, 2007 at 11:36:20AM -0500, m. allan noah wrote: > >> ok, lets start by saying that lots of other sane backends produce > >> warnings, and i am probably running a newer version of gcc

[sane-devel] hs2p backend

2007-11-20 Thread jazz_john...@verizon.net
On Tuesday 20 November 2007, m. allan noah wrote: > On Nov 20, 2007 3:51 PM, wrote: > > Are there any option I need to pass to configure or gcc > > in order to generate the C90/C99 warnings? > > I've compiled hs2p backend on both a Pentium3 x86 and > > an amd64 x86_64 platform but can't seem to g

[sane-devel] hs2p backend

2007-11-21 Thread jazz_john...@verizon.net
On Tuesday 20 November 2007, m. allan noah wrote: > my flags from backend/Makefile (generated by stock configure) > > CFLAGS = -g -O2 -W -Wall -Wcast-align -Wcast-qual > -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith > -Wreturn-type -Wstrict-prototypes -pedantic -ansi > > not sure why

[sane-devel] ghostscript so much better with pdf files than xsane

2007-11-30 Thread jazz_john...@verizon.net
> The filesize of as pdf saved scans is enourmous: one page scans often > take more than 14 Mb of filespace. I routinely routinely use Xsane to scan documents directly to pnm (Portable aNy Map) format, which I then convert to muli-page pdf files using netpbm tools. If the ink on a document is

[sane-devel] annoying bug in sp15c backend ?

2008-01-09 Thread jazz_john...@verizon.net
When I use xsane with the sp15c backend, there is a weird annoying bug related to the drop-down lists for the xres and yres in Save and View modes: In sp15c.c the x/y res are set to the following: static const SANE_Int resolution_list[] = {11, 0, 60, 75, 80, 100, 120, 150, 200, 240, 300, 600};

[sane-devel] annoying bug in sp15c backend ?

2008-01-09 Thread jazz_john...@verizon.net
On Wednesday 09 January 2008, m. allan noah wrote: > my preference would be to help Rene extend the Avision backend to > fully support these machines (or maybe break the avision backend into > two- older and newer machines) and drop the sp15c backend from sane. > you've used both backends, how much

[sane-devel] sp15c vs. avision backends

2008-01-10 Thread jazz_john...@verizon.net
I decided to do some testing on the avision backend with the Fujitsu SP15C. The first major difference I've noticed, is that the avision backend monopolizes the scanner so that only one program can use the scanner while that program is running, i.e. the first user who runs xsane will see the a

[sane-devel] sp15c vs. avision backends

2008-01-11 Thread jazz_john...@verizon.net
On Thursday 10 January 2008, m. allan noah wrote: > > but only if they coordinate who's documents are on the scanner at that > moment. I suppose an argument can be made for both approaches to locking, but users sharing a network scanner must coordinate their usage by some means. Somebody has to

[sane-devel] HP 8270 scanjet support

2008-01-25 Thread jazz_john...@verizon.net
On Friday 25 January 2008, m. allan noah wrote: > > > I browsed through the sane listings last night. My scanner criteria are: > > - flatbed > > - automatic document feeder, duplex, >= 50 pages > > - costs under 1k$ > > > > I discovered that > > - There are many scanners on the market of this form