The text of a manual · part 5 of 12
JANUS Application Simulator User's Manual, pages 41 to 50
Pages 41 to 50 of 112
The original document is the PDF (557 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 J2020, Intermec JG2020, Intermec JR2020, Intermec J2010, Intermec J2050 and Intermec JG2050
Page 41
Learning About the INI File
3
For example: port1_read_file = c:\payroll\temp\data1.rcv port2_read_file = d:\sales\test2.rcv port3_read_file = d:\sales\test3.rcv port4_read_file = f:\mis\beta\sample4.rcv
The PSK function you use to read data from the RCV file affects how you format the data in the file. For example: im_receive_byte This function reads one byte of data from the file each time it is called. Carriage return (CR) or line feed (LF) characters are returned as data to the JANUS application. With each subsequent call, im_receive_byte continues reading data where it left off in the file until it reaches an end-of-file (EOF) character. If im_receive_byte is called again after reaching an EOF, the function starts reading data at the beginning of the file again. im_receive_buffer This function reads a buffer of data each time it is called. Therefore, your RCV file should contain a data string terminated by a CR/LF character. The CR/LF indicates the end of the buffer. If there is no CR/LF, the function reads up to 256 bytes of data. With each subsequent call, im_receive_buffer continues reading data where it left off in the file until it reaches an EOF. If im_receive_buffer is called again after reaching an EOF, the function starts reading data at the beginning of the file again. im_receive_input This function reads a line at a time, similar to im_receive_buffer. However, because im_receive_input accepts input from multiple sources, when the function reaches the EOF, it does not start reading data at the beginning of the file again. This practice allows keyboard and wand input.
3-7
Page 42
JANUS Application Simulator User’s Manual portn_write_file Description
Specifies the file that will receive data the JANUS application writes to a COM port. The n in portn_write_file is the port number (1 to 4).
Default comportn.trx, where n is the COM port number (1 to 4)
Values
Any filename
Function im_transmit_buffer im_transmit_buffer_no_wait im_transmit_buffer_noprot im_transmit_byte
Interrupt
INT 14H
Notes
Do not set this parameter to comn.trx. Your PC will try to send data to its COMn port. You must test the application on a JANUS reader to make sure that the application is handling the output communications protocols correctly. If you use the Editor to specify a new file for the portn_write_file parameter, the Editor lets you select a TRX file in any directory or on any drive that is accessible from your PC. However, the Editor saves only the filename to the INI file. If the TRX file will not be in the current directory when you run the JANUS application on your PC (or in a directory listed in the PATH statement in your AUTOEXEC.BAT file), you must edit the INI file to add the file’s path to the TRX filename. For example: port1_write_file = c:\payroll\temp\data1.trx port2_write_file = d:\sales\test2.trx port3_write_file = d:\sales\test3.trx port4_write_file = f:\mis\beta\sample4.trx
3-8
Page 43
Learning About the INI File
3 rx_check_status_return Description
Specifies the return value for the simulated im_rx_check_status function.
Default
0600H – Communication operation successful
Values
See the “Communications Standard Return Values List” on page 3-39.
Function im_rx_check_status
Interrupt
INT 14H protocol_ext_status_return Description
Specifies the return value for the simulated im_protocol_extended_status function.
Default
0600H – Communication operation successful
Values
See the “Communications Standard Return Values List” on page 3-39.
Function im_protocol_extended_status
Interrupt
INT 14H
3-9
Page 44
JANUS Application Simulator User’s Manual cancel_rx_buff_return Description
Specifies the return value for the simulated im_cancel_rx_buffer function.
Default
0600H – Communication operation successful
Values
See the “Communications Standard Return Values List” on page 3-39.
Function im_cancel_rx_buffer
Interrupt
INT 14H cancel_tx_buff_return
3-10
Description
Specifies the return value for the simulated im_cancel_tx_buffer function.
Default
0600H – Communication operation successful
Values
See the “Communications Standard Return Values List” on page 3-39.
Function im_cancel_tx_buffer
Interrupt
INT 14H
Page 45
Learning About the INI File
3
UART_status Description
Specifies the return value for the simulated DOS UART function.
Default
30H – Bit 4 clear to send and Bit 5 data set ready
Values
01H – Change in clear to send 02H – Change in data set ready 30H – Bit 4 clear to send and Bit 5 data set ready 04H – Trailing edge ring detector 08H – Change in receive line 10H – Clear to send 20H – Data set ready 40H – Ring indicator 80H – Receive line detected
Function
None
Interrupt
INT 14H
3-11
Page 46
JANUS Application Simulator User’s Manual expanded_keyboard_status Description
Specifies if the expanded keyboard is enabled or disabled.
Default
0 – Success
Values
0 – Success 1 – Expanded keyboard buffer is enabled 2 – Expanded keyboard buffer is disabled 3 – Expanded buffer cannot be disabled
Function im_get_expanded_keyboard
Interrupt
INT 16H
Notes
Intermec recommends that you do not use PSK expanded keyboard functions in your JANUS application. The im_get_expanded_keyboard function always returns 1000H (Expanded keyboard buffer success) as its return value. If you select 2 for the expanded_keyboard_status parameter, im_get_expanded_keyboard returns IM_DISABLE as its first parameter. If you select 0, 1, or 3 for the expanded_keyboard_status parameter, im_get_expanded_keyboard returns IM_ENABLE as its first parameter.
3-12
Page 47
Learning About the INI File
3 kb_insert_string_status Description
Specifies if the string was inserted into the expanded keyboard buffer.
Default
0 – Success
Values
0 – Success 1 – Expanded keyboard buffer not installed 2 – Keyboard buffer is full (entire string rejected) 3 – Invalid mode value was passed
Function im_kb_insert_string im_kb_insert_string_keycodes
Interrupt
INT 16H
Notes
Intermec recommends that you do not use PSK expanded keyboard functions in your JANUS application. This value is returned at the interrupt level: •
If you select 0 as the return value, the im_kb_insert_string function returns 1000H (Expanded keyboard buffer success) to the application.
•
If you select 1 as the return value, the im_kb_insert_string function returns 9004H (Expanded keyboard buffer not installed) to the application.
•
If you select 2 as the return value, the im_kb_insert_string function returns 9003H (Keyboard buffer is full (entire string rejected)) to the application.
•
If you select 3 as the return value, the im_kb_insert_string function returns 9005H (Invalid mode value was passed) to the application.
3-13
Page 48
JANUS Application Simulator User’s Manual kb_insert_string_capacity Description
Specifies the remaining number of characters that can be inserted into the expanded keyboard buffer.
Default
255
Values
Numeric value from 0 to 256
Function im_kb_insert_string im_kb_insert_keycodes
Interrupt
INT 16H
Notes
Intermec recommends that you do not use PSK expanded keyboard functions in your JANUS application. The value of this INI parameter is returned to the JANUS application in the *remaining_capacity parameter of the im_kb_insert_string and im_kb_insert_keycodes function calls.
3-14
Page 49
Learning About the INI File
3 flush_exp_keyboard_status Description
Specifies the status after deleting all characters from the expanded keyboard buffer.
Default
0 – Success
Values
0 – Success 1 – Failure
Function im_flush_expanded_keyboard
Interrupt
INT 16H
Notes
Intermec recommends that you do not use PSK expanded keyboard functions in your JANUS application. This value is returned at the interrupt level: •
If you select 0 as the return value, the im_flush_expanded_keyboard function returns 1000H (Expanded keyboard buffer success) to the application.
•
If you select 1 as the return value, the im_flush_expanded_keyboard function returns 9006H (Expanded keyboard flush not successful) to the application.
3-15
Page 50
JANUS Application Simulator User’s Manual warmboot_status Description
Specifies the return value of the im_get_warmboot function, which lets users press Ctrl–Alt–Del to warm boot the JANUS.
Default
0 – Warmboot disabled
Values
0 – Warmboot disabled 1 – Warmboot enabled
Function im_get_warm_boot
Interrupt
INT 16H
Notes
The value of this INI parameter is returned to the JANUS application in the *warm_boot parameter of the im_get_warm_boot function call. The value held in memory by the Simulator TSR can be modified by the im_set_warm_boot function.
3-16