LinkOS SDK and printing via the serial port. C#

New to C# coding.
Does the LinkOS SDK provide any help for printing directly to the serial port?

I have found the GitHub code samples that covers USB and TCPIP printing but before i doing all the code for sending the ZPL to the serial port, i thought i would see if i could use the SDK.

Thanks

Alexander Palchikov
Hi George

Hi George

In the linkos sdk directory there are many samples. 

I believe you need to take a look at UsbDiscoverer class.

 

Alexander Palchikov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


George Tziros
Thanks but I don't think the

Thanks but I don't think the UsbDiscoverer class covers the serial port.
I have created my own classes for it using the c# SerialPort Class

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Robin West
Probably your best option

Hi George, That's probubly your best option.  The SerialPort Class works well and is easy to use.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Peter Ing
Agreed

Hi George

I agree, You would need to access the serial port natively from C# using SerialPort Class or any other library separate from the Zebra SDK. While your application probably requires serial port access I would recommend using USB rather as you have access to all the LinkOS features.

I am not sure if set get commands work via Serial but if they do you could probably implement your own rough LinkOS like SDK like I have done for some legacy models via TCP/IP.

Kind regards

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments