[sane-devel] Help on genesys backend code (LiDE 80)

Parag N(पराग़) panemade at gmail.com
Tue May 30 13:19:47 UTC 2006


Hi,
On 5/30/06, Nikolas Arend <Nikolas.Arend at gmx.net> wrote:
> Hi all,
>
> since I own a (yet unsupported) Canon LiDE 80, I decided to start
> working on the genesys backend and maybe get it up and running.
> Unfortunately, I'm not yet too familiar with the sane backends code and
> am already stuck at the very beginning, so I hoped someone could help me
> at this early stage.
>
> To just see if it does anything, I started (besides checking out latest
> cvs) with adding the following entries in genesys_devices.c:
>
>    static Genesys_Model canon_lide_80_model = {...}    (derived from
> entries for LiDE 50/60)
>
> and an additional line in static Genesys_USB_Device_Entry
> genesys_usb_device_list[] = {...}, which reads
>
>    {0x04a9, 0x2214, &canon_lide_80_model},
>
> with the, I guess, appropriate id's for vendor and model that
> sane-find-scanner tells me.
ok
>
> Also I added
>
>    # Canone LiDE 80
>    usb 0x04a9 0x2214
>
> to /etc/sane.d/genesys.conf.
>
ok
> sane-find-scanner detects the following:
>
>    found USB scanner (vendor=0x04a9 [Canon], product=0x2214 [CanoScan],
> chip=GL841) at libusb:001:004
>
ok
> but scanimage -L says that no scanners were identified. I ran everything
> as root for now to avoid right problems.
>
  Did you recompile and reinstall modified version of SANE?? Also did
you add flag GENESYS_FLAG_UNTESTED in Genesys_Model structure??

> In /proc/bus/usb/devices, however, the scanner is listed as follows
>
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
> D:  Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  1
> P:  Vendor=04a9 ProdID=2214 Rev= 3.02
> S:  Manufacturer=Canon
> S:  Product=CanoScan
> C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
> I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl=8ms
>
> I'm no usb wizard, but "Driver=(none)" doesn't seem good. Could that be
> a problem?
>
> Did I miss something very basic? Thanks for any hints!
  you may need to add your model specific code. Check genesys_gl841.c
>
     In genesys_devices.c file you will find other structures also
like motor,sensor specific information of your model need to be filled
there. For that you need to download usbsnoppy from
http://benoit.papillault.free.fr/usbsnoop/doc.php.en
and use that on Windows and capture some log. For that you can search
archives of this mailing list about how to capture USB packets on
windows and then apply awk scripts to generate decoded log and use
that to fill those structures. Attaching those scripts that need to be
used on linux with use of usb packets captured windows log file.
Regards,
Parag.

> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distnew.tar.gz
Type: application/x-gzip
Size: 10593 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060530/33ef259d/distnew.tar.bin


More information about the sane-devel mailing list