Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2002 17:49:39 -0700 (MST)
From:      gary <gary@gary.wa5qjh.net>
To:        Andrew Boothman <andrew@cream.org>
Cc:        Mike Meyer <mwm-dated-1017382115.cede3f@mired.org>, <freebsd-questions@freebsd.org>
Subject:   Re: USB HP printer
Message-ID:  <20020324173245.J1229-100000@gary.wa5qjh.net>
In-Reply-To: <3C9DFA0B.50105@cream.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> Mike Meyer wrote:
>
> >
> >It should be listed in the dmesg output. If it doesn't list the device
> >as ulpt0, but lists it as a ugen device, you've got some work ahead of
> >you to make it work.
> >
> Or try the usbdevs command.
>
> For what its worth, my HP 990Cxi was recognised as ulpt0 and prints
> perfectly using print
> /apsfilter
>
> Andrew
>
>
I tried to send along an attachment that might have explained what I've
found so far. This time I'll include it inline cause it's not "REAL" long.
 I've tried to
 ls >/dev/ulpt0     and
 ls >/dev/unlpt0   The latter because of something found in
www.apsfilter.com. in both cases the computer hung up indefinitly.
Below here is the file I tried to include on the original. note the
references to :Cuecat. it is the only other USB device I have and I used it
for reference and trial

 -----------
From apsfilter.org handbook

Q: My USB-connected Epson Stylus printer won't work with {Free,Net,Open}BSD! [from the gimp-print FAQ]
A: By default, the BSD device driver for the USB printer device (usually ulpt0) does a prime, or USB bus reset, when the device is opened. This causes
the printer to reset itself (one can hear the print head moving back and forth when this happens) and lose sync. After this the printer won't go into graphics
mode and instead spews characters all over your expensive photo paper. This has been observed on the Stylus Photo 870; it likely exists with other
USB-connected Epson Stylus printers.

The fix is to use the unlpt0 device instead of ulpt0. The driver doesn't perform the USB prime when unlpt0 is opened. If this device doesn't exist on
your system you can create it with

     mknod unlpt0 c 113 64 root wheel

in the /dev directory.
--------------------------------------------
dmesg:
.
ulpt0: HEWLETT-PACKARD DESKJET 656C, rev 1.10/1.10, addr 2, iclass 7/1
.

usbdevs:
 % usbdevs -v
Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 0x0100
 port 1 addr 2: self powered, config 1, DESKJET 656C(0x2304), HEWLETT-PACKARD(0x03f0), rev 0x0110
 port 2 addr 3: low speed, power 48 mA, config 1, product 0x0101(0x0101), KYE Systems Corp.(0x0458), rev 0x0100

##Here I removed the connectors then replaced it. Note the difference
between the printer and cuecat.
HP 656C Printer connector being removed from USB port:
  uhub0: port error, restarting port 1
  ulpt0: at uhub0 port 1 (addr 2) disconnected
  ulpt0: detached
Connector re-inserted:
  ulpt0: HEWLETT-PACKARD DESKJET 656C, rev 1.10/1.10, addr 2, iclass 7/1

Radio-Shack :cuecat disconnected:
  uhub0: port error, restarting port 2
  ukbd0: at uhub0 port 2 (addr 3) disconnected
  ukbd0: detached
And re-inserted:
  ukbd0: KYE Systems Corp. product 0x0101, rev 1.10/1.00, addr 3, iclass 3/1
  kbd1 at ukbd0
 Note the second line: kbd1 at ukbd0 ,  kbd1 or actually /dev/kbd1
 cat /dev/kbd1 , then swiping different bar codes yields lots of data.

# ls -CF /dev/u*

/dev/ugen0	/dev/ugen0.14	/dev/ugen0.6	/dev/ulpt1*	/dev/urandom
/dev/ugen0.1	/dev/ugen0.15	/dev/ugen0.7	/dev/ulpt2*	/dev/usb*
/dev/ugen0.10	/dev/ugen0.2	/dev/ugen0.8	/dev/ums0	/dev/usb0*
/dev/ugen0.11	/dev/ugen0.3	/dev/ugen0.9	/dev/unlpt0*
/dev/ugen0.12	/dev/ugen0.4	/dev/uhid0	/dev/unlpt1*
/dev/ugen0.13	/dev/ugen0.5	/dev/ulpt0*	/dev/unlpt2*

ls >/dev/ulpt0, ls >/dev/unlpt0  hung up the computer. I MAKEDEV'd ulpt1 &2
and unlpt1 & 2. they returned "device not configured". Back when I had a
parallel fed printer I would/could ls /dev/lpt0 or cat <file> | dos2unix
>/devlpt0 if needed. That's what I've tried to do to discover the device
name of my usb printer to no avail/

I hope this is better explanation of what I've tried.

-- 
___
Gary B. Corell
wa5qjh.xmission.com
gary@gary.wa5qjh.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020324173245.J1229-100000>