cups-ddk Digest, Vol 10, Issue 3

Soju_Varghese Soju_Varghese at Satyam.com
Sun Jan 16 23:02:18 PST 2005



-----Original Message-----
From: cups-ddk-bounces at easysw.com [mailto:cups-ddk-bounces at easysw.com]On
Behalf Of cups-ddk-request at easysw.com
Sent: Wednesday, January 12, 2005 10:31 PM
To: cups-ddk at easysw.com
Subject: cups-ddk Digest, Vol 10, Issue 3


Send cups-ddk mailing list submissions to
	cups-ddk at easysw.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.easysw.com/mailman/listinfo/cups-ddk
or, via email, send a message with subject or body 'help' to
	cups-ddk-request at easysw.com

You can reach the person managing the list at
	cups-ddk-owner at easysw.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of cups-ddk digest..."


Today's Topics:

   1. ESC commands usage in dot-matrix printer driver (Soju_Varghese)
   2. Re: NT_STATUS_ACCESS_DENIED (Anonymous)
   3. Re: ESC commands usage in dot-matrix printer driver
      (Michael Sweet)
   4. Re: NT_STATUS_ACCESS_DENIED (Michael Sweet)


----------------------------------------------------------------------

Message: 1
Date: Wed, 12 Jan 2005 17:29:10 +0530
From: Soju_Varghese <Soju_Varghese at satyam.com>
Subject: [cups.ddk] ESC commands usage in dot-matrix printer driver
To: cups-ddk at easysw.com
Message-ID: <3D9FDCA910DD4445896A0BE5ECF009D40240FE42 at bla.satyam.com>
Content-Type: text/plain;	charset="iso-8859-1"

 Hi,

	I want to develop a linux printer driver for dot matrix printer
which uses the ESC/P commands.I am using cups framework for the printer
driver development. From my understanding if I am using the existing 9 pin
Epson linux driver,the following is the flow. pstops ->cupsomatic-> backend.
There is no filter driver(use of ESC commands) using here, It is directly
using the post script and sending it to the printer.
			If I want to develop a 12 wire dot matrix printer
driver,which supports raster printing and also resident font prinitng. For
graphics printing I can take the 9 pin data and convert it to the 12 pin
data. Corresondingly the ESC commands have to be manipulated. I want to know
where I can get hold of this ESC commands (for verical and horizontal
movement of the head)and data so that I can manipulate the way in which I
want. whether I have to look into "rastertoepson.c" provided in the cups and
the ppd files  present.I am looking into cups.org and linuxprinting.org.
 Thanks in advance
 Regards
Soju
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************



------------------------------

Message: 2
Date: Wed, 12 Jan 2005 10:38:20 -0500
From: Anonymous <anonymous at easysw.com>
Subject: [cups.ddk] Re: NT_STATUS_ACCESS_DENIED
To: cups-ddk at easysw.com
Message-ID: <118-cups.ddk at news.easysw.com>

Hi

Spot on: after lots of frustration it works. Problem is that CUPS now
displays the user name and password in its Web interface!

Regards


>
 echard wrote:
> > Mike wrote:
> > > After configuring CUPS via the web interface, printing fails with the
message of the subject to this message. I then used smbclient to connect to
the Windows 2000 machine hosting the printer, using the same account name
and password that I supplied to CUPS, and was able to copy a simple text
file to the printer, which was then printed without problems.
> > >
> > > CUPS has worked fine on my Mandrake 9.2 system, but after upgrading to
10.0, I now have this problem. Mandrake installs version 1.1.20 of CUPS.
> >
> > I've exactly the same problem.
> > Do you get a solution ?
> > rodolphe
> >
> > echard at calixo.net
>
> Printer device URI should now be
"smb://<workgroup>/<user>:<pwd>@<server>/<printer>".
>
> I found this at <a
href="http://mandrakeusers.org/lofiversion/index.php/t20406.html">http://man
drakeusers.org/lofiversion/index.php/t20406.html</a>, after having spent
several hours trying to understand why
"smb://<user>:<password>@<workgroup>/<server>/<printer>" did not work
anymore.
>
> Hope this help.
>
>



------------------------------

Message: 3
Date: Wed, 12 Jan 2005 11:14:01 -0500
From: Michael Sweet <mike at easysw.com>
Subject: [cups.ddk] Re: ESC commands usage in dot-matrix printer
	driver
To: cups-ddk at easysw.com
Message-ID: <119-cups.ddk at news.easysw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Soju_Varghese wrote:
> Hi,
> 
> I want to develop a linux printer driver for dot matrix printer which
> uses the ESC/P commands.I am using cups framework for the printer 
> driver development. From my understanding if I am using the existing
> 9 pin Epson linux driver,the following is the flow. pstops
> ->cupsomatic-> backend. There is no filter driver(use of ESC
> commands) using here, It is directly using the post script and
> sending it to the printer.

No, that isn't correct.

If you are printing a PS file, the flow is:

     pstops -> pstoraster -> rastertoepson -> backend

"pstoraster" is a wrapper script which calls Ghostscript using
the "cups" driver in Ghostscript to create a series of page images
in the CUPS raster format which the rastertoepson filter can read
and convert to ESC/P.

Some other common flows on Linux:

     "text files"

     texttops -> pstops -> pstoraster -> rastertoepson -> backend

     "pdf files"

     pdftops -> pstops -> pstoraster -> rastertoepson -> backend

     "hp-gl/2 files"

     hpgltops -> pstops -> pstoraster -> rastertoepson -> backend

     "image files"

     imagetoraster -> rastertoepson -> backend

The "cupsomatic" and "foomatic" filters are part of the non-CUPS
drivers at linuxprinting.org (they allow you to use Ghostscript-
based printer drivers with CUPS, and provide wrappers for PS
printers as well)

Hi Mike,
	Thank you very much for your answers. so there are two ways of doing
this printer driver.
 	pstotps->cupsomatic->backend or
	pstops -> pstoraster -> rastertoepson -> backend	
	so if I am using cupsomatic I have to do it in pearl script for
doing the rasertization of
	12 pin data 
	0R 
	I can	modify the rastertoepson to convert the data to 12 pin and
ESC commands?
	Is it right that the cupsomatic approach is faster than the
rastertoepson process since it 
	doing it in one step?
	
Regards
	

> If I want to develop a 12 wire dot matrix printer driver,which
> supports raster printing and also resident font prinitng. For 
> graphics printing I can take the 9 pin data and convert it to the 12
> pin data. Corresondingly the ESC commands have to be manipulated. I
> want to know where I can get hold of this ESC commands (for verical
> and horizontal movement of the head)and data so that I can manipulate
> the way in which I want. whether I have to look into
> "rastertoepson.c" provided in the cups and the ppd files  present.I
> am looking into cups.org and linuxprinting.org.

Look at www.epsondevelopers.com for an ESC/P reference manual, and
the manufacturer's resources for information on their specific
implementation.

That said, the CUPS raster driver framework does not support the
use of resident fonts.  You can create a separate text filter for
printing plain text files (that is pretty easy, and the CUPS book
includes an example for PCL printers) assuming that you don't need
landscape or Unicode text support...

It might be possible to develop a Ghostscript-based driver that
supports mixed text and graphics, however I would advise against
this approach since the gains would be small for a dot-matrix
device and you will spend a very long time developing the driver.

The main aim of this is to increase the speed of printing. If there is no
gains in that, then there is no point in going for that.
Thanks and Regards
Soju
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com


------------------------------

Message: 4
Date: Wed, 12 Jan 2005 11:17:41 -0500
From: Michael Sweet <mike at easysw.com>
Subject: [cups.ddk] Re: NT_STATUS_ACCESS_DENIED
To: cups-ddk at easysw.com
Message-ID: <120-cups.ddk at news.easysw.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Anonymous wrote:
> Hi
> 
> Spot on: after lots of frustration it works. Problem is that CUPS now
> displays the user name and password in its Web interface!

CUPS has hidden the username and password info in the device URI
since the original 1.0 release!  The problem is the URI syntax you
are using, which is not in the spirit of the URI spec as published
by the IETF.

The original URI syntax as we have developed it and submitted to
the SAMBA folks is:

     smb://username:password@workgroup/server/sharename

If they have changed it to the other format, please file a bug on
the SAMBA developer site so they can fix it.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com


------------------------------

_______________________________________________
cups-ddk mailing list
cups-ddk at easysw.com
http://lists.easysw.com/mailman/listinfo/cups-ddk


End of cups-ddk Digest, Vol 10, Issue 3
***************************************
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************





More information about the cups mailing list