Le mardi 4 juillet 2006 11:51, Thomas Mader a ?crit?:
> Hello,
>
> I have a HP Scanjet 2400c and would like to know if I can help somehow to
> speed up the development of the driver for this?
> Can I provide some information about it or something else?
>
        
        Hello,

        this topic has come a few time on the list. The way I see 2400 support 
added 
is to record usb activity under windows, decode it. Then modify the genesys 
backend accordingly. Test the changes, and compare debug output until it is 
close enough to windows behaviour.

        However, I think there is a 'roadmap': take the functions one after the 
other 
in the sequence they are used by the  backend. For instance, it make no sense 
to directly jump to the final scan and trying to hack it, since it relies on 
values detected by previous functions.

        Here's the call graph for a preview:

sane_open
        gl646_init
                gl646_init_regs
                sanei_genesys_create_slope_table
                sanei_genesys_create_gamma_table
                gl646_set_fe
                gl646_slow_back_home
                gl646_send_gamma_table
                gl646_set_powersaving

sane_start
        gl646_save_power
        gl646_set_fe

        gl646_search_start_position
                gl646_setup_sensor
                sanei_genesys_exposure_time
                gl646_setup_steps
                sanei_genesys_create_slope_table
                gl646_send_slope_table
                gl646_set_fe
                gl646_begin_scan
                sanei_genesys_read_data_from_scanner
                         this function generates a searh_position16.pnm and 
search_position.pnm
                        which are pictures of the innings of the scanner. These 
should contain
                        black and white areas that will be basis for postion 
detection.
                gl646_end_scan
                sanei_genesys_search_reference_point

        ... more to come ... 

        I'm currently compelting this, but I think making 
gl646_search_start_position 
working will take enough time to let me finish.


                Some on these functions already test for HP2300. You can add 
tests and 
values for 2400 there. However, there are two points to take into account:
        - for the HP2300 I made the analog frontend work like the MD5345 one 
since
                I couldn't make it work like it is in usb logs.
        -  motor slope creation should favor 
sanei_genesys_create_slope_table3() over
                the sanei_genesys_create_slope_table() currently used.

        I append the latest version of the scripts that I use for log decoding. 
 The 
cmd.sh takes a decoded log and emits scanner status at each motor start 
(which is used as a 'commit'). It is usefull since you can take it's output 
to compare scanner internal state with the one from the backend log (output 
of gl646_bulk_write_register() ) right before gl646_begin_scan().

        Don't hesitate to ask for more or send patches ...

Regards,
        Stef



-------------- next part --------------
A non-text attachment was scrubbed...
Name: scripts.tar.bz2
Type: application/x-tbz
Size: 15628 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060706/db074ddb/scripts.tar.bin
From ni...@rmk.co.il  Thu Jul  6 06:49:39 2006
From: ni...@rmk.co.il (Nigel Ridley)
Date: Thu Jul  6 06:50:29 2006
Subject: [sane-devel] Only superuser can scan
In-Reply-To: <44a9414c.3050...@wayforth.co.uk>
References: <44a9414c.3050...@wayforth.co.uk>
Message-ID: <44acb283.8080...@rmk.co.il>

Antony Gelberg wrote:
> Hi all,
> 
> This is a Debian testing box.  The normal user can't scan, but it's
> different to permissions problems that I've seen before.  He can see a
> scanner, but there is a question mark in the (incomplete) output of
> sane-find-scanner.  It's a Canon lide 60 (genesys backend).  I have
> bodged the permissions on /proc/bus/usb/001/002 to allow all rw, but no
> difference.  It's running 2.6.15, with udev, not hotplug.
> 
> aft:/home/dr# sane-find-scanner -q
> found USB scanner (vendor=0x04a9 [Canon], product=0x221c [CanoScan],
> chip=GL841) at libusb:001:002
> aft:/home/dr# su dr
> dr@aft:~$ sane-find-scanner -q
> found USB scanner (vendor=0x04a9, product=0x221c, chip=GL841?) at
> libusb:001:002
> dr@aft:~$ id
> uid=1001(dr) gid=513(Domain Users)
> groups=46(plugdev),110(scanner),111(saned),513(Domain Users)
> dr@aft:~$ ls -l /proc/bus/usb/001/002
> -rw-rw-rw- 1 root root 57 2006-07-02 17:26 /proc/bus/usb/001/002
> dr@aft:~$ scanimage --version
> scanimage (sane-backends) 1.0.17; backend version 1.0.17
> dr@aft:~$ uname -a
> Linux aft 2.6.15-1-k7 #2 Mon Mar 6 15:42:39 UTC 2006 i686 GNU/Linux
> 
> Any advice would be appreciated.
> 
> Antony
> 


-- 
PrayingForIsrael.net
http://www.prayingforisrael.net/

Messianic E-Cards.com
http://www.messianicecards.com/


Reply via email to