From owner-freebsd-usb@FreeBSD.ORG Sat Jul 18 03:49:54 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB99E106566C for ; Sat, 18 Jul 2009 03:49:54 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id B8D8B8FC08 for ; Sat, 18 Jul 2009 03:49:54 +0000 (UTC) (envelope-from sanpei@sanpei.org) Received: from cherry.sanpei.org (j069113.ppp.asahi-net.or.jp [61.213.69.113]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 490487D14D; Sat, 18 Jul 2009 12:49:53 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by cherry.sanpei.org (8.14.3/8.13.8) with ESMTP id n6I3npi3026899; Sat, 18 Jul 2009 12:49:52 +0900 (JST) (envelope-from sanpei@sanpei.org) Date: Sat, 18 Jul 2009 12:49:51 +0900 (JST) Message-Id: <20090718.124951.246512787.sanpei@sanpei.org> To: hselasky@c2i.net From: MIHIRA Sanpei Yoshiro In-Reply-To: <200907151728.39031.hselasky@c2i.net> References: <200907141714.27199.hselasky@c2i.net> <20090715.230032.226782063.sanpei@sanpei.org> <200907151728.39031.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: ulpt(EPSON PM-820C Inkjet Printer) does not work on 8-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2009 03:49:55 -0000 Hi. > > [Problem 1] /etc/devd.conf does not work. > > o patched driver still has problem, I Think. I executed /sbin/devd with debug option. old usb stack(before 7.x-RELEASE) notify device "release" number 0x0100 to devd. But 8-current usb stack does not notify to devd. When I comment out match "release" line from /etc/devd.conf, devd was executed correctly. attach 100 { device-name "ulpt[0-9]+"; match "vendor" "0x04b8"; match "product" "0x0005"; # match "release" "0x0100"; action "/usr/bin/printf '000\033\001@EJL 1284.4\n@EJL \n' | /usr/bi n/tr 0 '\0' > /dev/$device-name"; action "/usr/sbin/lpc restart all"; }; Do you know why usb stack in 8-current does not notify "release" number? > > [Problem 2] print job was stop at printing With below patch, I could print out about 10 papers. But at that time, one time, stop printing at 1/3 paper line and Printer's status LED was brinking. So I execute ``cat /dev/ulpt0'', Printer wa restart printing. >Try removing the following two pieces of code from sys/dev/usb/serial/ulpt.c: > > /* clear stall first */ > mtx_lock(&sc->sc_mtx); > usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_RD]); > mtx_unlock(&sc->sc_mtx); > > /* clear stall first */ > mtx_lock(&sc->sc_mtx); > usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_WR]); > mtx_unlock(&sc->sc_mtx); Cheers. --- MIHIRA, Sanpei Yoshiro Tokyo, Japan.