<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/06/2014 14:19, Myroslav Kavatsyuk
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1401625193.15679.YahooMailNeo@web140705.mail.bf1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:12pt">
        <div style="" class="">Dear Stef,<br style="">
          <br style="" class="">
          Finally I managed to test the CS8400F. In the git version of
          SANE there is<br style="" class="">
          some implementation of the scanner. After adding proper line
          to genesys.conf<br style="" class="">
          I managed to make first scan with the CS8400F. Scanning was
          invoked using<br style="" class="">
          scanimage. Here are my observations:<br style="" class="">
          * If I do not specify size of a document to scan (no -x and -y
          options), the scanner<br style="" class="">
            head bumps into movement limiter (goes too far)<br style=""
            class="">
          * Scanner does not perform calibration and does not warm-up
          the lamp.<br style="" class="">
             It starts scanning immediately after the scanimage command.
          Once I limited<br style="" class="">
             scanning region with -x and -y options, I got image with
          vertical stripes (luck<br style="" class="">
             of CCD gain calibration?)<br style="" class="">
          <br style="" class="">
          I am ready to work on the backend to make it usable. However,
          I need your help.<br style="" class="">
          In the SANE digest (vol 74, issue 19) you wrote: "Adding
          support for the Canoscan<br style="" class="">
          8400F will be a matter of tuning the settings structures in
          genesys_devices.c and<br style="" class="">
          genesys_gl843.h. Then maybe adapt the code in genesys_gl843.c
          to support the<br style="" class="">
          possible differences for this model."<br style="" class="">
          Can you give me more specific hints, where should I add
          calibration, warming up?<br style="" class="">
          I have running WindowsXP in the virtualbox with the usbsnoop,
          so I can get any<br style="" class="">
          required usb logs.</div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          serif; background-color: transparent; font-style: normal;"
          class=""><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
          serif; background-color: transparent; font-style: normal;"
          class="">Thank you in advance,<br style="" class="">
          Best regards,<br style="" class="">
          Myroslav</div>
        <div style="" class=""><br style="" class="">
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
        Hello,<br>
    <br>
        calibration is currently desactived because of the
    GENESYS_FLAG_NO_CALIBRATION . Remove it to activate calibration.
    Since there are already 2 CCD scanners supported (KV-SS080 and HP
    G4050), you'll have to setup entries in data tables held in
    genesys_gl843:<br>
        - Sensor_Profile sensors[]<br>
        - Motor_Profile gl843_motors[]<br>
        - slope table such a uint32_t kvss080[]<br>
    <br>
    Data will have to be extracted from usb logs.  The dev cycle is run
    the backend with your changes, compare with usb logs, change code
    again to fix differences .... until it works.<br>
    <br>
    Sometimes you'll may have to add specific behavior for your scanner
    in genesys_gl843.c see the use of CCD_G4050, CCD_KVSS080, etc...<br>
    <br>
        running 'doxygen genesys-doxygen.conf' in the doc/ sub dir will
    generate doxygen info for all the backend.<br>
    <br>
    Regards,<br>
        Stef<br>
    <br>
  </body>
</html>