Question

I have a Zebra GK420t printer. I want to print some stickers width an image on it, but when I use the API that zebra provides for Linux an error appears in the console.

"Invalid OS"

Sometimes appears other error.

"Could not open device using implicit connection string, attempted TCP:Zebra_Technologies_ZTC_GK420t:9100"

or

"Invalid arguments length".

For now, for me its imposible to use that API...

Any suggestion? Thanks!

EDIT:

I'm trying to use this command:

"java -jar ZSDK_API.jar graphic -n somePic.png -p Zebra_Technologies_ZTC_GK420t -d"

Was it helpful?

Solution

I'm assuming that you are using TCP, as indicated by your connection string. However, your connection string also suggests you might be using USB since the name you have provided seems to be a Zebra driver name. Anyways, assuming TCP, you can use the printer's IP address and might have more luck:

tcp:192.168.0.1:9100

Also note that the Linux API doesn't support USB. The SDK requires a Windows driver for USB communication. Zebra's newest API also doesn't technically support your printer, but the languages are very similar and it would be worth testing it out.

If the API doesn't work for your circumstances, you could look into the ZPL Manual ~dg command (page 174) to see how to download graphics, but honestly the API would be far easier to use.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top