From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 29 Nov 2004 15:21:50 +0200 From: Sergey Reva Message-ID: <583088821.20041129152150@mail.ru> To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] usb or lp In-Reply-To: References: <73278964.20041128105445@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 0e53b670-eace-11e9-9e20-41e7f4b1d025 Hello 9fans, Monday, November 29, 2004, 4:29:26 AM, Kenji wrote: KO> I don't know what type of printer of Canon S200, however, KO> do you have correct entry in /sys/lib/lp/devices and neccessary KO> initializer for that printer? Here is my /sys/lib/lp/device, it's equal to my old (working) installation: canon - - /dev/usb0/1/ep1data - gs!bjc600+nohead generic nospool - - - - KO> 1) search the /dev/usb tree, and find the strings of '0x020107', KO> which is the usb printer. And then, KO> echo 'ep 3 bulk w 64 32' > /dev/usb3/$i/ctl KO> where ep '3" is the endpoint number of USB printer's data endpoint, KO> and $i stands for the usb device number found. KO> Then, bind /dev/usb3/$i/ep3data /n/lp, and then print the data KO> to /n/lp. Yes, usbprint do the same but this don't work in all version of Plan 9 which I have. In my case writing endpoint is 1, I see it when run usb/usbd -v -d. I have only 2 endpoints. When I try bind (in old or new) I get this: term% bind /dev/usb0/1/ep1data /n/lp bind ep1data /n/lp: inconsistent mount Binding ep2data take same result. Any ideas. Sergey P.S. Yes I know, my English is terrible, try understand me :) -- http://rs-rlab.narod.ru mailto:rs_rlab@mail.ru