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?
get status ZT411 too long// Expert user has replied. |
3 Replies
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.
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
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.
Thank you, it's much better now