From owner-freebsd-questions Sat Nov 25 14:13:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 21D9737B4C5 for ; Sat, 25 Nov 2000 14:13:53 -0800 (PST) Received: (qmail 78841 invoked by uid 100); 25 Nov 2000 22:13:52 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14880.14752.15791.4032@guru.mired.org> Date: Sat, 25 Nov 2000 16:13:52 -0600 (CST) To: Keith Walker Cc: questions@freebsd.org Subject: Re: Problem with USB printer In-Reply-To: <91518264@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You should submit this as a PR, which means there's a better chance that the person submitting the PR will see it, and fix the driver. Thanx, types: > - --------------Boundary-00=_54ELFUPCC1GU13OVER8J > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 8bit > > Ok, a while back (couple of days ago) I posted a question about my Epson 900 > not working when attached via the USB cable. > > I found the solution to the problem. Hopefully this will help others with > Epson's that don't seem to work via the USB port. > > The Epson's must have an initialization string sent to them to wake up the > beast. This string only needs to be sent once, after plugging the printer in. > Turning off the power doesn't seem to matter, just the power cord. Anyhow, > sending the init string once per job is sufficient and harms nothing. > > The string? In hex code it's: > > 00 00 00 1b 01 40 45 4a 4c 20 31 32 38 34 2e 34 0a 40 45 4a 4c 20 20 20 20 20 > 0a > > Attached is a teeny-tiny C program that will output the string for those of > you who read C better than hex codes. > > We have our cousins over in the Linux world to thank for this information. > Huzzah for the linuxer's! Huzzah! :-) > > - -- > Keith Walker > kew@icehouse.net > - --------------Boundary-00=_54ELFUPCC1GU13OVER8J > Content-Type: text/english; > name="epswkup.c" > Content-Transfer-Encoding: base64 > Content-Description: Epson USB Wakeup Program > Content-Disposition: attachment; filename="epswkup.c" > > LyogLSotQy0qLSAqLwoKLyogdGhpcyBpbmNyZWRpYmx5IHNpbXBsZSBwcm9ncmFtIGNvbnRhaW5z > IHRoZSBtYWdpYyB3b3JkcwogICB0byBnZXQgYW4gRXBzb24gcHJpbnRlciAobWluZSdzIGEgRXNw > b24gOTAwKSB0byBzdGFydAogICB1c2luZyB0aGUgVVNCIHBvcnQuIElmIHlvdSBkb24ndCBzZW5k > IHRoaXMgYWZ0ZXIgYQogICBoYXJkLXBvd2VyLWN5Y2xlICh1bnBsdWcgdGhlIHBvd2VyIGNvcmQs > IHBsdWcgaXQgYmFjayBpbikKICAgdGhlIHByaW50ZXIgd2lsbCBkdXRpZnVsbHkgaWdub3JlICpl > dmVyeXRoaW5nKiB5b3Ugc2VuZAogICB0byBpdC4KCiAgIEkgZG9uJ3QgYWN0dWFsbHkgdXNlIHRo > aXMgcHJvZ3JhbTsgSSBtb2RpZnkgdGhlICoudXBwIGZpbGVzCiAgIGluIEdob3N0c2NyaXB0J3Mg > dW5pcHJpbnQgZHJpdmVycywgSSBtb2RpZnkgdGhlIGFwc2ZpbHRlcgogICBwcm9ncmFtIHRvIHNl > bmQgYSBwcm9sb2d1ZSBhbmQganVzdCBpbiBnZW5lcmFsIGZpeCB0aGluZ3MKICAgdXAgc28gZXZl > cnl0aGluZyB0aGF0IHByaW50cyB3aWxsIHNlbmQgdGhpcyBzdHJpbmcuCgogICBJIGhhdmUgdGhp > cyBwcm9ncmFtIGhlcmUgdG8gcmVtaW5kIG1lIGhvdyB0byBkbyBpdCwgYW5kCiAgIHdoYXQgdGhl > IGNvZGVzIGFyZS4KCiAgIEtlaXRoIFdhbGtlciwgPGtld0BpY2Vob3VzZS5uZXQ+CiAgIExhdGUg > Tm92ZW1iZXIgMjAwMAoqLwoKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbihpbnQgYXJnYywg > Y2hhciAqKmFyZ3YpCnsKICAgIHByaW50ZigiJWMlYyVjXDAzMyVjQEVKTCAxMjg0LjRcbkBFSkwg > ICAgIFxuIiwgMCwgMCwgMCwgMSk7Cn0K > > - --------------Boundary-00=_54ELFUPCC1GU13OVER8J-- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Mike Meyer http://www.mired.org/home/mwm/ Freelance WWW/Unix/FreeBSD consultant, email for rates. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message