Re: [Hp5400backend-devel] Trouble with Driver
Status: Alpha
Brought to you by:
soumarmt
From: Kevin D. <kde...@ya...> - 2003-03-08 14:58:14
|
Thomas, Success! I have found two places in the code where this commenting out nee= ds=20 to be done. After that things worked really well. I used xsane to preview.=20 I scanned at 75dpi,300dpi,600dpi and 1200dpi Only problem was that the image was a little blue. I had to up the brightne= ss=20 to about 50 to get "white" This makes me VERY happy to see this working and I appreciate all your work= =2E=20 The only thing I have left that needs windows is my camera now.. And the=20 gphoto team is working on that.=20 Kevin Author: mplayerplug-in http://mplayerplug-in.sf.net On Friday 07 March 2003 03:41 pm, Thomas Soumarmon wrote: > Hi, > > your problem is now that the version string sent by the scanner does not > match the ones we've got in development. > > 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; > } > } > > 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 > > Note that you would be the first one to test it with your version of the > scanner. It should work but as the versions of the internal chipset are > different it may not. > > Anyway I have added just now a similar patch in the CVS. > To disable the version test, look in the Makefile for > NO_STRING_VERSION_MATCH. > > > Thomas. > > Le Vendredi 7 Mars 2003 21:13, Kevin DeKorte a =C3=A9crit : > > Ok, > > > > Made some progress... > > > > just a a note the modprobe line should be > > > > #added for HP5470 scanner > > alias /dev/usb/scanner0 scanner > > options scanner vendor=3D0x3f0 product=3D0x1005 > > > > the product version was off > > > > So now I am getting closer I have this error > > > > SANE_DEBUG_HP5400=3D255 scanimage > > [sanei_debug] Setting debug level of hp5400 to 255. > > [hp5400] sane_init > > [hp5400] Reading config file > > [hp5400] vendor/product 0x03F0-0x1005 > > [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] sane_get_devices > > scanimage: no SANE devices found > > [hp5400] sane_exit > > > > > > > > Kevin > > > > On Friday 07 March 2003 12:29 pm, Thomas Soumarmon wrote: > > > Hi, > > > > > > > > > > > > (snip) > > > > > > > [hp5400] Reading config file > > > > [hp5400] Using usb 0x03f0 0x1005 as device file > > > > [hp5400] vendor/product 0x0000-0x0000 > > > > [hp5400] hp5400_open failed > > > > [hp5400] sane_open: > > > > Segmentation fault > > > > > > Here you should have : > > > [hp5400] vendor/product 0x03f0 0x1005 > > > That is because of the hp5400.conf (see below) > > > > > > > in hp5400.conf I have > > > > usb 0x03f0 0x1005 > > > > > > in hp5400.conf don't put anything to use default device selection > > > > > > (snip) > > > > > > > hub.c: USB new device connect on bus1/1, assigned device number 19 > > > > usb.c: USB device 19 (vend/prod 0x3f0/0x1005) is not claimed by any > > > > active driver. > > > > > > Module scanner is not loaded. It should handle the USB device. Add > > > those lines to /etc/modules.conf : > > > #added for HP5470 scanner > > > alias /dev/usb/scanner0 scanner > > > options scanner vendor=3D0x3f0 product=3D0x1105 > > > > > > then run > > > modprobe > > > to launch the scanner module > > > > > > > Any ideas where I should look? Could it be a permission issue? > > > > > > I think it should work now. > > > > > > > > > Thomas. > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > > debugger for complex code. Debugging C/C++ programs can leave you > > > feeling lost and disoriented. TotalView can help you find your way. > > > Available on major UNIX and Linux platforms. Try it free. www.etnus.c= om > > > _______________________________________________ > > > Hp5400backend-devel mailing list > > > Hp5...@li... > > > https://lists.sourceforge.net/lists/listinfo/hp5400backend-devel > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugg= er > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Hp5400backend-devel mailing list > Hp5...@li... > https://lists.sourceforge.net/lists/listinfo/hp5400backend-devel |