[sane-devel] Error during device I/O running saned on WL-500GP under OpenWRT using libusb
Changing to Kernel 2.6 could only be done, to do a test on it, if it is a problem that has to do with the kernel, cause I don't know what to test else... Under Kernel 2.6 the Broadcom device, that is used in the WL-500GP for W-LAN is not supported. So I could test it by using the LAN Interface only. Stingbyte
[sane-devel] Error during device I/O running saned on WL-500GP under OpenWRT using libusb
Hello @ all. I am running latest sane-backends for OpenWRT Kamikaze Kernel 2.4 using libusb (also from the OpenWRT package). The scanner gets detected successfully by sane-scanner-find. But when I try to run scanimage -d pixma it gives me the following: [full log @ http://stingbyte.com/sane_debug.txt] [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [...] scanimage: sane_read: Error during device I/O I have seen, that there was a similiar problem reported: http://lists.alioth.debian.org/pipermail/sane-devel/2007-March/018818.html There was the tip, to add a line in backend/pixma_mp150.c like this: pixma_sleep(100); /* == INSERT THIS LINE */ I did this, now the scanner runs the full initialization process, means it scans the whole bed one time and then adjusts and remains in waiting position. Here the log output after editing pixma_mp150.c: [...] [pixma] IN T=4.455 len=8 [pixma] :06 06 00 00 00 00 00 00 [pixma] [sanei_usb] sanei_usb_write_bulk: trying to write 16 bytes [sanei_usb] : F3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0C . .. [sanei_usb] sanei_usb_write_bulk: wanted 16 bytes, wrote 16 bytes [pixma] OUT T=4.457 len=16 [pixma] :f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c [pixma] [sanei_usb] sanei_usb_read_bulk: trying to read 20 bytes [sanei_usb] : 06 06 00 00 00 00 00 00 01 00 00 00 03 00 02 00 [sanei_usb] 0010: 00 21 00 D9 .!.. [sanei_usb] sanei_usb_read_bulk: wanted 20 bytes, got 20 bytes [pixma] IN T=4.485 len=20 [pixma] :06 06 00 00 00 00 00 00 01 00 00 00 03 00 02 00 [pixma] 0010:00 21 00 d9 [pixma] [pixma] Current status: paper=0 cal=0 lamp=0 busy=33 [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes [...] [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [pixma] WARNING:Timed out in wait_until_ready() [sanei_usb] sanei_usb_write_bulk: trying to write 16 bytes [sanei_usb] : EF 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 . .. [sanei_usb] sanei_usb_write_bulk: wanted 16 bytes, wrote 16 bytes [pixma] OUT T=35.139 len=16 [pixma] :ef 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [pixma] [sanei_usb] sanei_usb_read_bulk: trying to read 8 bytes [sanei_usb] : 06 06 00 00 00 00 00 00 [sanei_usb] sanei_usb_read_bulk: wanted 8 bytes, got 8 bytes [pixma] IN T=35.141 len=8 [pixma] :06 06 00 00 00 00 00 00 [pixma] [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [pixma] Reader task terminated: Connection timed out [pixma] read_image():reader task closed the pipe:0 bytes received, 1683840 bytes expected scanimage: sane_read: Error during device I/O [dll] sane_cancel(handle=0x16a0) [dll] sane_close(handle=0x16a0) [pixma] pixma_close(): Canon PIXMA MP150 [sanei_usb] sanei_usb_close: closing device 0 [dll] sane_exit: exiting [dll] sane_exit: calling backend `pixma's exit function [dll] sane_exit: finished So, compiling and testing would be no problem, but I don't know really what to do next... If somebody could help me? Thanks in advance Stingbyte
[sane-devel] Error during device I/O running saned on WL-500GP under OpenWRT using libusb
are interrupt usb endpoints supported under 2.4 with the chip that is in this box? allan On 12/17/07, fireandy fireandy at covers.de wrote: Hello @ all. I am running latest sane-backends for OpenWRT Kamikaze Kernel 2.4 using libusb (also from the OpenWRT package). The scanner gets detected successfully by sane-scanner-find. But when I try to run scanimage -d pixma it gives me the following: [full log @ http://stingbyte.com/sane_debug.txt] [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [...] scanimage: sane_read: Error during device I/O I have seen, that there was a similiar problem reported: http://lists.alioth.debian.org/pipermail/sane-devel/2007-March/018818.html There was the tip, to add a line in backend/pixma_mp150.c like this: pixma_sleep(100); /* == INSERT THIS LINE */ I did this, now the scanner runs the full initialization process, means it scans the whole bed one time and then adjusts and remains in waiting position. Here the log output after editing pixma_mp150.c: [...] [pixma] IN T=4.455 len=8 [pixma] :06 06 00 00 00 00 00 00 [pixma] [sanei_usb] sanei_usb_write_bulk: trying to write 16 bytes [sanei_usb] : F3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0C . .. [sanei_usb] sanei_usb_write_bulk: wanted 16 bytes, wrote 16 bytes [pixma] OUT T=4.457 len=16 [pixma] :f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c [pixma] [sanei_usb] sanei_usb_read_bulk: trying to read 20 bytes [sanei_usb] : 06 06 00 00 00 00 00 00 01 00 00 00 03 00 02 00 [sanei_usb] 0010: 00 21 00 D9 .!.. [sanei_usb] sanei_usb_read_bulk: wanted 20 bytes, got 20 bytes [pixma] IN T=4.485 len=20 [pixma] :06 06 00 00 00 00 00 00 01 00 00 00 03 00 02 00 [pixma] 0010:00 21 00 d9 [pixma] [pixma] Current status: paper=0 cal=0 lamp=0 busy=33 [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes [...] [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [pixma] WARNING:Timed out in wait_until_ready() [sanei_usb] sanei_usb_write_bulk: trying to write 16 bytes [sanei_usb] : EF 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 . .. [sanei_usb] sanei_usb_write_bulk: wanted 16 bytes, wrote 16 bytes [pixma] OUT T=35.139 len=16 [pixma] :ef 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [pixma] [sanei_usb] sanei_usb_read_bulk: trying to read 8 bytes [sanei_usb] : 06 06 00 00 00 00 00 00 [sanei_usb] sanei_usb_read_bulk: wanted 8 bytes, got 8 bytes [pixma] IN T=35.141 len=8 [pixma] :06 06 00 00 00 00 00 00 [pixma] [sanei_usb] sanei_usb_read_int: trying to read 16 bytes USB error: error submitting URB: Invalid argument [sanei_usb] sanei_usb_read_int: read failed: Invalid argument [pixma] Reader task terminated: Connection timed out [pixma] read_image():reader task closed the pipe:0 bytes received, 1683840 bytes expected scanimage: sane_read: Error during device I/O [dll] sane_cancel(handle=0x16a0) [dll] sane_close(handle=0x16a0) [pixma] pixma_close(): Canon PIXMA MP150 [sanei_usb] sanei_usb_close: closing device 0 [dll] sane_exit: exiting [dll] sane_exit: calling backend `pixma's exit function [dll] sane_exit: finished So, compiling and testing would be no problem, but I don't know really what to do next... If somebody could help me? Thanks in advance Stingbyte -- 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 -- The truth is an offense, but not a sin
[sane-devel] Error during device I/O running saned on WL-500GP under OpenWRT using libusb
Sorry, but what are interrupt usb endpoints? Is it the way, the device is read / written by using libusb? The USB-Chip in the Box is a VIA 6212. Kernel is 2.4.34 used libusb is 0.1.12-1 By searching I found the following: http://www.nabble.com/usb_interrupt_read-with-libusb-0.1.12-and-kernel-2.4.2 7-to4452928.html Also a discussion about libusb with interrupt endpoints, where the person, that states it is not working, receives the same returncode -22 (invalid argument) as I see, when I do a dmesg. So I would have to give it a try with Kernel 2.6.x? Cause I can't find no scanner Kernel module for 2.4.34 for OpenWRT that I could use as an alternative way of getting data from / to the device. I mean..there was not nothing - scanner gets detected and moves around... Stingbyte
[sane-devel] Error during device I/O running saned on WL-500GP under OpenWRT using libusb
if you have the option to use 2.6 kernel, i think you should. allan On 12/17/07, fireandy fireandy at covers.de wrote: Sorry, but what are interrupt usb endpoints? Is it the way, the device is read / written by using libusb? The USB-Chip in the Box is a VIA 6212. Kernel is 2.4.34 used libusb is 0.1.12-1 By searching I found the following: http://www.nabble.com/usb_interrupt_read-with-libusb-0.1.12-and-kernel-2.4.2 7-to4452928.html Also a discussion about libusb with interrupt endpoints, where the person, that states it is not working, receives the same returncode -22 (invalid argument) as I see, when I do a dmesg. So I would have to give it a try with Kernel 2.6.x? Cause I can't find no scanner Kernel module for 2.4.34 for OpenWRT that I could use as an alternative way of getting data from / to the device. I mean..there was not nothing - scanner gets detected and moves around... Stingbyte -- 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 -- The truth is an offense, but not a sin