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
LPC2468 to USB printer interface
Started by ●May 7, 2008
Reply by ●May 7, 20082008-05-07
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
>
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 ●May 7, 20082008-05-07
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
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
Reply by ●May 7, 20082008-05-07
I have not started any work as of now!!
But decided to go with Yagatro. This has got full set tools like compiler,
debugger (OCD) and IDE and Flash magic for downloading the image (ISP).
I going to make board for my self for this project, even for prototype also.
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
But decided to go with Yagatro. This has got full set tools like compiler,
debugger (OCD) and IDE and Flash magic for downloading the image (ISP).
I going to make board for my self for this project, even for prototype also.
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
Reply by ●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
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
Reply by ●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
> >
> >
> >
> >
> >
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 ●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
>
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 ●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
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 ●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
>>
>>
>
>
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 ●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
> >
> >
>
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
> >
> >
>