Reply by chet...@gmail.com May 20, 20082008-05-20
Dear All,
Thanks for your suggestions.
I need your help as to how the Status signals are say for example Paper Empty(PE) is generated by the Printer in whose firmware status commands aren't implemented.

I have checked my printer without connecting it to the PC and Iam able to see the signal on my DSO at the output of 74HC273 IC but iam not able to see the same signal at the input of this IC nor the clock signal. Please can you give your suggestion as to why the signals cannot be seen.

Regards,
Chetan

Hi All,
>
> Iam working on a similar project where in the printer has 2 boards(parallel port sub board which connects to the printer main board).
>We have designed a USB port sub board instead of parallel port.
>The printer is a non-script printer.
>
>I have the following queries:
>1. When i print from a text file in Windows , in what format does the data
> appear in the USB endpoint buffer ?
>
>2. The printer main board which is given to us by our client doesn't have
> the implementation of status commands.
> So, is there any way to read the status signals.
>
>Kindly give me your valuable suggestions.
>
>Regards,
>Chetan
>
>Hi All,
>>
>> In my current project, I had to print some graphics onto USB printer
>> connected to LPC2468 board. The board here acts as USB host. The
>> printer I want to use is Laser printer from HP. Don't know the exact
>> model at this time. Trying to find info on USB printer interface, How
>> the HOST issues commands to the USB printer. I had worked on dot
>> matrix printer interfaced to a parallel port to my board.
>>
>> Can someone help me in getting the info on USB printer interface to
>> USB host?
>>
>> Thanks in advance,
>> Ravi
>>
>
>

An Engineer's Guide to the LPC2100 Series

Reply by t_chinzei May 15, 20082008-05-15
For Windows, printer is accessed over the printer WinAPI

How to send raw data to a printer by using Visual C# .NET
http://support.microsoft.com/kb/322091/en-us

How to send raw data to a printer by using Visual Basic .NET
http://support.microsoft.com/kb/322090/en-us

HOWTO: Send Raw Data to a Printer by Using the Win32 API
http://support.microsoft.com/kb/138594/en-us

Tsuneo

--- In l..., ravi wrote:
>
> Anybody here knows, How a windows/linux PC will send data to USB
printer?
> I have googled a lot, but could not find the required information.
> Does someone here knows?
> kindly share the info. This would helps us a lot.
>
> Thanks in advance,
> Ravi
> On Wed, May 14, 2008 at 7:00 PM, t_chinzei wrote:
>
> > The printer port signaling for the IEEE-1284 printer pins, PE (paper
> > empty), SEL (select) and /ERROR (Not error) are carried by
> > GET_PORT_STATUS request.
> >
> > See this chapter on the USB printer class spec.
> > 4.2.2 GET_PORT_STATUS (usbprint11.pdf)
> >
> > Printer Device Class Document 1.1
> > http://www.usb.org/developers/devclass_docs/usbprint11.pdf
> >
> > On the USB sub-board, return these pin status when the firmware
> > receives GET_PORT_STATUS request from the host PC.
> >
> > Tsuneo
> >
> >
> > --- In l... , chetanrp@
> > wrote:
> > >
> > > Hi All,
> > >
> > > Iam working on a similar project where in the printer has 2
> > boards(parallel port sub board which connects to the printer main
board).
> > > We have designed a USB port sub board instead of parallel port.
> > > The printer is a non-script printer.
> > >
> > > I have the following queries:
> > > 1. When i print from a text file in Windows , in what format does
> > the data
> > > appear in the USB endpoint buffer ?
> > >
> > > 2. The printer main board which is given to us by our client doesn't
> > have
> > > the implementation of status commands.
> > > So, is there any way to read the status signals.
> > >
> > > Kindly give me your valuable suggestions.
> > >
> > > Regards,
> > > Chetan
> > >
> > > Hi All,
> > > >
> > > >In my current project, I had to print some graphics onto USB
printer
> > > >connected to LPC2468 board. The board here acts as USB host. The
> > > >printer I want to use is Laser printer from HP. Don't know the
exact
> > > >model at this time. Trying to find info on USB printer
interface, How
> > > >the HOST issues commands to the USB printer. I had worked on dot
> > > >matrix printer interfaced to a parallel port to my board.
> > > >
> > > >Can someone help me in getting the info on USB printer interface to
> > > >USB host?
> > > >
> > > >Thanks in advance,
> > > >Ravi
> > > >
> > > >
> > > >
> > >
> >
> >
> > --
> regards
> ravi
>
>

