GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
TF - Print File
This command transfers a file from a connected storage media to a printer. This
commands simply reads the file contents and send them to the registered printer.
Format TF<SP>P>H>FileName<CR>
!00<CR>
!00<CR>
P: Register printer port number
H: A free file handle to use
FileName: Name of the file to transfer.
!00 (First !00): This error code indicates
that the command is accepted and the
file transfer is in progress.
!00 (Second !00): This error code
indicates that transferring the file is
done with no errors.
Example TF<SP>0>0>PIC.PRN<CR>
!00<CR>
!00<CR>
Notes:
1. The printer should be initialized before using this command (Refer to UP
command).
2. The storage media should be initialized before using this command (Refer to FM
command).
Q. Can I print a picture “PIC.JPG” directly using this command?
A. No, This command will read the file and send it (as is) to the printer. The printer
would receive the picture bytes but it will not understand what the bytes mean. They
might indicate a picture, text ...etc. You will need to send the data in a format that the
printer will understand.
Q. How can I use the command then?
A. This command is useful for rapidly transferring a file from a media directly to the
printer.
One way to turn your picture files(ex: JPG) or text files (ex: TXT) into a file that the
printer understands is to use “print to file” in Windows. Windows will translate the file
into another file that the printer understands using the appropriate drivers. Then you can
put this file on a Thumb drive and print it using this command.
UI - Enumerate USB Device (Raw Command)
This command is used to enumerate the newly connected USB devices and assign a
Device Handle to it. Before using any other raw commands the device should be
enumerated. USBwiz has 3 device handles.
Format UI<SP>p>h<CR>
!00<CR>
p USB port number 0, 1
h USB device handle 0, 1, 2
Example UI<SP>0>0<CR> Enumerate the device connected on port 0 and
Rev.2.27 Page 52 of 64 www.ghielectronics.com
Comentarios a estos manuales