HP 5100tn Printer Job Language - Technical Reference Manual - Page 208
Handling Unexpected, Printer Responses
View all HP 5100tn manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 208 highlights
The application should always send a PJL ECHO command to resynchronize with the printer status readback responses (i.e. get rid of any old responses). However, if the printer's response data buffer is full and the printer is discarding all future responses, then the host will receive a PJL unsolicited "printer to host data buffer overflow" message, but not the PJL ECHO response. Applications must be designed to handle situations where the printer's response data buffer overflows and the printer does not provide the expected response, but instead provides a PJL unsolicited "printer to host data buffer overflow" message. The application should resend all unanswered queries whenever the application receives a PJL unsolicited "printer to host data buffer overflow" message. Handling Unexpected Printer Responses Printer sharing devices, like the external printer sharing box or the MIO card inserted into the printer as shown in Figure 10-1, do not have sufficient information to allow the printer sharing device to properly route printer status readback responses to the host computer (the one running the application that queried the printer). In particular, unsolicited PJL status is difficult for the printer sharing device to properly route since the unsolicited status response may be received by the printer sharing box hours after sending the data from the host computer to the printer that enabled unsolicited status. Manufacturers of printer sharing devices can choose from the following options to solve this printer-to-host data routing problem. 1. A printer sharing device that is a uni-directional device and does not support printer-to-host data transfer. Applications need to be designed to work with uni-directional printer sharing devices. 2. A printer sharing device that examines the data received from the printer and only forwards solicited responses to the host computer. A printer sharing device can track which of its I/O interfaces is currently sending data to the printer, and thus 10-28 Programming Tips