Reply by haare_in_der_dusche May 15, 20082008-05-15
> Anybody here knows, How a windows/linux PC will send data to USB printer?
> I have googled a lot, but could not find the required information.
> Does someone here knows?
> kindly share the info. This would helps us a lot.
>
> Thanks in advance,
> Ravi

"USB printer" is a standard USB device class (PDC) and is specified in
the USB specification, available at www.usb.org.

This already has been stated in the posting that you've quoted.

The data sent to the printer depends on the type of printer and the
printer driver used - check your printer's documentation. Your OS comes
with a printer driver that prepares the data.

If it's a laser printer for instance, chances are pretty high that the
printer will either be a PCL or PostScript printer. Both protocols are
fairly well-documented. If the printer is a so-called GDI printer,
everything depends on the printer manufacturer's documentation.

Anyway, the USB printer device class is a full transparent connection,
the data sent to the printer is exactly the same when sent via a
standard parallel printer connection or even an ethernet print server.

With some USB printers there are some extensions to that regarding
software which has some kind of bidirectional communication with the
printer to check ink levels etc.
But this is not mandatory, most printers don't need this crap.

Thus I'll repeat it:

What data is getting sent to the printer is completely unrelated to the
kind of connection your printer has. Be it USB, a parallel port, an
ethernet print server or even a serial (RS232) printer - the data is the
same.

___________________________________________________________
Der fre Vogel fgt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Reply by ravi May 15, 20082008-05-15
Anybody here knows, How a windows/linux PC will send data to USB printer?
I have googled a lot, but could not find the required information.
Does someone here knows?
kindly share the info. This would helps us a lot.

Thanks in advance,
Ravi
On Wed, May 14, 2008 at 7:00 PM, t_chinzei wrote:

> The printer port signaling for the IEEE-1284 printer pins, PE (paper
> empty), SEL (select) and /ERROR (Not error) are carried by
> GET_PORT_STATUS request.
>
> See this chapter on the USB printer class spec.
> 4.2.2 GET_PORT_STATUS (usbprint11.pdf)
>
> Printer Device Class Document 1.1
> http://www.usb.org/developers/devclass_docs/usbprint11.pdf
>
> On the USB sub-board, return these pin status when the firmware
> receives GET_PORT_STATUS request from the host PC.
>
> Tsuneo
> --- In l... , chetanrp@...
> wrote:
> >
> > Hi All,
> >
> > Iam working on a similar project where in the printer has 2
> boards(parallel port sub board which connects to the printer main board).
> > We have designed a USB port sub board instead of parallel port.
> > The printer is a non-script printer.
> >
> > I have the following queries:
> > 1. When i print from a text file in Windows , in what format does
> the data
> > appear in the USB endpoint buffer ?
> >
> > 2. The printer main board which is given to us by our client doesn't
> have
> > the implementation of status commands.
> > So, is there any way to read the status signals.
> >
> > Kindly give me your valuable suggestions.
> >
> > Regards,
> > Chetan
> >
> > Hi All,
> > >
> > >In my current project, I had to print some graphics onto USB printer
> > >connected to LPC2468 board. The board here acts as USB host. The
> > >printer I want to use is Laser printer from HP. Don't know the exact
> > >model at this time. Trying to find info on USB printer interface, How
> > >the HOST issues commands to the USB printer. I had worked on dot
> > >matrix printer interfaced to a parallel port to my board.
> > >
> > >Can someone help me in getting the info on USB printer interface to
> > >USB host?
> > >
> > >Thanks in advance,
> > >Ravi
> > >
> > >
> > >
> >
>

--
regards
ravi

Reply by t_chinzei May 14, 20082008-05-14
The printer port signaling for the IEEE-1284 printer pins, PE (paper
empty), SEL (select) and /ERROR (Not error) are carried by
GET_PORT_STATUS request.

