Re: [Hp5400backend-devel] Trouble with Driver
Status: Alpha
Brought to you by:
soumarmt
From: Thomas S. <sou...@ne...> - 2003-03-07 22:42:58
|
Hi, your problem is now that the version string sent by the scanner does not = match=20 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= =20 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'=20 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'=20 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=20 scanner. It should work but as the versions of the internal chipset are=20 different it may not.=20 Anyway I have added just now a similar patch in the CVS.=20 To disable the version test, look in the Makefile for NO_STRING_VERSION_M= ATCH. Thomas. Le Vendredi 7 Mars 2003 21:13, Kevin DeKorte a =E9crit : > 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 'SilitekIBl= izd > 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 th= ose > > lines to /etc/modules.conf : > > =09#added for HP5470 scanner > > =09alias /dev/usb/scanner0 scanner > > =09options scanner vendor=3D0x3f0 product=3D0x1105 > > > > then run > > =09modprobe > > 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 fee= ling > > 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 |