ZebraPrinterLinkOs always null

Hello,

Can you help me please,

I want  upload my fonts from android device to the printer memory.

in the code below, object ZebraPrinterLinkOs  always null . Where is my problem?(I'm using printer zd410)

Connection connection = new BluetoothLeConnection(macAddress, this);

ZebraPrinter printer = ZebraPrinterFactory.getInstance(PrinterLanguage.ZPL, connection);

Thread.sleep(10000);

ZebraPrinterLinkOs linkOsPrinter = ZebraPrinterFactory.createLinkOsPrinter(printer, PrinterLanguage.ZPL);

linkOsPrinter.downloadTtfFont("/storage/emulated/0/fonts/DroidItalic.ttf", "Z:");  // exception, linkOsPrinter is null

Thank you in advance

Alexander Palchikov
Hello Matt,Could you provide

Hello Matt,

Could you provide more details, please?
Which code do you use for that?
As far as I understand you use Xamarim for Android, correct?
 

Alexander Palchikov
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Robin West
The GK420d is not LinkOS

Hi MJ, The GK420D is not a Link-OS printer. You will only be able to use the functions in the ZebraPrinter class with that printer.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


nyan gali
Yes
Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Hi Alex,You need to open the

Hi Alex,

You need to open the connection before using the ZebraPrinterFactory.  It checks a few settings on the printer to set up the ZebraPrinterLinkOS object.  You also don't need the 10 second sleep after creating the ZebraPrinter.

Something like this should work:

Connection connection = new BluetoothLeConnection(macAddress, this);

connection.open();

ZebraPrinter printer = ZebraPrinterFactory.getInstance(PrinterLanguage.ZPL, connection);

ZebraPrinterLinkOs linkOsPrinter = ZebraPrinterFactory.createLinkOsPrinter(printer, PrinterLanguage.ZPL);

linkOsPrinter.downloadTtfFont("/storage/emulated/0/fonts/DroidItalic.ttf", "Z:");

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Matt Minet
Having the same problem

I am having the same issue using a GK420D with .net framework 4.7.2

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Robin West
This is correct.

This is correct.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Alex Alex
Thank you very much!

Thank you very much!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Topic locked