See this chapter on the USB printer class spec.
4.2.2 GET_PORT_STATUS (usbprint11.pdf)

Printer Device Class Document 1.1
http://www.usb.org/developers/devclass_docs/usbprint11.pdf

On the USB sub-board, return these pin status when the firmware
receives GET_PORT_STATUS request from the host PC.

Tsuneo

--- In l..., chetanrp@... wrote:
>
> Hi All,
>
> Iam working on a similar project where in the printer has 2
boards(parallel port sub board which connects to the printer main board).
> We have designed a USB port sub board instead of parallel port.
> The printer is a non-script printer.
>
> I have the following queries:
> 1. When i print from a text file in Windows , in what format does
the data
> appear in the USB endpoint buffer ?
>
> 2. The printer main board which is given to us by our client doesn't
have
> the implementation of status commands.
> So, is there any way to read the status signals.
>
> Kindly give me your valuable suggestions.
>
> Regards,
> Chetan
>
> Hi All,
> >
> >In my current project, I had to print some graphics onto USB printer
> >connected to LPC2468 board. The board here acts as USB host. The
> >printer I want to use is Laser printer from HP. Don't know the exact
> >model at this time. Trying to find info on USB printer interface, How
> >the HOST issues commands to the USB printer. I had worked on dot
> >matrix printer interfaced to a parallel port to my board.
> >
> >Can someone help me in getting the info on USB printer interface to
> >USB host?
> >
> >Thanks in advance,
> >Ravi
> >
> >
>
Reply by Foltos May 14, 20082008-05-14
Hi,

c...@gmail.com wrote:
> Hi All,
>
> Iam working on a similar project where in the printer has 2 boards(parallel port sub board which connects to the printer main board).
> We have designed a USB port sub board instead of parallel port.
> The printer is a non-script printer.
>
> I have the following queries:
> 1. When i print from a text file in Windows , in what format does the data
> appear in the USB endpoint buffer ?
>
Depends on what page description language the driver uses. USB emulates
only a parallel port and does not define any data format. There is a
generic printer driver in winXP which sends raw ASCII values to the printer.
>
> 2. The printer main board which is given to us by our client doesn't have
> the implementation of status commands.
> So, is there any way to read the status signals.
>
I don't really understand this. You made a printer extension board, and
the printer manufacturer does not tell you how to communicate with the
main board?
You could simply connect your USB module to the parallel module and
gateway data and status signals to the USB. You don't need to know the
meaning of the data or the signals. You just need to tell windows to use
the USB port instead of the parallel when setting up the printer driver.

Foltos
> Kindly give me your valuable suggestions.
>
> Regards,
> Chetan
>
> Hi All,
>
>> In my current project, I had to print some graphics onto USB printer
>> connected to LPC2468 board. The board here acts as USB host. The
>> printer I want to use is Laser printer from HP. Don't know the exact
>> model at this time. Trying to find info on USB printer interface, How
>> the HOST issues commands to the USB printer. I had worked on dot
>> matrix printer interfaced to a parallel port to my board.
>>
>> Can someone help me in getting the info on USB printer interface to
>> USB host?
>>
>> Thanks in advance,
>> Ravi
>>
>>
>
>
Reply by ravi May 14, 20082008-05-14
yes. There is way to read the status of the port.
look into www.usb.org
There is printer class defined in the doc "usbprint11.pdf" from the usb.org

Regards,
Ravi

On Wed, May 14, 2008 at 5:19 PM, wrote:

> Hi All,
>
> Iam working on a similar project where in the printer has 2 boards(parallel
> port sub board which connects to the printer main board).
> We have designed a USB port sub board instead of parallel port.
> The printer is a non-script printer.
>
> I have the following queries:
> 1. When i print from a text file in Windows , in what format does the data
> appear in the USB endpoint buffer ?
>
> 2. The printer main board which is given to us by our client doesn't have
> the implementation of status commands.
> So, is there any way to read the status signals.
>
> Kindly give me your valuable suggestions.
>
> Regards,
> Chetan
>
> Hi All,
> >
> >In my current project, I had to print some graphics onto USB printer
> >connected to LPC2468 board. The board here acts as USB host. The
> >printer I want to use is Laser printer from HP. Don't know the exact
> >model at this time. Trying to find info on USB printer interface, How
> >the HOST issues commands to the USB printer. I had worked on dot
> >matrix printer interfaced to a parallel port to my board.
> >
> >Can someone help me in getting the info on USB printer interface to
> >USB host?
> >
> >Thanks in advance,
> >Ravi
> >
> >
> >
>
>

