1 of 1 people found this helpful
Hi Nicolas, You can definitely get status of the printer the same way you send print jobs. You will have to do a little parsing with PHP because we don't have an SDK for it, but it will work. You will need a TCP client and listener.
Send the following:
Then use the manual here to parse the response and show readable statuses to your users.
This will work on any ZPL label printer.
If you are open to other languages, we have SDK's for Java and .NET that have standard GetStatus() commands to show current status of the printer, but under the covers, it's just using this command or a similar one.
Thanks Robin, I'm trying with PHP to get the response.
If you are having issues, keep in mind the main ip port is 9100 for most of our printers. Also you will want to work with byte data as opposed to strings as the response from the command has ASCII non printable characters <STX> = 0x02 and <ETX> = 0x03 to show start and end of this response.