From owner-freebsd-questions@FreeBSD.ORG Sat Sep 6 15:53:06 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6731F16A4BF for ; Sat, 6 Sep 2003 15:53:06 -0700 (PDT) Received: from mail.dada.it (mail3.dada.it [195.110.100.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 0FFE943FFD for ; Sat, 6 Sep 2003 15:53:04 -0700 (PDT) (envelope-from riccardo@torrini.org) Received: (qmail 1775 invoked from network); 6 Sep 2003 22:52:58 -0000 Received: from unknown (HELO trudy.torrini.home) (195.110.114.101) by mail.dada.it with SMTP; 6 Sep 2003 22:52:58 -0000 Received: from trudy.torrini.home (localhost.torrini.home [127.0.0.1]) by trudy.torrini.home (8.12.9/8.12.9) with ESMTP id h86Mr1Ni067708 for ; Sun, 7 Sep 2003 00:53:01 +0200 (CEST) (envelope-from riccardo@trudy.torrini.home) Received: (from riccardo@localhost) by trudy.torrini.home (8.12.9/8.12.9/Submit) id h86Mr0s1067707 for freebsd-questions@FreeBSD.ORG; Sun, 7 Sep 2003 00:53:00 +0200 (CEST) Date: Sun, 7 Sep 2003 00:53:00 +0200 From: Riccardo Torrini To: freebsd-questions@FreeBSD.ORG Message-ID: <20030906225300.GD25353@trudy.torrini.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: USB code doesn't permit bidirectional comunication with printers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 22:53:06 -0000 I don't know if this is the right list, feel free to forward to any other list or direct to USB maintainer if you think he can help me. And please Cc: me, I'm only on current@ I have an USB printer (Epson C40ux), and it works like a charm but currently I'm unable to ask ink level or align the head or obtaining any other info using "escputil" # pkg_info -W escputil /usr/local/bin/escputil was installed by package gimp-print-4.2.5_1 This happens either with 4.8-STABLE than 5.1-CURRENT (Aug 22) Are we going to improve ulpt code to support printer messaging? Same problem with USB-UPS from APC (already asked some month ago, see info on ftp://ftp.torrini.org/pub/FreeBSD/APC-hacking/, seems that our USB code can only send and not receive info from USB devices, is this correct? Why Other-OSes can? And how? -----8<-----[ swtch on, /var/log/messages ]-----8<----- Sep 7 00:39:47 silos /kernel: ulpt0: EPSON USB Printer, \ rev 1.10/1.00, addr 3, iclass 7/1 -----8<----- # escputil -q -u -r /dev/unlpt0 -m C40ux -s Cannot read from /dev/unlpt0: Operation not supported by device # escputil -q -u -r /dev/ulpt0 -i Cannot read from /dev/ulpt0: Operation not supported by device # usbdevs -d addr 1: UHCI root hub, VIA uhub0 addr 3: USB Printer, EPSON ulpt0 addr 2: Back-UPS RS 500 FW:30.j2.I USB FW:j2, American Power Conversion uhid0 # usbdevs -d -v Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), \ rev 1.00 uhub0 port 1 addr 3: self powered, config 1, USB Printer(0x0005), \ EPSON(0x04b8), rev 1.00 ulpt0 port 2 addr 2: low speed, self powered, config 1, Back-UPS RS 500 \ FW:30.j2.I USB FW:j2(0x0002), \ American Power Conversion(0x051d), rev 0.06 uhid0 -- TIA, Riccardo.