get status ZT411 too long

// Expert user has replied.
E Efkan YILMAZ 2 years ago
36 3 0

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?

Please Register or Login to post a reply

3 Replies

S Steven Si

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.

D Daniel Díaz

yes i am using getCurrentStatus()

Connection connection = ConnectionBuilder.Build($"USB:{usbDriverName}");
try
{
connection.Open();
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

S Steven Si

Use the USB_DIRECT connection instead. There seems an issue with the USB ZDesginer driver connection. Please try to avoid using the USB ZDesigner driver connection if the performance is a concern.

D Daniel Díaz

Thank you, it's much better now

CONTACT
Can’t find what you’re looking for?