[sane-devel] HP 5370C under NetBSD
I just got an HP 5370C, and am trying to use it with NetBSD/i386. On power up, I get usscanner0 at uhub3 port 2 usscanner0: Hewlett Packard Hewlett Packard ScanJet 5300C/5370C, rev 1.00/0.01, addr 2 scsibus1 at usscanner0: 2 targets, 1 lun per target scsibus1: waiting 2 seconds for devices to settle... ss0 at scsibus1 target 1 lun 0: HP, ScanJet 5370C, 6.00 scanner removable Then, I got ss0: HP ScanJet (unknown model) set_window failed sane-find-scanner is hanging: 10853 25544 214850 -6 0 12448 760 getxsDttyp1 0:00.00 sane-find-scanner /dev/ss0 (sane-find-scanne) And xsane avision:/dev/ss0 says no devices found (same for xscanimage -d). It seems that the correct SANE backend is avision, and that it would prefer to access the USB device directly (via ugen and libusb), without NetBSD's kernel scsi-over-usb support. I'm removing usscanner(4) from my kernel and will try again. Any other clues would be appreciated. Is the usscanner interface sufficiently deprecated that it should be removed from the default NetBSD kernels? -- Greg Troxel g...@ir.bbn.com
[sane-devel] Any further with canoscan LiDE 500F?
Hi Jeff, Looking through the archives I see a number of postings on developing a driver for the Canon Canoscan LiDE 500F. How far did you get? Unfortunately, I have not even got started, since I have very little time and some other projects in need of attention. Currently, I am using the scanner under Mac OS X. But I am still interested in a working sane backend, so maybe we should collaborate on this? Michael
[sane-devel] Canon Lide 50 (Genesys) - Added threshold for BW (lineart)
Quoting Pierre Willenbrock pie...@pirsoft.dnsalias.org: Laurent Charpentier schrieb: Hi Everyone, I would like to submit a patch for the genesys backend (Canon LIDE 50). The patch adds the threshold feature for black/white mode (in 1.0.17 the threshold is set to 50% and can't be changed). The attached patch is relative to sane-backends-1.0.17 (files genesys.c, genesys.h, genesys_gl841.c, genesys_low.h). Thank you to apply this patch. I will take a look at the patch when i find some time. I guess this should be done for software b/w as used by the gl646 part, too. Regards, Pierre Hi all, I tested Laurent's patch as submitted, against 1.0.17 and it works fine here. regards, Gerald
[sane-devel] Any further with canoscan LiDE 500F?
Quoting Jeff Shrowder shrow...@uniting.com.au: I've used SnoopPro to log the traffic over the usb and got this enormous log :-) but where to from here? I can do 'lots of staring at usb logs' - there's plenty to stare at :-) What am I looking for? Jeff A comparison of log data with canon LiDE35/50 should show how the frontend is loaded for image acquisition. The chip uses remains unknown at this point. A comparison shouls also show whether the image transport is similar to genesys GL841. A small image sould be enough to tell. regards, Gerald
[sane-devel] [ANN] Canon Pixma Scanner Driver (stand-alone)
Hi Martin, I scanned a tiny part of a blank paper and I attached to this email (result.tar.gz) the result of the following command line : $ ./log2io usbsnoop_blank.log log.txt Does it look promising ? Regards, Farvil Martin Schewe a ?crit : Hi Farvil, On Sun, Mar 26, 2006 at 11:20:14PM +0200, Farvil wrote: I saw that you published the pixma-0.3 release and add a model description for the MP150. I just took the product id and the endpoints from [1] and hoped that the protocol could be the same as the one used by a MP750, but... ff 20 00 00 00 00 00 00 10 00 expecting 2 status and 0x0010 answer bytes... Incomplete read cf 60 00 00 00 00 00 00 0a 00 01 00 00 00 00 00 00 00 00 ff expecting 2 status and 0x answer bytes... ERR ...does not look promising. Though the last line shows that your scanner uses the same error status code (0x1515) anyway -- otherwise my little dumb driver would have written ??? instead of ERR. Please download http://pixma.schewe.com/log2io, sniff a scan of some tiny (!) picture and run $ ./log2io your.log You will hopefully get something like 03: cf 60 00 00 00 00 00 00 0a 00 01 00 00 00 00 00 00 00 00 ff 84: 06 06 03: cf 60 00 00 00 00 00 00 0a 00 01 00 00 20 00 00 00 00 00 df 84: 06 06 03: e9 20 00 00 00 00 00 00 00 00 84: 06 06 03: db 20 00 00 00 00 00 00 00 00 84: 06 06 03: dd 20 00 00 00 00 00 00 0a 00 01 01 00 00 00 00 00 00 00 fe 84: 06 06 03: de 20 00 00 00 00 00 00 2e 00 00 00 00 00 80 96 80 96 00 00 00 08 00 00 00 0 84: 06 06 03: f3 20 00 00 00 00 00 00 0c 00 84: 06 06 03 01 00 02 03 00 02 03 00 00 00 f2 85: 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 03: f3 20 00 00 00 00 00 00 0c 00 84: 06 06 03 01 00 02 03 00 02 03 0f 00 00 e3 03: d4 20 00 00 00 00 00 00 04 00 84: 06 06 00 00 00 00 03: f3 20 00 00 00 00 00 00 0c 00 84: 06 06 03 01 00 02 03 00 02 03 0f 00 00 e3 03: d4 20 00 00 00 00 00 00 04 00 84: 06 06 00 00 00 00 03: d4 20 00 00 00 00 00 c0 04 00 84: 06 06 00 00 c0 00 [...] The first ~30 lines will be enough to analyse whether your scanner's command set has any similarities with a MP750. Good luck, Martin [1] http://sane-project.org/unsupported/canon-pixma-mp150.html and hoped -- next part -- A non-text attachment was scrubbed... Name: result.tar.gz Type: application/x-gzip Size: 2255 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060327/d3c381d1/result.tar.bin From sane-de...@schewe.com Mon Mar 27 12:22:35 2006 From: sane-de...@schewe.com (Martin Schewe) Date: Mon Mar 27 12:23:43 2006 Subject: [sane-devel] [ANN] Canon Pixma Scanner Driver (stand-alone) In-Reply-To: 4427ce8d.8060...@yahoo.fr References: 20060326002951.gb7...@bruno.schewe.com 4427058e.4090...@yahoo.fr 20060326222450.gc8...@bruno.schewe.com 4427ce8d.8060...@yahoo.fr Message-ID: 20060327122235.gg3...@bruno.schewe.com Hi Farvil, On Mon, Mar 27, 2006 at 01:37:49PM +0200, Farvil wrote: I scanned a tiny part of a blank paper and I attached to this email too bad that it was a blank paper -- otherwise I could have reconstructed it. :) Does it look promising ? Yes, in principle it does: 07: db 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 88: 06 06 00 00 00 00 00 00 Put the device in scan mode. 07: dd 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 01 01 00 00 00 00 00 00 00 00 00 fe 88: 06 06 00 00 00 00 00 00 Setup for flatbad use. 07: ee 20 00 00 00 00 00 00 00 00 00 00 00 00 10 08 10 00 10 04 00 00 00 00 00 00 00 [...] 88: 06 06 00 00 00 00 00 00 The only command I cannot interpret ad hoc. Some initializiation data, maybe calibration related. 07: de 20 00 00 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 00 80 4b 80 4b 00 00 01 3c 00 00 00 0a 00 00 00 18 00 00 00 18 08 18 00 00 00 00 00 00 ff 00 00 81 00 00 02 01 00 00 00 00 00 00 00 50 88: 06 06 00 00 00 00 00 00 Scan parameters: 75dpi, x = 316, y = 10, width = 24, height = 24, ... Am I right? ;) 07: f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 0c 88: 06 06 00 00 00 00 00 00 01 00 00 00 03 00 02 00 00 21 00 d9 Read some info: ADF is empty, lamp warms up (?), no calibration in progress. 07: d4 20 00 00 00 00 00 00 00 00 00 00 00 08 00 08 88: 06 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Request 2048 data bytes, but the scanner needs some more time... [...] 07: d4 20 00 00 00 00 00 00 00 00 00 00 00 08 00 08 88: 06 06 00 00 00 00 00 00 38 00 00 00 00 00 06 c0 e9 f4 f6 eb f6 f6 ea [...] Ok, here is the data: e9 f4 f6 eb f6 f6 ea [...] The commands are very similar, but they are 16 bytes long (instead of 10) and they always return 8 status bytes. That's the main difference. I will take a closer look on it in the evening. Could you please do some more sniffing? With simple images (like Similies :) and under different conditions (cold lamp, uncalibrated, calibrated, after power-on etc.). The output of log2io is enough. Regards
[sane-devel] Thanks!
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Thank you very much :-) I've found my error. The units in which sane gives me the range of X and Y (top-X, top-Y, bottom-X and bottom-Y) are not in millimeters, as is told by the scanner. Does anyone know the reason for this? I've discovered that X ranges from to 14.000.000 aprox, and it's trivial to see that it can't be millimeters (can you imagine it? :-S wooo). How could I discover the real units of that measure? Thanks! - -- Josep Felix Rubio Dalmau GnuPG Public Key: http://keyserver.veridis.com:11371/export?id=-9021467632073768555 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEJ+qtgs1O/IWPAZURA1JFAJ9cN7vP2bG91+zWbCuk3zUqJnaKTwCgzpkP wG75DjVAsZFxl4unqeejjmY= =CsTX -END PGP SIGNATURE- __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m?viles desde 1 c?ntimo por minuto. http://es.voice.yahoo.com
[sane-devel] Canon Lide 50 (Genesys) - Added threshold for BW (lineart)
Laurent Charpentier schrieb: I would like to submit a patch for the genesys backend (Canon LIDE 50). The patch adds the threshold feature for black/white mode (in 1.0.17 the threshold is set to 50% and can't be changed). The attached patch is relative to sane-backends-1.0.17 (files genesys.c, genesys.h, genesys_gl841.c, genesys_low.h). Thank you to apply this patch. It is in cvs now, with a little cleanup. I also made the software lineart conversion for gl646 use this threshold. Regards, Pierre
[sane-devel] Thanks!
On Mon, 2006-03-27 at 15:37 +0200, Felix Rubio Dalmau wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Thank you very much :-) I've found my error. The units in which sane gives me the range of X and Y (top-X, top-Y, bottom-X and bottom-Y) are not in millimeters, as is told by the scanner. Does anyone know the reason for this? I've discovered that X ranges from to 14.000.000 aprox, and it's trivial to see that it can't be millimeters (can you imagine it? :-S wooo). How could I discover the real units of that measure? Thanks! It is millimetres, but the data type is not integer, but fixed. The option descriptor you get with sane_get_option_descriptor contains the fields type and unit. In this case the type is SANE_TYPE_FIXED and the unit is SANE_UNIT_MM. You have to check the option descriptor to know how to interpret the values. Different backends can use different types for the same option. You can use the SANE_FIX and SANE_UNFIX macros to convert between double and fixed values. Mattias -- next part -- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2260 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060327/91982386/smime.bin From oliver.schwa...@gmx.de Mon Mar 27 21:01:24 2006 From: oliver.schwa...@gmx.de (Oliver Schwartz) Date: Mon Mar 27 21:02:08 2006 Subject: [sane-devel] CVS problem? In-Reply-To: 20060326171640.gb8...@meier-geinitz.de References: 200603261242.15604.oliver.schwa...@gmx.de 20060326171640.gb8...@meier-geinitz.de Message-ID: 200603272301.24507.oliver.schwa...@gmx.de Hi, On 2006-03-26 12:42, Oliver Schwartz wrote: Hi, it seems there's a problem with CVS. My password is not accepted, cvs keeps asking for it. Works for me. Maybe a temporary issue? So it seems. My account works again, anonymous CVS also. /Oliver
[sane-devel] canon canoscan d646u ex
Can someone please give me some information about the canon canoscan d646u ex...i know its unsupported by sane, but maybe there is some workaround...i was thinking to develop a backend, but i don't know so much about the hardware part...what's the chipset Or best is to buy another scanner. thank by the helps, and sorry about the poor english Hebert Magalhaes -- next part -- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060327/a17d934e/attachment.htm From power_station_2...@yahoo.com Tue Mar 28 05:46:58 2006 From: power_station_2...@yahoo.com (Tamkang) Date: Tue Mar 28 05:54:15 2006 Subject: [sane-devel] Authorization , plug on plug off the usb scanner ?? Message-ID: 20060328054658.64571.qm...@web30501.mail.mud.yahoo.com I have a Question that I encounter when I debug microtek2.c there is an Authorization function , when it will use ? is it when open xsane as a user not as a root so I must login first not as root and after that I can use the scanner , there is a problem that I don't understand where is goes wrong in this situation: 1. when I use user login not root and then open xsane will have error the scanner I / O Port failed and the when I debug step by step to look for the error , it seems step into the sane_open function, and when after usb_open is open the handle device and after that step to usb_claim_interface it return error code. /// sane_open (SANE_String_Const devicename, SANE_Handle *handle) {/*This function may return with one of the following status codes. 1.SANE_STATUS_IO_ERROR: An error occured while communicating with the device. 2.SANE_STATUS_NO_MEM: An insufficent amount of memory is available. 3.SANE_STATUS_GOOD: XSane Open successfully. */ Microtek_Scanner *ms = NULL; Microtek_Device*pdev; if (devicename[0]) {/* selected */ for(pdev = pdevFirst;pdev; pdev = pdev-next) if(!strcmp(devicename,pdev-sane.name)) break; /* no dynamic post-registration */ }else { pdev=pdevFirst; } if (!pdev) return SANE_STATUS_INVAL; ms = (Microtek_Scanner *)calloc(1, sizeof(Microtek_Scanner)); if(!ms) return SANE_STATUS_NO_MEM; ms-dev = pdev; ms-next = ms_first_handle; /* register open handle */ ms_first_handle = ms; //ms-model = pdev-model; /* memorize model */ /* open and prepare USB scanner handle */ ms-hdev = usb_open(pdev-dev); if (!ms-hdev) return SANE_STATUS_IO_ERROR;/*SetError(this,SANE_STATUS_IO_ERROR, cannot open scanner device);*/ if (usb_claim_interface(ms-hdev, 0)) return SANE_STATUS_IO_ERROR;/*SetError(this,SANE_STATUS_IO_ERROR, cannot claim IF); */ if (usb_set_configuration(ms-hdev, 1)) return SANE_STATUS_IO_ERROR;/*SetError(this,SANE_STATUS_IO_ERROR, cannot set USB config 1); */ after has appear this SANE_STATUS_IO_ERROR , I try to plug off the USB cable or plug off the power adapter from scanner and after 2 seconds, I plug on it again and after that I re-run the xsane and it succesfull open xsane, but when I restart the computer and use other to login not root it still have the problem SANE _STATUS_IO_ERROR, where is goes wrong ? it seems need root authorization isn't it ? because I use root there is no problem with IO ERROR. I use REDHAT 9 kernel 2.4.20-8 and sane-backend 1.0.15 and xsane.0.97 Thanks for your help Best regards, sofian - New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -- next part -- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20060327/892e75c8/attachment-0001.htm From power_station_2...@yahoo.com Tue Mar 28 12:48:33 2006 From: power_station_2...@yahoo.com (Tamkang) Date: Tue Mar 28 12:49:00 2006 Subject: [sane-devel] Re: A problem with permissions Message-ID: 20060328124833.849.qm...@web30503.mail.mud.yahoo.com It seems that I have a simillar problem with this one, it looks like the OS doesn't want to gave the USB_CLAIM_INTERFACE, so it appear I/O error. does anyone have any suggestion ? I use REDHAT 9 kernel 2.4.20-8 and sane-backend 1.0.15 and xsane.0.97 Thanks for your help Best regards, sofian I've been configuring things on my machine running Debian and have been doing well with the exception of one nagging problem: getting SANE to run on my user account. When I log into root, it works perfectly, but, when I'm logged in as a user, it crashes without any identifiable error. The user is in the saned and scanner groups. I have tried to check every file and directory