From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sun, 28 Nov 2004 22:00:45 -0500 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] usb or lp In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <73278964.20041128105445@mail.ru> Topicbox-Message-UUID: 0d78ec70-eace-11e9-9e20-41e7f4b1d025 if the seq is causing problems that using for(c in /dev/usb?[0-9]*) solves, then i would just use the good for loop instead and we can put it back. or at least change it to for(c in /dev/usb^`{seq 0 16}) instead of for(c in /dev/usb/^`{seq 16}) if not having usb0 is really the problem. it's hard to tell what you're saying the problem is. On Mon, 29 Nov 2004 11:29:26 +0900, Kenji Okamoto wrote: > 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 > > > > ---------- Forwarded message ---------- > From: Sergey Reva > To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> > Date: Sun, 28 Nov 2004 10:54:45 +0200 > Subject: [9fans] usb or lp > 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 > >