--
regards
ravi

Reply by chet...@gmail.com May 14, 20082008-05-14
Hi All,

Iam working on a similar project where in the printer has 2 boards(parallel port sub board which connects to the printer main board).
We have designed a USB port sub board instead of parallel port.
The printer is a non-script printer.

I have the following queries:
1. When i print from a text file in Windows , in what format does the data
appear in the USB endpoint buffer ?

2. The printer main board which is given to us by our client doesn't have
the implementation of status commands.
So, is there any way to read the status signals.

Kindly give me your valuable suggestions.

Regards,
Chetan

Hi All,
>
>In my current project, I had to print some graphics onto USB printer
>connected to LPC2468 board. The board here acts as USB host. The
>printer I want to use is Laser printer from HP. Don't know the exact
>model at this time. Trying to find info on USB printer interface, How
>the HOST issues commands to the USB printer. I had worked on dot
>matrix printer interfaced to a parallel port to my board.
>
>Can someone help me in getting the info on USB printer interface to
>USB host?
>
>Thanks in advance,
>Ravi
>

Reply by ravi May 8, 20082008-05-08
Hi Foltos,

I have read the docs on PCL5 and postscript. These docs are more onto the
page description language. I also need info on printers, could be any USB
printer.
Has anyone have info on USB printers?

Regards,
Ravi

On Wed, May 7, 2008 at 2:41 PM, Foltos wrote:

> Hi,
>
> there is a printer class defined by the USB organization. You can
> download it from their homepage (www.usb.org).
> In general the class is noting more than an emulation of a parallel port
> over USB. It does not define any page description language or printer
> command language and thus you need a printer driver on top of it. Also
> it does not define any details like when the printer should stall an
> endpoint or what timeout values shall be used. Also most printer is
> simply not setting the status bits which can be queried over the control
> channel. So the printer driver will be highly printer specific. You can
> not tell if it will work with another model or not.
>
> Since you have a HP laser google for PCL5 or post script. Most of proper
> HP laser printers (not cheap ones) will talk one of these.
>
> Foltos
> Ravi Shankar Rangam wrote:
> > Hi All,
> >
> > In my current project, I had to print some graphics onto USB printer
> > connected to LPC2468 board. The board here acts as USB host. The
> > printer I want to use is Laser printer from HP. Don't know the exact
> > model at this time. Trying to find info on USB printer interface, How
> > the HOST issues commands to the USB printer. I had worked on dot
> > matrix printer interfaced to a parallel port to my board.
> >
> > Can someone help me in getting the info on USB printer interface to
> > USB host?
> >
> > Thanks in advance,
> > Ravi
> >
> >
> >
> >
> >
Reply by ravi May 7, 20082008-05-07
http://www.yagarto.de/

Regards,
Ravi

On Wed, May 7, 2008 at 12:52 PM, P Jagadeesh Maiya <
p...@signal-networks.com> wrote:

> hi ravi,
> We need small favour from U. What are the development tools U'r using for
> LPC2468 board. We are looking into s/w development tools for LPC2468 and
> LPC2368(preferred is GNU based tools).
>
> thanx in advance,
> pjmaiya
> ----- Original Message -----
> From: Ravi Shankar Rangam
> To: l...
> Sent: Wednesday, May 07, 2008 11:27 AM
> Subject: [lpc2000] LPC2468 to USB printer interface
>
> Hi All,
>
> In my current project, I had to print some graphics onto USB printer
> connected to LPC2468 board. The board here acts as USB host. The
> printer I want to use is Laser printer from HP. Don't know the exact
> model at this time. Trying to find info on USB printer interface, How
> the HOST issues commands to the USB printer. I had worked on dot
> matrix printer interfaced to a parallel port to my board.
>
> Can someone help me in getting the info on USB printer interface to
> USB host?
>
> Thanks in advance,
> Ravi
>
>
>
>
>

--
regards
ravi