[sane-devel] Minolta dimage Scan Dual II format
On Thursday 25 May 2006 19:24, Dietmar Segbert wrote: Hello Jose, hello Rene, my next question is, how can i vonvert the scanned negativ to a positive? My brother said, that the scanned negativ ist egativ, so i must convert it to an positiv. Can i do that with convert of the imagemagic-pagage? convert --negate picture1.pnm pic1positiv.pnm For old black and white negative film that should be enough. Some modern black and white and colour negative films have an orange mask that must be filtered out before doing the conversion. There tutorials on how to do it using the gimp, but I imagine that you would prefer to do it from the command line. Perhaps there is an imagemagick guru in the audience who can explain us how to do it. For positive film you should get immediately what you want, but please note that a high quality scan, whatever that means, would require a more controlled process, namely in terms of exposure and colour correction. Did the ual ii detect bw and color and slides automatically? The default is to do a positive colour scan. I imagine that the film is black and white and the image looks black and white, but it is in colour mode, i.e. it has only white, black and gray pixels, but it could have coloured ones. Regards ZP
[sane-devel] UMAX Astra 1200S
Wolfram, Thanks for your reply! From: Wolfram Heider wolframhei...@web.de the driver for the Umax 1200 S (the 'S' stands for SCSI) should already be on your hd in a SuSE 10.1 Installation. You may check it with Yast - Hardware - Scanner. Yes, it is there, as UMAX Astra 1200S : Driver umax (package sane) provides good functionality. [OK] But, when I plug it in into my pc's parallel port (I never received a special pci card) it just doesn't find it. Yes, I had made sure that scanner support was available when I installed the system two days ago. The message I get is umax - No scanner recognized by this driver If you don't get the list of drivers, you will have to postinstall the SANE-package. A more serious point is the scsi-controller (PCI-card). This one shipped together with the scanner by Umax probably won't work. You will need a decent one from an independent manufacturer (AdvanSys, Dawicontrol or so - not very cheap,. so googling around for an used one may spare some money). The controller needs a seperate driver normally loaded by the kernel at boot time. So, maybe I didn't enable scsi (cannot remember, as I didn't know then the scanner was a scsi part). I'll try it. But also, will I _need_ a special pci-card for scsi hardware? Would the scsi plug in card have a parallel port interface too? As for Windows: XP supports the 1200 S directly with an own driver - try a postinstallation with the hardware/device-manager. For the original Vistascan-driver go to http://www.umax.com/support. It's not downloadable, only available on CD-ROM. I had Windows 2000 on the other machine. Again, thanks for your kind help! _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[sane-devel] UMAX Astra 1200S
David, obviously you have done the miracle to get a scsi-connector fit into a parallelport ( till now I thought this would be impossible) And as far as I know there is no parallelport-version of the Astra 1200 (at later modells there was). Are you really sure that it was the parallelport you plugged in the scanner-cable? the driver for the Umax 1200 S (the 'S' stands for SCSI) should already be on your hd in a SuSE 10.1 Installation. You may check it with Yast - Hardware - Scanner. Yes, it is there, as UMAX Astra 1200S : Driver umax (package sane) provides good functionality. [OK] But, when I plug it in into my pc's parallel port (I never received a special pci card) it just doesn't find it. Yes, I had made sure that scanner support was available when I installed the system two days ago. The message I get is umax - No scanner recognized by this driver If you don't get the list of drivers, you will have to postinstall the SANE-package. A more serious point is the scsi-controller (PCI-card). This one shipped together with the scanner by Umax probably won't work. You will need a decent one from an independent manufacturer (AdvanSys, Dawicontrol or so - not very cheap,. so googling around for an used one may spare some money). The controller needs a seperate driver normally loaded by the kernel at boot time. So, maybe I didn't enable scsi (cannot remember, as I didn't know then the scanner was a scsi part). I'll try it. You don't need to do further configuration - the kernel will do it. But also, will I _need_ a special pci-card for scsi hardware? A SCSI-card is indispensable for a SCSI-scanner. Would the scsi plug in card have a parallel port interface too? The SCSI-card would be plugged into one of the PCI-slots on the motherboard inside your box (it's a simple operation, could be done by yourself without any tools excepted a screwdriver for the screws of the box) and provides an additional port, the parallelport would be untouched and stay in its old place and keep its old functions. Note to have an eye on the connectors of the SCSI-cable of the scanner, there are different ones and possibly you will to have to get another cable that fits into the connector of the SCSI-card. As for Windows: XP supports the 1200 S directly with an own driver - try a postinstallation with the hardware/device-manager. For the original Vistascan-driver go to http://www.umax.com/support. It's not downloadable, only available on CD-ROM. I had Windows 2000 on the other machine. No difference to Xp. The Umax 1200er series works fine both with the Umax driver as well as with the Windows one. But also here, if it's a SCSI-scanner you will need a SCSI-card. So my advice is, try to get a used good SCSI-card (also called SCSI-controller) in a second-hand-PC-shop or somewhere in the net. To buy a new one wouldn't be very economical because its price could easily exceed the expense for a new USB-scanner. Wolfram Heider
[sane-devel] UMAX Astra 1200S
David, obviously you have done the miracle to get a scsi-connector fit into a parallelport ( till now I thought this would be impossible) I didn't believe in miracles either... :) And as far as I know there is no parallelport-version of the Astra 1200 (at later modells there was). Are you really sure that it was the parallelport you plugged in the scanner-cable? No idea... The single cable that came along looks like this: http://static.howstuffworks.com/gif/parallel-port-ch.jpg and there was only one place in the computer where it would fit. I didn't have to use force, so I guessed it was correct. I never had a strong opinion on what the name of that cable is... :D A more serious point is the scsi-controller (PCI-card). This one shipped together with the scanner by Umax probably won't work. You will need a decent one from an independent manufacturer (AdvanSys, Dawicontrol or so - not very cheap,. so googling around for an used one may spare some money). The controller needs a seperate driver normally loaded by the kernel at boot time. So, maybe I didn't enable scsi (cannot remember, as I didn't know then the scanner was a scsi part). I'll try it. You don't need to do further configuration - the kernel will do it. Ok But also, will I _need_ a special pci-card for scsi hardware? A SCSI-card is indispensable for a SCSI-scanner. Ok Would the scsi plug in card have a parallel port interface too? The SCSI-card would be plugged into one of the PCI-slots on the motherboard inside your box (it's a simple operation, could be done by yourself without any tools excepted a screwdriver for the screws of the box) and provides an additional port, the parallelport would be untouched and stay in its old place and keep its old functions. Maybe I'm showing off my ignorance again (indeed...), but the computer side port [or whatever the name] I plugged the cable into is the one where I usually plug in my printer's cable. So I guess that would never have worked, or? Note to have an eye on the connectors of the SCSI-cable of the scanner, there are different ones and possibly you will to have to get another cable that fits into the connector of the SCSI-card. As for Windows: XP supports the 1200 S directly with an own driver - try a postinstallation with the hardware/device-manager. For the original Vistascan-driver go to http://www.umax.com/support. It's not downloadable, only available on CD-ROM. I had Windows 2000 on the other machine. No difference to Xp. The Umax 1200er series works fine both with the Umax driver as well as with the Windows one. But also here, if it's a SCSI-scanner you will need a SCSI-card. Ok, I had a 'million' drivers tested to no avail... Thanks for that one! So my advice is, try to get a used good SCSI-card (also called SCSI-controller) in a second-hand-PC-shop or somewhere in the net. To buy a new one wouldn't be very economical because its price could easily exceed the expense for a new USB-scanner. Thanks, there is a used parts shop down the block. I'll see what they have! Cheers! _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
[sane-devel] UMAX Astra 1200S
On Fri, 26 May 2006, Get A. Long wrote: David, obviously you have done the miracle to get a scsi-connector fit into a parallelport ( till now I thought this would be impossible) I didn't believe in miracles either... :) And as far as I know there is no parallelport-version of the Astra 1200 (at later modells there was). Are you really sure that it was the parallelport you plugged in the scanner-cable? No idea... The single cable that came along looks like this: http://static.howstuffworks.com/gif/parallel-port-ch.jpg and there was only one place in the computer where it would fit. I didn't have to use force, so I guessed it was correct. I never had a strong opinion on what the name of that cable is... :D what you have is the 25 pin scsi cable, usually used on old macs. just because it looks like a parallel port does not mean that it is one. i bet the scanner end of the cable looks different? it will not work. you MUST get a scsi card. if you are in the US, send me private email. i will send you a 25 pin adaptec pci scsi card for free. i have a case of them collecting dust. works great with linux. allan
[sane-devel] UMAX Astra 1200S
On Fri, 26 May 2006 14:41:55 +0200, Get A. Long g3t4l...@hotmail.com wrote: David, obviously you have done the miracle to get a scsi-connector fit into a parallelport ( till now I thought this would be impossible) I didn't believe in miracles either... :) From now on I do believe 8-) And as far as I know there is no parallelport-version of the Astra 1200 (at later modells there was). Are you really sure that it was the parallelport you plugged in the scanner-cable? No idea... The single cable that came along looks like this: http://static.howstuffworks.com/gif/parallel-port-ch.jpg and there was only one place in the computer where it would fit. I didn't have to use force, so I guessed it was correct. I never had a strong opinion on what the name of that cable is... :D A more serious point is the scsi-controller (PCI-card). This one shipped together with the scanner by Umax probably won't work. You will need a decent one from an independent manufacturer (AdvanSys, Dawicontrol or so - not very cheap,. so googling around for an used one may spare some money). The controller needs a seperate driver normally loaded by the kernel at boot time. So, maybe I didn't enable scsi (cannot remember, as I didn't know then the scanner was a scsi part). I'll try it. You don't need to do further configuration - the kernel will do it. Ok But also, will I _need_ a special pci-card for scsi hardware? A SCSI-card is indispensable for a SCSI-scanner. Ok Would the scsi plug in card have a parallel port interface too? The SCSI-card would be plugged into one of the PCI-slots on the motherboard inside your box (it's a simple operation, could be done by yourself without any tools excepted a screwdriver for the screws of the box) and provides an additional port, the parallelport would be untouched and stay in its old place and keep its old functions. Maybe I'm showing off my ignorance again (indeed...), but the computer side port [or whatever the name] I plugged the cable into is the one where I usually plug in my printer's cable. So I guess that would never have worked, or? You are right this is the parallelport and it would never have worked with a SCSI-scanner. Note to have an eye on the connectors of the SCSI-cable of the scanner, there are different ones and possibly you will to have to get another cable that fits into the connector of the SCSI-card. As for Windows: XP supports the 1200 S directly with an own driver - try a postinstallation with the hardware/device-manager. For the original Vistascan-driver go to http://www.umax.com/support. It's not downloadable, only available on CD-ROM. I had Windows 2000 on the other machine. No difference to Xp. The Umax 1200er series works fine both with the Umax driver as well as with the Windows one. But also here, if it's a SCSI-scanner you will need a SCSI-card. Ok, I had a 'million' drivers tested to no avail... Thanks for that one! So my advice is, try to get a used good SCSI-card (also called SCSI-controller) in a second-hand-PC-shop or somewhere in the net. To buy a new one wouldn't be very economical because its price could easily exceed the expense for a new USB-scanner. Thanks, there is a used parts shop down the block. I'll see what they have! Watch out for the cable-connectors. Best you take the scanner to the shop. I hope the scanner is already equipped with a terminator that is a connector similiar the cable-connector but without a cable and plugged into the second SCSI-port on the backside of the scanner - it's necessary for a single SCSI-device connection. If not get one in the shop (only a small standard item, shouldn't cost much). -- Wolfram Heider
[sane-devel] Parallel Port as SCSI
Hi again, Looking at the pictures at howstuffworks.com it is seems I do have a parallel cable, and two parallel ports (both DB-25, 'females') in the scanner. Funnily, on my scanner both these ports (http://computer.howstuffworks.com/parallel-port1.htm) are labelled SCSI with large (8 mm) letters. The SCSI cable is illustrated at http://computer.howstuffworks.com/scsi1.htm but does not look like anything I have and would not fit anywhere in the scanner, or the computer. So, I understand your surprise! :) From http://computer.howstuffworks.com/parallel-port.htm : Parallel ports can be used to connect a host of popular computer peripherals: * Printers * Scanners * CD burners * External hard drives * Iomega Zip removable drives * Network adapters * Tape backup drives Apparently, parallel ports are used for scanners, and the UMAX Astra 1200S has it, despite labelled as SCSI. I guess then there is some software emulation or something like that somewhere, or did I misunderstand it? Thanks for any help on how to proceed before I buy that card! David _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[sane-devel] Re: Parallel Port as SCSI
On Fri, 26 May 2006 15:31:19 +0200, Get A. Long g3t4l...@hotmail.com wrote: Hi again, Looking at the pictures at howstuffworks.com it is seems I do have a parallel cable, and two parallel ports (both DB-25, 'females') in the scanner. Funnily, on my scanner both these ports (http://computer.howstuffworks.com/parallel-port1.htm) are labelled SCSI with large (8 mm) letters. The SCSI cable is illustrated at http://computer.howstuffworks.com/scsi1.htm but does not look like anything I have and would not fit anywhere in the scanner, or the computer. So, I understand your surprise! :) From http://computer.howstuffworks.com/parallel-port.htm : Parallel ports can be used to connect a host of popular computer peripherals: * Printers * Scanners * CD burners * External hard drives * Iomega Zip removable drives * Network adapters * Tape backup drives Apparently, parallel ports are used for scanners, and the UMAX Astra 1200S has it, despite labelled as SCSI. I guess then there is some software emulation or something like that somewhere, or did I misunderstand it? Thanks for any help on how to proceed before I buy that card! David There have some mails crossed each other. Accept Allan's generous offer, this would be the best solution. And you should buy him a beer or two for it. -- Wolfram Heider
[sane-devel] UMAX Astra 1200S
On Fri, 26 May 2006 14:41:55 +0200 Get A. Long g3t4l...@hotmail.com wrote: No idea... The single cable that came along looks like this: http://static.howstuffworks.com/gif/parallel-port-ch.jpg and there was only one place in the computer where it would fit. I didn't have to use force, so I guessed it was correct. I never had a strong opinion on what the name of that cable is... :D The cheap-and-nasty SCSI cards supplied with scanners often use a parallel port style connector as it's cheaper (and nastier) than a proper SCSI connector. Martin
[sane-devel] Parallel Port as SCSI
Apple came out with a SCSI bus using DB-25 connectors. (I believe they were the first to do this, and though it probably violates the SCSI standards, they carry enough market weight that it has now become a de-facto standard and you can now buy 25-pin SCSI cables and connectors) There are also various flavors of parallel port to SCSI converters around. But, since your equipment actually says SCSI on the port, that's probably what it really is. You would need to refer to the documentation to know for sure. My Microtek scanner has both 25-pin and 50-pin SCSI connectors on it. But both are true SCSI - I believe the 25-pin connector is there to cater to Apple users. -- Peter Fales Peter at fales-lorenz.net On Fri, May 26, 2006 at 03:31:19PM +0200, Get A. Long wrote: Hi again, Looking at the pictures at howstuffworks.com it is seems I do have a parallel cable, and two parallel ports (both DB-25, 'females') in the scanner. Funnily, on my scanner both these ports (http://computer.howstuffworks.com/parallel-port1.htm) are labelled SCSI with large (8 mm) letters. The SCSI cable is illustrated at http://computer.howstuffworks.com/scsi1.htm but does not look like anything I have and would not fit anywhere in the scanner, or the computer. So, I understand your surprise! :) From http://computer.howstuffworks.com/parallel-port.htm : Parallel ports can be used to connect a host of popular computer peripherals: * Printers * Scanners * CD burners * External hard drives * Iomega Zip removable drives * Network adapters * Tape backup drives Apparently, parallel ports are used for scanners, and the UMAX Astra 1200S has it, despite labelled as SCSI. I guess then there is some software emulation or something like that somewhere, or did I misunderstand it? Thanks for any help on how to proceed before I buy that card! David _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-requ...@lists.alioth.debian.org
[sane-devel] Epson Perfection 3170 Photo
Thank you for your reply, I did not check yet all your links, I am just answering quick questions: 1) I just tried Iscan and it's the only one working so far. The ones you mention, I did not use them before so I don't know them but I will look into it and get back with a more complete answer. 2) AMD 3000+ 32 bit. You are right in assuming 32bit ;) 3) I know about Iscan-free and I did not use that. I installed Iscan proprietary version or whatever it's called... Yast requested that I install the non-free version before it could install/ activate the scanner. As opposed to SUSE 10.0 (which I tried but never used) 10.1 behave normally. It actually activated the scanner and the setup went without a glitch. In 10.0 it was installing the driver but was not matching it with the scanner... a long and screwed-up story that you don't need to hear... Machts Gut! On Tuesday 23 May 2006 05:07, Johannes Meixner wrote: Hello, On May 23 10:24 Johannes Meixner wrote (shortened): On May 22 14:30 Jadic Family wrote (shortened): I just upgraded to SUSE Linux 10.1 from 9.3. The YAST setup went fine and the scanner works with the Iscan package/ epkowa driver. I have however trouble acessing the scanner with KDE applications like Kooka and Gwenview. They report that there is no scanner setup in SANE. (...?) https://bugzilla.novell.com/show_bug.cgi?id=141079 Questions to Jadic: 1) Does it work with scanimage or xsane (package xsane) or xscanimage (package sane-frontends)? Regarding debugging, see http://en.opensuse.org/SDB:Configuring_Scanners_from_SUSE_LINUX_9.2 Trouble-Shooting (Debugging) 2) Which hardware architecture is your computer? The usual 32-bit Intel compatible or a 64-bit AMD machine? If it is the latter, see http://en.opensuse.org/SDB:Configuring_Scanners_from_SUSE_LINUX_9.3 limitations on AMD 64-bit systems But I guess this is not the case because you wrote that it had worked well for you before using Suse Linux 9.3. By the way: The free version iscan-free doesn't help you, see http://en.opensuse.org/SDB:Scanner_Setup_from_SUSE_Linux_10.0 Currently, the following models need the proprietary software: Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsm...@suse.de 90409 Nuernberg, GermanyWWW: http://www.suse.de/ -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject unsubscribe your_password to sane-devel-requ...@lists.alioth.debian.org
[sane-devel] libsane.usermap entry Epson Perfection 1660 Photo
Please add this to libsane.usermap and have a lot of fun ;-) Andreas ##BEGIN## # Epson Corp.|Perfection 1660 Photo libusbscanner 0x0003 0x04b8 0x011e0x 0x 0x00 0x000x000x000x00 0x00 0x ##END
[sane-devel] libusb problems with CanoScan LiDE25 sane backend ..17 plustek backend 0.50-9
Hello together, to install the new plustek backend for my scanner CanoScan LiDE25 I try to install the new libusb which is recomanded for linux kernel = 2.6. There are problems with the installing of libusb discribed in the enclosed file. There is not scanner.o file at kernel drivers and the kernel is recognizing the CanoScan with correct Vendor in ID. Module loading is not possible. Can you help me to install appropriate the backends? Regards, Petar Mijatovic = Petar Mijatovic privat: Mainzer Str.36, D-70499 Stuttgart e-mail: petar.mijato...@web.de phone/fax : 0711/8895611 = -- next part -- - download latest Plustek backends plustek-usb-0.50-9.tar.gz from: http://www.gjaeger.de/scanner/plustek/#startofpage http://www.gjaeger.de/scanner/plustek/ backends informations for CanoScan LiDE25 include scanner driver for Canon LiDE25 CIS LM9833 0x04A9 0x2220 unpacking plustek-usb-0.50-9.tar.gz in the folder of Sane backend - INSTALLING SECOND: download latest Sane backends sane-backends-1.0.17 and frontends sane-frontends-1.0.14 and xsane from: http://www.sane-project.org/ -- INSTALLING FIRST: 1.) libusb-0.1.12 download from http://sourceforge.net/project/showfiles.php?group_id=1674 as Platform-Independent libusb-0.1.12.tar.gz ./configure make make install make check; tests ./test -- messages -- INSTALLING THE sane-backends-1.0.17 root@mio(1113):/home/petar/sane/sane-backends-1.0.17 ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes . .. ... . Build saned: yes IPv6 support: yes - The following backends will be built: abaton agfafocus apple artec as6e avision bh canon canon630u coolscan coolscan2 dc25 dmc epson fujitsu genesys gt68xx hp leo lexmark matsushita microtek microtek2 mustek mustek_usb nec pie plustek plustek_pp ricoh s9036 sceptre sharp sp15c st400 tamarack test teco1 teco2 teco3 umax umax_pp umax1220u artec_eplus48u ma1509 ibm hp5400 u12 snapscan niash sm3840 hp4200 sm3600 dc210 dc240 qcam v4l net mustek_usb2 *** Warning: sane-backends will be built without libusb support. There may *** be valid reasons to do so, e.g. if you don't use USB scanners or on *** platforms without libusb support but generally this means that you *** can't use USB devices with SANE. The most probable cause is that *** libusb is not installed at all or is too old. See README. * Please be sure to read file PROBLEMS in this directory * * BEFORE running any of the SANE applications. Some devices * * may be damaged by inproper operation, so please do heed this * * advice. * after that problem following takes no effects: root@mio(1113):/home/petar/sane/sane-backends-1.0.17 ./make root@mio(1113):/home/petar/sane/sane-backends-1.0.17 ./make install - TRY TO FIX THE PROBLEM; TESTING AND SEARCHING THE PROBLEMS: - root@mio(1058):/home/petar/sane/sane-backends-1.0.17/libusb-0.1.12/tests ./testlibusb Dev #1: Linux 2.6.12.3test1 uhci_hcd - VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller (#2) Dev #2: Brother - HL-2030 series Dev #1: Linux 2.6.12.3test1 uhci_hcd - VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller Dev #2: Canon - CanoScan Dev #1: Linux 2.6.12.3test1 uhci_hcd - Intel Corporation 82371AB/EB/MB PIIX4 USB Dev #1: Linux 2.6.12.3test1 ehci_hcd - VIA Technologies, Inc. USB 2.0 root@mio(1059):/home/petar/sane/sane-backends-1.0.17/libusb-0.1.12/tests ./id_test bus/device idVendor/idProduct/bcdDevice Class/SubClass/Protocol 004/00204f9 / 0027 / 0100 00 00 00 004/001 / / 0206 09 00 00 003/00204a9 / 2220 / 0100 ff 00 ff 003/001 / / 0206 09 00 00 002/001 / / 0206 09 00 00 001/001 / / 0206 09 00 01 root@mio(1060):/home/petar/sane/sane-backends-1.0.17/libusb-0.1.12/tests
[sane-devel] sanei_usb_read_bulk: problem in handling of NAK
On Fri, 2006-05-26 at 22:52 +0300, Lauri Pirttiaho wrote: Hello, I have encountered a problem with bulk read that might benefit from some change in sanei_usb. This problem becomes visible in a fast machine like AMD64 and seems to have been seen in Avision backend and now in cs3200f. When using libusb method in sanei_usb the behavior of sanei_usb_read bulk seems to be that in responese to NAK (errno -ETIMEDOUT, strerror saying Resource temporarily unavailable, which means the device can not temporarily provide more data) the sanei_usb_read_bulk calls usb_clear_halt and then returns SANEI_STATUS_IO_ERROR. Now because of the usb_clear_halt there is no longer access to the errno so this particular reason for the IO error can not be distinguished from others after sanei_usb_read bulk returns. The solution in Avision backend seems to be that the errors from sanei_usb_read bulk are completely ignored and the function is called repeatedly until all data has been read. A temporary solution but maybe not the best one. I would propose changing the behavior of sanei_usb_read bulk so that in the case of NAK (resource temporarily unavailable) the size is returned as 0 and the return value is set either to SANE_STATUS_GOOD (read OK, just no data at this moment) or SANE_STATUS_BUSY (device can not respond right now). Both will work even though probably the latter one is more in line with the meaning of USB NAK in this case. With best regards, Lauri Pirttiaho Oulu Finland It seems i get for my sq930x SANE webcam backend (under development) the same errors. But when i do a init and read images with the MS driver and then a reboot (Linux) and start my sq930x backend i don't get that sort of errors but can do bulk reads with no problems. -- m.vr.gr. Gerard Klaver
[sane-devel] sanei_usb_read_bulk: problem in handling of NAK
On Friday 26 May 2006 21:52, Lauri Pirttiaho wrote: [...] I would propose changing the behavior of sanei_usb_read bulk so that in the case of NAK (resource temporarily unavailable) the size is returned as 0 and the return value is set either to SANE_STATUS_GOOD (read OK, just no data at this moment) or SANE_STATUS_BUSY (device can not respond right now). Both will work even though probably the latter one is more in line with the meaning of USB NAK in this case. I vote for the latter (SANE_STATUS_BUSY) so that it is possible to distinguish between NAK and zero-length packet. Regards -- Wittawat Yamwong Hannover, Germany