From: <pa...@rc...> - 2001-05-07 04:07:21
|
Hi, Carlos. Carlos Puchol wrote: > hi, i tried installing hpoj on my newly > reinstalled redhat 7.1 printer server, > this time i connected the officejet g55 > via the usb port. > > rh7.1 has a 2.4.2-2 kernel running. i compiled hpoj > from cvs as of approx. Thu May 3 05:26:39 UTC 2001, > and all seems to compile and install fine. ... > i am pretty sure it is configured as an hp deskjet 550c, > but i don't know where those settings are put. Probably in /var/spool/lpd/lp. > the messages file had said (while booting) the following > abou usb: ... > May 3 04:58:40 tcb kernel: usb.c: registered new driver usblp > May 3 04:58:40 tcb kernel: printer.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 > > i then ran: > > ptal-printd mlc:usb:0 -like /dev/lp0 > ptal-mlcd usb:0 -device /dev/lp0 As you noticed subsequently, the proper "-device" for ptal-mlcd is something like /dev/usb/lp0 (the USB printer device), not /dev/lp0 (the parallel printer device). > ptal-mlcd usb:0 -device /dev/usb/lp0 > > with this, i try again: > > hpoj# ptal-devid mlc:usb:0 > > ptal-mlcd: ERROR at transport/ExMlcCommandChannel.cpp:184, dev=<usb:0>, pid=4179, errno=11 > Reply timer popped on port=0, count=1! ... > note that it takes about 5 to 10 seconds for the message to show up. It's actually more like 15 seconds for this timeout. From looking at your debug output, it appears that the InitReply from the peripheral is getting lost. What kind of USB hardware do you have? On the motherboard, or on a PCI card? I've had trouble with defective built-in USB host controllers before, which I solved by adding a PCI USB card. Of course, I don't want you to go out and buy a USB card unnecessarily, especially if it ends up not fixing anything. Since there are currently two UHCI drivers in the kernel, you could try the other one (uhci instead of usb-uhci). Has anybody else had any success of failure with using ptal-mlcd with USB on kernel 2.4? I haven't tried it yet, but I've got a fresh RedHat 7.1 on a spare PC at work which I will play around with at some point. (At the moment I'm having trouble getting CVS and SSH to work with SOCKS so I can get through the HP firewall from that machine to download the code. If I can't get it working soon I'll just tar it up and ftp it from one of my other machines.) > i will try when i have more energy with the parallel port > and see what happens. i assume that the usb interface is > much faster, correct? > > that is why i am going through this whole usb exercise :) Currently USB is considerably faster than parallel, at least when it actually works. :-) I'm going to try to improve the parallel performance eventually. David |