get status ZT411 too long


Good morning, my situation is the following,
I have been trying to reduce the response time when trying to acquire the status of the printer connected to USB, but it still stays at least 10s, I have used zebrafactory and DriverPrinterConnetion but it has not changed, running diagnostic mode I see that sdk sends a ZPL command like this _HS and checking the documentation the command is ~HS, is this a problem?

Submitted by SSi1 on November 23, 2022 Permalink

The legitimate ZPL command for getting the printer status is ~HS. It should not be the _HS. Are you using the getCurrentStatus() API to query for the printer status? It should not not take that long to get a status back. There might be something else going on that causes the delay.

Submitted by daniel230389@g… on November 23, 2022 Permalink

yes i am using getCurrentStatus()

Connection connection = ConnectionBuilder.Build($"USB:{usbDriverName}");
ZebraPrinter printer = ZebraPrinterFactory.GetInstance(PrinterLanguage.ZPL,connection);
PrinterStatus printerStatus = printer.GetCurrentStatus();

I was checking, but there is nothing that delays it, it is only a function, nor is it in another thread