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 8 of 12

JANUS Application Simulator User's Manual, pages 71 to 80

Pages 71 to 80 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 71

Learning About the INI File

3 link_comm_return Description

Specifies the return value after the application attempts to link a Reader Wedge and a designated COM port.

Default

0500H – Reader Wedge success

Values

See the “Reader Wedge Standard Return Values List” on page 3-40.

Function im_link_comm

Interrupt

INT 7DH

Notes

Once a JANUS application calls the im_link_comm PSK function, other PSK functions that require a link or unlink will operate as if the link were successfully established - even if you select a value for the link_comm_return parameter that indicates the im_link_comm function failed.

serial_protocol_control_return Description

Specifies the return value for the simulated im_serial_protocol_control function.

Default

0500H – Reader Wedge success

Values

See the “Reader Wedge Standard Return Values List” on page 3-40.

Function im_serial_protocol_control

Interrupt

INT 7DH

3-37

Page 72

JANUS Application Simulator User’s Manual standby_wait_return Description

Specifies the return value for the simulated im_standby_wait function.

Default

0500H – Reader Wedge success

Values

See the “Reader Wedge Standard Return Values List” on page 3-40.

Function im_standby_wait

Interrupt

INT 7DH unlink_comm_return

3-38

Description

Specifies the return value for the simulated im_unlink_comm function.

Default

0500H – Reader Wedge success

Values

See the “Reader Wedge Standard Return Values List” on page 3-40.

Function im_unlink_comm

Interrupt

INT 7DH

Page 73

Learning About the INI File

3

Communications Standard Return Values Communications standard return values are sent to a JANUS application to indicate the result of a communications function call, such as im_rx_check_status. When you customize the INI file for the Simulator TSR, you can set these four parameters to a communications return value: • rx_check_status_return • cancel_rx_buff_return • protocol_ext_status_return • cancel_tx_buff_return

Communications Standard Return Values List Code

Description

0600H

Communication operation successful

0601H

Communication buffer done

4600H

Warning buffer canceled

4601H

Communication timeout warning

4602H

Communication had no client to cancel

4603H

No protocol handler to configure

4604H

Protocol handler is not yet loaded

4605H

Protocol handler already receiving

4607H

Protocol handler not active for link request

8600H

Invalid configuration

8601H

Buffer length 0 error

8602H

Communication port is in use

8603H

Protocol error

8604H

Communication port error

8605H

Communication port is busy

8606H

Comunication request is not supported

8607H

Protocol handler already loaded

3-39

Page 74

JANUS Application Simulator User’s Manual

Code

Description

8608H

Protocol buffer error

8609H

Unknown service request

860AH

No data available

860BH

Communication utility is not loaded

860CH

Communication utility resume/suspend failure

860DH

Communication utility INT 14 is already in use

860EH

Incompatible revision between protocol handler and communication utility

860FH

Non supported communication service

8610H

Invalid EOF character

8611H

Protocol handler is not active

8612H

Buffer must be 256 bytes or larger

Reader Wedge Standard Return Values The Reader Wedge standard return values are codes that are sent to a JANUS application to indicate the result of a Reader Wedge function call, such as link_comm_return. When you customize the INI file for the Simulator TSR, you can set these six parameters to a Reader Wedge return value: • clear_abort_callback_return • command_return • link_comm_return • serial_protocol_control_return • standby_wait_return • unlink_comm_return

3-40

Page 75

Learning About the INI File

3

Reader Wedge Standard Return Values List Code

Description

0500H

Reader Wedge success

8501H

Input request error

4502H

Input timeout

4503H

No input data

8504H

Illegal reader wedge mode

0505H

No reader commands parsed

0506H

Valid reader commands parsed

8507H

Reader commands parsing error

8508H

Invalid configuration error

0509H

Accumulating reader command

050AH

Reader command override

050BH

Reader command enter accumulate

050CH

Reader command exit accumulate

050DH

Accumulate multiread labels

050EH

The application should be notified

850FH

Error in reader command edit

0510H

An ENTER reader command parsed

8511H

Unable to allocate memory for input

8512H

Protocol handler is not linked

0513H

Protected field has been parsed

8514H

Parse error on exit accumulate

8515H

Application break detected

8516H

Invalid reader wedge request

0517H

Keycode label has been parsed

0518H

Label not accepted (application is not requesting input)

0519H

Available buffers for comms link

051AH

No comms status to report

851BH

Invalid protocol for input request

051CH

Xmit buffer busy or Comm error

051DH

Exit Accumulate with Comms error

3-41

Page 76

This page is a scan with no text; see it in the PDF.

Page 77

4 Customizing INI Files With the Editor

Page 78

This page is a scan with no text; see it in the PDF.

Page 79

Customizing INI Files With the Editor

4

This chapter explains why you customize the initialization (INI) file and describes how to do so with the Windows-based Editor.

Why Customize INI Files? Note: Customizing the INI file is an optional process. You do not have to customize the INI file if you are satisfied with the default values in JANUSSIM.INI. The INI parameters control how the Simulator TSR simulates a JANUS reader executing an application. You can customize the parameters so the Simulator TSR mimics the conditions against which you want to test your JANUS applications. For example, if your JANUS application checks the battery’s status, you could use an INI file to mimic a low power condition and test how your application responds. Follow these steps: 1. Create a LOWBAT.INI file and customize these parameters to simulate a low power condition: • power_status_line = 0 - AC line not connected • power_status_battery = 2 - critical battery • power_status_backup = 1 - backup low • power_status_batt_life = 10 • power_status_return = 0800H - Power management success 2. Start the Simulator TSR by typing this command at the DOS prompt: janussim lowbat.ini Enter 3. Run your JANUS application. When the application issues the im_power_status function call or the 5EH interrupt, it will find that the reader is not plugged into an AC power source, the battery is critically low, and the backup battery is low. 4. Test how the application responds to this low power condition.

4-3

Page 80

JANUS Application Simulator User’s Manual

Here is the LOWBAT.INI file with the customized parameters shaded for emphasis: ; ; Filename: LOWBAT.INI ; port1_read_file = comport1.rcv port2_read_file = comport2.rcv port3_read_file = comport3.rcv port4_read_file = comport4.rcv port1_write_file = comport1.trx port2_write_file = comport2.trx port3_write_file = comport3.trx port4_write_file = comport4.trx rx_check_status_return = 0600H - Comm Operation successful protocol_ext_status_return = 0600H - Comm Operation successful cancel_rx_buff_return = 0600H - Comm Operation successful cancel_tx_buff_return = 0600H - Comm Operation successful UART_status = 30H expanded_keyboard_status = 0 - command complete kb_insert_string_status = 0 - success kb_insert_string_capacity = 255 flush_exp_keyboard_status = 0 - success warmboot_status = 0 - warmboot disabled power_status_line = 0 - AC line not connected power_status_battery = 2 - critical battery power_status_backup = 1 - backup low power_status_batt_life = 10 power_status_return = 0800H - Power management success display_contrast_level = 16 display_size_mode = 0 - 80 x 25 display_video_mode = 3 - std video mode 3 (80x25) display_scroll_mode = 1 - scroll at 16 display_viewport_lock = 0 - locked display_x_pos = 0 display_y_pos = 0 display_backlight = 0 - backlight off display_char_height = 0 - standard height characters appl_break_status = 0 - break not been made follow_cursor = 1 - follow cursor mode on control_key = 0 - control key disabled keyclick = 0 - keyclick off

4-4