From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] usb or lp From: Kenji Okamoto Date: Mon, 29 Nov 2004 11:29:26 +0900 In-Reply-To: <73278964.20041128105445@mail.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-eanwarhnrkvjeppavbxawtrmzz" Topicbox-Message-UUID: 0d73fda0-eace-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-eanwarhnrkvjeppavbxawtrmzz Content-Disposition: inline Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I feel somthing is wrong in your usb printer setting... Yes, usb device driver was changed, however, for printers I think there is no difference. I don't know what type of printer of Canon S200, however, do you have correct entry in /sys/lib/lp/devices and neccessary initializer for that printer? >No when I try print something I get only this: >cat: write error copying /tmp/xyz: ken has left the building I think this means you have not binded safely /n/lp to the correct usb printer device. 1) search the /dev/usb tree, and find the strings of '0x020107', which is the usb printer. And then, echo 'ep 3 bulk w 64 32' > /dev/usb3/$i/ctl where ep '3" is the endpoint number of USB printer's data endpoint, and $i stands for the usb device number found. Then, bind /dev/usb3/$i/ep3data /n/lp, and then print the data to /n/lp. Kenji --upas-eanwarhnrkvjeppavbxawtrmzz Content-Type: message/rfc822 Content-Disposition: inline Received: from elmo.cias.osakafu-u.ac.jp ([157.16.103.2]) by diabase; Sun Nov 28 17:58:41 JST 2004 Received: from intrepid.gw.osakafu-u.ac.jp (intrepid.gw.osakafu-u.ac.jp [157.16.248.13]) by elmo.cias.osakafu-u.ac.jp (8.9.3p2+/3.7W-04071317) with ESMTP id RAA01094 for ; Sun, 28 Nov 2004 17:56:44 +0900 (JST) Received: from washington.gw.osakafu-u.ac.jp (localhost [127.0.0.1]) by intrepid.gw.osakafu-u.ac.jp (8.12.9/8.12.9) with ESMTP id iAS8uhjs021067 for ; Sun, 28 Nov 2004 17:56:43 +0900 (JST) Received: from mail.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by washington.gw.osakafu-u.ac.jp (8.12.9/8.12.9) with ESMTP id iAS8ufAl022568 for ; Sun, 28 Nov 2004 17:56:43 +0900 (JST) Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6952DB5C6 for ; Sun, 28 Nov 2004 03:56:04 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 39BC3AFEB for <9fans@cse.psu.edu>; Sun, 28 Nov 2004 03:55:58 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11455-01-41 for <9fans@cse.psu.edu>; Sun, 28 Nov 2004 03:55:55 -0500 (EST) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id DCDABAFDF for <9fans@cse.psu.edu>; Sun, 28 Nov 2004 03:55:54 -0500 (EST) Received: from [217.117.76.3] (port=1036 helo=pc) by mx2.mail.ru with esmtp id 1CYKqX-0002F1-00 for 9fans@cse.psu.edu; Sun, 28 Nov 2004 11:55:54 +0300 Date: Sun, 28 Nov 2004 10:54:45 +0200 From: Sergey Reva X-Mailer: The Bat! (v2.00.6) CD5BF9353B3B7091 X-Priority: 3 (Normal) Message-ID: <73278964.20041128105445@mail.ru> To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Virus-Scanned: by amavisd-new at cse.psu.edu Subject: [9fans] usb or lp X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sergey Reva , Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+okamoto=granite.cias.osakafu-u.ac.jp@cse.psu.edu Errors-To: 9fans-bounces+okamoto=granite.cias.osakafu-u.ac.jp@cse.psu.edu Hello 9fans, With "latest sources" (about month ago) I can't print on my Canon S200 printer with USB interface. What happened? How fix this? /sys/src/cmd/usb/misc/usbprint have error: for (c in '{seq 16}) where $c used in usb$c, it only generate number from 1 to 16, how about usb0? In my old sources I have usbprint like this: for (c in /dev/usb?[0-9]*) But I don't used this and printer works well. No when I try print something I get only this: cat: write error copying /tmp/xyz: ken has left the building And finally in usbprint all version for printing used ep2data but in my case work only ep1data. With best regards Sergey Reva -- http://rs-rlab.narod.ru mailto:rs_rlab@mail.ru --upas-eanwarhnrkvjeppavbxawtrmzz--