Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2011 19:52:07 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: help setup an HP 3300C scanner
Message-ID:  <CAJ5UdcMAjJ3TP%2BcwWevmotbrXL1m8BiOZ_JkGkJFyBMH_s8wnw@mail.gmail.com>
In-Reply-To: <CAJ5UdcNaX7CR8=rFpRbUY3BrPdB7LVbDREOVoZ1EAQ90WQPKng@mail.gmail.com>
References:  <CAJ5UdcM6OZe48v34o68YHBZsjW41zsKaS_fdOF14jZwneCeXjw@mail.gmail.com> <CAJ5UdcNaX7CR8=rFpRbUY3BrPdB7LVbDREOVoZ1EAQ90WQPKng@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 3, 2011 at 7:30 PM, Antonio Olivares
<olivares14031@gmail.com> wrote:
> On Wed, Aug 3, 2011 at 6:58 PM, Antonio Olivares
> <olivares14031@gmail.com> wrote:
>> Dear folks,
>>
>> I am sorry to bother you guys, but I need your help. =A0I have a scanner
>> HP 3300C scanner that is connected to one of my freebsd 8.2 amd
>> machines.
>>
>> I have done my homework:
>> read section scanners on FreeBSD Handbook:
>>
>> http://www.freebsd.org/doc/handbook/scanners.html
>>
>> looked at other threads:
>>
>> http://www.daemonforums.org/showthread.php?t=3D2057&page=3D1
>>
>> http://www.dslreports.com/forum/remark,12037990
>>
>> As root user, I can find the device name:
>>
>> quadcore# sane-find-scanner -q
>> found USB scanner (vendor=3D0x03f0 [Hewlett-Packard], product=3D0x0205 [=
HP
>> ScanJet 3300C]) at libusb:/dev/usb:/dev/ugen4.2
>> found USB scanner (vendor=3D0x0bda, product=3D0x8187 [RTL8187_Wireless])
>> at libusb:/dev/usb:/dev/ugen3.3
>>
>> but as myself(regular user) not :(
>>
>> [olivares@quadcore /usr/home/olivares]$ sane-find-scanner -q
>> [olivares@quadcore /usr/home/olivares]$
>>
>> I try to run simplescan -L but can't get it to work. =A0I run xsane and
>> it tells me that it can't find devices. =A0I looked in /etc/sane.d/ and
>> found hp.conf and edited it to handbook scanners section, see hp.conf
>> below:
>>
>> quadcore# pwd
>> /usr/local/etc/sane.d
>> quadcore# ls -l
>> total 166
>> -r--r--r-- =A01 root =A0wheel =A0 =A025 Aug =A03 17:46 abaton.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A014 Aug =A03 17:46 agfafocus.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A024 Aug =A03 17:46 apple.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A026 Aug =A03 17:46 artec.conf
>> -r--r--r-- =A01 root =A0wheel =A04188 Aug =A03 17:46 artec_eplus48u.conf
>> -r--r--r-- =A01 root =A0wheel =A0 543 Aug =A03 17:46 avision.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A029 Aug =A03 17:46 bh.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A035 Aug =A03 17:46 canon.conf
>> -r--r--r-- =A01 root =A0wheel =A0 193 Aug =A03 17:46 canon630u.conf
>> -r--r--r-- =A01 root =A0wheel =A02834 Aug =A03 17:46 canon_dr.conf
>> -r--r--r-- =A01 root =A0wheel =A0 509 Aug =A03 17:46 cardscan.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A034 Aug =A03 17:46 coolscan.conf
>> -r--r--r-- =A01 root =A0wheel =A0 754 Aug =A03 17:46 coolscan2.conf
>> -r--r--r-- =A01 root =A0wheel =A0 754 Aug =A03 17:46 coolscan3.conf
>> -r--r--r-- =A01 root =A0wheel =A0 984 Aug =A03 17:46 dc210.conf
>> -r--r--r-- =A01 root =A0wheel =A0 984 Aug =A03 17:46 dc240.conf
>> -r--r--r-- =A01 root =A0wheel =A0 704 Aug =A03 17:46 dc25.conf
>> -r--r--r-- =A01 root =A0wheel =A0 492 Aug =A03 17:46 dell1600n_net.conf
>> drwxr-xr-x =A02 root =A0wheel =A01536 Aug =A03 17:46 dist
>> -r--r--r-- =A01 root =A0wheel =A0 682 Aug =A03 17:46 dll.conf
>> drwxr-xr-x =A02 root =A0wheel =A0 512 Aug =A03 17:46 dll.d
>> -r--r--r-- =A01 root =A0wheel =A0 =A012 Aug =A03 17:46 dmc.conf
>> -r--r--r-- =A01 root =A0wheel =A01402 Aug =A03 17:46 epjitsu.conf
>> -r--r--r-- =A01 root =A0wheel =A0 793 Aug =A03 17:46 epson.conf
>> -r--r--r-- =A01 root =A0wheel =A0 376 Aug =A03 17:46 epson2.conf
>> -r--r--r-- =A01 root =A0wheel =A01679 Aug =A03 17:46 fujitsu.conf
>> -r--r--r-- =A01 root =A0wheel =A01157 Aug =A03 17:46 genesys.conf
>> -r--r--r-- =A01 root =A0wheel =A07798 Aug =A03 17:46 gt68xx.conf
>> -r--r--r-- =A01 root =A0wheel =A0 589 Aug =A03 18:44 hp.conf
>> -r--r--r-- =A01 root =A0wheel =A0 396 Aug =A03 17:46 hp3900.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A076 Aug =A03 17:46 hp4200.conf
>> -r--r--r-- =A01 root =A0wheel =A0 238 Aug =A03 17:46 hp5400.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A024 Aug =A03 17:46 hs2p.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A038 Aug =A03 17:46 ibm.conf
>> -r--r--r-- =A01 root =A0wheel =A0 367 Aug =A03 17:46 kodak.conf
>> -r--r--r-- =A01 root =A0wheel =A0 113 Aug =A03 17:46 leo.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A096 Aug =A03 17:46 lexmark.conf
>> -r--r--r-- =A01 root =A0wheel =A0 187 Aug =A03 17:46 ma1509.conf
>> -r--r--r-- =A01 root =A0wheel =A0 666 Aug =A03 17:46 matsushita.conf
>> -r--r--r-- =A01 root =A0wheel =A0 268 Aug =A03 17:46 microtek.conf
>> -r--r--r-- =A01 root =A0wheel =A0 279 Aug =A03 17:46 microtek2.conf
>> -r--r--r-- =A01 root =A0wheel =A02125 Aug =A03 17:46 mustek.conf
>> -r--r--r-- =A01 root =A0wheel =A0 809 Aug =A03 17:46 mustek_usb.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A013 Aug =A03 17:46 nec.conf
>> -r--r--r-- =A01 root =A0wheel =A0 573 Aug =A03 17:46 net.conf
>> -r--r--r-- =A01 root =A0wheel =A0 365 Aug =A03 17:46 p5.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A075 Aug =A03 17:46 pie.conf
>> -r--r--r-- =A01 root =A0wheel =A0 492 Aug =A03 17:46 pixma.conf
>> -r--r--r-- =A01 root =A0wheel =A04142 Aug =A03 17:46 plustek.conf
>> -r--r--r-- =A01 root =A0wheel =A0 943 Aug =A03 17:46 plustek_pp.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A029 Aug =A03 17:46 ricoh.conf
>> -r--r--r-- =A01 root =A0wheel =A0 183 Aug =A03 17:46 rts8891.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A013 Aug =A03 17:46 s9036.conf
>> -r--r--r-- =A01 root =A0wheel =A01052 Aug =A03 17:46 saned.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A048 Aug =A03 17:46 sceptre.conf
>> -r--r--r-- =A01 root =A0wheel =A01464 Aug =A03 17:46 sharp.conf
>> -r--r--r-- =A01 root =A0wheel =A0 115 Aug =A03 17:46 sm3840.conf
>> -r--r--r-- =A01 root =A0wheel =A02245 Aug =A03 17:46 snapscan.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A010 Aug =A03 17:46 sp15c.conf
>> -r--r--r-- =A01 root =A0wheel =A02224 Aug =A03 17:46 st400.conf
>> -r--r--r-- =A01 root =A0wheel =A0 178 Aug =A03 17:46 stv680.conf
>> -r--r--r-- =A01 root =A0wheel =A0 =A028 Aug =A03 17:46 tamarack.conf
>> -r--r--r-- =A01 root =A0wheel =A0 355 Aug =A03 17:46 teco1.conf
>> -r--r--r-- =A01 root =A0wheel =A0 636 Aug =A03 17:46 teco2.conf
>> -r--r--r-- =A01 root =A0wheel =A0 217 Aug =A03 17:46 teco3.conf
>> -r--r--r-- =A01 root =A0wheel =A01807 Aug =A03 17:46 test.conf
>> -r--r--r-- =A01 root =A0wheel =A01495 Aug =A03 17:46 u12.conf
>> -r--r--r-- =A01 root =A0wheel =A03094 Aug =A03 17:46 umax.conf
>> -r--r--r-- =A01 root =A0wheel =A0 386 Aug =A03 17:46 umax1220u.conf
>> -r--r--r-- =A01 root =A0wheel =A01684 Aug =A03 17:46 umax_pp.conf
>> -r--r--r-- =A01 root =A0wheel =A0 399 Aug =A03 17:46 xerox_mfp.conf
>> quadcore# cat hp.conf
>> #scsi HP
>> # Uncomment the following if you have "Error during device I/O" on SCSI
>> # =A0 option dumb-read
>> #
>> # The usual place for a SCSI-scanner on Linux
>> #/dev/scanner
>> #
>> # USB-scanners supported by the hp-backend
>> # HP ScanJet 4100C
>> #usb 0x03f0 0x0101
>> # HP ScanJet 5200C
>> #usb 0x03f0 0x0401
>> # HP ScanJet 62X0C
>> #usb 0x03f0 0x0201
>> # HP ScanJet 63X0C
>> #usb 0x03f0 0x0601
>> # HP ScanJet 3300C 0x03f0 0x0205 =A0at libusb:/dev/usb:/dev/ugen4.2
>> usb /dev/uscanner0
>> #
>> # Uncomment the following if your scanner is connected by USB,
>> # but you are not using libusb
>> # /dev/usb/scanner0
>> # =A0 option connect-device
>>
>> [olivares@quadcore /usr/home/olivares]$ 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).
>>
>> I have a file that should help with permissions, but I don't know if
>> that could be the cause?
>>
>> [olivares@quadcore /usr/home/olivares]$ cat /etc/rc.conf
>>
>> # -- sysinstall generated deltas -- # Tue Jul 26 23:20:43 2011
>> # Created: Tue Jul 26 23:20:43 2011
>> # Enable network daemons for user convenience.
>> # Please make all changes to this file, not to /etc/defaults/rc.conf.
>> # This file now contains just the overrides from /etc/defaults/rc.conf.
>> hostname=3D"quadcore.home"
>> ifconfig_msk0=3D"DHCP"
>> ntpdate_enable=3D"YES"
>> ntpdate_hosts=3D"north-america.pool.ntp.org"
>> tcp_extensions=3D"NO"
>> dbus_enable=3D"YES"
>> hald_enable=3D"YES"
>> devfs_system_ruleset=3D"Removable_Media"
>> lpd_enable=3D"YES"
>> ipfilter_enable=3D"YES"
>> ipfileter_rules=3D"/etc/ipf.rules"
>> ipmon_enable=3D"YES"
>> ipmon_flags=3D"-Ds"
>>
>>
>> [olivares@quadcore /usr/home/olivares]$ cat /etc/dev
>> devd/ =A0 =A0 =A0 =A0devd.conf =A0 =A0devfs.conf =A0 devfs.rules
>> [olivares@quadcore /usr/home/olivares]$ cat /etc/devfs.rules
>> [Removable Media]
>> add path 'ad*' mode 0666 group operator
>> add path 'acd*' mode 0666 group operator
>> add path 'cd*' mode 0666 group operator
>> add path 'pass*' mode 0666 group operator
>> add path 'xpt*' mode 0666 group operator
>> add path 'ugen*' mode 0666 group operator
>> add path 'usb*' mode 0666 group operator
>> add path 'lpt*' mode 0666 group operator
>> add path 'ulpt*' mode 0666 group operator
>> add path 'unlpt*' mode 0666 group operator
>> add path 'fd*' mode 0666 group operator
>>
>> Do I need to add uscanner* to it? =A0or another suggestion. =A0I would
>> like for the scanner to work as user.
>> Advice/suggestions/comments are welcome and appreciated :)
>>
>> Regards,
>>
>> Antonio
>>
>
> Found out some more information
>
> http://freebsd.1045724.n5.nabble.com/Scanner-Compatibility-td3778260.html
>
> In above page I found a link to check by vendor:
>
> http://www.sane-project.org/sane-mfgs.html#Z-HEWLETT-PACKARD
>
> If found it says complete:
>
> ScanJet 3300c =A0 USB =A0 =A0 0x03f0/0x0205 =A0 Complete =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0niash
> (0.3) =A0 sane-niash
>
>
> It took a great while for this to give me a response
>
> quadcore# scanimage -L
> device `niash:libusb:/dev/usb:/dev/ugen4.2' is a Hewlett-Packard
> ScanJet 3300C flatbed scanner
>
> I have downloaded the backend in case if it is needed here:
>
> http://sourceforge.net/projects/hp3300backend/files/backend/20060304/back=
end-20060304.tar.gz/download
>
> now I don't know how to troubleshoot this.
>
> Thanks & sorry for replying to my own question(s).
>
> Regards,
>
> Antonio
>

Took a little while but I ran test as suggested in one of the pages

quadcore# scanimage -T
scanimage: scanning image of size 1240x1712 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 3720 bytes...	PASS
scanimage: reading one byte...		PASS
scanimage: stepped read, 2 bytes... 	PASS
scanimage: stepped read, 4 bytes... 	PASS
scanimage: stepped read, 8 bytes... 	PASS
scanimage: stepped read, 16 bytes... 	PASS
scanimage: stepped read, 32 bytes... 	PASS
scanimage: stepped read, 64 bytes... 	PASS
scanimage: stepped read, 128 bytes... 	PASS
scanimage: stepped read, 256 bytes... 	PASS
scanimage: stepped read, 512 bytes... 	PASS
scanimage: stepped read, 1024 bytes... 	PASS
scanimage: stepped read, 2048 bytes... 	PASS
scanimage: stepped read, 4096 bytes... 	PASS
scanimage: stepped read, 4095 bytes... 	PASS
scanimage: stepped read, 2047 bytes... 	PASS
scanimage: stepped read, 1023 bytes... 	PASS
scanimage: stepped read, 511 bytes... 	PASS
scanimage: stepped read, 255 bytes... 	PASS
scanimage: stepped read, 127 bytes... 	PASS
scanimage: stepped read, 63 bytes... 	PASS
scanimage: stepped read, 31 bytes... 	PASS
scanimage: stepped read, 15 bytes... 	PASS
scanimage: stepped read, 7 bytes... 	PASS
scanimage: stepped read, 3 bytes... 	PASS
quadcore#

This as root though, but as simple user cannot do much :(, again xsane
tells me that no devices were found :(

Suggestions/Advice/comments are welcome and appreciated.

Regards,

Antonio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcMAjJ3TP%2BcwWevmotbrXL1m8BiOZ_JkGkJFyBMH_s8wnw>