UniDrv Language Monitor over TCP.
CompuWeigh is currently using a UniDrv (Universal Printer Driver or Unidriver) similar to the TTY Generic Text Only sample driver.
The driver uses a Language Monitor similar to the PJL Language Monitor sample from Microsoft.
The PJL Language Monitor only works with USB and serial ports which are controlled by the Microsoft port monitor Localmon.
The Language Monitor does not work with TCP ports which are controlled by the Microsoft port monitor Tcpmon.
We need a Language Monitor with bidirectional communication with the printer over TCP to check the status of the printer before printing.
Before printing a job the driver should send a request for status then the driver should read the reply from the printer through TCP.
If the printer is unable to print because of an error, such as Paper Out, the driver should set the status in Spooler for that printer and not print.
We can provide the source code files for the existing printer driver, if necessary for this task.