On 20 Feb 2002, Owen Williams wrote:

| " Many Epson printers (the 740 does not) need a special set of
| characters sent to the printer for it to use the USB interface. You can
| do this using a uniprint - stcany.upp - ghostscript combination, by
| inserting an extra initialisation string in the -dupBeginPageCommand
| part of stcany.upp. The string is
|
| 00 00 00
| 1b01 40 45 4a 4c 20 31 32 38 34 2e 34 0a
| 40 45 4a 4c 20 20 20 20 20 0a"
|
| I'm not sure if I've implimented this correctly.  I use the stp driver,
| and what I've done is created an stp.upp file (attached).  In the foo
Is it attached?  I couldn't see it.

| file for the spool, I added "@stp.upp" to the ghostscript command.
| However, my printer still does not print.  The workaround I am currently
| using is to print something (a single pixel, usually) with gimp.  After
| I've printed something with gimp, I can print with any other app.  I
| suspect that the gimp driver knows how to send the string, and once it
| has been sent the printer is in the correct mode.
|
| The question is, why does my current scheme not work?  gs seems to be
| using stp.upp, but it doesn't work right.
|
| I created my stp.upp from stcany.upp, and edited out the parts that
| didn't seem to apply.

By searching for old emails on this subject, I'd say try this,
if you don't have the stc.upp file already like this:

2001-nov-20::::::::::::::::::::::::::::::

We need to say that the string of hex numbers goes at the
very beginning of the dupBeginPageCommand string value
(according to my stcany.upp file).
Would a patch file help?

-dupBeginPageCommand="<
      {insert new hex values here}
            {leave previous hex values here}
            >"

2001-mar-01::::::::::::::::::::::::::::::

00 00 00 1b01 40 45 4a 4c 20 31 32 38 34 2e 34 0a 40 45 4a 4c 20 20 20
20 20 0a

~~~~~~~~~~~~~~~~~~
This hex string goes in the file (on my system)
/usr/share/ghostscript/5.10/stcany.upp,
inside the "dupBeginPageCommand" string.  If there are
already some hex codes there, put these _first_.

HTH.
-- 
~Randy


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to