USB Host Port and Link-OS Usage Examples. Zebra ZD620

Add to My manuals
313 Pages

advertisement

USB Host Port and Link-OS Usage Examples. Zebra ZD620 | Manualzz

USB Host Port and

Link-OS Usage Examples

This section has information on using the printer’s USB Host port along with Link-OS features and Apps

(applications).

USB Host

The USB host port allows you to connect USB devices — such as a keyboard, scanner, or USB Flash

(memory) drive — to the printer.

USB Host Port Uses

• Firmware updates

• File transfers and management

• A port for low power USB data entry devices (keyboards, scales, scanners, and other wedge devices).

USB Host Port

Important • The USB Flash drive must be formatted with the FAT file system. Filenames may be 1 to 16 alphanumeric characters (A, a, B, b, C, c, ..., 0, 1, 2, 3, ...) only. Only use ASCII characters. Do not use Asian characters, Cyrillic characters, or accented characters in file names. Some functions may not work properly if there are underscores in a file name. Use periods instead.

193

USB Host Port and Link-OS Usage Examples

Using USB Host for Firmware Updates

The USB host port allows you to connect an USB Flash drive to the printer to perform firmware updates.

This is an example of using the powerful printer management, Zebra Mirror functions. See the printer ZPL programming manual — Mirror and Set-Get-Do (SGD) usb.mirror

commands operation.

Note • See

About section for information and support links for your specific printer model.

Important • Supports USB Flash drives (or “thumb drive” or “memory stick”) up to 1 Terabyte (TB). The printer will not recognize drives larger than 1 TB.

Flash Drive Preparation and Firmware Update

1.

On your USB Flash Drive, create the following:

• a folder called Zebra

• in that folder, create three sub-directories:

• appl

• commands

• files

2.

In the /appl folder, place a copy of the latest firmware for your printer.

3.

Load the printer with media. See

Loading Roll Media .

4.

Insert the USB Flash drive into the USB host port on your printer.

5.

Observe the user interface and wait.

If the firmware version on the USB Flash drive is different than the version installed on the printer, the firmware will download to the printer. The data indicator will flash green while the firmware is downloading. The printer will restart with all indicators flashing. When the firmware update has completed, the STATUS indicator will display solid Green as the firmware is validated and installed.

The ZD620 printer will display firmware download status messages on the LCD (and with the default

IDLE DISPLAY

mode set, the LCD shows the firmware version). A printer Configuration Report is automatically printed and the firmware update has been completed.

6.

Remove the USB Flash drive from the printer.

194

USB Host Port and Link-OS Usage Examples

USB Host and Printer Usage Examples

The exercises in this section will teach you how to perform USB mirror (using an alternate firmware update procedure), how to transfer files to and from the printer, and how to provide information for which you are prompted and then print a label using that information.

Items Required for the USB Host Exercises

To perform the exercises in this document, you will need the following:

• USB Flash drive up to 1 Terabyte (TB). The printer will not recognize drives larger than 1 TB.

• USB keyboard.

• Various files referenced below (from files attached inside this PDF file)

• Free Zebra Utilities app for your smart phone (search for Zebra Tech in the Google Play store).

Files for Completing the Exercises

Most of the actual files that you need to complete the exercises in these section are attached here in the

PDF file. Copy these files to your computer before you begin the exercises. Where possible, the contents of the files are shown. The contents of files that contain coded content, which cannot be viewed as text or as an image, are not included.

File 1:

ZEBRA.BMP

File 2:

SAMPLELABEL.TXT

^XA

^FO100,75^XGE:zebra.bmp^FS

^FO100,475^A0N,50,50^FDMirror from USB Completed^FS

^XZ

This simple label format prints the Zebra logo and a line of text at the end of the mirroring exercise.

File 3:

LOGO.ZPL

Uses the Zebra logo bitmap file.

195

USB Host Port and Link-OS Usage Examples

File 4:

USBSTOREDFILE.ZPL

CT~~CD,~CC^~CT~

^XA~TA012~JSN^LT0^LH0,0^JMA^PR4,4~SD15^LRN^CI0^XZ

~DG000.GRF,07680,024,,[image data]

^XA

^LS0

^SL0

^BY3,3,91^FT35,250^BCN,,Y,N^FC%,{,#^FD%d/%m/%Y^FS

^FT608,325^XG000.GRF,1,1^FS

^FT26,75^A0N,28,28^FH\^FDThis label was printed from a format stored^FS

^FT26,125^A0N,28,28^FH\^FDon a USB Flash Memory drive. ^FS

^BY3,3,90^FT33,425^BCN,,Y,N

^FD>:Zebra Technologies^FS

^PQ1,0,1,Y^XZ

^XA^ID000.GRF^FS^XZ

This label format prints an image and text. This file will be stored on the USB memory device at the root level so that it can be printed.

File 5:

VLS_BONKGRF.ZPL

File 6:

VLS_EIFFEL.ZPL

 

196

USB Host Port and Link-OS Usage Examples

File 7:

KEYBOARDINPUT.ZPL

^XA

^CI28

^BY2,3,91^FT38,184^BCN,,Y,N^FC%,{,#^FD%d/%m/%Y^FS

^FO385,75^XGE:zebra.bmp^FS

^FT40,70^A0N,28,28^FH\^FDThis label was printed using a keyboard input.

^FS

^FT35,260^A0N,28,28^FH\^FDThis label was printed by:^FS

^FT33,319^A0N,28,28^FN1"Enter Name"^FS

^XZ

This label format, used for the USB keyboard input exercise, does the following:

• Creates a barcode with the current date, based on your Real-Time Clock (RTC) setting. (RTC may not be present in the printer version you purchased)

• Prints the Zebra logo graphic

• Prints fixed text

• Prints text entered with the keyboard by a operator

File 8:

SMARTDEVINPUT.ZPL

^XA

^CI28

^BY2,3,91^FT38,184^BCN,,Y,N^FC%,{,#^FD%d/%m/%Y^FS

^FO385,75^XGE:zebra.bmp^FS

^FT40,70^A0N,28,28^FH\^FDThis label was printed using a smart device input. ^FS

^FT35,260^A0N,28,28^FH\^FDThis label was printed by:^FS

^FT33,319^A0N,28,28^FN1"Enter Name"^FS^XZ

The same label format as the previous label, only with different text printing. This format is used for the smart device input exercise.

197

USB Host Port and Link-OS Usage Examples

Exercise 1: Copy Files to a USB Flash Drive and Perform USB Mirror

1.

On your USB Flash Drive, create the following:

• a folder called

Zebra

• in that folder, three sub folders:

• appl

• commands

• files

2.

In the

/appl

folder, place a copy of the latest firmware for your printer.

Note • Some functions may not work properly if there are underscores in a file name. Use periods instead.

2.

In the

/files

folder, place the following file:

• File 1:

ZEBRA.BMP

3.

In the

/commands

folder, place the following files:

• File 2:

SAMPLELABEL.TXT

• File 3:

LOGO.ZPL

4.

Insert the USB Flash drive into a USB host port on the front of your printer.

5.

Observe the user interface and wait. The following should happen:

• If the firmware on the USB Flash drive is different than what is on the printer, the firmware downloads to the printer. The printer then restarts and prints a printer configuration label. (If there is no firmware on the USB Flash drive or if the firmware version is the same, the printer skips this action.)

• The printer downloads the files in the

/files

folder and briefly shows the names of the files that are downloading on the display.

• The printer executes any files in the

/commands

folder.

• The printer restarts and then displays the message

MIRROR PROCESSING FINISHED.

6.

Remove the USB Flash drive from the printer.

198

USB Host Port and Link-OS Usage Examples

Table 1

Exercise 1: Advanced User Information

See the ZPL Programming Guide for more information about these commands.

Enable/disable mirroring:

! U1 setvar "usb.mirror.enable" "value" — Values

:

"on" or "off"

Enable/disable automatic mirroring that occurs when a USB Flash drive is inserted into the

USB host port:

! U1 setvar "usb.mirror.auto" "value" — Values: "on" or "off"

Mirror Operation Retry Number — Specify the number of times that the mirror operation will be repeated if it fails:

! U1 setvar "usb.mirror.error_retry" "value" — Values: 0 to 65535

Change File Path FROM USB — Reprogram the file location the printer searches to retrieve files from the USB memory during Mirror operations.

! U1 setvar "usb.mirror.appl_path" "new_path" — Default: "zebra/appl"

Change File Path TO USB — Reprogram the file location the printer places files into USB memory during Mirror operations.

! U1 setvar "usb.mirror.path" "path" — Default: "zebra"

Enable/disable the USB Host port

! U1 setvar "usb.host.lock_out" "value" — Values: "on" or "off"

199

USB Host Port and Link-OS Usage Examples

Exercise 2: Print a Label Format from a USB Flash Drive

The Print USB File option allows you to print files from a USB mass storage device, such as a USB Flash drive. Only printable files (

.ZPL

  and

.XML

) may be printed from the USB mass storage device, and the files must be located at the root level, not in a directory.

1.

Copy the following files to your USB Flash drive:

• File 4:

USBSTOREDFILE.ZPL

• File 5:

VLS_BONKGRF.ZPL

• File 6:

VLS_EIFFEL.ZPL

2.

Insert the USB Flash drive into a USB host port on the front of your printer.

3.

On the printer’s LCD users interface, press the LEFT SELECT button (below the home icon) to access the printer’s Home Menu.

4.

Use the ARROW buttons to scroll to the Tools menu and SELECT (checkmark icon)

5.

Use the ARROW buttons to scroll to PRINT USB FILE .

The printer loads any executable files and processes them. The available files are listed. SELECT ALL is available to print all files on the USB Flash drive.

6.

If necessary, use the up and down arrow to select

USBSTOREDFILE.zpl

.

7.

Press the RIGHT SELECT button to select PRINT . The label prints.

200

USB Host Port and Link-OS Usage Examples

Exercise 3: Copy Files to/from a USB Flash Drive

The Copy USB File option allows you to copy files from a USB mass storage device to the printer’s Flash memory

E:

drive.

1.

Copy the following files to the root directory of your USB Flash drive. Do not put these files into a sub-folder.

• File 7:

KEYBOARDINPUT.ZPL

• File 8:

SMARTDEVINPUT.ZPL

2.

Insert the USB Flash drive into a USB host port on the front of your printer.

3.

On the printer’s LCD users interface, press the LEFT SELECT button to access the printer’s Home

Menu.

4.

Use the ARROW buttons to scroll to the Tools menu and press SELECT (check mark icon).

5.

Use the ARROW buttons to scroll to COPY USB FILE TO E: .

The printer loads any executable files and processes them. The available files are listed. SELECT ALL is available to copy all of the available files from the USB Flash drive.

6.

If necessary, use the UP or DOWN ARROW to select the file

STOREFMT.ZPL

.

7.

Press the RIGHT SELECT button to select STORE .

8.

The printer stores the file in

E:

memory. All file names are converted to uppercase.

9.

Repeat this process to select the file

STOREFMTM1.ZPL

.

10.

Press the RIGHT SELECT button to select STORE . The printer stores the file in

E:

memory.

11.

Remove the USB Flash drive from the USB host port.

Note • You can now copy these files from the printer to a USB Flash drive using the user menu item STORE E: FILE

TO USB .

201

USB Host Port and Link-OS Usage Examples

The option SELECT ALL is available to store all of the available files from the printer to the USB Flash drive. Any

.ZPL

file that is copied will be post-processed such that the contents of the file will be suitable to be sent to a printer for normal execution.

202

USB Host Port and Link-OS Usage Examples

Exercise 4: Enter Data for a Stored File with a USB Keyboard and Print a Label

The Print Station feature allows you to use a USB Human Interface Device (HID), such as a keyboard or a barcode scanner, to enter

^FN

field data into a

*.ZPL

template file.

1.

After performing the previous exercise, plug a USB keyboard into a USB host port.

).

2.

Use the ARROW buttons to scroll to the Tools menu (

3.

Press OK.

4.

Use the ARROW buttons to scroll to PRINT STATION .

The printer loads any executable files and processes them. The available files are listed.

5.

If necessary, use the UP or DOWN ARROW to select the file

KEYBOARDINPUT.ZPL

.

6.

Press the RIGHT SELECT button to choose SELECT .

7.

The printer accesses the file and prompts you for the information in the

^FN

fields in the file. In this case, it prompts you for your name.

8.

Type your name, and then press <ENTER>. The printer prompts for the number of labels to print.

9.

Specify the desired quantity of labels, and then press <ENTER> again.

The specified number of labels is printed, with your name in the appropriate fields.

203

USB Host Port and Link-OS Usage Examples

Using the USB Hosts Port and the NFC Capabilities

The Zebra Print Touch ™ feature allows you to touch an Android ™ -based, Near Field Communication

(NFC) enabled device such as a smart phone or tablet to the printer’s Print Touch logo to pair the device to the printer. This capability allows you to use your device to provide information for which you are prompted and then print a label using that information.

Important • Some mobile devices may not support NFC communication with the printer until you configure the required NFC settings in your device. If you encounter difficulties, consult your service provider or your smart device manufacturer for more information.

Print Touch Location

(Passive NFC)

204

USB Host Port and Link-OS Usage Examples

Exercise 5: Enter Data for a Stored File with a Smart Device and Print a Label

Note • The steps in this exercise may vary somewhat based on your smart device, on your service provider, or on whether you already have the free Zebra Utilities app installed on your smart device.

Refer to the Zebra Bluetooth User Guide for specific instructions for configuring your printer to use a Bluetooth interface. A copy of this manual is available at: http://www.zebra.com/manuals .

1.

If you do not have the Zebra Utilities app installed on your device, go to the app store for your device, search for the Zebra Utilities app, and install it.

2.

Pair your smart device with the printer by holding the smart device next to the Zebra Print Touch icon on the printer.

1. If necessary, access the Bluetooth information about your printer using your smart device.

For instructions, refer to the manufacturer’s documentation for your device.

2. If necessary, select the Zebra printer’s serial number to pair it with the device.

3. After your smart device has been detected by the printer, the printer may prompt you to accept or reject the pairing. If necessary, press the LEFT SELECT button on the printer to select ACCEPT. Some smart devices will pair with the printer without this prompt.

The printer and your device are paired.

3.

Start the Zebra Utilities app on your device. The Zebra Utilities main menu displays.

205

USB Host Port and Link-OS Usage Examples

4.

Perform these steps if you have an Apple device:

5. Tap the Settings icon ( ) in the lower-right corner.

6. Change the setting for Get Labels From Printer to ON .

7. Tap Done.

8. Tap Files.

The smart device gets data from the printer and displays it.

Note • This retrieval process may take a minute or more to complete.

5.

Scroll through the formats shown and select

E:SMARTDEVINPUT.ZPL

.

Based on the

^FN

field in the label format, the smart device prompts you for your name.

6.

Enter your name at the prompt.

7.

Change the quantity of labels to print, if desired.

8.

Tap PRINT to print the label.

206

advertisement

Related manuals

Download PDF

advertisement

Table of contents