[sane-devel] Setting up a Control message

2007-02-15 Thread Gerald Murray
Rene:

The log that you sent me cgb1x1.log was very nearly worthless.
The log showed 2644 URBS out, 639 of those were URB_FUNCTION_RESET_PIPE
ending with 3 URB_FUNCTION_ABORT_PIPE out, and 3 back.
That is about 1 in 4 urbs were resets.
Use only a scanner log that ends in a successful scan, best is a
small scan.

You could get information on the bulk urbs by the command

grep -n "PipeHandle" cgb1x1.log
bulk endpoints are 81 and 02

I can not encourage you to continue at this point.
You are free to do so, of course.  The minimum information
needed would be documentation on the controller chip: the
registers and what the registers are used for.  With the genesys
backend there was documentation.  So register - value pairs can
be identified, and adjustments can be made from there.  Without
that document it is work best left to the blind.  The level of
difficulty is too steep to spend time on a manufacturer/device
that is not documented; better to work with a scanner that is
documented.

best regards,

Gerald





[sane-devel] Formulardaten

2007-02-15 Thread cgi-mai...@kundenserver.de


===
== Neuer Eintrag
===

  
---
-- Formular: 'adddev'
---

1. Your email address:
   'alek...@nedorezov.com'
2. Manufacturer (e.g. "Mustek"):
   'Genius'
3. Model name (e.g. ScanExpress 1200UB):
   'ColorPage Slim 1200'
4. Bus type:
   'USB'
5. Vendor id (e.g. 0x001):
   '0x0458'
6. Product id (e.g. 0x0002):
   '0x201E'
7. Chipset (e.g. lm9831):
   'gt6816'
8. Comments (e.g. similar to Mustek 1234):
   'Hello,

Works  with following modifications on gtxx_devices.c 
Scanner looks like similar as  Plustek OpticSlim 2400


static GT68xx_Model genius_colorpageslim_1200_model = {
  "genius-colorpageslim-1200",  /* Name */
  "Genius",  /* Device vendor string */
  "ColorPage Slim 1200",/* Device model name */
  "Cis3r5b1.fw",/* Name of the firmware file */
  SANE_FALSE,   /* Dynamic allocation flag */

  &mustek_gt6816_command_set,   /* Command set used by this scanner */

   1200, /* maximum optical sensor resolution */
   2400, /* maximum motor resolution */
   1200,  /* base x-res used to calculate geometry */
   1200, /* base y-res used to calculate geometry */
   1200, /* if ydpi is equal or higher, disable 
backtracking */
   SANE_FALSE,   /* Use base_ydpi for all resolutions */



  {1200, 600, 300, 150, 100, 50, 0},/* possible x-resolutions */
  {2400,1200, 600, 300, 150, 100, 50, 0},   /* possible y-resolutions */
  {16, 12, 8, 0},   /* possible depths in gray mode */
  {16, 12, 8, 0},   /* possible depths in color mode */

  SANE_FIX (0.5),   /* Start of scan area in mm  (x) */
  SANE_FIX (8.0),   /* Start of scan area in mm (y) */
  SANE_FIX (218.0), /* Size of scan area in mm (x) */
  SANE_FIX (299.0), /* Size of scan area in mm (y) */

  SANE_FIX (0.0),   /* Start of white strip in mm (y) */
  SANE_FIX (9.5),   /* 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 (0.0),   /* Size of scan area in TA mode in mm (x) */
  SANE_FIX (0.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) */

  0, 0, 0,  /* RGB CCD Line-distance correction in pixel */
  0,/* CCD distcance for CCD with 6 lines) */

  COLOR_ORDER_RGB,  /* Order of the CCD/CIS colors */
  {0x19, 0x1a, 0x18, 0x14, 0x18, 0x12}, /* Default offset/gain */
  {0x548, 0x513, 0x48d},/* Default exposure parameters */
  SANE_FIX (1.5),   /* Default gamma value */

  SANE_TRUE,/* Is this a CIS scanner? */
  GT68XX_FLAG_ALWAYS_LINEMODE | GT68XX_FLAG_SE_2400
};

'
9. Data (e.g. sane-find-scanner -v -v):
   '
bLength   18
bDescriptorType   1
bcdUSB1.10
bDeviceClass  0
bDeviceSubClass   0
bDeviceProtocol   0
bMaxPacketSize0   64
idVendor  0x0458
idProduct 0x201E
bcdDevice 5.01
iManufacturer 0 ()
iProduct  1 (Genius CP-Slim 1200)
iSerialNumber 0 ()
bNumConfigurations1
 
 bLength  9
 bDescriptorType  2
 wTotalLength 32
 bNumInterfaces   1
 bConfigurationValue  1
 iConfiguration   0 ()
 bmAttributes 160 (Remote Wakeup)
 MaxPower 500 mA
  
   
   bLength9
   bDescriptorType4
   bInterfaceNumber   0
   bAlternateSetting  0
   bNumEndpoints  2
   bInterfaceClass255
   bInterfaceSubClass 255
   bInterfaceProtocol 255
   iInterface 0 ()

bLength   7
bDescriptorType   5
bEndpointAddress  0x81 (in 0x01)
bmAttributes  2 (bulk)
wMaxPacketSize64
bInterval 0 ms
bRefresh  0
bSynchAddress 0

bLength   7
bDescriptorType   5
bEndpointAddress  0x02 (out 0x02)
bmAttributes  2 (bulk)
wMaxPacketSize64
bInterval 0 ms
bRefresh  0
bSynchAddress 0


checking for GT-6801 ...
this is not a GT-6801 (bDeviceClass = 0)
checking for GT-6816 ...


found USB scanner (vendor=0x0458, product=0x201e [Genius CP-Slim 1200], 
chip=GT-6816) at libusb:001:007
'