Zebra ZQ520 Printer - Update Firmware - Using LinkOS SDK iOS

// Expert user has replied.
M Michael Goodwin 3 years 5 months ago
13 1 0

We are having issues with the Zebra printer disconnecting when we send the firmware update to the iOS device. When we push the firmware to the device, the printer changes its text to "Downloading Firmware" but never finishes.
Here is a code snippet
id conn = [self getPrinterConnection:reject];
if (conn != nil) {
// Get the printer
NSError* printerError = nil;
[conn open];
[NSThread sleepForTimeInterval:1.0];
// Fetch the printer and file objects for file manipulation
if (printerError == nil) {
// Get the firmware file from app resources
NSURL* filePath = [[NSBundle mainBundle] URLForResource:@"SP76-005093A" withExtension:@".zpl"];
NSData* firmwareData = [NSData dataWithContentsOfURL:filePath];
@try {
// Send the file to the printer
BOOL didSend = [conn write:firmwareData error:&printerError];
} @catch (NSException* e) {
NSLog(@"%@", [e reason]);
reject(@"print_error", [e reason], [self getError:[e reason]]);
} @finally {
[conn close];
}
} else {
NSLog(@"%@", [printerError localizedDescription]);
}
resolve(@"Done!");
} else {
reject(@"print_error", @"Error connecting to printer", [self getError:@"Error connecting to printer"]);
}

Please Register or Login to post a reply

1 Replies

S Steven Si

Refer to Zebra ZQ520 Printer - Update Firmware - Using LinkOS SDK iOS

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