[sane-devel] CanoScan Lide 110 on Solaris 10 (10/09) SPARC

stef stef.dev at free.fr
Tue Mar 15 21:18:16 UTC 2011


Le Tuesday 15 March 2011 14:27:14 Olaf Zimmermann, vous avez écrit :
> Scanimage (32-bit build) conks out at genesys_low.c, line 391
> (value=0xffbfe3ef, according to my debugger; looks odd).
> Output from scanimage is as follows:
> [snip]
> [genesys_gl124] gl124_init: value=0x00
> [genesys_gl124] gl124_init: device is USB2.0
> [sanei_usb] sanei_usb_control_msg: rtype = 0xc0, req = 4, value = 142,
> index = 1570, len = 2
> usb_control_msg():
> usb_send_msg():
>         requesttype 0xc0
>         request    0x4
>         value      0x8e
>         index      0x622
>         size       0x2
> usb_do_io(): size=0x8 flag=1
> data dump:
> 00000000        c0 04 8e 00 22 06 02 00
> usb_do_io(): amount=8
> usb_send_msg(): rval=8
> usb_do_io(): size=0x2 flag=0
> data dump:
> 00000000        00 55
> usb_do_io(): amount=2
> usb_control_msg(): additional 0x2 bytes
> [sanei_usb] 000 00 55                                           .U
> 
> [genesys_low] sanei_genesys_read_gl847_register(0x06)=0x55
> [genesys_low] sanei_genesys_read_gl847_register: invalid read, scanner
> unplugged ?
> scanimage: open of device genesys:libusb:/dev/usb:4a9.1909/0 failed:
> Error during device I/O
> [dll] sane_exit: exiting
> [snip]
> BTW, the scanner works elsewhere (MS), same cable etc.
> Any suggestions?
> 
> 
> --
> 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

	Hello,

	the following test is failing in sanei_genesys_read_gl847_register():  
if((value & 0xff00) != 0x5500)
    {
      DBG (DBG_error,"sanei_genesys_read_gl847_register: invalid read, scanner 
unplugged ?\n");
      status=SANE_STATUS_IO_ERROR;
    }

	While the bytes (00 55) from USB are correct. I think this is an 
endianess issue in code. What is the CPU running the code ?

Regards,
	Stef



More information about the sane-devel mailing list