[sane-devel] [genesys backend] HP 4850

Dariusz Lipski darek.lipski at gmail.com
Mon Jun 27 17:48:47 UTC 2011


> 	Hello,
> 
> 	looks similar to the G4050/G4010 which have some support (up to 600 dpi
> uncalibrated). You might clone the device and change USB id to the HP4850.
> Don't forget the genesys.conf.in file. Be aware that genesys.conf isn't
> overwritten by the install procedure, and you'll have to install the new
> version manually.
> 
> Regards,
> 	Stef

Hello,

I have done it before so currently I have something like this :

=======================
genesys.conf :

# HP 4850
usb 0x03f0 0x1b05


=======================
genesys_devices.c

static Genesys_Model hp4850c_model = {
  "hewlett-packard-scanjet-4850c",	/* Name */
  "Hewlett Packard",		/* Device vendor string */
  "ScanJet 4850c",		/* Device model name */
  GENESYS_GL843,
  NULL,

  { 2400, 1200, 600, 400, 300, 200, 150, 100, 0}, /* TODO when settled down, 
add 800 and 1600 */
  { 2400, 1200, 600, 400, 300, 200, 150, 100, 0}, /* TODO 4800 available */
  {16, 8, 0},			/* possible depths in gray mode */
  {16, 8, 0},			/* possible depths in color mode */

  SANE_FIX (6.55),		/* Start of scan area in mm  (x) */
  SANE_FIX (15.00),		/* Start of scan area in mm (y) */
  SANE_FIX (223.0),		/* Size of scan area in mm (x) */
  SANE_FIX (315.0),		/* Size of scan area in mm (y) */

  SANE_FIX (3.0),		/* Start of white strip in mm (y) */
  SANE_FIX (0.0),		/* Start of black mark in mm (x) */

  SANE_FIX (0.0),		/* Start of scan area in TA mode in mm (x) */
  SANE_FIX (0.0),		/* Start of scan area in TA mode in mm (y) */
  SANE_FIX (100.0),		/* Size of scan area in TA mode in mm (x) */
  SANE_FIX (100.0),		/* Size of scan area in TA mode in mm (y) */

  SANE_FIX (0.0),		/* Start of white strip in TA mode in mm (y) */

  SANE_FIX (0.0),		/* Size of scan area after paper sensor stops
				   sensing document in mm */
  SANE_FIX (0.0),		/* Amount of feeding needed to eject document 
				   after finishing scanning in mm */

  0, 32, 48,			/* RGB CCD Line-distance correction in pixel */

  COLOR_ORDER_RGB,		/* Order of the CCD/CIS colors */

  SANE_FALSE,			/* Is this a CIS scanner? */
  SANE_FALSE,			/* Is this a sheetfed scanner? */
  CCD_G4050,
  DAC_G4050,
  GPO_G4050,
  MOTOR_G4050,
  GENESYS_FLAG_NO_CALIBRATION |
  GENESYS_FLAG_LAZY_INIT | 	/* Which flags are needed for this scanner? */
  GENESYS_FLAG_SKIP_WARMUP | 
  GENESYS_FLAG_OFFSET_CALIBRATION |
  GENESYS_FLAG_CUSTOM_GAMMA,
  GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW,
  280,
  400
};

static Genesys_USB_Device_Entry genesys_usb_device_list[] = {
...........
  {0x03f0, 0x1b05, &hp4850c_model},
............
}

And this config doesn't work :) Any other ideas what can I try (debug sth) ?




More information about the sane-devel mailing list