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 15 of 28

TE 2000 3270 Terminal Emulation Programmer's Guide: Section 5: Customizing Your Configuration, pages 113 to 122

Pages 113 to 122 of 240, from TE 2000 3270 Terminal Emulation Programmer's Guide

The original document is the PDF (4.2 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 113

Section 5

Customizing Your Configuration "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

This section describes the procedures you can use to customize the standard 3270 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). Create a custom parameter set-up file to preset any of the configuration parameters you can set from the TE configuration menus (page 5-9). Change the text of TE configuration menus or system messages (page 5-31). Preinitialize the 3270 TE program by providing an initial input data stream as if it were received over the radio (page 5-32). Remap and substitute national characters (page 5-37).

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.

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-7. TE 2000t 3270 Terminal Emulation Programmer’s Guide

5-1

Page 114

Customizing Your Configuration

SECTION 5

The following commands are described. " 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 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 HostName 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 embedded IBM mnemonics in 3270 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 no 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. " NOTE:

5-2

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.

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 115

SECTION 5

Customizing Your Configuration

Search Strings

Some auto-login search string limitations are as follows: The searches are case sensitive. " The maximum search string length is 20 characters. " Each WaitFor command searches the entire screen from the top. You can use line wrapping to look for unique strings. "

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:

In this example, you can search for the three leading spaces from the end of the previous line to make a unique search string. 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>”

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 3270 TE. " NOTE:

Some control characters may be represented by their hexadecimal values. For a description of control characters and hexadecimal equivalents, see the full tables in Appendix C. Table 5-1 Control Characters for Auto-Login Script File

Control Character <CLEAR> <CR> <CUR_DN> <CUR_LF> <CUR_RT> <CUR_UP> <DEL> <ERS_EOF> <F1> -- <F24> <HOME>

Definition Clear Carriage return Cursor Down Cursor Left Cursor Right Cursor Up Delete Erase EOF Function keys Home

Control Character <INS> <LTAB> <NEWLN> <PA1> <PA2> <PA3> <RESET> <RTAB> <SPACE>

Definition Insert Left Tab New Line PA1 PA2 PA3 Error reset Right Tab Space

TE 2000t 3270 Terminal Emulation Programmer’s Guide

5-3

Page 116

Customizing Your Configuration

SECTION 5

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, but name the file to be used immediately 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 download utilities to copy your completed AUTOLOG.SCR file to the terminal. To use the serial port to download the 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 To use RF communications to download the 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 ten 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.

5-4

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 117

SECTION 5

Customizing Your Configuration

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: 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-43. 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. 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

TE 2000t 3270 Terminal Emulation Programmer’s Guide

5-5

Page 118

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 from the Main Menu, 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.

5-6

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 119

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.

TE 2000t 3270 Terminal Emulation Programmer’s Guide

5-7

Page 120

Customizing Your Configuration

EXAMPLE 3:

SECTION 5

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.

5-8

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 121

SECTION 5

Customizing Your Configuration

Auto-Login Restart The Auto-Login Restart command starts the auto-login script file from the correct host name 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 this command, press the keys listed in Section 3, “Using the Terminal’s Keyboard” or scan the following bar code: Auto-Login Restart

*/EALRS* *%ALRS*

Creating a Custom Parameter Set-Up File You can create a custom 3270 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 out put 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. CHECKCFG.EXE ignores the following: "

" " "

Blank lines Leading white space (spaces and tabs) White space on either side of any delimiter (a period, an equal sign, or a semicolon) TE 2000t 3270 Terminal Emulation Programmer’s Guide

5-9

Page 122

SECTION 5

Customizing Your Configuration

In addition, the set-up file converts consecutive white space characters within strings to one space. For example, this line: Screen

Mode

=

Page Mode

;

is the same as: Screen Mode=Page Mode; You can set the Value field of any configuration parameter to “?”, which indicates that the TE configuration program should prompt the user for the appropriate value. For example, this parameter causes the terminal to prompt the user to select a screen mode from the list of values: Screen Mode = ?; Following is a sample set-up file. Program Name = CUSTOM; Screen Mode = Page Mode; Port Number = 1; Data Stream = 3270; Code 39.Encoded = Enabled; Extended Cmds = Enabled;

Parameter Formats The complete parameter list with value definitions can be directed to a file using CHECKCFG –P CFGLIT.DAT > parms.txt this command: Each parameter in the set-up file is followed by one of three different formats that indicates the type of parameter and the values it can contain. Formats are as follows: "

Literal strings. List of fixed values to choose from: Example: [Session 1].Screen Mode Session 2.Screen Mode Center Cursor Corner Mode Page Mode Lazy Mode Locked Mode

Screen Mode may be qualified by Session 1 or 2. It may take the value Center Cursor, Corner Mode, Page Mode, Lazy Mode, or Locked Mode. Session 1 is the default qualifier. These configuration lines are valid: Screen Mode = Lazy Mode; Session 1.Screen Mode = Lazy Mode; Session 2.Screen Mode = Lazy Mode;

5-10

TE 2000t 3270 Terminal Emulation Programmer’s Guide