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 24 of 46

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Chapter 5: Customizing Your Configuration, pages 188 to 197

Pages 188 to 197 of 400, 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 5020

Page 188

5

Customizing Your Configuration

This chapter 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: S Use the auto-login feature to send the same login information each time you login to the host (page 164). S Display double-byte characters (page 174). S Create a custom parameter set-up file to download a customized file to all terminals so they have the same setup information (page 175). S Change the text of TE configuration menus or system messages (page 207). S Preinitialize the VT/ANSI TE program (page 208). S Remap the terminal’s keys (page 209). S Remap characters (page 216).

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

163

Page 189

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 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 171. Note: As Microsoft Windows can reserve the word “input,” the following Input commands are changed to Inputs for the 5020 Data Collection PC and 700 Series Computer. All other terminals will continue to use the original Input commands. S Input – Inputs (5020, 700 Series) 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. S InputHidden Same as the Input or Inputs 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. 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.

164

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 190

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 VT/ANSI TE. 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 All blank areas on the display are seen as space characters by auto-login in VT emulation. 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

165

Page 191

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.

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 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, “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

166

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 192

Chapter 5, Customizing Your Configuration

Control Characters for Auto-Login Script File (continued) Control Character

Definition

Control Character

Definition

<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

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, or 248X Terminal You can download more than one script file to a 2415, 2425, 2435A, 2455, 2475, 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.

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 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. TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

167

Page 193

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 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 217. You must load AUTOLOG.SCR into drive C, where the TE application is stored.

168

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 194

Chapter 5, Customizing Your Configuration

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 217. 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 Mobile Computer This procedure requires that you have Microsoft ActiveSync installed on your desktop and that you have established a remote connection to your 700 Series Computer. 1 On the 700 Series Computer, tap Start → ActiveSync → Sync. 2 From your desktop, access the Microsoft ActiveSync, then click Explore to access the contents of the 700 Series Computer via its “Mobile Device” directory or folder. Browse to the appropriate location where files are to be installed. 3 Also from your desktop, select Start → Windows Explorer, then browse for the files that are to be transferred to your 700 Series Computer. 4 Drag those files from the desktop Windows Explorer to the ActiveSync “Mobile Device” window. 5 From the 700 Series Computer, tap Start → Programs → File Explorer, then browse to the location where the files should be placed. If missing, then ensure all connections and locations are accurate before attempting this procedure again. Note: Always store files such as the REMAP.CFG, CONFIG.DAT, CFGLIT.DAT, or other customization files, in the root of a Secure Digital storage card (700 Color Computer), the root of a CompactFlash storage card (700 Monochrome Computer or 700 Color Computer) or the object store. TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

169

Page 195

Chapter 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, 2475, or 248X Terminal 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 autologin. 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 or 700 Series Mobile Computer Via your web browser, access the IP address at http://<IP address>, doubleclick the File Manager desktop icon, select File, then press the [Del] key to remove the auto-login feature. For the 700 Series Computer, using Microsoft ActiveSync, browse for the auto-login file, right-click the file for a pop-up menu, then select Delete to remove the file from the 700 Series Computer.

6400 Computer or 5055 Data Collection PC 1 Reboot the terminal to a DOS prompt. S 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. S 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.

170

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 196

Chapter 5, Customizing Your Configuration

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.

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

S The HostName command matches the host the user accesses. S 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. S The first Send command sends a fixed user name. The second Send command sends a fixed password. S 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, 700 Series) Inputs “Enter user name”, username #Prompt for user name InputHidden “Enter password”, password #Prompt for password HostName “*” WaitFor “login:” #Wait for login prompt Send user_name #Send the user name Send “<CR>” #Send a carriage return WaitFor “Password:” #Wait for password prompt Send password #Send the users password Send “<CR>” #Send a carriage return

S The Input, Inputs (5020, 700 Series), and Send commands use input variables. Input and Inputs (5020, 700 Series) commands require a prompt string followed by a comma and a variable name in which to store the string. S The InputHidden command will display “*” in place of any characters the user types. All Input and Inputs (5020, 700 Series) commands must be before the first HostName command. S The Send command only accepts a single argument, so you need two Send commands to send the user name and a carriage return. TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

171

Page 197

Chapter 5, Customizing Your Configuration

Example 3 Auto-Login to an Application

Input “Enter user name”, username #Prompt for user name (5020, 700 Series) Inputs “Enter user name”, username #Prompt for user name InputHidden ”Enter Password”, password #Prompt for password HostName “*” WaitFor “login:” #Wait for 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 menu WaitFor “Wip Menu” #Await work-in-process menu Send “1” Send “<CR>” #Pick option 1 from menu

S 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, 700 Series) 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 password prompt Send password #Send the users password Send “<CR>” #Send a carriage return HostName “*” #Match any host name WaitFor “login:” #Wait for 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 menu WaitFor “Wip Menu” #Await work-in-process menu Send “1” Send “<CR>” #Pick option 1 from menu

S 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.

172

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide