USB printer.
Nick Hibma
n_hibma at qubesoft.com
Thu Jul 5 10:07:40 BST 2001
Could you compile the driver with debugging switched on? Just add
#define ULPT_DEBUG
to the very top of the file.
And change
int ulptdebug = 0;
to
int ulptdebug = 5
Check that no other driver or program (like lpd) has /dev/ulpt0 opened.
Do you see a long delay (16 seconds) on opening the device? A thing you
could try is increase TIMEOUT at the top of the file. hz*16 means 16
seconds. Change that to a higher value and see whether that solves the
problem.
If you do not see a long delay and there is only one program having the
port open, I have no clue why it should return EBUSY. :-(
Brian, if you have one of those printers, I think our next FSL meeting
should either be at your place or in Bicester and I pass by your place
first ... :-)
I'll try and patch the most recent version of the ulpt driver from
NetBSD across.
Nick
On Wed, 4 Jul 2001, Brian Somers wrote:
> I've had similar problems. I've cc'd Nick 'cos he knows all about
> usb thingies :)
>
> I found that if you shut the machine down, unplug the printer from
> the USB converter, bring the machine up again, take the printer
> offline, plug the USB converter back in then bring the printer back
> online, it tends to work for a bit..... but not for long :(
>
> > Well, not quite a USB printer, more a USB to printer cable (USB plug at
> > one end, 36 way Centronics at the other - very neat).
> >
> > Anyway, I've got one of these; a Belkin model. It gets detected fine:
> >
> > usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
> > usb0: USB revision 1.0
> > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > uhub0: 2 ports with 2 removable, self powered
> > ulpt0: Belkin Components (2nd) F5U002 Parallel printer adapter, rev
> > 1.00/1.04, addr 2, iclass 7/1
> >
> > but doesn't seem to want to print (using /dev/ulpt0, which exists ok) -
> > just reports device busy.
> >
> > I've tried it under Linux and the generic USB printer driver works
> > there, so the thing *does* work and it is looking like a USB printer it
> > would seem. Any thoughts of what I might have done wrong? I'd really
> > like to leave the parallel port free for the scanner.
> >
> > Kernel config has:
> >
> > device uhci # UHCI PCI->USB interface
> > device usb # USB Bus (required)
> > device ugen # Generic
> > device ulpt # Printer
> >
> > (it's 4.3-STABLE).
> >
> > Anyone had any luck with any form of USB printer under FreeBSD?
> >
> > J.
> >
> > --
> > I'm not allowed to talk to you any more.
> > Ask me about server co-location - info at blackcatnetworks.co.uk
>
> --
> Brian <brian at freebsd-services.com> <brian at Awfulhak.org>
> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org>
> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org>
>
>
--
Qube Software, Ltd. Private:
n_hibma at qubesoft.com n_hibma at webweaving.org
n_hibma at freebsd.org
http://www.qubesoft.com/ http://www.etla.net/~n_hibma/
More information about the Ukfreebsd
mailing list