USB printer HP LJ 1300
Sergey Zaikov
Sergey_Zaikov at p66.f5.klax.tsu.tula.ru
Fri Aug 29 06:52:04 PDT 2003
Hello, Questions at freebsd.Org!!!
I have Hewlett-Packard LaserJet 1300 printer and
uname -a
FreeBSD acc.acc.tula.ru 4.8-RELEASE FreeBSD 4.8-RELEASE #3: Thu Aug 28 15:43:53
MSD 2003 acc107_3 at acc.acc.tula.ru:/usr/obj/usr/src/sys/Z i386
My kernel have this lines for USB support:
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device ulpt # Printer
Command "dmesg" about USB says:
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
But the command "dmesg |grep hp" says:
ugen0: Hewlett-Packard hp LaserJet 1300, rev 1.10/1.00, addr 2
Why this printer detected as "ugen", NOT "ulpt"?
The command "usbdevs -v" says:
Controller /dev/usb0:
addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
port 1 powered
port 2 addr 2: self powered, config 1, hp LaserJet 1300(0x1017),
Hewlett-Packard(0x03f0), rev 1.00
PS:
One man send me this answer:
FreeBSD don't recognized your printer as a printer
A usual reason is that this test is not true (/sys/dev/usb/ulpt.c)
(id->bInterfaceProtocol == UIPROTO_PRINTER_UNI ||
id->bInterfaceProtocol == UIPROTO_PRINTER_BI))
The result of investigation is that a "new" printers return
id->bInterfaceProtocol equvivalent 3 (or 2 - I forget).
A global cause is that ulpt.c was create according
Printer Class spec: http://www.usb.org/developers/data/usbprn10.pdf
that is outdate.
Sergey.
... Знание - столь дpагоценная вещь, что его не зазоpно добывать из любого
More information about the freebsd-questions
mailing list