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 3 of 6

TRAKKER T2090 Application Simulator User's Manual, pages 21 to 30

Pages 21 to 30 of 60

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

Filed in the catalog under the Intermec T2090

Page 21

Working With the Application Simulator

2

Display Characteristics

Background Color

Foreground Color

Normal

Black

Light gray

Reverse video

Light gray

Black

Underline

Black

Magenta

Underline and reverse video

Magenta

Black

Note: A simulated application does not limit the output of standard C display functions (such as printf) within the T2090 display size (8x20).

Keypad Input A simulated application simulates the T2090 keypad input automatically as you type on the PC keyboard. There are only two special keys on the T2090 that are not available on a standard PC keyboard: the Backlight key and the Num/Alpha key. You do not need these keys while simulating a T2090 application.

Bar Code Input You can customize how bar code input is simulated by setting these parameters in the IMT209SM.INI file: • label_postamble

• label_postamble_string

• label_preamble

• label_preamble_string

• label_symbology

• label_symbologyid

You can simulate bar code input using either of these two methods: •

By pressing Ctrl–G and typing the data on your PC keyboard.

•

By configuring an Intermec Wedge and scanning actual bar code labels.

2-5

Page 22

TRAKKER T2090 Application Simulator User’s Manual

To simulate bar code input with a keyboard 1. Press Ctrl–G. 2. Type the data you want entered into the application as if it were bar code input from a scanner or wand. 3. Press Enter to terminate the simulated bar code input. To simulate bar code input with an Intermec wedge 1. Attach an Intermec Wedge to your PC. 2. Set the first preamble characters to Ctrl–G. See your wedge or scanner documentation for help setting the preamble. Scan the SO character for Ctrl and the lowercase g character for G. 3. Use the wedge to scan bar code labels. The bar code data is entered into the TRAKKER T2090 application. 4. Scan Enter or have a Return in the postamble to terminate the bar code input.

Data Input Through COM1 A simulated application can simulate Frame mode serial communications input through the T2090’s COM1 port. To simulate data input to the application through COM1 with a data file 1. Enable the serial_port_emulation parameter in the INI file. 2. Create a text file that contains data for the application. A line of data is either: •

A data string that ends in a <CR><LF>

•

A data string that is 1024 bytes long (without a <CR><LF>)

Any PSK function that reads data from COM1 (im_receive_buffer, im_receive_field, or im_receive_input) can read a line of data from the buffer. With each subsequent call, the functions continue reading data where the last function left off in the buffer until the last line has been read. Then the simulated application deletes the contents of the buffer. 3. Start the Serial Input Editor. 4. Make sure the SIM Directory field specifies the correct location of the T2090 Application Simulator software. The default directory is Target_Directory\IMT209\SIM. 5. At the Serial Input Editor screen, specify the path and filename of the file in the Outgoing File field and click the Send File button.

2-6

Page 23

Working With the Application Simulator

2

6. Run the T2090 application on the PC. The application checks the operating system of the computer and detects that it is not running on a T2090. 7. Observe how the T2090 application responds to the incoming data. To simulate data input to the application through COM1 manually 1. Enable the serial_port_emulation parameter in the INI file. 2. Start the Serial Input Editor. 3. Run the T2090 application on the PC. The application checks the operating system of the computer and detects that it is not running on a T2090. 4. The application executes a function to read data from COM1. 5. At the Serial Input Editor screen, enter the data into the Outgoing Data field and click the Send Data button. 6. Observe how the T2090 application responds to the incoming data.

Data Output Through COM1 A simulated application can simulate Frame mode serial communications output through the T2090’s COM1 port. To simulate data output from the application through COM1 1. Run the T2090 application. The application checks the operating system of the computer and detects that it is not running on a T2090. 2. The application executes a function (such as im_transmit_buffer) to send data to COM1. Because the application is not running on a T2090, the data is not sent to COM1. Instead, the application creates the COMP1.TRX file in the directory and copies the data into that file. 3. Observe how the T2090 application operates. 4. Test the application on a TRAKKER T2090 computer to make sure that the application is handling the input and output communications protocols correctly.

Reader Command Syntax Checking If the simulated application includes the im_command PSK function, which executes one or more reader commands, the application simply checks the syntax of the reader command, returning IM_SUCCESS if the syntax is correct or IM_PARSE_ERROR if the syntax is flawed.

2-7

Page 24

TRAKKER T2090 Application Simulator User’s Manual

Features That Are Not Simulated This table describes the T2090 features that are not simulated:

2-8

Feature

Comments

Reader Command Execution

A simulated application does not simulate the execution of reader commands. As described earlier in this chapter, the application simply checks the syntax of the im_command PSK function.

File Transfer

A simulated application does not simulate file transfers to or from the T2090 application.

Character Mode

A simulated application does not simulate the Character mode serial communications. The application only simulates Frame mode serial communications.

Label Time Stamps

A simulated application does not append a time stamp to simulated bar code label data.

Double-Byte Characters

A simulated application does not simulate doublebyte characters

Standard C Display Functions

A simulated application does not limit the output of standard C display functions (such as printf) within the T2090 display size (8x20).

Speed and Performance

A simulated application does not simulate the speed or performance of a T2090. The application will run as fast as the PC can execute it.

Contrast Level

A simulated application does not simulate the contrast set for the T2090.

Page 25

Working With the Application Simulator

2

Overview of Modifications to PSK Functions Some TRAKKER T2090 PSK functions have been modified so that they operate differently if they detect that they are not being executed on a T2090 computer. This section describes those changes. For more details about PSK functions, see Chapter 4, “Application Functions,” in the TRAKKER T2090 Hand-Held Batch Computer User’s Manual.

Display Functions These PSK functions control the T2090 display.

im_cputs The function displays a string on the screen with its attribute selected by the user. A string can be displayed as normal, reverse video, underlined, or underlined and reverse video. When executing on a PC, this function changes the PC display to indicate the attributes, as shown in this table: Display Characteristics

Background Color

Foreground Color

Normal

Black

Light gray

Reverse video

Light gray

Black

Underline

Black

Magenta

Underline and reverse video

Magenta

Black im_puts This function performs the same operation as im_cputs, but also appends a CR/LF to the end of the string.

im_draw_underline This function assists im_cputs, im_puts, im_putchar, and other display functions to underline a string. When executing on a PC, this function changes the PC display to indicate the underline attributes, as shown in this table: Display Characteristics

Background Color

Foreground Color

Underline

Black

Magenta

Underline and reverse video

Magenta

Black

2-9

Page 26

TRAKKER T2090 Application Simulator User’s Manual im_set_cursor_style When executing on a T2090 or PC, this function sets the style of the cursor to a single underline or hidden.

im_putchar This function places a character at the current cursor position and changes the line attribute to normal, reverse video, underline, underline and reverse video, or unchanged. When executing on a PC, this function changes the PC display to indicate the attributes, as shown in this table: Display Characteristics

Background Color

Foreground Color

Normal

Black

Light gray

Reverse video

Light gray

Black

Underline

Black

Magenta

Underline and reverse video

Magenta

Black im_set_display_mode When executing on a T2090, this function sets the font size for characters to be displayed as normal (5x7 pixels), large (5x14 pixels), and special (10x14 pixels). When executing on a PC, this function does not change the font size. Instead, the function causes the display size to be limited as follows: Font

Lines x Columns

Normal

8 x 20

Large

4 x 20

Special

4 x 10

Communications Functions These PSK functions control communications with the T2090.

im_receive_buffer This function receives the contents of a data buffer from COM1. When executing on a PC, this function reads data from the Serial Input Editor and handles it as serial data in Frame mode incoming from COM1. The serial_port_emulation parameter in the IMT209SM.INI file must be enabled.

2-10

Page 27

Working With the Application Simulator

2 im_transmit_buffer This function transmits the contents of a data buffer through COM1. When executing on a PC, this function creates the COMP1.TRX file in the current directory and copies the contents of the data buffer into the file. The serial_port_emulation in the IMT209SM.INI file must be enabled.

im_receive_input This function receives input from the specified source(s) and places it into the received buffer. The source can be bar code labels, the keypad, or COM1. When executing on a PC, this function receives the input as follows: •

Bar code label input can be simulated as input from keyboard or from a wedge. For details, see Bar Code Input” earlier in this chapter.

•

Keypad input is simulated when you type on the PC keyboard.

•

COM1 input is simulated as described for im_receive_buffer.

im_receive_field This function manages an input field area on the screen. You can specify display attributes for the field and control the length of the input data. When executing on a PC, this function receives the bar code label, keypad, and COM1 input as described for im_receive_input.

Keyboard Mode Functions These PSK functions control the keyboard mode for the T2090.

im_set_kbmode This function sets the operational mode (alpha or numeric) for the T2090 keypad. When executing on a PC, this function does not set the mode because there is no alpha or numeric mode for a PC keyboard. This function only saves the value in the KeyMode variable.

im_get_kbmode This function checks the mode of the T2090 keypad and returns a constant that indicates if the keypad is in alpha or numeric mode. When executing on a PC, this function returns the value stored in the KeyMode variable, which was set by im_set_kbmode.

2-11

Page 28

TRAKKER T2090 Application Simulator User’s Manual

Label Functions These PSK functions control how bar code labels are handled by the T2090.

im_get_label_symbology This function gets and returns the identification of the symbology from the most recent label read. This function normally is used after calling im_receive_input or im_receive_field. When executing on a PC, this function returns the value of the label_symbology parameter in the IMT209SM.INI file.

im_get_label_symbologyid This function gets and returns the identification of an AIM symbology ID string, such as JA0, from most recent label read. This function normally is used after calling im_receive_input or im_receive_field. When executing on a PC, this function returns the value of the label_symbologyid parameter in the IMT209SM.INI file.

Reader Command Function This PSK function controls how reader commands are executed on the T2090.

im_command This function sends reader commands to the T2090. When executing on a PC, this function simply verifies that the function is syntactically correct, but it does not execute the reader commands themselves. The function returns IM_SUCCESS if the syntax is correct or IM_PARSE_ERROR if the syntax is flawed.

2-12

Page 29

3 INI File Parameter Descriptions

Page 30

Blank page