Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 17 of 33

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Section 5: Customizing Your Configuration, pages 129 to 138

Pages 129 to 138 of 278, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide

The original document is the PDF (4.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6400

Page 129

Section 5

Customizing Your Configuration "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

This section describes the procedures you can use to customize the standard VT/ANSI TE program by Intermec Technologies Corporation. You customize the TE program by creating or modifying configuration files, and then downloading them to your terminal to do the following: "

" "

" " " "

Use the auto-login feature to send the same login information each time you login to the host. Page 5-1 Display double-byte characters. Page 5-10 Create a custom parameter set-up file to download a customized file to all terminals so they have the same setup information. Page 5-10 Change the text of TE configuration menus or system messages. Page 5-34 Preinitialize the VT/ANSI TE program. Page 5-34 Remap the terminal’s keys. Page 5-35 Remap characters. Page 5-40

Using the Auto-Login Feature Use the auto-login feature to send the same login information each time you login to the host. When you start the TE application, the terminal checks for an auto-login script file. If a script file exists, the terminal runs the login commands from the auto-login script file before the TE program starts. To use the auto-login feature, you need to develop an auto-login script file and load the auto-login script file on the terminal. These steps are covered on the following pages along with a list of the necessary control characters and the procedure for disabling the auto-login feature.

Developing Auto-Login Script Files A typical auto-login script file consists of Input and InputHidden commands followed by a HostName command, followed by a series of WaitFor and Send commands. A very simple script file may not have any input commands if all of the terminals are using the same account. " NOTE:

The auto-login script must be an ASCII text file with AUTOLOG.SCR as the required file name or the file will not be processed.

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

5-1

Page 130

Customizing Your Configuration

SECTION 5

Commands

You can use several commands to create auto-login script files. All commands are case-sensitive. For example, WaitFor is a command, but Waitfor is not a valid command. For examples of script files, see “Sample Auto-Login Script Files” on page 5-8. " NOTE:

As Microsoft Windows can reserve the word “input,” the following Input commands are changed to Inputs for the 5020 Terminal. All other terminals will continue to use the original Input commands.

Input, Inputs (5020) This is called with two parameters. The first one is a character string enclosed in quotes used as a prompt to the user. The second one is a string variable name indicating where the text string will be stored. InputHidden Same as the Input or Inputs script command except that user input is echoed as a string of asterisks. HostName This command is case-sensitive and must be presented as mixed-case letters. HostName is followed by a character string enclosed in quotes. The character string can be a host name or an asterisk. The HostName command acts as an IF clause. If the host name matches, the following section of the script file is executed up to the next HostName command. If an asterisk is used, it matches any host name. WaitFor Wait for a list of up to ten strings. The strings must be enclosed in quotes and must be separated by a comma. The strings cannot exceed 20 characters in length. Send This command sends a character string enclosed in quotes or a string variable to the host. The character string enclosed in quotes can have an embedded control key in VT/ANSI TE. Pause “xxxxx” Delays the terminal for x milliseconds, halts terminal operation from receiving and processing for the duration specified. PromptSessionStart This command is a predefined variable. If this variable is defined and set to any value other than 0, the application prompts the user to press [Enter] before starting a Telnet session with the host. Do not put quotes around the variable. Restart “x” Restarts the autologin script file. The “x” is a dummy argument. Keyboard “0” Disables the keyboard. Key presses are ignored. For additional information, see Note below. Keyboard “1” Enables the keyboard. Key presses are processed. The keyboard is enabled by default. For additional information, see Note below. # (pound symbol) Documents the script file. Text following a # (pound) symbol is considered a comment unless the # symbol is in a quoted string. 5-2

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 131

SECTION 5

Customizing Your Configuration

" NOTE:

Input the Keyboard “0” or Keyboard “1” command into the autologin script file after the PromptSessionStart command (if present) and the HostName command (if present). Also turn on the keyboard command before another HostName command is found in the file.

Search Strings

Some auto-login search string limitations are as follows. You can use line wrapping to look for unique strings. "

" " "

All blank areas on the display are seen as space characters by auto-login in VT emulation. The searches are case sensitive. The maximum search string length is 20 characters. Each WaitFor command searches the entire screen from the top.

If a screen from the host has multiples of the word you are looking for, you can use the preceding spaces to identify a unique string. EXAMPLE:

If the screen sent to the terminal is: Linux rlogin 2.4.6 login The autologin script would be: PromptSessionStart=1 HostName “*” #wait for host login screen and send login and password WaitFor “ login” Send “billy<ENTER>” WaitFor “password” Send “letmein<ENTER>” In this example, you can search for the three leading spaces from the end of the previous line to make a unique search string.

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

5-3

Page 132

SECTION 5

Customizing Your Configuration

Control Characters You can include control characters in your auto-login script file. The control character must be enclosed by < > (angle brackets) in AUTOLOG.SCR. Table 5-1 lists control characters for VT/ANSI TE. " NOTE:

Some control characters may be represented by their hexadecimal values. For a description of control characters and hexadecimal equivalents, see the full ASCII chart in Appendix C.

Table 5-1 Control Characters for Auto-Login Script File Control Character

Definition

Control Character

Definition

<ACK> <BEL>

Acknowledgment Bell

<F1> – <F20> <F21>

<BS> <CAN> <CR> <CUR_DN> <CUR_LF> <CUR_RT> <CUR_UP> <DC1> <DC2> <DC3> <DC4> <DEL> <DLE> <EM> <ENQ> <ENTER> <EOT> <ESC> <ETB> <ETX>

Backspace Cancel Carriage Return Cursor Down Cursor Left Cursor Right Cursor Up Device Control 1 (XON) Device Control 2 Device Control 3 (XOFF) Device Control Delete Data Link Escape End of Medium Enquiry Enter End of Transmission Escape End Transmission Block End of Text

<FF> <FS> <GS> <HT> <INS> <LF> <LTAB> <NAK> <NUL> <RS> <RTAB> <SI> <SO> <SOH> <SPACE> <STX> <SUB> <SYN> <US> <VT>

Function keys Toggles from Character mode/Line Edit (block) mode Form Feed File Separator Group Separator Horizontal Tab Insert Line Feed Left Tab Negative Acknowledge Null, or all zeros Record Separator Right Tab Shift In Shift Out Start of Heading Space Start of Text Substitute Synchronous Idle Unit Separator Vertical Tab

Loading the Auto-Login Script File Follow these procedures to download an auto-login script file to your terminal. The method depends on the type of terminal you are using.

2415, 2425, 2435A, 2455, or 248X Terminal You can download more than one script file to a 2415, 2425, 2435A, 2455, or 248X Terminal, but immediately name the file to be used as AUTOLOG.SCR and name any other script files with different names ending with .SCR. To learn more about transferring files, refer to your terminal’s user manual. Use one of the following download utilities to copy your completed AUTOLOG.SCR file to the terminal. 5-4

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 133

SECTION 5

Customizing Your Configuration

Using Serial Port to Download File

1. Connect the terminal to the development personal computer or host. For help, refer to your terminal’s user manual or your accessory documentation. 2. Load the AUTOLOG.SCR file into drive C, where the TE application is stored. For help, refer to your terminal’s user manual. 3. Use T24XCOPY.EXE (from the developer ’s kit) to copy the file directly to drive C: on the terminal; or use LOADER.EXE (from the flash upgrade) to copy the file to the terminal in flash mode using the following command: loader AUTOLOG.SCR

Using RF Communications to Download File

Note that loading the AUTOLOG.SCR file from the DCS 300 is supported. 1. Copy the AUTOLOG.SCR file to the DCS 300. 2. Configure the download server on the DCS 300 to send AUTOLOG.SCR to the terminals in groups of 10 or less. 3. Start the download. When you reset your terminal, it clears the auto-login information, such as the password and user’s name. You can cancel the auto-login process by pressing any key during the auto-login sequence. When a host session is broken, you can restart the auto-login sequence by rebooting your terminal.

5020 Data Collection PC

The 5020 Data Collection PC User ’s Manual P/N: 068975-002) has comprehensive information regarding 5020 file management. Below is an excerpt from the manual. Downloading a File

