Is it possible to use USB HOST port in ZBI program

Hello,
I developed a ZBI program to print labels that depend on information retrieved via TCP port.
In case of network issue, I need to be able to connect a barcode scanner to the Usb Host port and retrieve the data to replace the normal TCP data.
But I can't find the correct port... I try USB_HOST which is used on SGD printer command but it doesn't work.
If you have any ideas???
Thanks in advance for your help !

Alexander Palchikov
Hello.

Hello.

I think the following video can help you: https://youtu.be/bPYB8iq8goE?t=352

Could you please provide more details:
What is a model name of your printer?
Can you show your ZBI code?

As far as I understand you need just open USB port in your ZBI code and then listen to it.
Below you can find a sample of ZBI code for receiving data from another device.

10 close all
20 open #1: name “USB”
30 open #2: name “ZPL”
40 input #1: A$
50 pring #2: “^XA^FO50,50^A0N,50,50^FD"&A$&"^FS^XZ”
60 goto 40

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

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bastien Apchain
Hello Alexander,

Hello Alexander,
Thanks, but I already know this video.
In my case I wish to use the Usb Host port on a Zebra ZD420 (the A-Type Usb port which is next to the classic B-type Usb port to connect to computer).
I already use this code:
open #1: name "USB"
The problem is that use the data from the B-Type Usb port not from the Usb-Host port.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments