hp5400backend-devel Mailing List for Scanjet HP5400 family sane backend
Status: Alpha
Brought to you by:
soumarmt
You can subscribe to this list here.
2003 |
Jan
(2) |
Feb
(3) |
Mar
(16) |
Apr
(1) |
May
|
Jun
(16) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(8) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <in...@ka...> - 2004-12-24 11:33:28
|
Hi, What is the status of this project? I have tried to follow the INSTALL.txt instructions, but I cant open the=20 usb-device. Ivar T=F8nnesen Copenhagen, Denmark |
From: ACCART J. <big...@fr...> - 2004-05-31 21:54:47
|
Thank you very much helping me like you did. :) All works fine. I keep my subscription to help people if I can. :) I think we will be able to speak some more times. Thx again ;) -- Julius Le sam 29/05/2004 à 13:30, Ernest Adrogué a écrit : > * [29/05/04 03:20] ACCART Julien: > > > Ok, thank you very much. > > My scanner is now reconized by sane. :) > > I wouldn't have found by myself. > > I didn't find it by myself either, somebody told me what to > do. I too think that this option should be enabled by default. > > > Another question : > > The image is kinda blue. Do you have any tip to have white image in > > white and not blue? :p > > Hmmmm... I don't know. Maybe you can reduce the gamma value > for blue (with xsane hit Ctrl-B). |
From: ACCART J. <big...@fr...> - 2004-05-29 09:35:02
|
Ok, thank you very much. My scanner is now reconized by sane. :) I wouldn't have found by myself. Another question : The image is kinda blue. Do you have any tip to have white image in white and not blue? :p It is really nice from you helping me. :) -- Julius Le ven 28/05/2004 à 15:18, Kevin DeKorte a écrit : > I really wish this option would be the standard. As my scanner won't work with > out the recompile. > > Kevin > > On Friday 28 May 2004 03:21 am, Ernest Adrogué wrote: > > * [27/05/04 18:16] ACCART Julien: > > > It is very nice developping drivers like you do. Thx a lot. > > > > > > I spend all the day trying making work my HP 5400C. My kernel seems to > > > know my scanner but sane don't. :( > > > > It happened to me too... > > > > You must edit the file hp5400_internal.h; add a line like this one: > > > > #define NO_STRING_VERSION_MATCH > > > > Then recompile. > > > > At least this worked to me. |
From: ACCART J. <big...@fr...> - 2004-05-29 01:23:59
|
Ok, thank you very much. My scanner is now reconized by sane. :) I wouldn't have found by myself. Another question : The image is kinda blue. Do you have any tip to have white image in white and not blue? :p It is really nice from you helping me. :) -- Julius Le ven 28/05/2004 à 11:21, Ernest Adrogué a écrit : > * [27/05/04 18:16] ACCART Julien: > > > It is very nice developping drivers like you do. Thx a lot. > > > > I spend all the day trying making work my HP 5400C. My kernel seems to > > know my scanner but sane don't. :( > > It happened to me too... > > You must edit the file hp5400_internal.h; add a line like this one: > > #define NO_STRING_VERSION_MATCH > > Then recompile. > > At least this worked to me. |
From: Kevin D. <kde...@ya...> - 2004-05-28 13:18:33
|
I really wish this option would be the standard. As my scanner won't work w= ith=20 out the recompile. Kevin On Friday 28 May 2004 03:21 am, Ernest Adrogu=E9 wrote: > * [27/05/04 18:16] ACCART Julien: > > It is very nice developping drivers like you do. Thx a lot. > > > > I spend all the day trying making work my HP 5400C. My kernel seems to > > know my scanner but sane don't. :( > > It happened to me too... > > You must edit the file hp5400_internal.h; add a line like this one: > > #define NO_STRING_VERSION_MATCH > > Then recompile. > > At least this worked to me. |
From: Ernest <ead...@gm...> - 2004-05-28 09:21:21
|
* [27/05/04 18:16] ACCART Julien: > It is very nice developping drivers like you do. Thx a lot. > > I spend all the day trying making work my HP 5400C. My kernel seems to > know my scanner but sane don't. :( It happened to me too... You must edit the file hp5400_internal.h; add a line like this one: #define NO_STRING_VERSION_MATCH Then recompile. At least this worked to me. -- ernest |
From: Thomas S. <tho...@co...> - 2004-05-27 16:34:26
|
Hi Julien, SANE has a debug capability which is enabled by environment variables. = You may run : SANE_DEBUG_DLL=3D255 SANE_DEBUG_HP5400=3D255 scanimage -L 2> = hp5400sane.log to obtain a more complete log. Other possibility is to use strace to get = some infos about files accessed : strace scanimage -L 2> hp5400sanestrace.log If you don't find the reason why it doesn't work, you may send to me the = logs. If you find the reason why, please mail your solution to the list. A+, -------------------------------------------------------------------------= -- Thomas Soumarmon. Ing=C3=A9nieur D=C3=A9veloppement & Logiciels Libres -------------------------------------------------------------------------= -- COGITAE //www.cogitae.net/ -------------------------------------------------------------------------= -- tel: 05.34.14.39.39 - fax: 05.34.14.39.31 -------------------------------------------------------------------------= -- ----- Original Message -----=20 From: ACCART Julien=20 To: hp5200devel=20 Sent: Thursday, May 27, 2004 6:16 PM Subject: [Hp5400backend-devel] (no subject) Hi everybody, You'll quickly see that I'm french so I apologize now for all mistakes = I'll do. ;) It is very nice developping drivers like you do. Thx a lot. I spend all the day trying making work my HP 5400C. My kernel seems to = know my scanner but sane don't. :( See : dmesg [root@Tux sane.d]# dmesg hub.c: new USB device 00:1d.1-2, assigned address 4 scanner.c: USB scanner device (0x03f0/0x1005) now attached to scanner0 [root@Tux sane.d]# lsusb Bus 002 Device 004: ID 03f0:1005 Hewlett-Packard=20 [root@Tux sane.d]# sane-find-scanner -q found USB scanner (vendor=3D0x03f0, product=3D0x1005) at = /dev/usb/scanner0 found USB scanner (vendor=3D0x03f0 [Hewlett-Packard], product=3D0x1005 = [HP Scanjet 5400C Series]) at libusb:002:004 [root@Tux sane.d]# scanimage -L=20 No scanners were identified.=20 (xsane don't work too) [root@Tux sane.d]# scanimage -d hp5400:/dev/usb/scanner0 >> tmp.scn scanimage: open of device hp5400:/dev/usb/scanner0 failed: Operation = not supported I tried hp5400.conf with /dev/usb/scanner0 and with usb 0x03F0 0x1005 dll.conf contains the hp5400 line I have a Mandrake 9.2 and installed sane-backends-1.0.14. I tried the = beta1 backend and the result is the same. I have also read = http://sourceforge.net/mailarchive/forum.php?thread_id=3D1924996&forum_id= =3D24635 and followed the intrusions but it doesn't still work. Do you have any idea? --=20 Julius=20 |
From: ACCART J. <big...@fr...> - 2004-05-27 16:19:42
|
Hi everybody, You'll quickly see that I'm french so I apologize now for all mistakes I'll do. ;) It is very nice developping drivers like you do. Thx a lot. I spend all the day trying making work my HP 5400C. My kernel seems to know my scanner but sane don't. :( See : dmesg [root@Tux sane.d]# dmesg hub.c: new USB device 00:1d.1-2, assigned address 4 scanner.c: USB scanner device (0x03f0/0x1005) now attached to scanner0 [root@Tux sane.d]# lsusb Bus 002 Device 004: ID 03f0:1005 Hewlett-Packard [root@Tux sane.d]# sane-find-scanner -q found USB scanner (vendor=0x03f0, product=0x1005) at /dev/usb/scanner0 found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1005 [HP Scanjet 5400C Series]) at libusb:002:004 [root@Tux sane.d]# scanimage -L No scanners were identified. (xsane don't work too) [root@Tux sane.d]# scanimage -d hp5400:/dev/usb/scanner0 >> tmp.scn scanimage: open of device hp5400:/dev/usb/scanner0 failed: Operation not supported I tried hp5400.conf with /dev/usb/scanner0 and with usb 0x03F0 0x1005 dll.conf contains the hp5400 line I have a Mandrake 9.2 and installed sane-backends-1.0.14. I tried the beta1 backend and the result is the same. I have also read http://sourceforge.net/mailarchive/forum.php?thread_id=1924996&forum_id=24635 and followed the intrusions but it doesn't still work. Do you have any idea? -- Julius |
From: <ben...@id...> - 2004-05-21 08:28:56
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
From: Thomas S. <sou...@ne...> - 2003-06-15 15:59:06
|
Le Dimanche 15 Juin 2003 12:09, Llu=EDs P=E0mies a =E9crit : > > #define NO_STRING_VERSION_MATCH > > OK I've scanned my first photo very well. > > Thanks for all ! > > PS: I read in the mail list's archives and found that the image is a > little blue. It's true, in my photo too. I think the blue color is due to the automatic calibration. For example, if= =20 you set it to the medium value on Xsane, the colors are okay. |
From: Thomas S. <sou...@ne...> - 2003-06-15 15:57:11
|
Le Dimanche 15 Juin 2003 13:37, Vitaminoid a =E9crit : > On Sat, 14 Jun 2003 11:00:05 +0200 > Thomas Soumarmon <sou...@ne...> wrote: > > 1. Here's the system I got: > > vitaminoid@tachka$ uname -sr > FreeBSD 4.8-RELEASE > > 2. I don't think it could be a problem with permissioning, everything was > done under root privileges. I did not really think either, but it is often the case. Note that running = as=20 root does not imply you have access to the device, it could be strangely=20 mounted by a system user not granting access to any other user. > > 3. I've got a laptop running windows xp in the office, what software can i > use to get the detailed log of the scanner startup? You have to search for USBSnoopy or SnifUSB (maybe SniffUSB). I know it wor= ks=20 ok for Win2k, and never tried with WinXP |
From: Thomas S. <sou...@ne...> - 2003-06-15 07:04:58
|
The problem is known here. When we built this first revision of the h0p5400 backend, we could only try= it=20 on few scanners that all gave a similar answer to "what is your revision"=20 question. So we decided to add a test to see if revision match so that we g= et=20 more sure the backend works with the scanner. To avoid this test, you have to recompile the sane backends, adding=20 #define NO_STRING_VERSION_MATCH at the beginning of hp5400.c file. Then recompile, install and that should be ok. Note that it worked for some people, but it is still "at your own risk". Fo= r=20 the first tries, be near the scanner, ready to unplug it if it makes strang= e=20 noises. Have a nice day, Thomas Le Samedi 14 Juin 2003 20:33, vous avez =E9crit : > Ok now I can start the driver, but give me an error that don't know my > scanner. > This is the debug error: > > [hp5400] Trying to attach usb 0x03F0 0x1005 > [hp5400] vendor/product 0x03F0-0x1005 opened > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > [hp5400] Command 12 verified > [hp5400] Sorry, unknown scanner version. Attempted match on 'SilitekIBlizd > C3 ScannerV0.84' and 'SilitekIBlizd C3 ScannerV0.86' > [hp5400] Vesion is '' > [hp5400] attach_one_device: couldn't attach /dev/usb/scanner0 > [hp5400] hp5400_open: open returned Device busy > [hp5400] hp5400_open failed > [hp5400] attach_one_device: couldn't attach libusb:001:002 > > Of course my scanner is a HP Scanjet 5400c. In the bottom label are this > code: C8510A > > Thanks for all Thomas. > > A Dissabte 14 Juny 2003 18:47, Thomas Soumarmon va escriure: > > Hola Lluis, > > > > I think you'd better re-install the sane-backend-1.0.12 without > > installing the beta version. It looks like the beta version is not load= ed > > (unable to find _sane_hp5400_init) > > The beta version does not offer at the moment more functionality than t= he > > sane package. > > > > Bye, > > > > Thomas. |
From: Thomas S. <sou...@ne...> - 2003-06-14 16:48:34
|
Hola Lluis, I think you'd better re-install the sane-backend-1.0.12 without installing = the=20 beta version. It looks like the beta version is not loaded (unable to find= =20 _sane_hp5400_init) The beta version does not offer at the moment more functionality than the s= ane=20 package. Bye, Thomas. Le Samedi 14 Juin 2003 15:32, Llu=EDs P=E0mies a =E9crit : > Hi. I'm new in the list. > > I've an HP scanjet 5400c, and I'm using Debian GNU/Linux. > > After install the sane-bckends-1.0.12 and the hp5400-bckend 'beta version' > I've tried this: > > debian:~# sane-find-scanner > found USB scanner (vendor=3D0x03f0, product=3D0x1005) at /dev/usb/scann= er0 > found USB scanner (vendor=3D0x03f0 [Hewlett-Packard], product=3D0x1005 = [HP > Scanjet 5400C Series]) at libusb:001:002 > > It found two scanners, the 'scanner' kernel module and the libusb. If I > uninstall 'scanner' module it only found the libusb. > > After this... (whith the debug flags) > debian:~# scanimage -L > [sanei_debug] Setting debug level of dll to 128. > [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends 1.0.12 > [dll] sane_init: reading dll.conf > [dll] add_backend: adding backend `hp5400' > [dll] sane_get_devices > [dll] load: searching backend `hp5400' in `/usr/local/lib/sane' > [dll] load: trying to load `/usr/local/lib/sane/libsane-hp5400.so.1' > [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hp5400.so.1' > [dll] load: unable to find _sane_hp5400_init > [dll] load: unable to find _sane_hp5400_exit > [dll] load: unable to find _sane_hp5400_get_devices > [dll] load: unable to find _sane_hp5400_open > [dll] load: unable to find _sane_hp5400_close > [dll] load: unable to find _sane_hp5400_get_option_descriptor > [dll] load: unable to find _sane_hp5400_control_option > [dll] load: unable to find _sane_hp5400_get_parameters > [dll] load: unable to find _sane_hp5400_start > [dll] load: unable to find _sane_hp5400_read > [dll] load: unable to find _sane_hp5400_cancel > [dll] load: unable to find _sane_hp5400_set_io_mode > [dll] load: unable to find _sane_hp5400_get_select_fd > [dll] init: initializing backend `hp5400' > [dll] op_unsupported: call to unsupported backend operation > [dll] sane_get_devices: found 0 devices > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > [dll] sane_exit: exiting > [dll] sane_exit: finished > > > I've only the line 'usb 0x03F0 0x1005' in my hp5400.conf > > Can anybody tell me the cause of this error. > > Thanks and sorry for my very bad English (I'm catalan). > -- > Llu=EDs P=E0mies > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Hp5400backend-devel mailing list > Hp5...@li... > https://lists.sourceforge.net/lists/listinfo/hp5400backend-devel |
From: <llp...@ti...> - 2003-06-14 13:32:22
|
Hi. I'm new in the list. I've an HP scanjet 5400c, and I'm using Debian GNU/Linux. After install the sane-bckends-1.0.12 and the hp5400-bckend 'beta version'= =20 I've tried this: debian:~# sane-find-scanner found USB scanner (vendor=3D0x03f0, product=3D0x1005) at /dev/usb/scanner0 found USB scanner (vendor=3D0x03f0 [Hewlett-Packard], product=3D0x1005 [H= P=20 Scanjet 5400C Series]) at libusb:001:002 It found two scanners, the 'scanner' kernel module and the libusb. If I=20 uninstall 'scanner' module it only found the libusb. After this... (whith the debug flags) debian:~# scanimage -L [sanei_debug] Setting debug level of dll to 128. [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends 1.0.12 [dll] sane_init: reading dll.conf [dll] add_backend: adding backend `hp5400' [dll] sane_get_devices [dll] load: searching backend `hp5400' in `/usr/local/lib/sane' [dll] load: trying to load `/usr/local/lib/sane/libsane-hp5400.so.1' [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hp5400.so.1' [dll] load: unable to find _sane_hp5400_init [dll] load: unable to find _sane_hp5400_exit [dll] load: unable to find _sane_hp5400_get_devices [dll] load: unable to find _sane_hp5400_open [dll] load: unable to find _sane_hp5400_close [dll] load: unable to find _sane_hp5400_get_option_descriptor [dll] load: unable to find _sane_hp5400_control_option [dll] load: unable to find _sane_hp5400_get_parameters [dll] load: unable to find _sane_hp5400_start [dll] load: unable to find _sane_hp5400_read [dll] load: unable to find _sane_hp5400_cancel [dll] load: unable to find _sane_hp5400_set_io_mode [dll] load: unable to find _sane_hp5400_get_select_fd [dll] init: initializing backend `hp5400' [dll] op_unsupported: call to unsupported backend operation [dll] sane_get_devices: found 0 devices No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). [dll] sane_exit: exiting [dll] sane_exit: finished I've only the line 'usb 0x03F0 0x1005' in my hp5400.conf Can anybody tell me the cause of this error. Thanks and sorry for my very bad English (I'm catalan). =2D- Llu=EDs P=E0mies =20 |
From: Thomas S. <sou...@ne...> - 2003-06-14 09:01:00
|
I only see at this moment 3 options : * it might be a problem with big and little endian. Commands sent to the=20 scanner are array of chars and could be affected by the byte order your=20 system use. If it is that it would explain that the scanner does receive wh= at=20 we think we do and therefore does not reply as we expect * it could be a problem with permissioning ? * the scanner has not the same chipset. To check that you would have to get= a=20 USB log from its communication under a supported OS (e.g. Windows). Your=20 could log just the startup of a scanning program, then send it to me so I=20 could tell you if it talks the same way. Do you have knowledge about C programming ? Le Samedi 14 Juin 2003 10:02, vous avez =C3=A9crit : > Removed the /dev/uscanner0 line from hp5400.conf, same thing: > > root@tachka# scanimage -L > [sanei_debug] Setting debug level of dll to 256. > [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends 1.0.12 > [dll] sane_init: reading dll.conf > [dll] add_backend: adding backend `hp5400' > [dll] sane_get_devices > [dll] load: searching backend `hp5400' in `/usr/local/lib/sane' > [dll] load: trying to load `/usr/local/lib/sane/libsane-hp5400.so.1' > [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hp5400.so.1' > [dll] init: initializing backend `hp5400' > [sanei_debug] Setting debug level of hp5400 to 256. > [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from sane-backends > 1.0.12) [hp5400] Reading config file > [hp5400] Discarding line 1 > [hp5400] Discarding line 2 > [hp5400] Discarding line 3 > [hp5400] Discarding line 4 > [hp5400] Trying to attach usb 0x03F0 0x1005 > [hp5400] vendor/product 0x03F0-0x1005 opened > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > [hp5400] hp5400_command_verify failed, expected 0x1200, got 0xFCEC > [hp5400] failed to read version string > [hp5400] attach_one_device: couldn't attach /dev/uscanner0 > [hp5400] Discarding line 6 > [hp5400] Discarding line 7 > [hp5400] Discarding line 8 > [hp5400] Discarding line 9 > [hp5400] Discarding line 10 > [hp5400] Discarding line 11 > [hp5400] Discarding line 12 > [hp5400] Discarding line 13 > [hp5400] Discarding line 14 > [dll] init: backend `hp5400' is version 1.0.2 > [hp5400] sane_get_devices > [dll] sane_get_devices: found 0 devices > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > [dll] sane_exit: exiting > [dll] sane_exit: calling backend `hp5400's exit function > [hp5400] sane_exit > [dll] sane_exit: finished > --------------------------------------------- > > What does it mean? No luck? :-) > Can it be an OS-dependent problem? > > > Hi, > > > > looking at the debug log, it looks like your scanner does not respond to > > the hp5400 backend as it would be expected. > > > > Have a try removing the "/dev/uscanner0" line from hp5400.conf so it ju= st > > tries with the "usb 0x03F0 0x1005" line. > > > > I hope it will solve your problem because, other way, it could mean your > > scanner has another chipset inside than the one we saw till now, so the > > communication protocol may not work with it. > > > > Le Samedi 14 Juin 2003 08:12, Vitaminoid a =D0=98crit : > > > I've got a HP Scanjet 5400C running under FreeBSD 4.8 > > > Trying to make it work. > > > > > > Here's what I've got. > > > > > > root@tachka# dmesg|grep uscanner > > > uscanner0: Hewlett-Packard HP Scanjet 5400C Series, rev 1.10/0.00, ad= dr > > > 2 > > > > > > > > > root@tachka# sane-find-scanner -v -f /dev/uscanner0 > > > > > > searching for SCSI scanners: > > > checking /dev/uscanner0 even though it looks like a USB device... > > > failed to open (Invalid argument) # No SCSI scanners found. If you > > > expected something different, make sure that # you have loaded a SCSI > > > driver for your SCSI adapter. > > > > > > searching for USB scanners: > > > checking /dev/uscanner0... open ok, vendor and product ids were > > > identified found USB scanner (vendor=3D0x03f0, product=3D0x1005) at > > > /dev/uscanner0 ignoring libusb devices > > > # Your USB scanner was detected. It may or may not be supported by > > > # SANE. Try scanimage -L and read the backend's manpage. > > > > > > # Scanners connected to the parallel port or other proprietary ports > > > can't be # detected by this program. > > > done > > > > > > ----------------------------------------- > > > > > > So it's seen by the sane-find-scanner. > > > > > > In the file /usr/local/etc/sane.d/dll.conf I comment out everything > > > except hp5400. The contents of file /usr/local/etc/sane.d/hp5400.conf > > > are: > > > > > > usb 0x03F0 0x1005 > > > /dev/uscanner0 > > > > > > But scanimage doesn't work. > > > > > > ----------------------------------------- > > > > > > root@tachka# export SANE_DEBUG_HP5400=3D128 > > > root@tachka# export SANE_DEBUG_DLL=3D128 > > > root@tachka# scanimage -L > > > [sanei_debug] Setting debug level of dll to 128. > > > [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends > > > 1.0.12 [dll] sane_init: reading dll.conf > > > [dll] add_backend: adding backend `hp5400' > > > [dll] sane_get_devices > > > [dll] load: searching backend `hp5400' in `/usr/local/lib/sane' > > > [dll] load: trying to load `/usr/local/lib/sane/libsane-hp5400.so.1' > > > [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hp5400.so.1' > > > [dll] init: initializing backend `hp5400' > > > [sanei_debug] Setting debug level of hp5400 to 128. > > > [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from > > > sane-backends 1.0.12 ) > > > [hp5400] Reading config file > > > [hp5400] Discarding line 1 > > > [hp5400] Discarding line 2 > > > [hp5400] Discarding line 3 > > > [hp5400] Discarding line 4 > > > [hp5400] Trying to attach usb 0x03F0 0x1005 > > > [hp5400] vendor/product 0x03F0-0x1005 opened > > > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > > > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > > > [hp5400] hp5400_command_verify failed, expected 0x1200, got 0xFCEC > > > [hp5400] failed to read version string > > > [hp5400] attach_one_device: couldn't attach /dev/uscanner0 > > > [hp5400] Discarding line 6 > > > [hp5400] Discarding line 7 > > > [hp5400] Discarding line 8 > > > [hp5400] Discarding line 9 > > > [hp5400] Discarding line 10 > > > [hp5400] Discarding line 11 > > > [hp5400] Discarding line 12 > > > [hp5400] Discarding line 13 > > > [hp5400] Trying to attach /dev/uscanner0 > > > [hp5400] vendor/product 0x03F0-0x1005 opened > > > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > > > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > > > [hp5400] hp5400_command_verify failed, expected 0x1200, got 0x605B > > > [hp5400] failed to read version string > > > [hp5400] attach_one_device: couldn't attach /dev/uscanner0 > > > [dll] init: backend `hp5400' is version 1.0.2 > > > [hp5400] sane_get_devices > > > > > > No scanners were identified. If you were expecting something differen= t, > > > check that the scanner is plugged in, turned on and detected by the > > > sane-find-scanner tool (if appropriate). Please read the documentation > > > which came with this software (README, FAQ, manpages). > > > [dll] sane_exit: exiting > > > [dll] sane_exit: calling backend `hp5400's exit function > > > [hp5400] sane_exit > > > [dll] sane_exit: finished > > > > > > [dll] sane_get_devices: found 0 devices > > > > > > ---------------------------------------------------- > > > > > > Could you please help me to find out where the problem is? > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: eBay > > Great deals on office technology -- on eBay now! Click here: > > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > > _______________________________________________ > > Hp5400backend-devel mailing list > > Hp5...@li... > > https://lists.sourceforge.net/lists/listinfo/hp5400backend-devel |
From: Thomas S. <sou...@ne...> - 2003-06-14 07:53:36
|
Hi, looking at the debug log, it looks like your scanner does not respond to th= e=20 hp5400 backend as it would be expected. Have a try removing the "/dev/uscanner0" line from hp5400.conf so it just=20 tries with the "usb 0x03F0 0x1005" line. I hope it will solve your problem because, other way, it could mean your=20 scanner has another chipset inside than the one we saw till now, so the=20 communication protocol may not work with it. Le Samedi 14 Juin 2003 08:12, Vitaminoid a =E9crit : > I've got a HP Scanjet 5400C running under FreeBSD 4.8 > Trying to make it work. > > Here's what I've got. > > root@tachka# dmesg|grep uscanner > uscanner0: Hewlett-Packard HP Scanjet 5400C Series, rev 1.10/0.00, addr 2 > > > root@tachka# sane-find-scanner -v -f /dev/uscanner0 > > searching for SCSI scanners: > checking /dev/uscanner0 even though it looks like a USB device... failed = to > open (Invalid argument) # No SCSI scanners found. If you expected somethi= ng > different, make sure that # you have loaded a SCSI driver for your SCSI > adapter. > > searching for USB scanners: > checking /dev/uscanner0... open ok, vendor and product ids were identified > found USB scanner (vendor=3D0x03f0, product=3D0x1005) at /dev/uscanner0 > ignoring libusb devices > # Your USB scanner was detected. It may or may not be supported by > # SANE. Try scanimage -L and read the backend's manpage. > > # Scanners connected to the parallel port or other proprietary ports > can't be # detected by this program. > done > > ----------------------------------------- > > So it's seen by the sane-find-scanner. > > In the file /usr/local/etc/sane.d/dll.conf I comment out everything except > hp5400. The contents of file /usr/local/etc/sane.d/hp5400.conf are: > > usb 0x03F0 0x1005 > /dev/uscanner0 > > But scanimage doesn't work. > > ----------------------------------------- > > root@tachka# export SANE_DEBUG_HP5400=3D128 > root@tachka# export SANE_DEBUG_DLL=3D128 > root@tachka# scanimage -L > [sanei_debug] Setting debug level of dll to 128. > [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends 1.0.12 > [dll] sane_init: reading dll.conf > [dll] add_backend: adding backend `hp5400' > [dll] sane_get_devices > [dll] load: searching backend `hp5400' in `/usr/local/lib/sane' > [dll] load: trying to load `/usr/local/lib/sane/libsane-hp5400.so.1' > [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hp5400.so.1' > [dll] init: initializing backend `hp5400' > [sanei_debug] Setting debug level of hp5400 to 128. > [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from sane-backends > 1.0.12 ) > [hp5400] Reading config file > [hp5400] Discarding line 1 > [hp5400] Discarding line 2 > [hp5400] Discarding line 3 > [hp5400] Discarding line 4 > [hp5400] Trying to attach usb 0x03F0 0x1005 > [hp5400] vendor/product 0x03F0-0x1005 opened > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > [hp5400] hp5400_command_verify failed, expected 0x1200, got 0xFCEC > [hp5400] failed to read version string > [hp5400] attach_one_device: couldn't attach /dev/uscanner0 > [hp5400] Discarding line 6 > [hp5400] Discarding line 7 > [hp5400] Discarding line 8 > [hp5400] Discarding line 9 > [hp5400] Discarding line 10 > [hp5400] Discarding line 11 > [hp5400] Discarding line 12 > [hp5400] Discarding line 13 > [hp5400] Trying to attach /dev/uscanner0 > [hp5400] vendor/product 0x03F0-0x1005 opened > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > [hp5400] hp5400_command_verify failed, expected 0x1200, got 0x605B > [hp5400] failed to read version string > [hp5400] attach_one_device: couldn't attach /dev/uscanner0 > [dll] init: backend `hp5400' is version 1.0.2 > [hp5400] sane_get_devices > > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > [dll] sane_exit: exiting > [dll] sane_exit: calling backend `hp5400's exit function > [hp5400] sane_exit > [dll] sane_exit: finished > > [dll] sane_get_devices: found 0 devices > > ---------------------------------------------------- > > Could you please help me to find out where the problem is? |
From: Vitaminoid <vit...@vi...> - 2003-06-14 06:12:45
|
I've got a HP Scanjet 5400C running under FreeBSD 4.8 Trying to make it work. Here's what I've got. root@tachka# dmesg|grep uscanner uscanner0: Hewlett-Packard HP Scanjet 5400C Series, rev 1.10/0.00, addr 2 root@tachka# sane-find-scanner -v -f /dev/uscanner0 searching for SCSI scanners: checking /dev/uscanner0 even though it looks like a USB device... failed = to open (Invalid argument) # No SCSI scanners found. If you expected something different, make sur= e that # you have loaded a SCSI driver for your SCSI adapter. searching for USB scanners: checking /dev/uscanner0... open ok, vendor and product ids were identifie= d found USB scanner (vendor=3D0x03f0, product=3D0x1005) at /dev/uscanner0 ignoring libusb devices # Your USB scanner was detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Scanners connected to the parallel port or other proprietary ports ca= n't be # detected by this program. done ----------------------------------------- So it's seen by the sane-find-scanner. In the file /usr/local/etc/sane.d/dll.conf I comment out everything excep= t hp5400. The contents of file /usr/local/etc/sane.d/hp5400.conf are: usb 0x03F0 0x1005 /dev/uscanner0 But scanimage doesn't work. ----------------------------------------- root@tachka# export SANE_DEBUG_HP5400=3D128 root@tachka# export SANE_DEBUG_DLL=3D128 root@tachka# scanimage -L =20 [sanei_debug] Setting debug level of dll to 128. [dll] sane_init: SANE dll backend version 1.0.10 from sane-backends 1.0.1= 2 [dll] sane_init: reading dll.conf [dll] add_backend: adding backend `hp5400' [dll] sane_get_devices [dll] load: searching backend `hp5400' in `/usr/local/lib/sane' [dll] load: trying to load `/usr/local/lib/sane/libsane-hp5400.so.1' [dll] load: dlopen()ing `/usr/local/lib/sane/libsane-hp5400.so.1' [dll] init: initializing backend `hp5400' [sanei_debug] Setting debug level of hp5400 to 128. [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from sane-backends= 1.0.12 ) [hp5400] Reading config file [hp5400] Discarding line 1 [hp5400] Discarding line 2 [hp5400] Discarding line 3 [hp5400] Discarding line 4 [hp5400] Trying to attach usb 0x03F0 0x1005 [hp5400] vendor/product 0x03F0-0x1005 opened [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 [hp5400] hp5400_command_verify failed, expected 0x1200, got 0xFCEC [hp5400] failed to read version string [hp5400] attach_one_device: couldn't attach /dev/uscanner0 [hp5400] Discarding line 6 [hp5400] Discarding line 7 [hp5400] Discarding line 8 [hp5400] Discarding line 9 [hp5400] Discarding line 10 [hp5400] Discarding line 11 [hp5400] Discarding line 12 [hp5400] Discarding line 13 [hp5400] Trying to attach /dev/uscanner0 [hp5400] vendor/product 0x03F0-0x1005 opened [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 [hp5400] hp5400_command_verify failed, expected 0x1200, got 0x605B [hp5400] failed to read version string [hp5400] attach_one_device: couldn't attach /dev/uscanner0 [dll] init: backend `hp5400' is version 1.0.2 [hp5400] sane_get_devices No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). [dll] sane_exit: exiting [dll] sane_exit: calling backend `hp5400's exit function [hp5400] sane_exit [dll] sane_exit: finished [dll] sane_get_devices: found 0 devices ---------------------------------------------------- Could you please help me to find out where the problem is? --=20 =FA=C5=D7=C1=D4=D8 =D7 =D0=D2=C9=D3=D5=D4=D3=D4=D7=C9=C9 =C4=D2=D5=C7=C9=C8= =CC=C0=C4=C5=CA =D0=D2=C9=DA=CE=C1=CB =D0=CC=CF=C8=CF=C7=CF =D4=CF=CE=C1= . =F6=C5=CC=C1=CE=C9=C5 =DA=C5=D7=CE=D5=D4=D8 =D0=D2=C5=CB=D2=C1=D4=C9=D4= =D3=D1, =C5=D3=CC=C9 =D0=D2=CF=D7=C5=D3=D4=C9 =CC=C1=C4=CF=CE=D8=C0 =D0=CF= =CC=C2=D5 =D3=CE=C9=DA=D5 =D7=D7=C5=D2=C8. =E5=D3=CC=C9 =DC=D4=CF =CE=C5= =D0=CF=CD=CF=C7=C1=C5=D4, =CF=C2=CC=C9=D6=C9 =C7=D5=C2=D9, =CE=C5 =CF=D4= =CB=D2=D9=D7=C1=D1 =D2=D4=C1, =C9=CC=C9 =D0=D2=CF=D3=D4=CF =DA=C1=CB=D2=CF= =CA=D3=D1 =D2=D5=CB=C1=D7=CF=CD, =DE=D4=CF=C2=D9 =CE=C9=CB=D4=CF =CE=C5 =D7= =C9=C4=C5=CC, =DE=D4=CF =D4=D9 =C4=C5=CC=C1=C5=DB=D8. =FE=C9=C8=C1=D1 =CE= =C1 =CC=C0=C4=D1=C8, =D4=D9 =CD=CF=D6=C5=DB=D8 =D0=CF=CB=C1=DA=C1=D4=D8=D3= =D1 =C7=CC=D5=D0=D9=CD. |
From: Lilith <luc...@nt...> - 2003-06-03 13:21:15
|
I deleted the hp5400.conf which was in the folder which I complied and installed from, altered hp5400.conf to: /dev/usb/scanner0 (left 'usb 0x03F0 0x1005' commented out) Reinstated the info in modules.conf and Xsane is now only detecting one scanner now and working nicely with the backend. Thank you for your help :-) Thomas Soumarmon wrote: ><snip> > > > >>I commented out everything in hp5400.conf and I also commented out in >>/etc/modules.conf : >>alias /dev/usb/scanner0 scanner >>options scanner vendor=0x3f0 product=0x1005 >> >> > >removing the info from modules.conf is not taken into account before you >reinit the modules. You may run >rmmod scanner >to unload the scanner module and have /dev/usb/scanner0 removed > > > >>Scan still works after those modifications, but it's still being listed >>twice by scanimage and xsane. >> >>sane-find-scanner -q >>found USB scanner (vendor=0x03f0, product=0x1005) at /dev/usb/scanner0 >>found USB scanner (vendor=0x03f0, product=0x1005) at libusb:001:002 >> >> > >It looks that the hp5400.conf that is used is not the one you commented out as >sane still finds the 2 entries you mention. > > > >>It seems as it's reading '/dev/usb/scanner0' and 'libusb:001:002' as two >>separate addresses. >> >> > >Actually they are different because it is 2 different paths to the same >hardware. > >/dev/usb/scanner0 is managed by scanner module >libusb:001:002 is managed by libusb module > > >You'd better leave one of the two lines in hp5400.conf : >* if you let the scanner0, don't forget to put back the modules.conf line to >have it connect at next boot. >* if you let the libusb you would not need (for SANE) the scanner module. But >maybe it could be used by another software, so I recommend you to put it back >too. > >Hope it helps, > >Thomas. > > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: eBay >Get office equipment for less on eBay! >http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 >_______________________________________________ >Hp5400backend-devel mailing list >Hp5...@li... >https://lists.sourceforge.net/lists/listinfo/hp5400backend-devel > > > |
From: Thomas S. <tho...@co...> - 2003-06-03 11:49:00
|
<snip> > > I commented out everything in hp5400.conf and I also commented out in > /etc/modules.conf : > alias /dev/usb/scanner0 scanner > options scanner vendor=0x3f0 product=0x1005 removing the info from modules.conf is not taken into account before you reinit the modules. You may run rmmod scanner to unload the scanner module and have /dev/usb/scanner0 removed > > Scan still works after those modifications, but it's still being listed > twice by scanimage and xsane. > > sane-find-scanner -q > found USB scanner (vendor=0x03f0, product=0x1005) at /dev/usb/scanner0 > found USB scanner (vendor=0x03f0, product=0x1005) at libusb:001:002 It looks that the hp5400.conf that is used is not the one you commented out as sane still finds the 2 entries you mention. > > It seems as it's reading '/dev/usb/scanner0' and 'libusb:001:002' as two > separate addresses. Actually they are different because it is 2 different paths to the same hardware. /dev/usb/scanner0 is managed by scanner module libusb:001:002 is managed by libusb module You'd better leave one of the two lines in hp5400.conf : * if you let the scanner0, don't forget to put back the modules.conf line to have it connect at next boot. * if you let the libusb you would not need (for SANE) the scanner module. But maybe it could be used by another software, so I recommend you to put it back too. Hope it helps, Thomas. |
From: Lilith <luc...@nt...> - 2003-06-03 11:03:34
|
Thomas Soumarmon wrote: >The problem of having twice the scanner as available could be due to a double >declaration in hp5400.conf or a >Check that the hp5400.conf does not declare twice the scanner or that there is >only one version of hp5400.conf on your computer. >I never saw this problem and I can't think of any problem that could be caused >by that. > I commented out everything in hp5400.conf and I also commented out in /etc/modules.conf : alias /dev/usb/scanner0 scanner options scanner vendor=0x3f0 product=0x1005 Scan still works after those modifications, but it's still being listed twice by scanimage and xsane. sane-find-scanner -q found USB scanner (vendor=0x03f0, product=0x1005) at /dev/usb/scanner0 found USB scanner (vendor=0x03f0, product=0x1005) at libusb:001:002 It seems as it's reading '/dev/usb/scanner0' and 'libusb:001:002' as two separate addresses. |
From: Thomas S. <tho...@co...> - 2003-06-03 06:32:13
|
The problem of having twice the scanner as available could be due to a doub= le=20 declaration in hp5400.conf or a=20 Check that the hp5400.conf does not declare twice the scanner or that there= is=20 only one version of hp5400.conf on your computer. I never saw this problem and I can't think of any problem that could be cau= sed=20 by that. The problem of xsane 0.84 is probably that it could not talk with=20 sane-backends-1.0.12 but with an older version. Thomas. Le Mardi 3 Juin 2003 01:34, Lilith a =E9crit : > I untarred a clean version of sane-backends-1.0.12 and then added '#define > NO_STRING_VERSION_MATCH' to the beginning of hp5400_internal.c > > scanimage now recognises scanner: > > scanimage -L > device `hp5400:/dev/usb/scanner0' is a Hewlett-Packard HP54xx Flatbed > Scanner flatbed scanner device `hp5400:/dev/usb/scanner0' is a > Hewlett-Packard HP54xx Flatbed Scanner flatbed scanner > > Tried scanning black and white document, resulting image has a blue tint, > but is readable. > > Tried to run Xsane 0.84 (version packaged with RH8). Says no device found. > Tried 'xsane hp5400:/dev/usb/scanner0', error message is 'Failure to open > device 'hp5400:/dev/usb/scanner0'. Operation not supported.' > > Downloaded and compiled xsane-0.91.tar.gz > <ftp://ftp.mostang.com/pub/sane/xsane/xsane-0.91.tar.gz> (available here: > ftp://ftp.mostang.com/pub/sane/xsane ) > Xsane now works, but lists the scanner twice under 'available device', ju= st > like it does with scanimage -L. (Will that cause any problems?) > > I'm very happy to have a working scanner now. Thanks for your help. > > Lilith > <snip> |
From: Lilith <luc...@nt...> - 2003-06-02 23:44:07
|
I untarred a clean version of sane-backends-1.0.12 and then added '#define NO_STRING_VERSION_MATCH' to the beginning of hp5400_internal.c scanimage now recognises scanner: scanimage -L device `hp5400:/dev/usb/scanner0' is a Hewlett-Packard HP54xx Flatbed Scanner flatbed scanner device `hp5400:/dev/usb/scanner0' is a Hewlett-Packard HP54xx Flatbed Scanner flatbed scanner Tried scanning black and white document, resulting image has a blue tint, but is readable. Tried to run Xsane 0.84 (version packaged with RH8). Says no device found. Tried 'xsane hp5400:/dev/usb/scanner0', error message is 'Failure to open device 'hp5400:/dev/usb/scanner0'. Operation not supported.' Downloaded and compiled xsane-0.91.tar.gz <ftp://ftp.mostang.com/pub/sane/xsane/xsane-0.91.tar.gz> (available here: ftp://ftp.mostang.com/pub/sane/xsane ) Xsane now works, but lists the scanner twice under 'available device', just like it does with scanimage -L. (Will that cause any problems?) I'm very happy to have a working scanner now. Thanks for your help. Lilith Thomas Soumarmon wrote: >Hi, > >you may try adding the following line at the begiinning of the >hp5400_internal.c file : > >#define NO_STRING_VERSION_MATCH > >A cleaner thing would be to have the -DNO_STRING_VERSION_MATCH added to the >compilation line, but I don't know how to do it with the SANE configure >program. Explanation : In the C compiler command (something like "cc OPTIONS >file.c"), the -DNO_STRING_VERSION_MATCH would define NO_STRING_VERSION_MATCH >in the compilng process and then avoid compiling the version string match >process. > > >The segmentation fault could be caused by following actions : >* scanner is recognized by its USB identification >* scanner is disconnected because it has not a known version string >* scanner is accessed after disconnection => seg fault >It is just a guess. > >Tell us if it works after that modification. > >Thank you for your report, > >Thomas. > > |
From: Thomas S. <tho...@co...> - 2003-06-02 15:08:24
|
Hi,=20 you may try adding the following line at the begiinning of the=20 hp5400_internal.c file : #define NO_STRING_VERSION_MATCH A cleaner thing would be to have the -DNO_STRING_VERSION_MATCH added to the= =20 compilation line, but I don't know how to do it with the SANE configure=20 program. Explanation : In the C compiler command (something like "cc OPTION= S=20 file.c"), the -DNO_STRING_VERSION_MATCH would define NO_STRING_VERSION_MATC= H=20 in the compilng process and then avoid compiling the version string match=20 process. The segmentation fault could be caused by following actions : * scanner is recognized by its USB identification * scanner is disconnected because it has not a known version string * scanner is accessed after disconnection =3D> seg fault It is just a guess. Tell us if it works after that modification. Thank you for your report, Thomas. Le Lundi 2 Juin 2003 14:30, Lilith a =E9crit : > Hi, > > Thank you for for putting the work in on this driver. I've tried to list > everything I think you'll need to help resolve this: > > I've complied sane-backends-1.0.12 on RH8, but my hp5400 scanner is not > being recognised by scanimage or xsane: > > scanimage -L > No scanners were identified. If you were expecting something different, > check that the scanner is plugged in, turned on and detected by the > sane-find-scanner tool (if appropriate). Please read the documentation > which came with this software (README, FAQ, manpages). > > sane-find-scanner -q > found USB scanner (vendor=3D0x03f0, product=3D0x1005) at /dev/usb/scanner0 > found USB scanner (vendor=3D0x03f0 [Hewlett-Packard], product=3D0x1005 [HP > Scanjet 5400C Series]) at libusb:002:002 > > dll.conf contains hp5400 > > hp5400.conf > # HP 5400C > usb 0x03F0 0x1005 > # > # Device filename to use for scanner access > /dev/usb/scanner0 > (I have tried commenting out 'usb 0x03F0 0x1005' and changing it to 'usb > 0x3F0 0x1005) > > dmesg stuff > hub.c: new USB device 00:1f.4-1, assigned address 2 > usb.c: USB device 2 (vend/prod 0x3f0/0x1005) is not claimed by any > active driver. > Adding Swap: 3068404k swap-space (priority -1) > usb.c: registered new driver usbscanner > scanner.c: USB scanner device (0x03f0/0x1005) now attached to scanner0 > scanner.c: 0.4.12:USB Scanner Driver > scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - > 3f0:1005 > > SANE_DEBUG_HP5400=3D255 scanimage -d hp5400 > [sanei_debug] Setting debug level of hp5400 to 255. > [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from > sane-backends 1.0.12) > [hp5400] Reading config file > [hp5400] Trying to attach /dev/usb/scanner0 > [hp5400] vendor/product 0x03F0-0x1005 opened > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D 1200 > [hp5400] Read: reqtype =3D 0xC0, req =3D 0x04, value =3D C500 > [hp5400] Command 12 verified > [hp5400] Sorry, unknown scanner version. Attempted match on > 'SilitekIBlizd C3 ScannerV0.84' and 'SilitekIBlizd C3 ScannerV0.86' > [hp5400] Vesion is '' > [hp5400] attach_one_device: couldn't attach /dev/usb/scanner0 > [hp5400] Discarding line 15 > [hp5400] sane_open: > Segmentation fault > > modules.conf > #added for HP5400 scanner > alias /dev/usb/scanner0 scanner > options scanner vendor=3D0x03f0 product=3D0x1005 > (I've also tried vendor as 0x3f0) > > > I can see that Thomas Soumarmon's solution here > (https://sourceforge.net/mailarchive/message.php?msg_id=3D4094726) fits my > > problem: > > You have to modify the C code in hp5400.c to be able to run the > > backend. The scanner is queried about a version string which is > > typically : 'SilitekIBlizd C3 ScannerV0.84' or 'SilitekIBlizd C3 > > ScannerV0.86' > > on the > > > scanner we tested. > > You may disable this test, changing > > > > if( memcmp( szVersion+1, MatchVersion, sizeof(MatchVersion)-1 ) ) > > { > > if( memcmp( szVersion+1, MatchVersion2, sizeof(MatchVersion2)-1 )= ) > > { > > DBG(DBG_MSG, "Sorry, unknown scanner version. Attempted match > > on '%s' > > > and '%s'\n", MatchVersion, MatchVersion2 ); > > DBG(DBG_MSG, "Vesion is '%s'", szVersion ); > > ret =3D -1; > > goto hp5400_close_exit; > > } > > } > > But I couldn't find the above in hp5400.c. I found it in > hp5400_internal.c in this form: > > #ifndef NO_STRING_VERSION_MATCH > if (memcmp (szVersion + 1, MatchVersion, sizeof (MatchVersion) - 1)) > { > if (memcmp (szVersion + 1, MatchVersion2, sizeof (MatchVersion2) - > 1)) { > DBG (DBG_MSG, > "Sorry, unknown scanner version. Attempted match on '%s' and > '%s'\n", > MatchVersion, MatchVersion2); > DBG (DBG_MSG, "Vesion is '%s'\n", szVersion); > ret =3D -1; > goto hp5400_close_exit; > } > } > #else > DBG (DBG_MSG, "Warning, Version match is disabled. Version is '%s'\n", > szVersion); > #endif /* NO_STRING_VERSION_MATCH */ > > Is that correct? Do I still need to do this: > > into : > > > > #ifdef 0 > > if( memcmp( szVersion+1, MatchVersion, sizeof(MatchVersion)-1 ) ) > > { > > if( memcmp( szVersion+1, MatchVersion2, sizeof(MatchVersion2)-1 )= ) > > { > > DBG(DBG_MSG, "Sorry, unknown scanner version. Attempted match > > on '%s' > > > and '%s'\n", MatchVersion, MatchVersion2 ); > > DBG(DBG_MSG, "Vesion is '%s'", szVersion ); > > ret =3D -1; > > goto hp5400_close_exit; > > } > > } > > #endif > > Also, do I need to alter this as well: > > #ifndef NO_STRING_VERSION_MATCH > /* Match on everything except the version number */ > if (memcmp (szVersion + 1, MatchVersion, sizeof (MatchVersion) - 4)) > { > if (memcmp (szVersion + 1, MatchVersion2, sizeof (MatchVersion2) - > 4)) { > DBG (DBG_MSG, > "Sorry, unknown scanner version. Attempted match on '%s' and > '%s'\n", > MatchVersion, MatchVersion2); > DBG (DBG_MSG, "Vesion is '%s'\n", szVersion); > goto hp5400_close_exit; > } > } > #else > DBG (DBG_MSG, "Warning, Version match is disabled. Version is '%s'\n", > szVersion); > #endif /* NO_STRING_VERSION_MATCH */ > > > Any ideas? Is there any other info you need from me? > > Thanks for your time. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Hp5400backend-devel mailing list > Hp5...@li... > https://lists.sourceforge.net/lists/listinfo/hp5400backend-devel |
From: Lilith <luc...@nt...> - 2003-06-02 12:30:46
|
Hi, Thank you for for putting the work in on this driver. I've tried to list everything I think you'll need to help resolve this: I've complied sane-backends-1.0.12 on RH8, but my hp5400 scanner is not being recognised by scanimage or xsane: scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). sane-find-scanner -q found USB scanner (vendor=0x03f0, product=0x1005) at /dev/usb/scanner0 found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1005 [HP Scanjet 5400C Series]) at libusb:002:002 dll.conf contains hp5400 hp5400.conf # HP 5400C usb 0x03F0 0x1005 # # Device filename to use for scanner access /dev/usb/scanner0 (I have tried commenting out 'usb 0x03F0 0x1005' and changing it to 'usb 0x3F0 0x1005) dmesg stuff hub.c: new USB device 00:1f.4-1, assigned address 2 usb.c: USB device 2 (vend/prod 0x3f0/0x1005) is not claimed by any active driver. Adding Swap: 3068404k swap-space (priority -1) usb.c: registered new driver usbscanner scanner.c: USB scanner device (0x03f0/0x1005) now attached to scanner0 scanner.c: 0.4.12:USB Scanner Driver scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - 3f0:1005 SANE_DEBUG_HP5400=255 scanimage -d hp5400 [sanei_debug] Setting debug level of hp5400 to 255. [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from sane-backends 1.0.12) [hp5400] Reading config file [hp5400] Trying to attach /dev/usb/scanner0 [hp5400] vendor/product 0x03F0-0x1005 opened [hp5400] Read: reqtype = 0xC0, req = 0x04, value = 1200 [hp5400] Read: reqtype = 0xC0, req = 0x04, value = C500 [hp5400] Command 12 verified [hp5400] Sorry, unknown scanner version. Attempted match on 'SilitekIBlizd C3 ScannerV0.84' and 'SilitekIBlizd C3 ScannerV0.86' [hp5400] Vesion is '' [hp5400] attach_one_device: couldn't attach /dev/usb/scanner0 [hp5400] Discarding line 15 [hp5400] sane_open: Segmentation fault modules.conf #added for HP5400 scanner alias /dev/usb/scanner0 scanner options scanner vendor=0x03f0 product=0x1005 (I've also tried vendor as 0x3f0) I can see that Thomas Soumarmon's solution here (https://sourceforge.net/mailarchive/message.php?msg_id=4094726) fits my problem: > You have to modify the C code in hp5400.c to be able to run the backend. > The scanner is queried about a version string which is typically : > 'SilitekIBlizd C3 ScannerV0.84' or 'SilitekIBlizd C3 ScannerV0.86' on the > scanner we tested. > You may disable this test, changing > > if( memcmp( szVersion+1, MatchVersion, sizeof(MatchVersion)-1 ) ) > { > if( memcmp( szVersion+1, MatchVersion2, sizeof(MatchVersion2)-1 ) ) > { > DBG(DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' > and '%s'\n", MatchVersion, MatchVersion2 ); > DBG(DBG_MSG, "Vesion is '%s'", szVersion ); > ret = -1; > goto hp5400_close_exit; > } > } But I couldn't find the above in hp5400.c. I found it in hp5400_internal.c in this form: #ifndef NO_STRING_VERSION_MATCH if (memcmp (szVersion + 1, MatchVersion, sizeof (MatchVersion) - 1)) { if (memcmp (szVersion + 1, MatchVersion2, sizeof (MatchVersion2) - 1)) { DBG (DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' and '%s'\n", MatchVersion, MatchVersion2); DBG (DBG_MSG, "Vesion is '%s'\n", szVersion); ret = -1; goto hp5400_close_exit; } } #else DBG (DBG_MSG, "Warning, Version match is disabled. Version is '%s'\n", szVersion); #endif /* NO_STRING_VERSION_MATCH */ Is that correct? Do I still need to do this: > into : > > #ifdef 0 > if( memcmp( szVersion+1, MatchVersion, sizeof(MatchVersion)-1 ) ) > { > if( memcmp( szVersion+1, MatchVersion2, sizeof(MatchVersion2)-1 ) ) > { > DBG(DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' > and '%s'\n", MatchVersion, MatchVersion2 ); > DBG(DBG_MSG, "Vesion is '%s'", szVersion ); > ret = -1; > goto hp5400_close_exit; > } > } > #endif Also, do I need to alter this as well: #ifndef NO_STRING_VERSION_MATCH /* Match on everything except the version number */ if (memcmp (szVersion + 1, MatchVersion, sizeof (MatchVersion) - 4)) { if (memcmp (szVersion + 1, MatchVersion2, sizeof (MatchVersion2) - 4)) { DBG (DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' and '%s'\n", MatchVersion, MatchVersion2); DBG (DBG_MSG, "Vesion is '%s'\n", szVersion); goto hp5400_close_exit; } } #else DBG (DBG_MSG, "Warning, Version match is disabled. Version is '%s'\n", szVersion); #endif /* NO_STRING_VERSION_MATCH */ Any ideas? Is there any other info you need from me? Thanks for your time. |
From: Lilith <luc...@nt...> - 2003-06-02 12:30:16
|
Hi, Thank you for for putting the work in on this driver. I've tried to list everything I think you'll need to help resolve this: I've complied sane-backends-1.0.12 on RH8, but my hp5400 scanner is not being recognised by scanimage or xsane: scanimage -L No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages). sane-find-scanner -q found USB scanner (vendor=0x03f0, product=0x1005) at /dev/usb/scanner0 found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x1005 [HP Scanjet 5400C Series]) at libusb:002:002 dll.conf contains hp5400 hp5400.conf # HP 5400C usb 0x03F0 0x1005 # # Device filename to use for scanner access /dev/usb/scanner0 (I have tried commenting out 'usb 0x03F0 0x1005' and changing it to 'usb 0x3F0 0x1005) dmesg stuff hub.c: new USB device 00:1f.4-1, assigned address 2 usb.c: USB device 2 (vend/prod 0x3f0/0x1005) is not claimed by any active driver. Adding Swap: 3068404k swap-space (priority -1) usb.c: registered new driver usbscanner scanner.c: USB scanner device (0x03f0/0x1005) now attached to scanner0 scanner.c: 0.4.12:USB Scanner Driver scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - 3f0:1005 SANE_DEBUG_HP5400=255 scanimage -d hp5400 [sanei_debug] Setting debug level of hp5400 to 255. [hp5400] sane_init: SANE hp5400 backend version 1.0-2 (from sane-backends 1.0.12) [hp5400] Reading config file [hp5400] Trying to attach /dev/usb/scanner0 [hp5400] vendor/product 0x03F0-0x1005 opened [hp5400] Read: reqtype = 0xC0, req = 0x04, value = 1200 [hp5400] Read: reqtype = 0xC0, req = 0x04, value = C500 [hp5400] Command 12 verified [hp5400] Sorry, unknown scanner version. Attempted match on 'SilitekIBlizd C3 ScannerV0.84' and 'SilitekIBlizd C3 ScannerV0.86' [hp5400] Vesion is '' [hp5400] attach_one_device: couldn't attach /dev/usb/scanner0 [hp5400] Discarding line 15 [hp5400] sane_open: Segmentation fault modules.conf #added for HP5400 scanner alias /dev/usb/scanner0 scanner options scanner vendor=0x03f0 product=0x1005 (I've also tried vendor as 0x3f0) I can see that Thomas Soumarmon's solution here (https://sourceforge.net/mailarchive/message.php?msg_id=4094726) fits my problem: > You have to modify the C code in hp5400.c to be able to run the backend. > The scanner is queried about a version string which is typically : > 'SilitekIBlizd C3 ScannerV0.84' or 'SilitekIBlizd C3 ScannerV0.86' on the > scanner we tested. > You may disable this test, changing > > if( memcmp( szVersion+1, MatchVersion, sizeof(MatchVersion)-1 ) ) > { > if( memcmp( szVersion+1, MatchVersion2, sizeof(MatchVersion2)-1 ) ) > { > DBG(DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' > and '%s'\n", MatchVersion, MatchVersion2 ); > DBG(DBG_MSG, "Vesion is '%s'", szVersion ); > ret = -1; > goto hp5400_close_exit; > } > } But I couldn't find the above in hp5400.c. I found it in hp5400_internal.c in this form: #ifndef NO_STRING_VERSION_MATCH if (memcmp (szVersion + 1, MatchVersion, sizeof (MatchVersion) - 1)) { if (memcmp (szVersion + 1, MatchVersion2, sizeof (MatchVersion2) - 1)) { DBG (DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' and '%s'\n", MatchVersion, MatchVersion2); DBG (DBG_MSG, "Vesion is '%s'\n", szVersion); ret = -1; goto hp5400_close_exit; } } #else DBG (DBG_MSG, "Warning, Version match is disabled. Version is '%s'\n", szVersion); #endif /* NO_STRING_VERSION_MATCH */ Is that correct? Do I still need to do this: > into : > > #ifdef 0 > if( memcmp( szVersion+1, MatchVersion, sizeof(MatchVersion)-1 ) ) > { > if( memcmp( szVersion+1, MatchVersion2, sizeof(MatchVersion2)-1 ) ) > { > DBG(DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' > and '%s'\n", MatchVersion, MatchVersion2 ); > DBG(DBG_MSG, "Vesion is '%s'", szVersion ); > ret = -1; > goto hp5400_close_exit; > } > } > #endif Also, do I need to alter this as well: #ifndef NO_STRING_VERSION_MATCH /* Match on everything except the version number */ if (memcmp (szVersion + 1, MatchVersion, sizeof (MatchVersion) - 4)) { if (memcmp (szVersion + 1, MatchVersion2, sizeof (MatchVersion2) - 4)) { DBG (DBG_MSG, "Sorry, unknown scanner version. Attempted match on '%s' and '%s'\n", MatchVersion, MatchVersion2); DBG (DBG_MSG, "Vesion is '%s'\n", szVersion); goto hp5400_close_exit; } } #else DBG (DBG_MSG, "Warning, Version match is disabled. Version is '%s'\n", szVersion); #endif /* NO_STRING_VERSION_MATCH */ Any ideas? Is there any other info you need from me? Thanks for your time. |