1. From the host computer or PC, connect to the 5020 Terminal using a web browser and start the Unit Management application. For help, see the 5020 PC User ’s Manual. 2. Click File Manager to access the main File Manager screen. 3. Click the option button next to the parent directory where the file to be downloaded is located, then click the Go To button to access its contents. To download a file to the current directory on the 5020 Terminal, go to the next step. 4. Go to the File Upload form at the bottom of the main File Manager screen on the host computer and click the Browse button. 5. From the Choose File box on the host computer, select the file to be downloaded to the 5020 Terminal, then click Open to place the path and file name on the File Upload form. 6. On the host computer, click the Upload File button to continue, or click Clear to clear the form and start again. The screen showing the parent directory is refreshed. If successful, the following confirmation message will appear on the host computer, where “Filename” is the file that was downloaded to the 5020 Uploaded file “Filename” Terminal:

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

5-5

Page 134

SECTION 5

Customizing Your Configuration

Copying a File

Use the File Manager from the host computer to make a copy of a file. Repeat steps 1 through 3 of “Downloading a File” on the previous page, then do the following: 1. Click the option button next to the file you want to copy, then click the Copy button to access the Copy File screen. 2. To save the copied file to the same directory as the original file, enter a unique file name in the New Name field, then click Copy File to create a copy of the file. The screen showing the parent directory is refreshed. If successful, the following confirmation message will appear on the host computer, where “Filename” is the original file and “New Filename” is the “Filename” copied to “New Filename” copy:

6400 Computer or 5055 Data Collection PC Use INTERLNK/INTERSVR communications to connect your terminal to a personal computer. For help, see “Downloading Files” on page 5-41. You must load AUTOLOG.SCR into drive C, where the TE application is stored.

59XX, 17XX, or 11XX Terminal

The download process requires flash and utility files. 1. Using FLSHCONV.EXE from the TOOLS.EXE file from the flash program, append the AUTOLOG.SCR file to the end of the .HEX program. For help, see“Downloading Files” on page 5-41. Below are sample command lines for each terminal type: 11XX Terminal with 256K flash (example uses 1180, but applies to all radio types) flshconv –eC000 –a fwp118c0.hex AUTOLOG.scr –oNEW1180.HEX 11XX Terminal with 512K flash (example uses 1180, but applies to all radio types) flshconv –eFFC0 –a fwp118h0.hex AUTOLOG.scr –oNEW1180.HEX 17XX Terminal (example uses 1780, but applies to all radio types) flshconv –eFFC0 –a fwp178h0.hex AUTOLOG.scr –oNEW1780.HEX 59XX Terminal (example uses 5980, but applies to all radio types) flshconv –eE000 –a fwp598h0.hex AUTOLOG.scr –oNEW5980.HEX

2. Using PROGDUX.EXE from the flash files, load the NEW.HEX file onto the terminal. Below is a sample command line using the 1780 Terminal: PROGDUX –e NEW178H0.HEX

5-6

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 135

SECTION 5

Customizing Your Configuration

Disabling the Auto-Login Feature To disable auto-login, you may rename or delete the AUTOLOG.SCR file. Renaming the file ensures that you can use the same auto-login script file later by changing the name back to AUTOLOG.SCR. If you want to enable a new script file, you can use the instructions in this section to rename a different script file to AUTOLOG.SCR. Follow these procedures to disable (or delete) the auto-login script file. The method depends on the type of terminal you are using.

2415, 2425, 2435A, 2455, or 248X Terminal

1. Press the appropriate key sequence or scan the following bar code to access the TRAKKER Antares R 2400 Menu System’s Main Menu: Enter Test and Service Mode

*../M.* *..--.*

2. 3. 4. 5.

Choose System Menu and then choose File Manager. Select drive C. Press Y or B to highlight AUTOLOG.SCR. Press [FnL .] to delete the file or press [F7] to rename the file. Exit the TRAKKER Antares 2400 Menu System to return to your current TE session. Restart the TE application to use TE without the auto-login. You can also rename the auto-login script file from your host. For help, refer to your terminal’s user manual.

5020 Data Collection PC

Via your web browser, access the IP address at http://<IP address>, double-click the File Manager desktop icon, select File, then press the [Del] key to remove the auto-login feature.

6400 Computer or 5055 Data Collection PC

1. Reboot the terminal to a DOS prompt. For the 6400 Computer: press and hold the yellow, blue, and both green enter keys until the terminal resets. Watch the screen as the terminal boots and press 0 (zero) when the prompt appears. For the 5055 Data Collection PC: power-cycle the terminal and select the minimum DOS prompt from the boot menu. 2. Rename or delete the AUTOLOG.SCR file. 3. Reboot the terminal again and allow it to complete the boot into terminal emulation.

59XX, 17XX, or 11XX Terminal

To disable auto-login on a 59XX, 17XX, or 11XX Terminal, reload the terminal with unmodified flash, then perform a cold start to flush the memory. The flash file does not allow selective erasing; files can be added, but not removed without removing all files.

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

5-7

Page 136

SECTION 5

Customizing Your Configuration

Sample Auto-Login Script Files " NOTE:

The Windows CE operating system within the 5020 Data Collection PC uses the Input keyword as a reserved word, so this command is changed to Inputs for the 5020 PC.

You can use these sample script files as they are or as the starting point for creating your own auto-login script files. EXAMPLE 1:

Auto-Login With All Terminals Using the Same Account HostName “*” WaitFor “login:” Send “user_name<CR>” WaitFor “Password:” Send “letmein<CR>”

#Use this to log into any host #Wait for the login prompt #Send the user name #Wait for the password prompt #Send the password

The HostName command matches the host the user accesses. The WaitFor command waits for a string to be displayed by the host. WaitFor takes up to 10 strings, 20 characters long. The strings must be enclosed in quotes and separated by a comma. The first Send command sends a fixed user name. The second Send command sends a fixed password. Angle brackets < and > can enclose uppercase mnemonics or hexadecimal values. EXAMPLE 2:

