[sane-devel] Regarding libUSB API (configurations)
Hi' every one. This mail is primarily directed to those of you who's writing USB applications. My question meight seem simple, however the solution does elude me. In my log file it takes my scanner 80ms to select the configuration Quote from log: [5 ms]URB 4 going down -- URB_FUNCTION_SELECT_CONFIGURATION: ConfigurationDescriptor = 0x812d7c78 (configure) ConfigurationDescriptor : bLength = 9 ConfigurationDescriptor : bDescriptorType = 0x0002 ConfigurationDescriptor : wTotalLength= 0x0027 ConfigurationDescriptor : bNumInterfaces = 0x0001 ConfigurationDescriptor : bConfigurationValue = 0x0001 ConfigurationDescriptor : iConfiguration = 0x ConfigurationDescriptor : bmAttributes= 0x00c0 ConfigurationDescriptor : MaxPower= 0x ConfigurationHandle = 0x Interface[0]: Length= 76 Interface[0]: InterfaceNumber = 0 Interface[0]: AlternateSetting = 0 [85 ms] UsbSnoop - MyInternalIOCTLCompletion(ad282db0) : fido=, Irp=814469a0, Context=821c7208, IRQL=0 [85 ms]URB 4 coming back End quote. Well that's what my log says, my question is: How in the world do I make a program call to do this? That is, is there some API to make the URB_FUNCTION_SELECT_CONFIGURATION call to the USB device (my scanner in this case), or does libusb do this when getting the device? Kind regards Ren? Kjellerup -- as life grows older, I gain experience.
[sane-devel] (no subject)
Hello, m. allan noah wrote at Tue, 10 Jul 2007 14:33:27 -0400 : get a debug log at level 30 instead, and send that to me directly instead of this mailing list. also please give the name of your OS. I attach the logs. To reduce data, I set x and y to 100 and resolution (x and y) to 50. ok- the file /tmp/test-1-flatbed-0001.pnm was scanned successfully, but then scanadf tried to grab a second page (cause that's what it is for), and the scanner choked on the 'scan' command. i can see a few ways to 'fix' this- 1. i send some sort of reset command after the scan when using the flatbed. then a second call to scan should succeed. however, this will cause scanadf to run forever, making repeated scans of the same paper. 2. i send a 'SANE_STATUS_NODOCS' on the second flatbed scan. this will make scanadf stop trying, but i dont know what return value it sets. 3. you could send the -s and -e options to scanadf to only pull one image when using flatbed using the options -e and -s (setting each to one) works fine. Now the page is scanned and the return code is zero. markus at hydorn /usr/local/packages/sane-cvs/bin/scanadf --source Flatbed --mode Color -o /tmp/test-1-flatbed-000%d.pnm -e 1 -s 1 ; echo $? [sanei_debug] Setting debug level of fujitsu to 5. [fujitsu] sane_init: fujitsu backend 1.0.49, from sane-backends 1.0.18-cvs Scanned document /tmp/test-1-flatbed-0001.pnm Scanned 1 pages 0 markus at hydorn 1112 4. use scanimage instead of scanadf when using the flatbed. allan Thanks for your help. Markus -- -- Markus Haberkorn mail : Markus_Haberkorn at genua.de Gesellschaft f?r UNIX- und tel. : +49 (89) 991950-134 Netzwerkadministration mbH fax. : +49 (89) 991950-999 Domagkstrasse 7www : http://www.genua.de D-85551 Kirchheim --
[sane-devel] HP Scanjet G4010 Photo Scanner and SANE?
Is anyone working to get the HP G4010 scanner working with SANE? If so, what is the status please? It's a 6 colour, 96 bit scanner. (Can the SANE architecture even handle this number of bits and colours?) If the G4010 is not supported, can anyone suggest the best SANE compatible photo/negative scanner? It is okay to email suggestions directly to me to avoid cluttering the development list. Regards John
[sane-devel] [ANNOUNCE] New SANE backend 'hp5590' for HP ScanJet%0A%095550/5590/7650
I have downloaded alioth.debian.org/frs/download.php/1669/sane-backends-1.0.18.tar.gz, not being sure it is the backends cvs. However, having followed the installation procedure, it does not recognize the hp5590 (no SANE devices found). There is no trace of backend dedicated to the 5590, either in the gunzip produced 'sane-backends-1.0.18' directory or in the /usr/lib/sane. the /sane-backends-1.0.18/tools/edve/libsane.rules do mention the hp5590 as usb device, so it maybe means that it is embedded in something else, so that one should not expect a specific backend file ? Maybe the solution lies in this note : # To run a script when your device is plugged in, add RUN=/path/to/script # to the appropriate rule. but I would not know how to use it or if a script could be used do make the rule active. In case, I added 'usb 0x03f0 0x1705' in /etc/sane/d/hp.conf, with no effect. Yet, the scanner appears in lsubs as 'Bus 003 Device 003: ID 03f0:1705 Hewlett-Packard' and sane-find-scanner gives 'found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1705 [hp scanjet scanner]) at libusb:003:003'. It is not a matter of permission, scanimage -L gives no result under root either, even after 'chmod a+rw /proc/bus/usb/003/003'. I have suppressed a prior version of sane and reinstalled, with no success. Any clue ? Thanks Le Fri, 06 Jul 2007 19:56:10 +0200, m. allan noah kitno455 at gmail.com a ?crit: hp5590 backend has already been added to sane backends cvs, so just check that out- you dont need the diff. allan On 7/6/07, Frank Billot frank.billot at neuf.fr wrote: the bin produces a syntax error : ./sane-backends-hp5590-cvs070411.diff-0001.bin: 2: Syntax error: ) unexpected is there a gz version of sane-backends-hp5590-cvs070411.diff.gz available somewhere or is the problem not a version matter ? thanks -- Frank Billot
[sane-devel] [ANNOUNCE] New SANE backend 'hp5590' for HP ScanJet%0A%095550/5590/7650
You should try latest CVS version (available from SANE website). 1.0.18 doesn't include support of your scanner. On 7/12/07, Frank frank.billot at free.fr wrote: I have downloaded alioth.debian.org/frs/download.php/1669/sane-backends-1.0.18.tar.gz, not being sure it is the backends cvs. However, having followed the installation procedure, it does not recognize the hp5590 (no SANE devices found). There is no trace of backend dedicated to the 5590, either in the gunzip produced 'sane-backends-1.0.18' directory or in the /usr/lib/sane. the /sane-backends-1.0.18/tools/edve/libsane.rules do mention the hp5590 as usb device, so it maybe means that it is embedded in something else, so that one should not expect a specific backend file ? Maybe the solution lies in this note : # To run a script when your device is plugged in, add RUN=/path/to/script # to the appropriate rule. but I would not know how to use it or if a script could be used do make the rule active. In case, I added 'usb 0x03f0 0x1705' in /etc/sane/d/hp.conf, with no effect. Yet, the scanner appears in lsubs as 'Bus 003 Device 003: ID 03f0:1705 Hewlett-Packard' and sane-find-scanner gives 'found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1705 [hp scanjet scanner]) at libusb:003:003'. It is not a matter of permission, scanimage -L gives no result under root either, even after 'chmod a+rw /proc/bus/usb/003/003'. I have suppressed a prior version of sane and reinstalled, with no success. Any clue ? Thanks Le Fri, 06 Jul 2007 19:56:10 +0200, m. allan noah kitno455 at gmail.com a ?crit: hp5590 backend has already been added to sane backends cvs, so just check that out- you dont need the diff. allan On 7/6/07, Frank Billot frank.billot at neuf.fr wrote: the bin produces a syntax error : ./sane-backends-hp5590-cvs070411.diff-0001.bin: 2: Syntax error: ) unexpected is there a gz version of sane-backends-hp5590-cvs070411.diff.gz available somewhere or is the problem not a version matter ? thanks -- Frank Billot -- 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 -- Ilia Sotnikov
[sane-devel] fujitsu illegal request: invalid field in parm list
In reading the recent messages I've seen a couple of cases with Fujitsu backend like (http://lists.alioth.debian.org/pipermail/sane-devel/2007-April/018982.html) and (http://article.gmane.org/gmane.comp.graphics.scanning.sane.devel/10792) where .. linux-v73k:/home/tmcguire # export SANE_DEBUG_FUJITSU=5 linux-v73k:/home/tmcguire # scanimage --format=tif tm.tif [sanei_debug] Setting debug level of fujitsu to 5. [fujitsu] sane_init: fujitsu backend 1.0.33, from sane-backends 1.0.18 [fujitsu] xres=600, tlx=0, brx=10200, pw=10200, maxx=14592 [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800 [fujitsu] xres=600, tlx=0, brx=10208, pw=10200, maxx=14592 [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800 [fujitsu] xres=600, tlx=0, brx=10208, pw=10200, maxx=14592 [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800 [fujitsu] xres=600, tlx=0, brx=10208, pw=10200, maxx=14592 [fujitsu] yres=600, tly=0, bry=13200, ph=13200, maxy=40800 [fujitsu] sense_handler: start [fujitsu] Sense=0x5, ASC=0x26, ASCQ=00, EOM=1, ILI=0, info= [fujitsu] Illegal request: invalid field in parm list [fujitsu] Offending byte is 00 [fujitsu] read_from_scanner: error reading data block status = 4 [fujitsu] sane_read: front returning 4 scanimage: sane_read: Invalid argument well, sorry to dump more on, but me too. This is happening with every combination of parameters I try I've got a fi-5750C (with USB) Suse 10.2 I'm using fujitsu backend 1.0.33 as you can see and I see there is a newer one (1.0.47) in CVS, but that the most recent poster has similar issue with the 1.0.47. I'd like to know if there are some arguments from the command line I can fiddle with to make the scanner happy? Or, some other remediation. Would it be worth it to grab the 1.0.47 version? Would it be worth it to try the SCSI? thanks for all your hard work on this stuff, Tim
[sane-devel] fujitsu illegal request: invalid field in parm list
On 7/12/07, Tim McGuire tmcguire at go-integral.com wrote: In reading the recent messages I've seen a couple of cases with Fujitsu backend like (http://lists.alioth.debian.org/pipermail/sane-devel/2007-April/018982.html) and (http://article.gmane.org/gmane.comp.graphics.scanning.sane.devel/10792) where .. snip well, sorry to dump more on, but me too. This is happening with every combination of parameters I try I've got a fi-5750C (with USB) Suse 10.2 I'm using fujitsu backend 1.0.33 as you can see and I see there is a newer one (1.0.47) in CVS, but that the most recent poster has similar issue with the 1.0.47. different issue. dont use scanadf to scan from a flatbed, unless you are going to add the -s 1 -e 1 options. there was a subsequent mail about that. I'd like to know if there are some arguments from the command line I can fiddle with to make the scanner happy? Or, some other remediation. Would it be worth it to grab the 1.0.47 version? Would it be worth it to try the SCSI? just go with what is in cvs HEAD now, 1.0.50. it should support your scanner out of the box. i am not convinced that i ever got the pixel-shifting problem solved, however. that would manifest as weird stair-stepping patterns in the output but only at certain scan widths. if you see that problem, we just need to set a flag in the code for that model to fix it. thanks for all your hard work on this stuff, it has become a fairly time consuming hobby, yes. but i take great pride in helping folks wrest control of their machines away from proprietary software. allan -- The truth is an offense, but not a sin
[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT
I am having terrible problems getting SANE to work with my AVISION scanner on the NSLU2. I did compile SANE 1.0.18 for the NSLU2, but don't think it is the code. Anyone have any suggestions? I have the following modules loaded: root at OpenWrt:/dev# lsmod Module Size Used byNot tainted usb_storage57035 0 sd_mod 10384 0 scsi_mod 55784 2 usb_storage,sd_mod usbserial 20336 0 cdc_acm 8068 0 ehci_hcd 25004 0 uhci_hcd 18700 0 ohci_hcd 13348 0 usbcore79548 7 usb_storage,usbserial,cdc_acm,ehci_hcd,uhci_hcd,ohci_hcd Here are my installed applications: root at OpenWrt:/dev# ipkg list base-files-ixp4xx-2.6 - 9-7899 - bridge - 1.0.6-1 - busybox - 1.4.2-2 - dnsmasq - 2.38-1 - dropbear - 0.49-2 - hotplug2 - 0.9+r102-1 - iptables - 1.3.7-1 - kernel - 2.6.21.5-ixp4xx-1 - kmod-scsi-core - 2.6.21.5-ixp4xx-1 - kmod-usb-acm - 2.6.21.5-ixp4xx-1 - kmod-usb-core - 2.6.21.5-ixp4xx-1 - kmod-usb-ohci - 2.6.21.5-ixp4xx-1 - kmod-usb-serial - 2.6.21.5-ixp4xx-1 - kmod-usb-storage - 2.6.21.5-ixp4xx-1 - kmod-usb-uhci - 2.6.21.5-ixp4xx-1 - kmod-usb2 - 2.6.21.5-ixp4xx-1 - libgcc - 4.1.2-9 - libjpeg - 6b-1 - libpthread - 0.9.28-9 - libusb - 0.1.12-1 - mtd - 5 - ppp - 2.4.3-7 - ppp-mod-pppoe - 2.4.3-7 - sane-backends - 1.0.18-1-TDS - sane-libs - 1.0.18-1-TDS - uclibc - 0.9.28-9 - udev - 106-1 - udevtrigger - 106-1 - usbutils - 0.72-1 - xinetd - 2.3.13-2 - I am using the 07-09 kernel (I have also tried todays and the 7.06 release): root at OpenWrt:/dev# uname -r 2.6.21.5 Here is what is happening with SANE: root at OpenWrt:/dev# SANE_DEBUG_AVISION=255 SANE_DEBUG_DLL=255 SANE_DEBUG_SANEI_USB=255 scanimage -d avision --resolution=50 /tmp/tmp.pmg [sanei_debug] Setting debug level of dll to 255. [dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18 [dll] sane_init: adding backend `abaton' (preloaded) [dll] sane_init: adding backend `agfafocus' (preloaded) [dll] sane_init: adding backend `apple' (preloaded) [dll] sane_init: adding backend `artec' (preloaded) [dll] sane_init: adding backend `as6e' (preloaded) [dll] sane_init: adding backend `avision' (preloaded) [dll] sane_init: adding backend `bh' (preloaded) [dll] sane_init: adding backend `canon' (preloaded) [dll] sane_init: adding backend `canon630u' (preloaded) [dll] sane_init: adding backend `coolscan' (preloaded) [dll] sane_init: adding backend `coolscan2' (preloaded) [dll] sane_init: adding backend `dc25' (preloaded) [dll] sane_init: adding backend `dmc' (preloaded) [dll] sane_init: adding backend `epson' (preloaded) [dll] sane_init: adding backend `fujitsu' (preloaded) [dll] sane_init: adding backend `genesys' (preloaded) [dll] sane_init: adding backend `gt68xx' (preloaded) [dll] sane_init: adding backend `hp' (preloaded) [dll] sane_init: adding backend `leo' (preloaded) [dll] sane_init: adding backend `lexmark' (preloaded) [dll] sane_init: adding backend `matsushita' (preloaded) [dll] sane_init: adding backend `microtek' (preloaded) [dll] sane_init: adding backend `microtek2' (preloaded) [dll] sane_init: adding backend `mustek' (preloaded) [dll] sane_init: adding backend `mustek_usb' (preloaded) [dll] sane_init: adding backend `nec' (preloaded) [dll] sane_init: adding backend `pie' (preloaded) [dll] sane_init: adding backend `pixma' (preloaded) [dll] sane_init: adding backend `plustek' (preloaded) [dll] sane_init: adding backend `plustek_pp' (preloaded) [dll] sane_init: adding backend `ricoh' (preloaded) [dll] sane_init: adding backend `s9036' (preloaded) [dll] sane_init: adding backend `sceptre' (preloaded) [dll] sane_init: adding backend `sharp' (preloaded) [dll] sane_init: adding backend `sp15c' (preloaded) [dll] sane_init: adding backend `st400' (preloaded) [dll] sane_init: adding backend `tamarack' (preloaded) [dll] sane_init: adding backend `test' (preloaded) [dll] sane_init: adding backend `teco1' (preloaded) [dll] sane_init: adding backend `teco2' (preloaded) [dll] sane_init: adding backend `teco3' (preloaded) [dll] sane_init: adding backend `umax' (preloaded) [dll] sane_init: adding backend `umax_pp' (preloaded) [dll] sane_init: adding backend `umax1220u' (preloaded) [dll] sane_init: adding backend `artec_eplus48u' (preloaded) [dll] sane_init: adding backend `ma1509' (preloaded) [dll] sane_init: adding backend `ibm' (preloaded) [dll] sane_init: adding backend `hp5400' (preloaded) [dll] sane_init: adding backend `u12' (preloaded) [dll] sane_init: adding backend `snapscan' (preloaded) [dll] sane_init: adding backend `niash' (preloaded) [dll] sane_init: adding backend `sm3840' (preloaded) [dll] sane_init: adding backend `hp4200' (preloaded) [dll] sane_init: adding backend `sm3600' (preloaded) [dll] sane_init: adding backend `hp3500' (preloaded) [dll] sane_init: adding backend `stv680' (preloaded) [dll] sane_init: adding backend `dc210' (preloaded) [dll] sane_init: adding backend `dc240'
[sane-devel] SANE 1.0.18 and the NSLU2 running OpenWRT
note that i have never really used any avision equipment, but you might try disabling the gamma table in the conf file. man sane-avision for more. allan On 7/12/07, David Solomon lorddavon at gmail.com wrote: I am having terrible problems getting SANE to work with my AVISION scanner on the NSLU2. I did compile SANE 1.0.18 for the NSLU2, but don't think it is the code. Anyone have any suggestions? I have the following modules loaded: root at OpenWrt:/dev# lsmod Module Size Used byNot tainted usb_storage57035 0 sd_mod 10384 0 scsi_mod 55784 2 usb_storage,sd_mod usbserial 20336 0 cdc_acm 8068 0 ehci_hcd 25004 0 uhci_hcd 18700 0 ohci_hcd 13348 0 usbcore79548 7 usb_storage,usbserial,cdc_acm,ehci_hcd,uhci_hcd,ohci_hcd Here are my installed applications: root at OpenWrt:/dev# ipkg list base-files-ixp4xx-2.6 - 9-7899 - bridge - 1.0.6-1 - busybox - 1.4.2-2 - dnsmasq - 2.38-1 - dropbear - 0.49-2 - hotplug2 - 0.9+r102-1 - iptables - 1.3.7-1 - kernel - 2.6.21.5-ixp4xx-1 - kmod-scsi-core - 2.6.21.5-ixp4xx-1 - kmod-usb-acm - 2.6.21.5-ixp4xx-1 - kmod-usb-core - 2.6.21.5-ixp4xx-1 - kmod-usb-ohci - 2.6.21.5-ixp4xx-1 - kmod-usb-serial - 2.6.21.5-ixp4xx-1 - kmod-usb-storage - 2.6.21.5-ixp4xx-1 - kmod-usb-uhci - 2.6.21.5-ixp4xx-1 - kmod-usb2 - 2.6.21.5-ixp4xx-1 - libgcc - 4.1.2-9 - libjpeg - 6b-1 - libpthread - 0.9.28-9 - libusb - 0.1.12-1 - mtd - 5 - ppp - 2.4.3-7 - ppp-mod-pppoe - 2.4.3-7 - sane-backends - 1.0.18-1-TDS - sane-libs - 1.0.18-1-TDS - uclibc - 0.9.28-9 - udev - 106-1 - udevtrigger - 106-1 - usbutils - 0.72-1 - xinetd - 2.3.13-2 - I am using the 07-09 kernel (I have also tried todays and the 7.06 release): root at OpenWrt:/dev# uname -r 2.6.21.5 Here is what is happening with SANE: root at OpenWrt:/dev# SANE_DEBUG_AVISION=255 SANE_DEBUG_DLL=255 SANE_DEBUG_SANEI_USB=255 scanimage -d avision --resolution=50 /tmp/tmp.pmg [sanei_debug] Setting debug level of dll to 255. [dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18 [dll] sane_init: adding backend `abaton' (preloaded) [dll] sane_init: adding backend `agfafocus' (preloaded) [dll] sane_init: adding backend `apple' (preloaded) [dll] sane_init: adding backend `artec' (preloaded) [dll] sane_init: adding backend `as6e' (preloaded) [dll] sane_init: adding backend `avision' (preloaded) [dll] sane_init: adding backend `bh' (preloaded) [dll] sane_init: adding backend `canon' (preloaded) [dll] sane_init: adding backend `canon630u' (preloaded) [dll] sane_init: adding backend `coolscan' (preloaded) [dll] sane_init: adding backend `coolscan2' (preloaded) [dll] sane_init: adding backend `dc25' (preloaded) [dll] sane_init: adding backend `dmc' (preloaded) [dll] sane_init: adding backend `epson' (preloaded) [dll] sane_init: adding backend `fujitsu' (preloaded) [dll] sane_init: adding backend `genesys' (preloaded) [dll] sane_init: adding backend `gt68xx' (preloaded) [dll] sane_init: adding backend `hp' (preloaded) [dll] sane_init: adding backend `leo' (preloaded) [dll] sane_init: adding backend `lexmark' (preloaded) [dll] sane_init: adding backend `matsushita' (preloaded) [dll] sane_init: adding backend `microtek' (preloaded) [dll] sane_init: adding backend `microtek2' (preloaded) [dll] sane_init: adding backend `mustek' (preloaded) [dll] sane_init: adding backend `mustek_usb' (preloaded) [dll] sane_init: adding backend `nec' (preloaded) [dll] sane_init: adding backend `pie' (preloaded) [dll] sane_init: adding backend `pixma' (preloaded) [dll] sane_init: adding backend `plustek' (preloaded) [dll] sane_init: adding backend `plustek_pp' (preloaded) [dll] sane_init: adding backend `ricoh' (preloaded) [dll] sane_init: adding backend `s9036' (preloaded) [dll] sane_init: adding backend `sceptre' (preloaded) [dll] sane_init: adding backend `sharp' (preloaded) [dll] sane_init: adding backend `sp15c' (preloaded) [dll] sane_init: adding backend `st400' (preloaded) [dll] sane_init: adding backend `tamarack' (preloaded) [dll] sane_init: adding backend `test' (preloaded) [dll] sane_init: adding backend `teco1' (preloaded) [dll] sane_init: adding backend `teco2' (preloaded) [dll] sane_init: adding backend `teco3' (preloaded) [dll] sane_init: adding backend `umax' (preloaded) [dll] sane_init: adding backend `umax_pp' (preloaded) [dll] sane_init: adding backend `umax1220u' (preloaded) [dll] sane_init: adding backend `artec_eplus48u' (preloaded) [dll] sane_init: adding backend `ma1509' (preloaded) [dll] sane_init: adding backend `ibm' (preloaded) [dll] sane_init: adding backend `hp5400' (preloaded) [dll] sane_init: adding backend `u12' (preloaded) [dll] sane_init: adding backend `snapscan' (preloaded) [dll] sane_init: adding backend `niash' (preloaded) [dll] sane_init: adding backend `sm3840'