[sane-devel] Canon LiDE 90

Pierre Willenbrock pierre at pirsoft.dnsalias.org
Mon Jan 14 10:58:05 UTC 2008


Guillaume Gastebois schrieb:
>> Guillaume Gastebois schrieb:
>>> Hello,
>>>
>>> I tried with : SANE_DEBUG_GENESYS_GL841=255 scanimage
>>> --device-name=genesys:libusb:001:005 > toto.pnm
>>>
>>> Result can be found in attachement.
>>>
>>> It locks on last line and did nothing else.
>> It sits in gl841_slow_back_home, genesys_gl841.c:3581-3597. You need to
>> get the head to move and figure out if/how the home position switch is
>> activated. If the motor or the switch can be deactivated, some GPIO is
>> typically responsible for that. The motor and home-switch of my LiDE35
>> need to be enabled using GPIO, and default to off. There is no standard
>> regarding these settings, so you need to go through your usb logs to
>> find a working GPIO-setting-sequence.
>>
>> Hope that helps,
>>  Pierre
> 
> In windows snoop I find this init sequence :
> 


> \x01\x82  \x80
> \x02\x10  \x38
> \x03\x50  \x40
> \x04\x10  \x10
> \x05\x8c  \x40
> \x06\x18  \x18
  \x07      \x00
> \x08\x00  \x00
> \x09\x21  \x10
> \x0a\x00  \x00
> \x0d\x00  \x01
> \x10\x00  \x07
> \x11\x00  \xff
> \x12\x00  \x0e
> \x13\x00  \x89
> \x14\x00  \x0c
> \x15\x00  \xa5
> \x16\x20  \x00
> \x17\x06  \x01
> \x18\x00  \x00
> \x19\xff  \x50
> \x1a\x24  \x00
> \x1c\x00  \x00
> \x1d\x04  \x01
> \x1e\x10  \x10
> \x1f\x04  \x01
> \x20\x02  \x20
> \x21\x10  \x05
> \x22\x7f  \x20
> \x23\x7f  \x20
> \x24\x10  \x05
> \x25\x00  \x00
> \x26\x00  \x04
>
> \x27\x00  \x08
> \x28\x00  
> \x29\xff  \xff
> \x2a\x00
> \x2b\x00
> \x2c\x09  \x04
> \x2d\x60  \xb0
> \x2e\x80  \x80
> \x2f\x80  \x80
> \x30\x00  \x00
> \x31\x10  \x7f
> \x32\x15  \x28
> \x33\x0e  \x8a
> \x34\x40  \x7e
> \x35\x00  \x00
> \x36\x2a  \x3b
> \x37\x30  \xc6
> \x38\x2a  \x4f
> \x39\xf8  \xc1
> \x3c\x02 
> \x3d\x00  \x00
> \x3e\x00  \x00
> \x3f\x00  \x01
> \x52\x02  \x03
> \x53\x04  \x05
> \x54\x02  \x02
> \x55\x04  \x05
> \x56\x02  \x02
> \x57\x04  \x05
> \x58\x0a  \x03
> \x59\x71  \x03
> \x5a\x55  \x40
>
> \x5d\x20
> \x5e\x41  \x02
> \x5f\x40  \x05
> \x60\x00  \x00
> \x61\x00  \x00
> \x62\x00  \x00
> \x63\x00  \x00
> \x64\x00  \x00
> \x65\x00  \x00
> \x66\x00  \xff
> \x67\x80  \x7f
> \x68\x80  \x7f
> \x69\x20  \x05
> \x6a\x20  \x05
> 	\x6b\x03  \x03
> 	\x6c\x02  \x82
> 	\x6d\x80  \x80
> 	\x6e\x7f  \xef
> 	\x6f\xe0  \x80
> \x70\x00  \x00
> \x71\x05  \x00
> \x72\x07  \x00
> \x73\x09  \x00
> \x75\x01  \x00
> \x76\xff  \x00
> \x78\x00  \x00
> \x79\x3f  \x00
> \x7b\x00  \x00
> \x7c\x1e  \x00
> \x7d\x11  \x00
> \x7e\x00  \x00
> \x7f\x50  \x00
> 
> \x80\x00  \x00
> \x81\x00  \x00
> \x82\x0f  \x00
> \x83\x00  \x00
> \x84\x0e  \x00
> \x85\x00  \x00
> \x86\x0d  \x00
> \x87\x00  \x00
> \x88\x00
> \x89\x00
> 
> Is that so different as lide 60 ?

I put a similar result from my scanner next to your result. For the
GPIOs, at least the direction bits are different, so i guess they are
used differently. You may want to write a small test-program for your
scanner, similar to what i did for mine[1], using your usb log. If you
got that to work, you can play around with the gpio pins to figure out
their function. Alternatively, you can take a lot of usb logs and guess
the meaning of the pins.

My scanner(Canon LiDE 35) has these functions, as far as i found out:

pin    function          direction
GPIO1: SCAN button       in
GPIO2: FILE button       in
GPIO3: E-MAIL button     in
GPIO4: COPY button       in
GPIO8: overall power?    out
GPIO9: save power        out
GPIO16: Full resolution  out
GPO17: lamp+home sensor? out
GPO18: extra power?      out

You may find some of these. Especially the "Full/Half resolution"
function should be somewhere.

Regards,
  Pierre

[1] http://pirsoft-dsl-dropzone.de/canon-lide35.tbz2



More information about the sane-devel mailing list