[sane-devel] About GT6801 CCD scanner

Henning Meier-Geinitz henning@meier-geinitz.de
Mon, 9 Dec 2002 21:00:59 +0100


Hi,

On Mon, Dec 09, 2002 at 05:36:20PM +0800, Fan Dan wrote:
>   I have tried and get the correctly Mustek2400usb parameters. Now I can 
> scan Gray and Color Image .

Fine. The latest version of the gt68xx backend should at least detect
your scanner. I'll also add your changed from below, they will be in
the next backend.

> But When I scanner 300dpi or more .

Both in gray and color mode?

> When Scanning , sometime read data will stop, but motor is not stop.

Please show me a log file with an example when this happens
(export SANE_DEBUG_GT68XX=255).

> An other is when I set bytes per line of scanner image is larger than
> 8000, scanner will move motor to start area of scan, and not scan. I
> want to know what's the matter of that.

An you give more details for this? The buffer of the scanner is 16 KB,
so if one scan line gets bigger than that, it won't be able to scan.
So maybe there is the facto 2 involved somewhere.

> static GT68xx_Model
> mustek_2400usb_command_mode={
> 	"mustek-2400usb",			/* 	name		 */
> 	"Mustek",					/*	vendor	 */
> 	"Mustek 2400USB",			/*	model		 */
> 	"P9fw.usb",				/* firmware file name 	 */

Here is a "SANE_FALSE," missing.

> 	&mustek_gt6801_command_set,	/* Model info 		*/
> 
> 	1200,						/* optical_xdpi  */
> 	1200,					/* optical_ydpi 	 */

Not 2400?

> 	1200,						/* base_xdpi 	600 
> 	*/
> 	1200,						/* base_ydpi	 */
> 	1200,					/* ydpi_force_line_mode	 */

Try 50 here, maybe it helps with your above mentioned problem.

> 	SANE_TRUE,				/* use base_ydpi for all 
> 	resolution 	*/				
> 	{600,300,150,100,75,500},		/* xdpi_value		 */
> 	{1200,600,300,100,50},	/*	ydpi_value			 */
> 	{8,0},					/* bpp_gray_values	 */
> 	{8,0},				/* bpp_color_values		 */
> 	SANE_FIX(7.0),			/*	start of scan area in mm */ 
> 	SANE_FIX(12.0),			/*    start of scan area in mm	 */
> 	SANE_FIX(224.0),			/*	width of scan area 
> 	in mm	220		*/
> 	SANE_FIX(300),			/*	high of scan area in mm	 */
> 	SANE_FIX(0.0),			/*	start of white strip in mm */
> 	SANE_FIX(7.0),			/*	start of black mark in mm */
> 	
> 	SANE_FIX(0.0),			/*	start of scan area in TA 
> 	mode in mm	*/
> 	SANE_FIX(0.0),			/*	start of scan area in TA 
> 	mode in mm	*/
> 	SANE_FIX(100.0),			/* 	width of scan area 
> 	in TA mode in mm	*/
> 	SANE_FIX(100.0),			/*	high of scan area in 
> 	TA mode in mm	*/
> 	SANE_FIX(0.0),			/*	start of white strip in TA 
> 	mode in mm	*/
> 
> 	24,						/*	ld_shift_r */
> 	12,					/*	ld_shift_g	 */
> 	0,						/*	ld_shift_b */
> 	0,						/*  ld_shift_double 
> 	*/
> 	
> 	LampOrder_RGB,			/* 	color_order		 */
> 
> 	{0x12,0x06,0x0e,0x03,0x18+1,0x20+5},	/*	AFE param	0x13 
> 	0x04 0x16 0x06 0x0f	
> 0x02*/
> 	{0x157,0x157,0x157},				/*	exposure 
> 	time		*/
> 	
> 	SANE_TRUE						/* GT6801 

Huh? But it is a CCD scanner, isn't it? If you set this to SANE_TRUE,
it's handled as CIS!

Bye,
  Henning