[sane-devel] HP G2410 SCANNER

stef stef.dev at free.fr
Sat Aug 2 20:41:27 UTC 2008


Le Monday 28 July 2008 19:42:50 Robert John Morton, vous avez écrit :
> Re: recent mails from: m. allan noah, amol verule, Volnei...
> stef, please could you help?
>
> I am using Ubuntu Linux 8.04 (Hardy Heron). I have a HP G2410 scanner.
> It does not work with sane at the moment. I am trying to get the
> information necessary to configure the sane back-end for this scanner.
> The scanner uses the GL646 chip set. But it is called the GL646_HP chip
> set. I think the HP at the end indicates that a ROM within the chip set
> has been programmed by Hewlett Packard specially for their scanner. It
> probably contains their proprietary commands and responses.
>
> I have used the HP G2410 scanner on my Windows XP computer. It works
> perfectly. I installed UsbSnoop on my Windows XP computer. I have used
> this to monitor the USB traffic between the computer and the scanner. I
> recorded this data for 3 different types of scan: colour, grey-scale and
> black and white. I recorded the data for these scans in 3 corresponding
> files: UsbSnoop_colour.log UsbSnoop_grey.log UsbSnoop_black_white.log
>
> I copied these 3 files to my Ubuntu Linux computer. I downloaded stef's
> scripts. I ran stef's script decode.sh for each of the 3 log files using
> the commands:
> ./decode.sh UsbSnoop_colour.log
> ./decode.sh UsbSnoop_grey.log
> ./decode.sh UsbSnoop_black_white.log
>
> Unfortunately, I got no results. The 3 output files
> UsbSnoop_colour.log.decode, UsbSnoop_grey.log.decode,
> UsbSnoop_black_white.log.decode were all empty.
>
> Below is the full terminal output for running the scrip for the 3 files.
> Does anybody have any ideas about what I have done wrong? I do not know
> how to proceed further at the moment.
>
> Rob Morton
>
> Terminal output...
>
> root at smoothneddy:/home/rob/Personal/computer/drivers/HP
> Scanner/stefs_stuff/dist# ./decode.sh UsbSnoop_black_white.log
> reformatting data ...
> compacting URBs ...
> sorting ...
> reordering in/out ...
> awk: program limit exceeded: maximum number of fields size=32767
>    FILENAME="-" FNR=192 NR=192
> depacking ...
> parsing ...
> awk: parse1.awk: line 105: regular expression compile failed (missing
> operand)
> * Next urb *
> executing motor2.awk...
> executing genesys_get_status.awk...
> awk: genesys_get_status.awk: line 77: function strtonum never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> executing testR70.awk...
> executing genesys_fe_write_data.awk...
> executing genesys_set_buffer_address.awk...
> executing genesys_set_buffer_address2.awk...
> executing genesys_read_feed_steps.awk...
> executing genesys_bulk_write_data.awk...
> awk: genesys_bulk_write_data.awk: line 49: function strtonum never defined
> awk: genesys_bulk_write_data.awk: line 49: function strtonum never defined
> executing genesys_bulk_write_next.awk...
> awk: genesys_bulk_write_next.awk: line 74: function strtonum never defined
> awk: genesys_bulk_write_next.awk: line 74: function strtonum never defined
> executing genesys_bulk_read_data.awk...
> awk: genesys_bulk_read_data.awk: line 68: function strtonum never defined
> awk: genesys_bulk_read_data.awk: line 68: function strtonum never defined
> executing genesys_bulk_read_next.awk...
> awk: genesys_bulk_read_next.awk: line 72: function strtonum never defined
> awk: genesys_bulk_read_next.awk: line 72: function strtonum never defined
> executing genesys_bulk_read_next2.awk...
> awk: genesys_bulk_read_next2.awk: line 68: function strtonum never defined
> awk: genesys_bulk_read_next2.awk: line 68: function strtonum never defined
> executing genesys_bulk_read_next3.awk...
> awk: genesys_bulk_read_next3.awk: line 70: function strtonum never defined
> awk: genesys_bulk_read_next3.awk: line 70: function strtonum never defined
> executing genesys_bulk_write_register2.awk...
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> executing genesys_bulk_write_register.awk...
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> executing bulk_motor.awk...
> executing genesys_read_register.awk...
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
>
>
> root at smoothneddy:/home/rob/Personal/computer/drivers/HP
> Scanner/stefs_stuff/dist# ./decode.sh UsbSnoop_colour.log
> reformatting data ...
> compacting URBs ...
> sorting ...
> reordering in/out ...
> awk: program limit exceeded: maximum number of fields size=32767
>    FILENAME="-" FNR=192 NR=192
> depacking ...
> parsing ...
> awk: parse1.awk: line 105: regular expression compile failed (missing
> operand)
> * Next urb *
> executing motor2.awk...
> executing genesys_get_status.awk...
> awk: genesys_get_status.awk: line 77: function strtonum never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> executing testR70.awk...
> executing genesys_fe_write_data.awk...
> executing genesys_set_buffer_address.awk...
> executing genesys_set_buffer_address2.awk...
> executing genesys_read_feed_steps.awk...
> executing genesys_bulk_write_data.awk...
> awk: genesys_bulk_write_data.awk: line 49: function strtonum never defined
> awk: genesys_bulk_write_data.awk: line 49: function strtonum never defined
> executing genesys_bulk_write_next.awk...
> awk: genesys_bulk_write_next.awk: line 74: function strtonum never defined
> awk: genesys_bulk_write_next.awk: line 74: function strtonum never defined
> executing genesys_bulk_read_data.awk...
> awk: genesys_bulk_read_data.awk: line 68: function strtonum never defined
> awk: genesys_bulk_read_data.awk: line 68: function strtonum never defined
> executing genesys_bulk_read_next.awk...
> awk: genesys_bulk_read_next.awk: line 72: function strtonum never defined
> awk: genesys_bulk_read_next.awk: line 72: function strtonum never defined
> executing genesys_bulk_read_next2.awk...
> awk: genesys_bulk_read_next2.awk: line 68: function strtonum never defined
> awk: genesys_bulk_read_next2.awk: line 68: function strtonum never defined
> executing genesys_bulk_read_next3.awk...
> awk: genesys_bulk_read_next3.awk: line 70: function strtonum never defined
> awk: genesys_bulk_read_next3.awk: line 70: function strtonum never defined
> executing genesys_bulk_write_register2.awk...
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> executing genesys_bulk_write_register.awk...
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> executing bulk_motor.awk...
> executing genesys_read_register.awk...
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
>
>
> root at smoothneddy:/home/rob/Personal/computer/drivers/HP
> Scanner/stefs_stuff/dist# ./decode.sh UsbSnoop_grey.log
> reformatting data ...
> compacting URBs ...
> sorting ...
> reordering in/out ...
> awk: program limit exceeded: maximum number of fields size=32767
>    FILENAME="-" FNR=188 NR=188
> depacking ...
> parsing ...
> awk: parse1.awk: line 105: regular expression compile failed (missing
> operand)
> * Next urb *
> executing motor2.awk...
> executing genesys_get_status.awk...
> awk: genesys_get_status.awk: line 77: function strtonum never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> awk: genesys_get_status.awk: line 77: function and never defined
> executing testR70.awk...
> executing genesys_fe_write_data.awk...
> executing genesys_set_buffer_address.awk...
> executing genesys_set_buffer_address2.awk...
> executing genesys_read_feed_steps.awk...
> executing genesys_bulk_write_data.awk...
> awk: genesys_bulk_write_data.awk: line 49: function strtonum never defined
> awk: genesys_bulk_write_data.awk: line 49: function strtonum never defined
> executing genesys_bulk_write_next.awk...
> awk: genesys_bulk_write_next.awk: line 74: function strtonum never defined
> awk: genesys_bulk_write_next.awk: line 74: function strtonum never defined
> executing genesys_bulk_read_data.awk...
> awk: genesys_bulk_read_data.awk: line 68: function strtonum never defined
> awk: genesys_bulk_read_data.awk: line 68: function strtonum never defined
> executing genesys_bulk_read_next.awk...
> awk: genesys_bulk_read_next.awk: line 72: function strtonum never defined
> awk: genesys_bulk_read_next.awk: line 72: function strtonum never defined
> executing genesys_bulk_read_next2.awk...
> awk: genesys_bulk_read_next2.awk: line 68: function strtonum never defined
> awk: genesys_bulk_read_next2.awk: line 68: function strtonum never defined
> executing genesys_bulk_read_next3.awk...
> awk: genesys_bulk_read_next3.awk: line 70: function strtonum never defined
> awk: genesys_bulk_read_next3.awk: line 70: function strtonum never defined
> executing genesys_bulk_write_register2.awk...
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> awk: genesys_bulk_write_register2.awk: line 738: function strtonum never
> defined
> executing genesys_bulk_write_register.awk...
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> awk: genesys_bulk_write_register.awk: line 734: function strtonum never
> defined
> executing bulk_motor.awk...
> executing genesys_read_register.awk...
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> awk: genesys_read_register.awk: line 734: function strtonum never defined
> root at smoothneddy:/home/rob/Personal/computer/drivers/HP
> Scanner/stefs_stuff/dist#

	Hello,

	I'm replying only now since I'm back from holidays. The 'awk' program on your 
linux box mimics too well the 'regular' awk, so it fails on line length and 
on the strtonum function. Change the scripts to use 'gawk' (ie GNU awk) 
instead, they will work better.

Regards,
	Stef




More information about the sane-devel mailing list