views:

24

answers:

1

In Java, I am trying to connect to a printer(Canon iR5050 PCL6) using Sockets, using the host IP with port as 9010. I want to get the status of the printer using PJL command. I write the PJL command (\x1B%-12345X@PJL INFO USTATUS \r\n\x1B%-12345X\r\n) to the socket output stream and try to read the status of the printer from the input stream. No information is read from the input stream. How could this be done? It will be great if somebody can share some samples. Is this possible?

A: 

LPD

As per the other question http://stackoverflow.com/questions/4046842/printing-in-java-using-ps-file I'm pretty sure your canon will speak LPD, and LPD will report printer status in a more ubiquitous protocol.

Xepoch