The text of a manual · part 27 of 52
TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Chapter 5: Customizing Your Configuration, pages 221 to 229
Pages 221 to 229 of 456, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide
The original document is the PDF (3.1 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 2425
Page 221
5
Customizing Your Configuration
This chapter describes the procedures you can use to customize the standard TE 2000 VT/ANSI program by Intermec Technologies Corporation. You customize the TE 2000 program by creating or modifying configuration files, and then downloading them to your terminal to do the following. S Use the auto-login feature to send the same login information each time you login to the host (page 198). S Display double-byte characters (page 209). S Create a custom parameter set-up file to download a customized file to all terminals so they have the same setup information (see note below). S CUSTOM.DAT Settings (page 211) S TE_SETTINGS.INI Settings (page 237) S Change the text of TE 2000 configuration menus or system messages (page 252). S Preinitialize the TE 2000 VT/ANSI program (page 253). S Remap the terminal’s keys (page 254). S Remap characters (page 260). S Implement ITCCOLOR.DAT attribute colors (page 261). Note: For 700 Series, CK30, CK31, CV60 Terminals with TE 2000 application versions 8.00 or greater, if a CONFIG.DAT file is present on your terminal, its settings are backed up in a CONFIG.OLD file, then written into a TE_SETTINGS.INI file. If the CONFIG.DAT file is not on your terminal, all settings are written to the TE_SETTINGS.INI file. TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
197
Page 222
Chapter 5, Customizing Your Configuration
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 2000 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 2000 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 is not 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 206. S Input 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 is stored. S InputHidden Same as the Input script command except that user input is echoed as a string of asterisks. S 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. Note: If a session name (friendly name) is entered, then this is used in place of the host name or server IP name to section off the autologin script. S 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.
198
TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
Page 223
Chapter 5, Customizing Your Configuration
S 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 the TE 2000 VT/ANSI application. S Pause “xxxxx” Delays the terminal for x milliseconds, halts terminal operation from receiving and processing for the duration specified. S 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. S Restart “x” Restarts the autologin script file. The “x” is a dummy argument. S Keyboard “0” Disables the keyboard. Key presses are ignored. For additional information, see Note below. S Keyboard “1” Enables the keyboard. Key presses are processed. The keyboard is enabled by default. For additional information, see Note below. S # (pound symbol) Documents the script file. Text following a # (pound) symbol is considered a comment unless the # symbol is in a quoted string. 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. S The searches are case sensitive. S The maximum search string length is 20 characters. S 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.
TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
199
Page 224
Chapter 5, Customizing Your Configuration
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.
200
TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
Page 225
Chapter 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. The following table lists control characters for TE 2000 VT/ANSI. 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, “Conversion Tables.” Control Characters for Auto-Login Script File Control Character
Definition
Control Character
Definition
<ACK>
Acknowledgment
<F1> – <F20>
Function keys
<BEL>
Bell
<F21>
Toggles from Character mode/ Line Edit (block) mode
<BS>
Backspace
<FF>
Form Feed
<CAN>
Cancel
<FS>
File Separator
<CR>
Carriage Return
<GS>
Group Separator
<CUR_DN>
Cursor Down
<HT>
Horizontal Tab
<CUR_LF>
Cursor Left
<INS>
Insert
<CUR_RT>
Cursor Right
<LF>
Line Feed
<CUR_UP>
Cursor Up
<LTAB>
Left Tab
<DC1>
Device Control 1 (XON)
<NAK>
Negative Acknowledge
<DC2>
Device Control 2
<NUL>
Null, or all zeros
<DC3>
Device Control 3 (XOFF)
<RS>
Record Separator
<DC4>
Device Control
<RTAB>
Right Tab
<DEL>
Delete
<SI>
Shift In
<DLE>
Data Link Escape
<SO>
Shift Out
<EM>
End of Medium
<SOH>
Start of Heading
<ENQ>
Enquiry
<SPACE>
Space
<ENTER>
Enter
<STX>
Start of Text
<EOT>
End of Transmission
<SUB>
Substitute
<ESC>
Escape
<SYN>
Synchronous Idle
<ETB>
End Transmission Block
<US>
Unit Separator
<ETX>
End of Text
<VT>
Vertical Tab
TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
201
Page 226
Chapter 5, Customizing Your Configuration
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, 2475, 248X Terminals You can download more than one script file to a 2415, 2425, 2435A, 2455, 2475, or 248X Terminal, but immediately name the file to use 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.
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: Loading the AUTOLOG.SCR file from the IntermecR Application Server is supported. 1 Copy the AUTOLOG.SCR file to the Intermec Application Server. 2 Configure the download server on the Intermec Application Server 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.
202
TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
Page 227
Chapter 5, Customizing Your Configuration
5020 Data Collection PC The 5020 Data Collection PC User’s Manual (P/N: 068975) 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 Manager 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 Terminal: Uploaded file “Filename”
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”, 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 copy: “Filename” copied to “New Filename”
6400, 5055 Terminals Use INTERLNK/INTERSVR communications to connect your terminal to a personal computer. For help, see “Downloading Files” on page 263. You must load AUTOLOG.SCR into drive C, where the TE application is stored. TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
203
Page 228
Chapter 5, Customizing Your Configuration
59XX, 17XX, 11XX Terminals 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 263. Below are sample command lines for each terminal type: S 11XX Terminal with 256K flash (this uses 1180, but applies to all radio types): flshconv –eC000 –a fwp118c0.hex AUTOLOG.scr –oNEW1180.HEX
S 11XX Terminal with 512K flash (this uses 1180, but applies to all radio types): flshconv –eFFC0 –a fwp118h0.hex AUTOLOG.scr –oNEW1180.HEX
S 17XX Terminal (example uses 1780, but applies to all radio types); flshconv –eFFC0 –a fwp178h0.hex AUTOLOG.scr –oNEW1780.HEX
S 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
700 Series, CK30, CK31, CV60 Terminals This procedure requires that you have Microsoft ActiveSync installed on your desktop and that you have established a remote connection to your 700 Series, CK30, CK31, or CV60 Terminal. See the 3-paragraph note on the next page. 1 On the terminal, tap Start > ActiveSync > Sync. 2 From your desktop, access the Microsoft ActiveSync, then click Explore to access the contents of the terminal via its “Mobile Device” directory or folder. Browse to the appropriate location where to install the files. 3 Also from your desktop, select Start > Windows Explorer, then browse for the files to transfer to your terminal. 4 Drag those files from the desktop Windows Explorer to the ActiveSync “Mobile Device” window. 5 From the terminal, tap Start > Programs > File Explorer, then browse to the location where to place the files. If missing, then ensure all connections and locations are accurate before attempting this procedure again.
204
TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
Page 229
Chapter 5, Customizing Your Configuration
Note: Always store files such as the AUTOLOG.SCR, REMAP.CFG, CONFIG.DAT (for TE 2000 application versions older than 8.00), TE_SETTINGS.INI (for TE 2000 application versions 8.00 or greater), CFGLIT.DAT, or other such files, in the directory where the TE 2000 executable is stored. This is the root directory on the CV60 Computer, and is the “\CK_FFS” directory on the CK30 or CK31 Computer. On 700 Series Computers, if a Secure Digital card is present, the “\SDMMC Disk\TE2000” directory contains the executable if installed from a CAB file. If there is no SecureDigital card, the next choice is the Flash File Store. Finally, if neither is present, then the TE 2000 executable is stored in the “\Program Files” directory. These extra files are either in the directory with the executable, in the root of the Secure Digital card if present or the Flash File Store if present, or at the very root of the machine, which is the order of precedence. Thus, the root directories are not the default, not the first choice. If the user created a new one of these files and placed it at the root, and another file of the same name existed somewhere else, higher in priority, then the user’s file is ignored. Thus, it is best to place it in the directory with the TE 2000 executable file.
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, 2475,248X Terminals 1 Press the appropriate key sequence or scan the following bar code to access the Trakker AntaresR 2400 Menu System’s Main Menu: Enter Test and Service Mode
*../M.* *..-.*
2 Choose System Menu and then choose File Manager. 3 Select drive C. Press Y or B to highlight AUTOLOG.SCR. 4 Press [FnL .] to delete the file or press [F7] to rename the file. 5 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. TE 2000™ VT/ANSI Terminal Emulation Programmer’s Guide
205