Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2007 17:53:45 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        jessy@muenchen-mail.de
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Sending to ulpt0
Message-ID:  <20070204065345.GB19401@turion.vk2pj.dyndns.org>
In-Reply-To: <1170551527.45c532e7906d1@webmail.mnet-online.de>
References:  <1170551527.45c532e7906d1@webmail.mnet-online.de>

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

--a8Wt8u1KmwUX3Y2C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, 2007-Feb-04 02:12:07 +0100, jessy@muenchen-mail.de wrote: My
>parents recently bought a Laserjet 1018 printer and I want(ed) to
=2E..
>other PC and it prints. I switch it off and back on and it stops working. =
The
>manual for foo2zjs instructs to send the firmware with cat
>/usr/share...hp1018.lp >/dev/ulpt0 to the printer, which leads to a timeout
>(Device busy)

I'm not aware of that printer specifically so the following is just
general comments on the problem.

It is possible that downloading the firmware actually requires a handshake
sequence of some sort and your attempt to cat to the printer is failing
because nothing is reading the return data.

There is a lot of debugging infrastructure in the USB code.  In order to
enable this, you would need to rebuild your kernel with
	options USB_DEBUG
in the your config file.  Debug output is then controlled by a number
of sysctl's but controlling and interpreting the debug output needs
reference to the source code.

>2. detaching the driver from the usb-port, sending the firmware over a gen=
eric
>usb driver and re-attaching the ulpt driver

The only way to stop ulpt grabbing the printer is to remove it from the
kernel.  ulpt is compiled into GENERIC, making this difficult.  Assuming
you have ulpt as a kld, the process is:
- Unplug printer from computer (releasing ultp0)
- kldunload ulpt
- Re-connect printer (which will attach as ugen0)
- Play with printer via ugen
- Unplug printer from computer (releasing ugen0)
- kldload ulpt
- Re-connect printer (which will attach as ulpt0)

--=20
Peter Jeremy

--a8Wt8u1KmwUX3Y2C
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFxYL5/opHv/APuIcRAlMSAKCfZYWF8B+bNeKLYnQL7N4SgBBw3gCgiPxl
7OQeDEGXnGjq5du4qBzHUQA=
=Ob6S
-----END PGP SIGNATURE-----

--a8Wt8u1KmwUX3Y2C--



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