public void checkPrinterStatus() {
        int HOW_MANY_INSTALLED_PRINTERS = 3;

        for (int i = 0; i < HOW_MANY_INSTALLED_PRINTERS; i++) {
            String usbId;
            byte[] array = new byte[32];
            int returnedVal;

            if (i == 0) {
                returnedVal = eZioLib.FindFirstUSB(array);
                usbId = new String(array).trim();
            } else {
                returnedVal = eZioLib.FindNextUSB(array);
                usbId = new String(array).trim();
            }

                if (returnedVal == 1) {

                    eZioLib.sendcommand("^XSET,ACTIVERESPONSE,1");
                    String printerStatusCode = sendCheckCommand(eZioLib);

                    System.out.println("printerStatusCode = " + printerStatusCode);;

                    eZioLib.closeport();
                    return;
                } else {
                    eZioLib.closeport();
                    System.out.println(String.format("Printer %s is not connected", usbId));
                }

            eZioLib.closeport();
        }
    }