ZQ610 Firmware Update Throws Language Unknown Exception

J Jhanvi Chanababa 3 years 7 months ago
41 0 0

Hello,
I have downloaded firmware V85.20.20Z from zebra site and I am trying to update firmware on my printer. entire file is successfully downloaded to printer after that it throws Language Unknown Exception. I am testing it from android device. Here is my environment details
Printer : Zebra ZQ610
Current Firmware Version : V85.20.19Z
Exception : com.zebra.sdk.printer.ZebraPrinterLanguageUnknownException
Here is my code which is I am using for update,
Connection connection=null;
try {
connection = new TcpConnection(et_ip.getText().toString().trim(), 6101);
try {
connection.open();
}catch (Exception e){
logger.error(e);
logger.log(Level.ERROR,"Exception at open connection");
}
if(connection!=null && connection.isConnected()) {
PrinterStatus printerStatus;
ZebraPrinterLinkOs linkOsPrinter=null;
try{
ZebraPrinter zebraPrinter=ZebraPrinterFactory.getInstance(connection);
linkOsPrinter = ZebraPrinterFactory.createLinkOsPrinter(zebraPrinter);
printerStatus =(linkOsPrinter != null) ? linkOsPrinter.getCurrentStatus() : linkOsPrinter.getCurrentStatus();
}catch (Exception e){
logger.log(Level.ERROR,e.getMessage());
}
tv_status.setText("Connection is opened with "+et_ip.getText().toString().trim());
// Send the firmware file to the printer.
linkOsPrinter.updateFirmware(filepath, new FirmwareUpdateHandler() {
public void progressUpdate(int bytesWritten, int totalBytes) {
}
public void firmwareDownloadComplete() {
logger.log(Level.INFO, "File is donwnloaded to printer");
}
public void printerOnline(ZebraPrinterLinkOs printer, String firmwareVersion) {
logger.log(Level.INFO, "Printer online with firmware version=" + firmwareVersion);
}
});
}else{
logger.log(Level.INFO,"connection is not opened with printer");
}
} catch (Exception e) {
logger.error(e);
logger.log(Level.ERROR,"Error at update printer firmware="+e.getMessage());
}
Please help me resolve this issue

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