Auto-Login With Different User Names and Passwords Input “Enter user name”, username #Prompt for user name (5020) Inputs “Enter user name”, username #Prompt for user name InputHidden “Enter password”, password #Prompt for password HostName “*” WaitFor “login:” #Wait for the login prompt Send user_name #Send the user name Send “<CR>” #Send a carriage return WaitFor “Password:” #Wait for the password prompt Send password #Send the users password Send “<CR>” #Send a carriage return

The Input, Inputs (5020), and Send commands use input variables. Input and Inputs (5020) commands require a prompt string followed by a comma and a variable name to store the string in. The InputHidden command will display “*” in place of any characters the user types. All Input and Inputs (5020) commands must be before the first HostName command. The Send command only accepts a single argument, so you need two Send commands to send the user name and a carriage return.

5-8

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 137

SECTION 5

EXAMPLE 3:

Customizing Your Configuration

Auto-Login to an Application Input “Enter user name”, username #Prompt for user name (5020) Inputs “Enter user name”, username #Prompt for user name InputHidden ”Enter Password”, password #Prompt for password HostName “*” WaitFor “login:” #Wait for the login prompt Send username #Send the user name WaitFor “<CR>” #Send a carriage return WaitFor “Password:” #Wait for password prompt Send password #Send the users password Send “<CR>” #Send a carriage return WaitFor “Main Menu” #Wait for the main menu Send “3” Send “<CR>” #Pick option 3 from the menu WaitFor “Wip Menu” #Wait for work in process menu Send “1” Send “<CR>” #Pick option 1 from the menu

Example 3 modifies the script file in Example 2. The additional modification (which starts with WaitFor “Main Menu”) allows you to move automatically to an application after logging in. EXAMPLE 4:

Auto-Login With Variable Processing Input “Enter user name”, username #Prompt for user name (5020) Inputs “Enter user name”, username #Prompt for user name InputHidden “Enter Password”, password #Prompt for password HostName “BigHost” #Use script portion for BigHost WaitFor “User:” #Wait for the user prompt Send username #Send the user name Send “<CR>” #Send a carriage return WaitFor “Password:” #Wait for the password prompt Send password #Send the users password Send “<CR>” #Send a carriage return HostName “*” #Match any other host name WaitFor “login:” #Wait for the login prompt Send username #Send the user name WaitFor “<CR>” #Send a carriage return WaitFor “Password:” #Wait for password prompt Send password #Send the users password Send “<CR>” #Send a carriage return WaitFor “Main Menu” #Wait for the main menu Send “3” Send “<CR>” #Pick option 3 from the menu WaitFor “Wip Menu” #Wait for work in process menu Send “1” Send “<CR>” #Pick option 1 from the menu

A section for the host name BigHost is added to the beginning of the script file. If you log into any host other than BigHost, the script file starts at the HostName “*” line. This allows for different processing on each host.

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

5-9

Page 138

SECTION 5

Customizing Your Configuration

Auto-Login Restart The Auto-Login Restart command starts the auto-login script file from the correct HostName statement in the script file when a host session is broken. For this command to work, the WaitFor string must match the last data sent from the host. For example, if the WaitFor string is the login prompt “login:” with a space after the colon, the WaitFor string must include a space for the auto-login restart to work. To use the Auto-Login Restart command, press the keys listed in Section 3, “Using the Terminal’s Keyboard.” Or, scan the following bar code. Auto-Login Restart

*/EALRS* *%ALRS*

Displaying Double-Byte Characters The 2415 Terminal supports Double-Byte Character Sets. The sets available are Big 5 Chinese, Simplified Chinese, Japanese (Kanji), and Korean (Hangul). The Double-Byte Character Set is preloaded on the 2415. To order a DoubleByte Character Set, contact your Intermec Sales Representative. If you order a set, follow the instructions in the terminal’s user manual to install it. To configure the terminal for the character set, set the terminal’s screen size to 8x16.

Creating a Custom Parameter Set-Up File You can create a custom VT/ANSI TE set-up file to preset almost any parameter you can set from the TE configuration menus. These parameter settings become the default (cold start) configuration for the terminal.

Syntax The parameter set up file is an ASCII text file that you create which gets converted to a binary file by the CHECKCFG.EXE utility. New terminals do not come with this utility but it is available by request from the system engineer; or, if you ordered the upgrade version, it is included in the TOOLS.EXE self-extracting file. You can name the input file as you choose. When you use the CHECKCFG utility later to verify the file, you must change the output file name to CONFIG.DAT. A field may have zero or more qualifiers. The syntax of a line is: FieldName = Value; or Qualifier.FieldName = Value; " FieldName is the name of the parameter you want to modify. " Value is the new value for the field. " Qualifier and FieldName must be ASCII strings that match one of the configuration parameters. " Value can be an ASCII string or a numeric value, depending on the type of the parameter FieldName specifies. The parameters along with their types and allowable values are listed under “Parameters and Qualifiers” later in this section. 5-10

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide