BARZ_OUT Pro Support FAQ

 
 
How do I get my system serial number? (back to top)

Unibar requires the system serial number from the operating system in order to license our software.

BARZ_OUT Pro, Version 4.x & 5.x -- Type bzp -ir or bz -ir, and send the register.inf or register.txt file to techsupport@unibar.com

How to configure CUPS (Common UNIX Printing System) for BARZ_OUT Pro? (back to top)

  1. Create a RAW input file printer by selecting the 'New' button.

    CUPS Settings

  2. Select the 'Forward' button.

    CUPS Settings

  3. Enter a 'Name' and 'Short description' to identify the printer queue.

    CUPS Settings

  4. Select a queue type (in this example we chose the 'Networked JetDirect' queue type).
    Enter the information for setting up the queue type chosen (i.e. IP address and Port for the Networked JetDirect queue type) and select the 'Forward' button when finished entering the queue type information.

    CUPS Settings

  5. Select the printer type and select the 'Forward' button. We recommend using a Generic printer type set to RAW mode or 'Raw Print Queue' for printing with BARZ_OUT Pro because other printer types might modify the print stream before the data is passed to BARZ_OUT Pro, which may cause the bar code(s) not to print.

    CUPS Settings

  6. Review the settings and select the 'Finish' button to add the print queue.

    CUPS Settings

  7. The print queue should now be displayed on the Printer configuration screen.

    CUPS Settings

Print to the new print queue using BARZ_OUT Pro

   bz -CFGsample1.cfg < sample1.txt | lp -d hp1300RAW

How to fix stair stepping when printing? (back to top)

When printing in a Linux/Unix environment the printed output may appear to be incorrect or what is referred to as "stair stepping".

Example:
123456
      ABCDEFG
             123456

To fix the stair stepping for the printed output add -LINE_TERM=LF_ADD_CR to the configuration file. The Line Termination command causes Barz_Out Pro to send a PCL Line Termination command to the printer. This instructs the PCL printer itself to perform some character substitution. For example, it is common in unix systems to have the printer add a carriage return whenever it encounters a line feed, since unix does not typically use carriage return characters in text files.

How to obtain a permanent license for Unibar's products? (back to top)

See "How do I get my system serial number" above.

How to setup a print filter on AIX? (Lasers only) (back to top)

To create a filter on an existing printer queue (AIX)

  1. Using 'smit' or the GUI, go into the 'Print Spooling' option
  2. Select the 'Programming Tools' option
  3. Go to 'Change/Show Pre-processing Filter'
  4. Select the queue you want to be filtered
  5. Select the 'User Defined filter 1'
  6. Set the command to:
    {YourUnibarPath}/bzp -CFG{YourConfigFile}
    Example - unibar installed in the /bz directory
    /bz/bzp -CFGsample.cfg
  7. After you have set the filter for the printer queue, go back to the 'Print Spooling' menu
  8. Select 'Change/Show Print Queue Characteristics'
  9. Select the print queue you set up the filter for, in the previous instructions
  10. Select 'Default Print Job Attributes'
  11. Go to the 'Print file Type' section, and set it to 'pass-through'
    NOTE -- your printer must be in PCL mode in order for this to work.
  12. Next, set the 'Pre-processing Filter Name' to 'User Defined filter 1'

Set up notes


  1. Make sure you add the unibar directory your search path (PATH=)
  2. It might be necessary to set the UNIBAR environment string on some systems (see What is a Base Directory or Environment String? for mor information)
  3. When printing to the printer, use
    lp -d{QueueName} {filename}
    Example - printing the sample.dat file located in the unibar directory, to a printer queue named "BZ"
    lp -dBZ sample.dat

How to setup a print filter on SCO Open Server 5? (back to top)

BARZ_OUT PRO can be setup as a Printer System Filter on SCO. This causes the print spooler (the 'lp' command) to execute BARZ_OUT PRO as a sort of printer option.  Many various configurations are possible, depending on the user's preferences. This page describes one configuration in detail. It also describes a problem we ran into, which is as yet unresolved.

For this example, we used an HP LaserJet 6MP on a parallel port, "/dev/lp0".
  1. Install Barz_Out. We installed it in the directory "/unibar/barzout"
  2. Create a filter definition file. This is an ASCII text file, described in the SCO Help system. (click 'Help' on the main screen, 'Index', Navigate', 'Search', search the Entire Library for the word "lpfilter". Scroll down a page or so and click on "Creating and Using Printer Filters").
    For this example, we created a filter definition file, '/unibar/barzout/bzpcl.filter', with the following content:
    1. Input Types: bz
    2. Output Types:
    3. Printer Types: any
    4. Printers: HpBz (the queue name 'HpBz' is a user-selected name. We will define the queue later in this example.)
    5. Filter type: slow
    6. Command: /unibar/barzout/bzp -CFG/unibar/barzout.bzp.cfg
    7. Options:
  3. Create the Printer Queue. From the main screen, select 'System Administration', 'Printers', 'Printer Manager', 'Printer', 'Add Local'. We gave the printer the following:
    1. Name: HpBz
    2. Description: HP Laser with Barz_Out
    3. Model: HpLaser
    4. Device: /dev/lp0
  4. Add the filter. In the Printer Manager window, we selected 'System', then 'Filters..', then 'New...' The FilterName can be anything, we used BarzOutPcl. The Filename is the name of the filter definition file created in Step 2) . We used '/unibar/barzout/bzpcl.filter'.

Setup Notes

  1. When printing to the printer use:
    lp -d {Printer Queue} -T{Filter Name} {filename}
    Example - printing the sample.dat file located in the unibar directory, to a printer queue named "HpBz"
    lp -d HpBz -Tbz sample.dat
  2. The "-Tbz" parameter to 'lp' is used to specify the file type of the printed file. The SCO Print Filter documentation seems to indicate that this is unnecessary (that the filter can be defined as working on "any" file type). In practice, we could only get the filter activated when we specified the file type explicitly.


How to use the print spooler for a serial port printer? (back to top)

When multiple users print to a serial port directly the first user's print job that is currently printing could be overwritten by other users submitting print jobs directly to the serial port.  One possible solution to this issue is to configure the printer to use the print spooler within UNIX/Linux.

The Spooler

The spooler is the main printing software component. The print request is sent down as a print job and is placed in a print queue. As the name suggests, a queue is a lineup of jobs waiting for their turn to receive access to the hardware printer. The spooler monitors both the queue and the printer. As the printer becomes available, the spooler sends the next job for printing. Once the print successfully completes, the spooler removes the job from the queue and moves on to the next job.

BARZ_OUT/BARCODE 2000 Print Destination Table

The Print Destination Table allows the user to input the device name (Logical field), location/destination (Physical), how the data is handled (Type).

Sample Print Destination Table Entry
PRT_DEST =
{
Logical = MySerialPrinter
Physical = lp -dMySerialPrinter
TYPE = PIPE
}

Setup The Serial Printer

Using lpadmin, a command to configure the LP print service, run the following commands (refer to your operating system’s documentation for more information on how to setup a printer using the lpadmin command):
  1. lpadmin –p MySerialPrinter –v/dev/tty1a
    (tty1a is the serial port which may be different on your system, check with your system administrator for more information about serial ports)
  2. enable MySerialPrinter
  3. accept MySerialPrinter

By giving the above lpadmin command it will create a Printer device. The enable command will enable the printer device. By giving accept command, printer will be able to accept print requests from users.

What is a Base Directory or Environment String? (back to top)

The base directory is where all of Unibar's products looks for any files without a full pathname. A "full pathname" is a file name beginning with the '/' character on UNIX/Linux, or '\' or '[drive]:\' on DOS or Window systems.

The base directory is established once per execution, by finding 'unibar.key'. Once the base directory is established, every file is expected to exist relative to the base directory.

The following procedure is used to look for 'unibar.key'
  1. Check present working directory
  2. Check  the 'UNIBAR' environment string, if it is set
  3. Check '/unibar' on UNIX/Linux, or '\unibar' on DOS/Window systems
  4. Check the explicit path on argv[0] (the program name), if there is one*
  5. Check Operating System's search path

* - We determine if there is a search path on argv[0] by scanning  the program name backwards (from right to left) and finding a '/' (on UNIX/Linux) or '\' (on DOS/Windows).

Setting the Environment String UNIX/LINUX system only:
  • Type at the command line:
    UNIBAR={unibar directory} (the directory where you installed our product)
  • Type at the command line:
    export UNIBAR

The command above can be inserted into a login script so they are automatically executed whenever the user logs on.

Instructions for Windows Systems (NT/2000/XP)
  1. Go to Control Panel>System
  2. Select the 'Environment' tab.
  3. Select 'System Variable' by hitting ALT-V
  4. Select the 'Variable' text box
  5. Type:
    UNIBAR
  6. Select the 'Value' text box
  7. Type:
    C:\{unibar directory} (the directory where you installed our product)
  8. Select the Set button
  9. Select the OK button


 
Company | Ted Kruse | News and Events | Case Studies | Contact Us | Software
Barcode 2000 | Barcode 2000 XML | BARZ_OUT Pro | e-BARZ Pro | Web Label | Oracle | RFID | XML | UCC
Partners | Technical Support | Customer Portal | Downloads
Professional website design by Foundry Designs Inc.