The text of a manual · part 1 of 40
2D JANUS PSK for C/C++ Reference Manual, pages 1 to 10
Pages 1 to 10 of 400
The original document is the PDF (793 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.
For the Intermec J2020, Intermec J2010 and Intermec J2050
Page 1
Reference Manual P/N 070214-001
2D JANUS PSK for C/C++ ™
Page 2
Intermec Corporation 6001 36th Avenue West P.O. Box 4280 Everett, WA 98203-9280 U.S. technical and service support: 1-800-755-5505 U.S. media supplies ordering information: 1-800-227-9947 Canadian technical and service support: 1-800-688-7043 Canadian media supplies ordering information: 1-800-268-6936 Outside U.S. and Canada:
Contact your local Intermec service supplier.
The information contained herein is proprietary and is provided solely for the purpose of allowing customers to operate and/or service Intermec manufactured equipment and is not to be released, reproduced, or used for any other purpose without written permission of Intermec. Information and specifications in this manual are subject to change without notice. 1999 by Intermec Corporation All Rights Reserved The word Intermec, the Intermec logo, Data Collection Browser, dcBrowser, JANUS, IRL, Duratherm, MicroBar, Sabre, Trakker, Antares, TE2000, Virtual Wedge, and CrossBar are trademarks of Intermec Corporation. Throughout this manual, trademarked names may be used. Rather than put a trademark ( or ) symbol in every occurrence of a trademarked name, we state that we are using the names only in an editorial fashion, and to the benefit of the trademark owner, with no intention of infringement.
Page 3
Contents
Contents Before You Begin xiii Warranty Information xiii Cautions xiii About This Manual xiv Other Intermec Manuals xvii
1
Getting Started What Your JANUS Reader Can Do 1-3 Virtual Wedge 1-4 Reader Services 1-5 Function Libraries 1-6 Software Interrupts 1-7 Installing the Programmer’s Software Kit 1-8
2
C Language Support Building Your Program Using Borland C/C++ 2-3 Building Your Program Using Microsoft C/C++ 2-4 Debugging a Program With Turbo Debugger 2-5 Status Code Macros 2-6 Runtime Requirements 2-7 Protocol Handlers 2-7 Reader Wedge 2-8 Specific Functions With Runtime Requirements 2-9 Certified C Language Functions 2-11 iii
Page 4
2D JANUS PSK for C/C++ Reference Manual
Intermec C Library Functions 2-13 C Library Functions Listed by Category 2-14 im_appl_break_status 2-16 im_backlight_off 2-18 im_backlight_on 2-19 im_backlight_toggle 2-20 im_cancel_rx_buffer 2-21 im_cancel_tx_buffer 2-22 im_clear_abort_callback 2-23 im_command 2-24 im_cursor_to_viewport 2-26 im_decrease_contrast 2-27 im_get_config_info 2-29 im_get_contrast 2-31 im_get_control_key 2-32 im_get_display_mode 2-34 im_get_display_type 2-36 im_get_follow_cursor 2-37 im_get_input_mode 2-39 im_get_keyclick 2-41 im_get_label_symbology 2-43 im_get_length 2-45 im_get_postamble 2-46 im_get_preamble 2-47 im_get_reboot_flag 2-48 im_get_viewport_lock 2-51 im_get_warm_boot 2-53 im_increase_contrast 2-55 im_input_status 2-57 im_irl_a 2-59 im_irl_k 2-63 im_irl_n 2-66 im_irl_v 2-69 im_irl_y 2-74 IM_ISERROR 2-79 IM_ISGOOD 2-80 iv
Page 5
Contents
IM_ISSUCCESS 2-81 IM_ISWARN 2-82 im_link_comm 2-83 im_message 2-85 im_number_pad_off 2-86 im_number_pad_on 2-87 im_parse_host_response 2-89 im_power_status 2-91 im_protocol_extended_status 2-94 im_ready_for_reboot 2-97 im_receive_buffer 2-98 im_receive_buffer_no_wait 2-101 im_receive_buffer_noprot 2-104 im_receive_byte 2-107 im_receive_input 2-109 im_rs_installed 2-113 im_rx_check_status 2-114 im_serial_protocol_control 2-115 im_set_abort_callback 2-118 im_set_contrast 2-122 im_set_control_key 2-124 im_set_display_mode 2-125 im_set_follow_cursor 2-128 im_set_input_mode 2-129 im_set_keyclick 2-131 im_set_viewport_lock 2-132 im_set_warm_boot 2-133 im_setup_trx 2-134 im_sound 2-137 im_standard_trx 2-139 im_standby_wait 2-142 im_transmit_buffer 2-143 im_transmit_buffer_no_wait 2-145 im_transmit_buffer_noprot 2-148 im_transmit_byte 2-151 im_unlink_comm 2-153 v
Page 6
2D JANUS PSK for C/C++ Reference Manual im_viewport_end 2-154 im_viewport_getxy 2-155 im_viewport_home 2-156 im_viewport_move 2-157 im_viewport_page_down 2-159 im_viewport_page_up 2-160 im_viewport_setxy 2-161 im_viewport_to_cursor 2-165
3
Software Interrupts Using the Software Interrupts 3-3 Programming With Software Interrupts 3-6 Specific Software Interrupt Definitions 3-6 INT 14H, Function 17H 3-7 Receive Next Buffer 3-7 INT 14H, Function 50H 3-8 Transmit Buffer 3-8 INT 14H, Function 60H 3-9 Receive Buffer 3-9 INT 14H, Function 71H 3-10 Protocol Extended Status 3-10 INT 14H, Function 84H 3-11 Cancel RX Buffer 3-11 INT 14H, Function 85H 3-12 Cancel TX Buffer 3-12 INT 16H, Function B4H 3-13 Enable/Disable Expanded Keyboard Buffer 3-13 INT 16H, Function B5H 3-14 Insert String Into Expanded Keyboard Buffer 3-14 INT 16H, Function B6H 3-15 Flush Expanded Keyboard Buffer 3-15 INT 16H, Function B7H 3-16 Enable/Disable Ctrl-Alt-Del Warm Boot 3-16 vi
Page 7
Contents
INT 78H, Function 06H 3-17 Restore UART Configurations 3-17 INT 79H, Function 00H 3-21 LCD Display Contrast 3-21 INT 79H, Function 01H 3-22 LCD Display Backlight 3-22 INT 79H, Function 02H 3-24 LCD Display Size Mode Manager 3-24 INT 79H, Function 03H 3-26 Viewport Move 3-26 INT 7CH, Function 64H 3-29 Generate Sound 3-29 INT 7DH, Function 08H 3-30 Reader Wedge Control 3-30 INT 7DH, Function 0AH 3-35 Get 2D Decoder Firmware Version 3-35 INT 7DH, Function 0CH 3-36 Open COM2 3-36 INT 7DH, Function 0DH 3-37 Close COM2 3-37 INT 7EH, Function 01H 3-38 Get Application Break Status 3-38 INT 7EH, Function 03H 3-40 Get Keypad Scanner Version 3-40 INT 7EH, Function 04H 3-41 Get Keypad Map Table ID and Status 3-41 INT 7EH, Function 05H 3-42 Enable/Disable KSCPU Keyclick 3-42 INT 7EH, Function 06H 3-43 Enable/Disable Numeric Keypad 3-43 INT 7EH, Function 08H 3-45 Enable/Disable Ctrl Key 3-45 INT 7EH, Function 10H 3-46 Enable Viewport 3-46 INT 7EH, Function 11H 3-47 Disable Viewport 3-47 vii
Page 8
2D JANUS PSK for C/C++ Reference Manual
4
Advanced Programming Reader Input Modes 4-3 Wedge Mode 4-3 Programmer Mode 4-4 Desktop Mode 4-4 Differences in Input Modes 4-4 Receiving Serial Data 4-6 Reader Services Routines 4-6 Communications Routines 4-8 Transmitting Serial Data 4-9 Communications Port UART Modes 4-9 Display “Color” 4-10 Advanced Power Management 4-11 Power Management Software Layers 4-11 System BIOS Interface 4-12 Application Interface 4-12 The APM Power States 4-14 Ready 4-14 Standby 4-14 Suspend 4-15 Off 4-15 Power State Transitions 4-15 Power State Cooperation 4-16 IPM Interface Functionality 4-18 Normal Suspend 4-18 Normal Resume 4-18 Critical Suspend 4-19 Critical Resume 4-19 APM Interface Functionality 4-20 viii
Page 9
Contents
Special APM BIOS Calls 4-22 APM Installation Check 4-24 CPU Busy 4-25 CPU Idle 4-26 Enable/Disable Power Management 4-27 Get PM Event 4-28 Get Power Status 4-30 Interface Connect 4-31 Interface Disconnect 4-32 Protected Mode 16-Bit Interface Connect 4-33 Protected Mode 32-Bit Interface Connect 4-35 Restore System BIOS Power-On Defaults 4-37 Set Power State 4-38 Suspend System 4-39 System Standby 4-40
5
Using the PSK With DCM Accessing a Database Server Through DCM 5-3 Defining a Database Transaction 5-4 Configuring DCM 5-5 Sending a Transaction to the Database 5-6 Checking the Return Status Codes 5-7 Return Codes Listed by Calling Parameter 5-9 Return Codes Listed in Numerical Order 5-12 Symbolic Return Codes 5-14 Using a Standby File 5-15 Standby File Structure 5-16 Sample Program 5-17 ix
Page 10
2D JANUS PSK for C/C++ Reference Manual
A
Status Codes Status Code Bit Values A-3 Status Codes Listed Numerically A-4 Status Codes Listed by Subsystem A-22 Subsystem 0100 RS (Reader Services) A-23 Subsystem 0200 CM (Configuration Management) A-24 Subsystem 0300 SC (Scanner) A-27 Subsystem 0400 DC (Decodes) A-28 Subsystem 0500 RW (Reader Wedge) A-30 Subsystem 0600 CU (Communications) A-32 Subsystem 0800 PM (Power Management) A-34 Subsystem 0A00 TM (Timer) A-35 Subsystem 0B00 BP (Beep) A-36 Subsystem 0E00 IM (Intermec Library) A-37 Subsystem 0F00 LG (Event Logger) A-38 Subsystem 1000 KB (Keyboard Buffer) A-39 Subsystem 1100 SS (System Configuration) A-40 Subsystem 1200 KP (Keypad Services) A-41 Subsystem 1300 DP (Display) A-42 Subsystem 1A00 EX (DCM Support) A-43
B x
Sample Interrupt Programs Using the Sample Programs B-3 apmif.c B-4 appbreak.cpp B-7 backlite.cpp B-9 close.cpp B-10 contrast.cpp B-11 ctlkey.cpp B-13 exstat.cpp B-15 fifo.cpp B-20 jbeep.cpp B-23