Important notices to user The information contained in this document may be modified without prior notice. Casio Computer Co., Ltd. shall not be liable for any outcome that result from the use of this document and the terminal. Copyright notice The contents of this document are protected by the Copyright Law of Japan.
1.1 Features of System 1.1.1 Development Concept The IT-2000 is a data collection terminal for business use. After years of refinement Casio Computer Co., Ltd. has developed its hand-held type terminals so that they yield high speed and a high functionality in comparison to general personal computers. This allows improved efficiency in software development.
PC card slot conforms to PCMCIA Release 2.1 supporting various PC cards. Implements IrDA 1.1 protocol for high-speed infrared communication. System menu makes it easy to maintain the IT-2000 and install user application programs. Provides various development support tools including C-language libraries and communication utilities for developing business application programs.
1.1.5 Model Name The following IT-2000s of Windows version will be available. For price of each model, please consult with your local Casio representative. Model IT-2000W20 4 Mbytes IT-2000W30 4 Mbytes IT-2000W40 4 Mbytes IT-2000W50 4 Mbytes IT-2000W60 4 Mbytes...
BIOS, OS, and device drivers and the user software such as the development tools. The system software is stored on the DINOR FLASH ROM (1 MB), and the user software is supported from the SDK CD-ROM (version 4.0) supplied by Casio at free of charge. The following paragraphs describe the software.
TFORMAT.EXE Basic drive (C:) Windows Driver These drivers are necessary for the Windows to run on IT-2000. Download to F-ROM drive (D: ). File name VGA_C.DRV MASK ROM drive (E: ) VGA_NC.DRV PENMOUSE.DRV VKD.386 IRDA.DLL IRCOMM.DRV Utilities For information about the utilities refer to Chapter 9 "Utility". File name WCAL.EXE WCALC.EXE...
Page 12
Development Tool Libraries All the libraries of Windows are provided either as Dynamic Link Library (DLL) or as Visual BASIC Custom Control (VBX). To use these libraries, download first to a directory in F-ROM drive (D: ). The files, *.LIB and *.H, are needed when you develop an application program. File name LIBSYSW.LIB SYSCALL.DLL...
1.3 Precautions If reading the internal clock with INT21h the significant data should include and be limited to the seconds digits. On this terminal the time is read directly from the RTC so that the correct time can be attained at any moment, even during extended continuous use. As a result the 1/100 of a second digit is ignored.
Page 14
If an LB1 event (low main battery voltage) occurs, the alarm buzzer starts sounding and system operation is suspended about 10 minutes later. If the alarm buzzer starts sounding, terminate the current operation as soon as possible and recharge the main battery. This system will not execute an alarm indication to be displayed on the LCD screen for an LB2 event (low sub-battery voltage) or LB3 event (low SRAM card battery voltage).
Page 15
The backlight is turned off by means of the ABO (Auto Backlight OFF) function. However, it is turned off 1.3 seconds after the setup time. This is because the system has 1.3 seconds of monitoring time before the internal timer is started. During the process of loading Windows after boot-up, do not press the Power switch.
2.1.2 Memory Map The memory map of the IT-2000 is as follows. NAND DISK BIOS/VGA BIOS Memory Mapped Disk I/F EMS Windows 16 KB x 4 Extended Memory 100000h ROM BIOS 0F0000h 0E0000h 0DC000h PC Card I/F 0D8000h 0C8000h Reserved 0C0000h Video Buffer 128 KB...
2.1.3 Drive Configuration The drive configuration differs for each model as described in the following table: Drive A: RAM disk [Read and Write] This drive is prepared for use after the RAM disk size is specified from the System Menu. The contents of this RAM disk will not be erased through a boot process or by pressing the RESET switch.
2.2 Basic System Operation 2.2.1 Overview Basic operation of this system on the terminal consists of the suspend/resume process and boot process operated by means of the Power switch and RESET switch, as shown in the following diagram. OFF STATE OFF EVENT OFF Process System Menu...
Page 20
The following table summarizes the power-on processes provided for this terminal. System Menu boot Always executes CONFIG.SYS and AUTOEXEC.BAT located process in drive (C:) for starting up the MS-DOS. Application boot process Searches for CONFIG.SYS and AUTOEXEC.BAT prepared by the user and starts up MS-DOS from the drive where they are located.
2.2.2 Power ON Process Overview The ON process is provided to make the system ready for use (ON state). The actual process varies depending on the settings at that point in time and the last OFF factor (the cause of the OFF action). ON factors: Pressing the Power switch Pressing the RESET switch...
Page 22
System Menu Boot Process Press the RESET switch to set the drive C as the current drive, and load MS-DOS from that drive. As a result, the System Menu that includes the maintenance program will be initiated (refer to “System Menu Boot Process” on this page). Resume Process This process restores the conditions that existed before the power was most recently turned off.
Page 23
Note: The RESET switch can be used not only for initiating the System Menu but also as the forced restart switch when the user application program under development hangs. However, note that if the RESET switch is pressed while the disk is being written to, the data may be corrupted. Therefore, the RESET switch should be pressed only while the power is off.
Page 24
This terminal has the Auto Power ON function which automatically starts the system. This Auto Power ON function can operate in one of the following three ways: Auto Power ON function (only affects the resume process) activated by alarm The system power can be turned on (resumed) at the specified time by means of an alarm. However, this will not function if the next start-up method is set to the boot process in the system library.
2.2.3 Power OFF Process Overview Turns off the system power. However, the power to all the devices is not turned off and some can be used for storing the information required for the next resume operation. This process is called the suspend process and the state of the system while off is called the suspend state.
Page 26
OFF Factors The OFF factors refer to various causes that make the system enter the OFF state (suspend state), as follows: OFF factor Power switch System operation can be suspended by holding down the Power switch for more than a second. (see note) Auto Power OFF System operation automatically shifts to the suspend state (APO)
2.2.4 Battery Voltage Monitoring Process This terminal uses a main battery (lithium-ion battery pack) for driving the main unit, and a primary sub-battery (lithium battery) and a secondary sub-battery (lithium-vanadium battery) for backup. Application programs can acquire the status of these batteries through the APM BIOS or system library.
Page 28
Low Voltage Level The IT-2000 continuously monitors the voltage of the main battery, the primary sub-battery, and the SRAM card battery. This allows an application program to determine through the system library if the voltage of each battery reaches a warning level. The following table summarizes the low battery voltage warning levels, which application programs can acquire through the system library.
Page 29
Main Battery Voltage Monitoring If the main battery voltage reaches LB1, the system issues a warning buzzer. If this warning buzzer sounds, either start recharging the battery or replace it with a fully charged battery as soon as possible. If one of these measures is not taken within ten minutes, the system will forcibly turn off the power for safety.
Page 30
Sub-battery Voltage Monitoring The sub-batteries are used for system backup while the main battery is being replaced. The sub- batteries consists of two units: the primary sub-battery (button-type lithium battery) and secondary sub-battery (button-type lithium-vanadium battery). The secondary sub-battery is recharged by the voltage of the main battery.
2.2.5 Low Consumption Current Process This terminal has the APM BIOS installed to provide a low-power consumption capability. It works in combination with POWER.EXE from Microsoft Corporation. The low-power consumption capability is further enhanced by the use of unique power management functions, including Auto Power OFF (APO) function, Auto Backlight OFF (ABO) function, and DOZE/RUN transit function.
Page 32
Auto Power OFF Function (APO) This function automatically shifts the system to the OFF state (suspend state) if no event has taken place for a specified period of time from the touch panel, the keyboard, COM1, or a file. This time interval has been set to one minute by default. It can be modified using the System Menu or system library.
Page 33
DOZE/RUN Transit Function On this terminal the system will reduce the clock speed of the built-in CPU if no activity (access to the touch panel, keys, COM1, or file) has occurred for a specified period of time (four seconds). The state in which the CPU clock speed has been reduced is called the "DOZE state" and the state in which the CPU is operating at full speed is called the "RUN state".
2.2.6 How to Replace or Recharge Batteries Replacement of Batteries The method used to replace the main battery, sub-battery, and SRAM card battery are explained here Failure to observe the correct battery replacement procedure may result in a loss of data. Always observe the following steps in battery replacement.
Page 35
In this case, however, the data on the SRAM card will be lost when the card is removed from the main unit slot. Since the Casio SRAM card is provided with two batteries, the data will not be lost a short while even if one of them is removed. However, it is recommended that the SRAM card battery be replaced only after making a backup of the data to avoid accidental loss.
2.3 Supported Devices 2.3.1 Display Unit Hardware Configuration Resolution Tone Method VRAM RAM for hardware window Note: With B/W liquid crystal displays the actual display colors will be changed to reverse video. About the Display Screen Since this terminal has a VGA controller, it can internally control the entire VGA (640 x 480 dots) screen.
Software Functions Standard Video BIOS is supported. This supports the following video modes: Mode No Mode Type Text Text Text Text Graphics Graphics Graphics Text Graphics Graphics Graphics Graphics Graphics Hardware Window The hardware window provides the superimpose function for the VGA controller. With this hardware window a pop-up screen can be displayed without affecting the operation of the application program.
2.3.2 EL Backlight Overview This terminal has the following functions to control the backlight. For more information refer to Chapter 6 “Keyboard Controller”. Manual Backlight ON/OFF function Auto Backlight OFF function (ABO) Auto Backlight Control function (ABC) Manual Backlight ON/OFF Function The backlight can be turned on and off with the following methods.
2.3.3 Touch Panel Hardware Configuration Method : Analog type touch panel Resolution : 192 x 384 dots Software Function To enable application programs to acquire touch panel coordinates, the following two pieces of software are provided: PENMOUSE.COM With this PENMOUSE.COM application programs can acquire touch panel input through the mouse I/F.
2.3.4 Disk Types of Disk Type RAM disk Basic drive F-ROM disk PC card Note: The drive name of the PC card varies for each model. For more information refer to Chapter 2.1.3 “Drive Configuration”. RAM Disk Part of the main RAM can be assigned on the RAM disk using System Menu. The contents of the RAM disk will not be erased if the power switch is turned on and off, since they are backed-up by the main battery and the sub-batteries.
Page 41
F-ROM Drive The F-ROM drive is supported as a disk for which both read and write operations are possible (only for models with the F-ROM drive). Various disk capacities are supported for each model: Disk capacity: 0 (models without F-ROM), 4M, 8M, 12M, 16M or 24 MB. To format the F-ROM drive use the System Menu.
2.3.5 Serial Communication Available Interfaces Port I/O Address COM1 3F8h-3FFh COM2 2F8h-2FFh COM3 3E8h-3EFh COM4 2E8h-2EFh COM1 This is a COM port for RS-232C communication. This port can be used after turning on the power to the 8-pin serial I/F via the system library. The 8-pin serial I/F is located on the side panel of the main unit.
Page 43
COM2 Either the 14-pin serial I/F or IrDA 1.0 can be assigned to this COM2 port depending on the system library setup. Both the 14-pin serial I/F and IrDA 1.0 can be used as a normal RS-232C interface. By default, the COM2 channel is not assigned to either device. Therefore, always use the system library to designate either the 14-pin serial I/F or IrDA, then turn on the power.
2.3.6 PC Card Hardware Overview Standard Register compatibility Slot Power supply Card lock switch Recommended PC Cards Type SRAM card ATA Flash ROM card How to Format SRAM Card and ATA F-ROM Card To format, call FORMAT.COM in the basic drive (C:). Then, in the DOS prompt screen that appears, execute the following command to format the SRAM card or ATA F-ROM card.
Page 45
Card Lock Switch The IT-2000 has a card lock switch to prevent accidental removal of the card. Any card can be made usable only after it has been inserted in the slot and the switch has been locked properly. However, since some types of cards do not allow this card lock switch to be closed, a library routine to disable this switch is supported.
2.3.7 Clock Timer Clock BIOS 00h to 07h of the INT1Ah function is compatible with the IBM PC/AT. Since INT1Ah can be called in the C language, an alarm operation using the clock can be set with the system library. Alarm If an alarm operation is set using the INT1Ah or system library, it is possible to cause an INT4Ah interrupt at the specified time to issue the alarm.
2.3.8 Buzzer This terminal is provided with a buzzer function that is compatible, via an appropriate interface, with the IBM PC. The application side can sound this buzzer by controlling the I/O port assigned to 61h. It is also possible to modify the sound frequency by controlling channel 2 of the timer. For information about the method used to modify the frequency refer to the hardware manual of the PC/AT compatible machine.
2.3.9 Barcode Reader Overview The IT-2000 supports the following two Casio OBR (Optical Barcode Reader) models: DT-9650BCR ( Pen scanner ) DT-9656BCR ( CCD scanner) Connect the OBR to the COM1 (8-pin) port of this terminal, and set up the interface as follows.
2.3.10 Infrared Communication (IR) The infrared communication function of this terminal supports the protocol of IrDA 1.0 (see note below) and IrDA 1.1 standards. IrDA 1.0 can be used as the COM port for a general RS-232C. IrDA 1.1 can provide communication at a maximum rate of 4 Mbps by means of the dedicated utility (FLINK utility).
2.3.11 Keys Hardware Overview Key configuration Key repeat function Simultaneous pressing of multiple keys Roll-over function Key Layout See the following key layout. Fig. 2.12 Fn key The "Fn" key should be used in combination with the numeric key. Hold down the "Fn" key and press a numeric key.
2.3.12 Sensors The IT-2000 has the following three types of built-in sensors: Illumination Attached to the upper section of this terminal and used to sense the ambient sensor light intensity. It is used for the Auto Backlight Control (ABC) function. It cannot be controlled directly from the application.
3. System Menu 3.1 Overview The system menu is a program and used to perform various setups (system clock, contrast of liquid crystal display, etc.) and implement (downloading) application programs, all of which are necessary to use this terminal. To start up the system menu press the reset switch located at the back of the main unit. When the reset switch is released a short beep will sound and, after a short while, a screen as shown in Fig.
3.2 Basic Operation In the system menu a common set of key operations are used. The following list shows the keys that can be used in the system menu. Current Condition Line cursor is on Others If "FILE TRANSFER" or "MAINTENANCE" is selected for the first time after the system menu is initiated, the operator is required to enter a password for system security purposes.
3.4 Key Click Sound Setup Function Sets the key click sound ON and OFF. If it is set to ON, a key click sound is heard when a key is pressed or when the keypad is touched. It does not sound if it is set to OFF. Operation Select ON/OFF with the “...
3.5 Buzzer Volume Setup Function Sets the volume of the buzzer (beep). One of the four levels (OFF/Small/Medium/Large) can be selected. Operation Make a selection with a key, “ 0” to “ 3 “, and confirm the selection with the “ RET” key. Key Operation 0 to 3 keys .
3.6 Contrast Adjustment Function Adjusts the contrast of the liquid crystal display. Operation Press the “8 “ key to increase the contrast or press the “ 2” key to decrease the contrast. Press the “ RET” key to confirm the setting. Key Operation 8 key 2 key...
3.7 Auto Backlight Setup Function Sets the auto backlight control ON or OFF (refer to Chapter 6 “Keyboard Controller"). Operation Select ON/OFF with the “ 0” or “ 1” key, then confirm the selection with the “RET” key. Key Operation 0 key 1 key .
3.8 Auto Power OFF Setup Function Sets the time-out period of the auto power off function (APO) (refer to Chapter 2.2.3 “Power OFF Process"). This time-out period is the interval between when no key entry or no entry on the touch panel is made and when the power of system is shut off automatically.
3.9 Touch Panel Calibration Function Adjusts the calibration of touch panel. If an inconsistency is noted between the target position and the position actually touched on the touch panel, correct it by performing this calibration adjustment. Operation Adjustment of the calibration : First make sure that the arrow points to the center of this When the buzzer sounds, release the stylus from the touch panel.
Page 60
Note: If an mark does not disappear and the arrow does not move to the next position even if the mark has been touched by the stylus, an incorrect position was likely touched. Touch the correct position. Key Operation 1 key Adjusts the touch panel calibration starting from the beginning.
3.10 YMODEM Utility Function Used to achieve a file transfer via the COM cable. Communication can be established either between an AT-compatible machine (PC) and an IT-2000 (main unit), referred to as "PC-to-HT communication". A dedicated 9-pin DSUB-8-pin cross-type cable (DT-9689AX) is required to connect both the terminals. This utility does not have functions to allow communication between HT and HT.
Page 62
Note: When the cable comes off while the communication takes place: If the connection cable is accidentally unplugged while communication between the IT-2000 and PC is taking place, a communication error results and communication is interrupted. In this case the communication software on the PC will display an error message and interrupt transmission/reception, however, some data may remain in the transmission buffer.
Page 63
Operations (1) SEND FILE TO HT (one file transmission from IT-2000 to IT-2000) This function may be available in future (as of now, not available). It is not allowed to use the function. If the file transmission between IT-2000s is needed, FLINK utility may be used (refer to Chapter 3.11 “FLINK Command”.).
Page 64
When the "Normal End" message is displayed on the IT-2000 side, file reception has been completed. For information about the copy destination directory refer to the following table. If the “CLR” key is pressed during communication, file reception will be interrupted. It will take about 10 seconds for communication to completely stop.
3.11 FLINK Command Function Files can be transferred by infrared communication (IR). This can be implemented either as PC-to- HT (AT-compatible machine to IT-2000) communication or as HT-to-HT (between two IT-2000 terminals) communication. To perform PC-to-HT communication an I/O Box for IT-2000 and a PC-side communication utility "LMWIN.EXE"...
Page 66
Note: If the identical file name exists on the reception side, this command overwrites the existing file. At this time, the system does not unconditionally overwrite the existing file but creates a temporary file on the reception-side disk and attempts the overwrite after file transmission has been competed. This protects file data even if transmission of the file fails.
Page 67
Note: If the “CLR” key is pressed during file transfer, transfer will be interrupted. It will take about 10 seconds for communication to completely stop. REMOTE SERVER (remote server mode ) The remote server mode is used by the system which assigns the right of issuing a transmission request to the partner side and enters the wait state for a request from the partner.
3.12 System Date/Time Setup Function This is used to set (modify) the date and time of the built-in timer in the IT-2000 unit. Operation Enter in the following order: year -> month -> day -> hour -> minute. Press a numeric key and the corresponding number will appear in the cursor position.
3.13 Command Prompt Function This is the MS DOS command prompt screen. An appropriate DOS command can be inputted through the keypad. This DOS command prompt is the result of calling COMMAND.COM as a child process from the system menu. Consequently, if the EXIT command is entered, operation returns to the system menu. Fig.
3.14 RAM Disk Size Change Function This screen is used to set the RAM DISK size (capacity). The setting will become valid after the system has rebooted. Fig. 3.17 Operation Setting up the RAM disk Adjust the RAM disk size with the “8” and “2” keys. Confirm the setup with the “...
Page 71
Key Operation 8 key Increases the RAM disk size. 2 key Decreases the RAM disk size. RET key Confirms the currently selected RAM disk size and exits this operation. CLR key Cancels the currently selected RAM disk size. 1 key Formats the RAM disk (Format confirmation screen).
3.15 Disk Format Function Formats the RAM disk and F-ROM drive. Fig. 3.18 Operation In the screen shown above, use the “2” or “8” key to select whether the RAM disk or user drive is to be formatted, then press the “RET” key. This makes the following screen appear. In this screen press the “1”...
Page 73
Key Operation 2 or 8 key Selects the objective item (drive selection screen). 0 key Does not perform formatting (formatting start screen). 1 key Starts formatting (formatting start screen). Toggles YES and NO options of formatting. . (decimal) key RET key Confirms the current setting.
3.16 System Initialization Function Sets all the system setups to their default settings. Operation The following table shows the available key operations. Key Operation 0 key 1 key . (decimal) key RET key CLR key Others Fig. 3.21 Function Does not initialize the system. Initializes the system.
3.17 Password Entry Function When "FILE TRANSFER" or "MAINTENANCE" is selected for the first time after the system menu is initiated, the operator is requested to enter a password. Operation With the keypad enter "system" (lowercase letter), then press the “RET” key. If the “CLR” key is pressed without entering a character, the password entry operation will be canceled.
4. MS-DOS 4.1 Overview In general, if a personal computer is booted-up with a floppy disk in the drive, first an attempt will be made to read MS-DOS from the floppy disk, and if a copy of MS-DOS does not reside on the floppy it is loaded from the hard disk (C:).
Page 77
As described above, if the system power is turned on without an application installed (i.e. the conditions just after purchase), the CONFIG.SYS and AUTOEXEC.BAT files locating on the basic drive will be executed automatically. This inevitably initiates the System Menu (maintenance program).
4.2 How to Write CONFIG.SYS and AUTOEXEC.BAT This section explains how to write the CONFIG.SYS and AUTOEXEC.BAT files mentioned in the previous section. A basic explanation of the CONFIG.SYS and AUTOEXEC.BAT is not given here. For further information about these files refer to the MS-DOS manual or appropriate technical documents.
Page 79
(1) DOS=HIGH,NOUMB This specifies that the main part of DOS is to be loaded in the HMA and, consequently, the UMB (Upper Memory Block) is not used. This terminal does not support a memory space for UMB if the EMS memory is to be used. Therefore, always specify NOUMB when using the EMS.
Page 80
Example of AUTOEXEC.BAT The following example shows a typical AUTOEXEC.BAT script. Since this example assumes that the system is booted from either the RAM disk or the NAND F-ROM drive, it is necessary to partially modify it if booting up from the ATA card. For information about booting from the ATA card refer to Chapter 4.3 "Card Boot".
4.3 Card Boot Basically the "card boot" operation boots MS-DOS from the ATA card, just like it is booted from a floppy disk. For this terminal the boot operation looks the same as this case. However, this terminal uses a boot process greatly different from a general card boot so that the MS-DOS in the drive C is always loaded, in such a way that MS-DOS not residing in the card is booted.
Page 82
the drive G, which is currently enabled, will be disabled. This problem arises from the fact that the hardware conditions established by initialization with CARDID.EXE are lost since access to the drive F was executed by means of specific codes included in the BIOS.
Page 83
CONFIG.SYS which resides on the drive C. However, CARDID.EXE cannot be registered as a device driver at a card boot. If this CARDID.EXE is registered as a device driver, two drives may be enabled concurrently if MS-DOS executes CONFIG.SYS. In addition, if ENDATA.COM is called with the INSTALL command, the drive G is enabled exclusively.
5. MS-Windows 5.1 Overview The MASK ROM drive (E:) of this terminals has MS-Windows installed in it. However, MS-Windows cannot be booted directly from this MASK ROM drive. This is because MS-Windows will overwrite some of the INI files at start up. However, since all files including the INI files are initially located in the MASK ROM drive, they cannot be overwritten, therefore an error will result.
5.2 Installation of MS-Windows As explained on the previous page, it is necessary to move (copy) some files onto the write-permit drive before booting MS-Windows. This section will describe this copy operation The following is an example of manually installing necessary files so that the user can determine the contents. A utility program (WINST.EXE) can be used to reduce the work load.
Note: The contents of the latest version of E: the case, use the files in SDK instead of those stored in E: 5.2.2 Application Installation For this terminal it is recommended to initiate the application program at the same time MS-Windows is started.
6. Keyboard Controller 6.1 Overview This terminal is equipped with a sub-CPU dedicated to controlling the keyboard, touch panel, backlight, and various sensors. This chapter describes major tasks assigned to this sub-CPU. Main CPU LCD Brightness El Backlight Command Sub-CPU Data Buzzer Volume...
6.2 Keyboard Control The keyboard control of IT-2000 is compatible with the IBM PC/AT. The keyboard controller senses if a key has been pressed and sends a MAKE or BREAK code to the main CPU. Application Program Function Process BIOS Hardware Interrupt Process Sub-CPU Keyboard...
Page 89
Secondary code Basically a system scan code is assigned to each key, however, for some keys, different codes will be assigned depending on the Fn key. Code Table The following diagram shows the relationship between the keyboard keys and primary codes. Fn key The Fn key is used to generate a system scanning code for the function key if it is pressed together with a numeric key.
6.3 Touch Panel Control Function The keyboard controller has incorporated a program for acquiring the touch coordinates of the touch panel. This program compensates these acquired coordinates with the values obtained through calibration so that correct coordinate values can be calculated. The calculated coordinates will be passed to a ROM-resident program called PEN BIOS when mouse interrupt occurs.
6.4 Sensor Control This terminal has the following three types of sensors installed to serve as dedicated devices for handy terminal. Sensor Temperature sensor Illumination sensor Remaining battery voltage sensor Purpose of Use Detects the temperature inside the main unit. This result will be used to automatically compensate the LCD brightness.
6.5 Backlight Control This terminal has incorporated two types of automatic backlight control functions: ABO (Auto Backlight OFF) and ABC (Auto Backlight Control). The ABO function is used to turn off the backlight if no key or touch panel input has been made for a given period of time, and the ABC function is used to automatically turn on and off the backlight depending on the intensity of the ambient light.
Page 93
Transition of Backlight Control Methods The concept of ABC lies in automating user operations. However, automatic control depends on the illumination sensor. It cannot be perfect because various types of light, sunlight or room light for example, may be incident to the sensor. Consequently, this requires manual ON/OFF control even if under ABC control.
Page 94
Press F7 disabled Backlight ON state disabled Backlight OFF state enabled Backlight ON state enabled Backlight OFF state temporaril y disabled Backlight ON state temporaril y disabled Backlight OFF state Note: *1: The backlight turns ON or OFF depending on the current light intensity. *2: ABO event does not occur during ABC.
7. Drivers 7.1 Overview The following drivers are supplied for this terminal. Install them as required for operation. Driver System driver SYSDRV.SYS Clock control driver TIME.SYS Hardware window HWWMAN.EXE manager Keypad driver KEYPAD.EXE PenMouse driver PENMOUSE.DRV Virtual keyboard VKD.386 driver System library SYSCALL.DLL Display driver...
7.2 System Driver 7.2.1 Function The system driver (SYSDRV.SYS) must be installed because it executes critical processes in this terminal. The system driver mainly performs the following processes. LB1 monitoring and warning Monitors the main battery conditions and sounds a warning buzzer if an LB1 event is detected. It also forcibly turns off the system, if the battery voltage has not recovered within ten minutes of the buzzer sounding.
7.3 Clock Control Driver 7.3.1 Function This driver adjusts the system time on this terminal. This driver must be installed. On a general PC a timer interrupt occurs every 55 ms to update the clock tick counter, which is one of the BIOS system variables, and the clock overflow counter.
7.3.2 Startup Method This driver is loaded by defining the DEVICE statement in the CONFIG.SYS file. TIME.SYS is stored in the basic drive (C:). Format DEVICE=C: Start option None Note: TIME.SYS must be loaded immediately after POWER.EXE. TIME.SYS...
7.4 Keypad Driver/Hardware Window Manager 7.4.1 Function The keypad driver (KEYPAD.EXE) is used to add the keypad function to the system. Application programs can use the keypad by calling the keypad driver functions via the keypad library (refer to Chapter 8.6.3 “Keypad Library”). This keypad driver internally calls the hardware window manager that enables the use of the hardware window.
7.5 PenMouse Driver 7.5.1 Overview The PenMouse driver (PENMOUSE.DRV) simulates the operation of the mouse driver specific to the personal computer using inputs received from the touch panel. The PenMouse driver makes it possible to run an application on the IT-2000 terminal that was designed for use with a mouse driver on the personal computer.
7.5.2 Startup Method The PenMouse driver can be loaded by specifying as follow at [boot] section of SYSTEM.INI. However, it is loaded automatically to F-ROM drive (D: ) when Windows is installed by using the Windows installer. SYSTEM.INI is also created automatically. The driver is supplied as an SDK. Format: [boot] mouse.drv=penmouse.drv...
7.6 Virtual Keyboard Driver 7.6.1 Function The Virtual Keyboard Driver (VKD.386) is a driver that enables access to the keyboard controller on Windows (refer to Chapter 6 "Keyboard Controller"). This driver is only called from the system library. Since this driver has no chance of being directly called from the application program, the user does not have to be aware of its existence.
7.6.2 Startup Method The Virtual Keyboard Driver can be loaded by making the following specification in the “386Enh” section of SYSTEM.INI. VDK.386 is included in SDK. If Windows is installed by the installer, VDK.386 will be automatically copied into the F-ROM drive (D:) and SYSTEM.INI will also be automatically created.
7.7 System Library (main program file) 7.7.1 Function SYSCALL.DLL is a dynamic link library that constitutes the main program of the system library (refer to Chapter 8.6.2 "System Library"). Before executing an application that calls the system library it is necessary to locate this file in the Windows directory (or other directory to which the path is established).
7.8 Display Driver 7.8.1 Function Display driver (VGA_C.DRV, VGA_NC.DRV) is a Windows display driver for a screen size of 192 x 384 dots. If this driver is used, maximized or iconized windows will not extend beyond the screen size and dialog boxes can be displayed in the center of the screen. The relationship between the Display driver and application programs is shown in the following diagram.
Page 106
Note: If the above script is deleted from SYSTEM.INI or PENMOUSE.DRV is removed, no display operation is permitted on Windows.
The frame layer is defined by the installed hardware (H/W). IrDA-SIR (Infrared Data Association- Serial Infrared Interface) conforms to UART 16550, and IrDA-FIR (Infrared Data Association-First Infrared Interface) uses the CASIO gate array with NEC CB-C8VM NAFIRL. IrLAP/IrLMP Layer The IrLAP (Infrared Link Access Protocol) layer supports only one connection link, and IrLMP (Infrared Link Management Protocol) layer can support a maximum of three connection links.
Page 108
IrCOMM Layer (including TinyTP Layer) The IrCOMM (Infrared COMM) layer includes TinyTP (Tiny Transport Protocol) layer. IrDA protocol can be used through this IrCOMM (TinyTP) layer. Three connection methods are supported: 3-Wire Raw, 3-Wire, and 9-Wire. The credit size of TinyTP is fixed to five (and it cannot be modified).
7.9.2 Windows 3.1 Communication Functions To perform communication with IrDA use API of MS-Windows. The following table lists the specifications of the available communication functions. List of communication functions Function BuildCommDCB ClearCommBreak CloseComm EnableCommNotification EscapeCommFunction FlushComm GetCommError GetCommEventMask OpenComm GetCommState ReadComm SetCommBreak SetCommEventMask...
Page 110
BuildCommDCB int BuildCommDCB(lpszDef, lpdcb) LPCSTR lpszDef; /* Address of the device control character string */ DCB FAR *lpdcb; /* Address of the device control block */ The BuildCommDCB function converts the device definition character string to the corresponding serial device control block (DCB) codes. <...
Page 111
ClearCommBreak int ClearCommBreak (idComDev) int idComDev; /* Device with canceled break state */ The ClearCommBreak function cancels the break state of the communication device and restores it so it is ready for character transmission. < Parameter > idComDev: Identifies the communication device for which the break state is to be canceled. The OpenComm function will return this value.
Page 112
CloseComm int CloseComm(idComDev) int idComDev; /* Device to be closed */ The CloseComm function will close the specified communication device and release the memory area assigned to the transmission and reception queues of the device. All characters in the transmission queue will be flushed out before the communication device is closed. <...
Page 113
EnableCommNotification BOOL EnableCommNotification(idComDev, hwnd, cbWriteNotify, cbOutQueue) int idComDev; int hwnd; int cbWriteNotify; int cbOutQueue; EnableCommNotification will enable or disable the posting of the WM_COMMNOTIFY message to the specified window. < Parameter > idComDev Specifies the communication device that posts the notification message to the window identified by the hwnd parameter.
Page 114
Note: If the application specifies -1 for the cbWriteNotify parameter, the WM_COMMNOTIFY message will be sent to the specified window in the case of CV_EVENT notification or CN_TRANSMIT notification, but it will not be sent in the case of CN_RECEIVE notification. If the application specifies -1 for the cbOutQueue parameter, CV_EVENT notification or CN_RECEIVE notification will be made, but CN_TRANSMIT notification will not be made.
Page 115
EscapeCommFunction LONG EscapeCommFunction(idComDev, nFunction) /* Identifier of the communication device */ int idComDev; /* Code of the expanded function */ int nFunction; The EscapeCommFunction is used to specify the communication device used to execute the expanded function. < Parameter > idComDev Specifies the communication device used to execute the expanded function.
Page 116
FlushComm int FlushComm(idComDev, fnQueue) /* Identifier of the communication device */ int idComDev; /* Queue to be flushed */ int fnQueue; The FlushComm function is used to flush out all characters from the transmission queue or reception queue of the communication device. <...
Page 117
GetCommError int GetCommError(idComDev, lpStat) int idComDev; COMSTAT FAR *lpStat; The GetCommError function is used to acquire the last error value and current status of the specified device. If a communication error occurs, Windows will lock the communication port until the GetCommError function cancels the error.
Page 118
CE_TXFULL Not supported at present. The data will be passed from the transmission queue to the transmission buffer according to the IrDA protocol. It will be performed asynchronously with the write timing of the transmission queue by the WriteComm function. For example, if 2 kilobytes of data is written in a transmission buffer 2 kilobytes in size, the transmission buffer becomes full.
Page 119
COMSTAT structure typedef struct tagCOMSTAT { BYTE status; UNIT cbInQue; UNIT cbOutQue; } COMSTAT; The COMSTAT structure is used to store information about the communication device. < Members > status Indicates the transfer status. This member consists of the following flags. CSTF_CTSHOLD CSTF_DSRHOLD CSTF_RLSDHOLD...
Page 120
GetCommEventMask UNIT GetCommEventMask(idComDev, fnEvtClear) /* Communication device ID */ int idComDev; /* Event to be cleared in the event word */ int fnEvtClear; The GetCommEventMask function will acquire the bit specified by the fnEvtClear mask in the event word, then clear it. <...
Page 121
OpenComm int OpenComm(lpszDevControl, cbInQueue, cbOutQueue) LPCSTR lpszDevControl; /* Address of the device control information */ UNIT cbInQueue; UNIT cbOutQueue; The OpenComm function will open the communication device. < Parameter > lpszDevControl: Pointer to a character string that ends with a NULL. This character string is the device name in the format of COMn (n denotes the device number).
Page 122
Note on IrDA: The OpenComm function does not support the LPT device. Since the OpenComm function does not control the power block of IrDA, the user should turn the power block to ON before executing this function. On the IT-2000 the IrDA interface is assigned to COM2 port, therefore the COM2 port should be specified.
Page 123
GetCommState int GetCommState(idComDev, lpdcb) /*Communication device ID */ int idComDev; /* Address of the device control block structure */ DCB FAR * lpdcb; The GetCommState function will acquire the device control block of the specified device. < Parameter > idComDev: Specifies the device for which the DCB is to be checked. The OpenComm function returns this value.
Page 124
ReadComm int ReadComm(idComDev, lpvBuf, cbRead) /* ID of the device to be read */ int idComDev; /* Address of the buffer from which bytes are read */ void FAR * lpvBuf; int cbRead; The ReadComm function will read the byte data from the specified communication device and assume the specified number is the maximum bytes.
Page 125
SetCommBreak int SetCommBreak(idComDev) int idComDev; /* Device to interrupt communication */ The SetCommBreak function is used to interrupt character transmission and set the communication device to the break state. < Parameter > idComDev: Specifies the communication device to be interrupted. The OpenComm function returns this value.
Page 126
SetCommEventMask UNIT FAR *SetCommEventMask(idComDev, fuEvtMask) /* Communication device to be enabled */ int idComDev; /* Event to be enabled */ UNIT fuEvtMask; The SetCommEventMask function will enable the event included in the event word of the specified communication device. < Parameter > idComDev Specifies the communication device to be enabled.
Page 127
Note: The application must enable the event using the SetCommEventMask function before the GetCommEventMask function records the occurrence of an event. If the communication device event shows a line status error, the application should call the GetCommError function after calling the GetCommEventMask function.
Page 128
SetCommState int SetCommState(lpdcb) /* Address of the device control block */ const DCB FAR * lpdcb; The SetCommState function will set the communication device to the state that is specified by the device control block. < Parameter > lpdcb: Pointer to the DCB structure that stores the communication settings for the device. Specify the device name for the Id member of the DCB structure.
Page 129
DCB structure typedef struct tagDCB BYTE Id; UNIT BaudRate; BYTE ByteSize; /* 0 = None, 1 = Odd, 2 = Even, 3 = Mark, 4 = Space */ BYTE Parity; BYTE StopBits; UNIT RlsTimeout; UNIT CtsTimeout; UNIT DsrTimeout; UNIT fBinary; UNIT fRtsDisable;...
Page 130
The DCB structure defines the control setups of serial communication. < Members > Identifies the communication device. This value is set by the device driver. If the most significant bit (MSB) is set, the DCB structure is used for a parallel communication device.
Page 131
fOutxCtsFlow Not supported. fOutxDsrFlow Not supported. fDummy Reserved. fDtrDisable Indicates whether to disable the DTR (data terminal ready) signal. If this member is set, the DTR signal is not used and remains off. If this member is cleared, the DTR signal will be sent if the device is opened, and will be turned off if the device is closed.
Page 132
TransmitCommChar int TransmitCommChar(idComDev, chTransmit) /* Communication device */ int idComDev; char chTransmit; /* Character to be transmitted */ The TransmitCommChar function places the specified character at the top of the specified transmission queue. < Parameter > Specifies the communication device to which characters are transmitted. idComDev: The OpenComm function returns this value.
Page 133
UngetCommChar int UngetCommChar(idComDev, chUnget) /* Communication device */ int idComDev; /* Character to be placed in the queue */ char chUnget; The UngetCommChar function replaces the specified character in the reception queue. At the next read operation, this character will be read first. <...
Page 134
WriteComm int WriteComm(idComDev, lpvBuf, cbWrite) /* Communication device ID */ int idComDev; /* Address of the data buffer */ const void FAR * lpvBuf; /* Number of bytes to write */ int cbWrite; The WriteComm function will write to the specified communication device. <...
7.9.3 Setting Up WIN.INI File The following parameters must be set in the [IrDA.COM2] section of the WIN.INI file. If these parameters are not specified or if invalid parameters are set, communication will be performed according to the default values. Setup example [IrDA.COM2] IrDA=ON...
Page 136
MaxBaudRate Sets the baud rate (for IR communication). It is one the negotiation parameters. Parameters less than the default value can be concatenated using ORs. Parameters 2400 9600 (default) 19200 38400 57600 115200 576000 4000000 SizeWindow Sets the number of windows. It is one of the negotiation parameters. This is, however, fixed to 1. Parameter 1 (default) The number of windows is 1.
Page 137
MaxTurnAroundTime Sets the maximum turnaround time. It is one of the negotiation parameters. This is, however, fixed to 500 msec. Parameter 500 ms. (default) MinTurnAroundTime Sets the minimum turnaround time. It is one of the negotiation parameters. Parameters 5 ms 10 ms (default) NunBOF Sets the number of BOFs to be added.
DeviceName Sets the device name to be registered as the "DeviceName" of the IAS attribute. A maximum of sixteen 1-byte characters can be set. The seventeenth and subsequent character will be ignored. Parameters Optional character string Vx.xx (default) DiscoverCount Sets up the station specification. If this function is set so it operates on the primary station it performs discoveries.
7.9.4 Installation Method The method used to install the IrDA driver in Windows is described here. Using WINST.EXE it is also possible to install it according to the default settings. Use the following information as a reference for manual installation or if modifying the setup contents. The Windows3.1 IrDA driver is installed with the following procedure.
Page 140
Add the following to the WIN.INI file. For information about the setup value of each entry refer to Chapter 7.9.3 "Setting Up WIN.INI File". Setup example [IrDA.COM2] IrDA=ON MaxBaudRate=115200 SizeWindow=1 SizeData=1024 DisconnectThresholdTime=40 MaxTurnAroundTime=500 Min TurnAroundTime=10000 NumBOF=0 DeviceNickName=devicenickname DeviceName=devicename DiscoverCount=0 ServiceType=7 The above operations complete the installation procedure.
8. Application Development 8.1 Overview This terminal uses the IBM PC/AT architecture. Though the actual display size is 192 (H) x 384 (V) pixels, internally the area of 640 (H) x 480 (V) pixels is supported by the dedicated display driver. It allows no limitation on programming.
8.2 Notes on Developing Application The use of double clicks on this terminal extremely difficult. Develop your application program so that only single click is enabled Any program that uses the COM port must turn on the power to it in advance using the system library.
8.3 Development Environment 8.3.1 Development Environment To develop application programs a 16-bit compiler, Microsoft C/C ++ 7.0 or later, and a computer on which the compiler can run are required. 8.3.2 Application Development Library For this terminal various libraries such as the keypad library and OBR library, which is used to enhance the efficiency of developing applications.
These libraries do not have to be always used. And, in as far as standard MS-Windows is pursued, they do not have to be used at all. The sole exception is that the COM port power must be turned on via the system library if the user wants to control the COM port directly.
8.4 Program Development Procedure The following diagram shows the basic procedural flow used to develop an application program that runs on this terminal. The following paragraphs explain the details of each phase of the procedural flow. Start Creation/Edition of sourcecode Compile/Assemble Link PC simulation...
8.4.1 Creation of Execution File Application developers should develop programs using various application development libraries. The following sample program is used to turn on and off the backlight. With this program the backlight will be turned on or off if either "1" or "0", respectively, is entered through the numeric keypad.
8.4.2 Debugging Through Simulation Before the debugging, SysCall.DLL (for simulation) must be copied to the directory of Windows System. Since the same name, SysCall.DLL, is used for actual debugging and for simulation, please pay your attention not to make copy for wrong one. When you execute the sample program, window will appear on screen of IT-2000.
Page 148
Fig. 8.5 The outline of the operation test using the simulation driver is summarized above. Debugging can of course be performed using Microsoft's CodeView debugger. For more information about SysCall.DLL for simulation driver refer to Chapter 8.5.1 "System Drive Simulator (SysCall.DLL)".
8.4.3 Operation Check on IT-2000 (Using COM2KEY/XY) If software coordination through simulation has been completed, it should be transferred onto the IT-2000 for operation checks. To do this use the COM2KEY utility. The COM2KEY utility will, when the COM port of a personal computer is connected with the IT-2000 via the dedicated cable (DT-9689AX), use the personal computer as a dumb terminal of the IT-2000.
8.4.4 Installation of Application Program This section describes how to install the application program, after it has been debugged, on the actual terminal. The following table summarizes IT-2000 installation required after purchase. (1) Installation of main battery and sub-batteries (2) Calibration (3) Formatting the F-ROM drive (for models with an F-ROM drive).
Page 151
Installation work : In the slot, insert the ATA card that has been created for installation and lock the card lock switch. If the terminal power is currently on, turn it off. Then press the RESET switch to initiate the System Menu. Turn the Power switch to OFF and then to ON. The card boot process will take place.
8.5 Simulation Driver The simulation driver is used to develop on a personal computer the application programs that run on the IT-2000. The application development libraries supported for this terminal control only the hardware that is compatible with the IBM PC/AT. This is important to remember if the application programs for the terminal are developed on a personal computer.
8.5.1 System Library Simulator (SysCall.DLL) Overview This system library simulator can be called by various libraries and application program and simulate the operations of the dedicated IT-2000 hardware. File name SysCall.DLL Note: In the development tool package, the file name is “SysCallp.DLL”. When you use the file, change the name of file to “SysCall.DLL”.
Fig. 8.7 On the IT-2000 the backlight can be turned on and off by means of Fn + '7'. Namely, the backlight status can be changed not only from the application program but also by the user's operation. This operation on the simulator can be performed by clicking on the corresponding position on the monitor screen.
Page 156
Note on the simulation: As explained previously, this simulator does not exactly simulate the IT-2000 operations. Moreover, some operations can not be simulated because of the difference between the IT-2000 and personal computer in terms of the hardware. Restrictions regarding the COM port The operation of the COM port (8-pin) of the IT-2000 can be programmed in the same way as for the COM1 port of the IBM PC/AT except the power control method.
8.6 Library 8.6.1 Overview Since the IBM PC/AT architecture has been adopted in this system, all libraries including graphic library supported by Microsoft C/C++ ver. 7.0 or later versions can be used. In addition to those, the following dedicated libraries are available for the IT-2000 system. Name of library System Library Keypad Library...
8.6.2 System Library Overview The IT-2000 has various dedicated functions that can control the backlight and the power of various devices by software. These functions are consisted of the programs of the expanded BIOS in the ROM and the keyboard controller (refer to Chapter 6 “Keyboard Controller”.). This library is used to call the expanded BIOS and the keyboard controller from application programs developed with the C language or Visual BASIC.
Page 159
List of Libraries The following functions are supplied in the system library: Function Acquisition of BIOS Version Acquisition of Memory Device Size Setting/Acquisition LCD Contrast Increasing/Decreasing LCD Contrast Switching Over COM2 Channel Setting/Acquisition Reason Mask for Reboot Reboot Request Setting ABO Time Acquisition of ABO Time Setting ABC (Auto Backlight Control) status...
Acquisition of BIOS Version Acquires the ROM BIOS version number, which consists of the following three numbers: major number, minor number, sub-number. SYNTAX long SYS_GetBiosVersion(); INPUT None OUTPUT b23 to b16 Major number b15 to b8 Minor number b7 to b0 Sub-number...
Acquisition of Memory Device Size If the memory device size is designated, the total capacity of the DRAM and the number of NAND FROM chips is read. The memory device size is the total capacity of all the physically installed devices, and not the disc capacity. SYNTAX int SYS_GetMemCapacity(int nDevice);...
Setting/Acquisition LCD Contrast The contrast of the LCD display is affected and varied by the ambient temperature. Therefore, this terminal automatically detects the variation of ambient temperature and determines an optimal contrast based on the acquired data. However, it may not immediately react to rapid temperature variations or be ideal for each specific user.
Increasing/Decreasing LCD Contrast The contrast of the LCD display varies with the ambient temperature. Therefore, this terminal automatically detects the ambient temperature and determines an optimal contrast based on the acquired data. However, it may not immediately react to rapid temperature variations or be ideal for each specific user.
Switching Over COM2 Channel IR, 14-pin, or 3-pin communication interface can be selected on the COM2 port. However, since the 3-pin interface is an optional means to maintain software compatibility with other models, it is not implemented on this terminal. SYNTAX int SYS_GetCOM2Config();...
Page 165
Setting/Acquisition of Reason Mask for Reboot To acquire the reboot request reason, enable or disable “mounting on I/O Box” or use of the CI signal for boot-up. SYNTAX int SYS_GetOnEventMask(); INPUT None OUTPUT b0 = 0 b1 = 0 SYNTAX int SYS_SetOnEventMask(int nMask);...
Reboot Request This function is used to restart (reboot) the system without suspending IT-2000 operations. SYNTAX int SYS_Reboot(int nMode); INPUT nMode = Reboot type OUTPUT = -1 Parameter error Initiates the application. Initiates the system menu. Normal...
Setting ABO Time The ABO (Auto Backlight OFF) function is used to automatically turn off the backlight if neither key entry nor touch-panel entry is permitted for a certain period of time. This function is used to set the ABO time. Enable ABO by selecting a number between 1 and 15, which corresponds to a period of between 20 seconds and 5 minutes.
Acquisition of ABO Time This function is used to read the ABO setting. SYNTAX int SYS_GetAboTime(); INPUT None OUTPUT Not activate ABO = 1 to 15 ABO time in units of 20 seconds = - 2 No response from KBC = - 3 VxD not registered...
Page 169
Setting ABC (Auto Backlight Control) Status The ABC (Auto Backlight Control) function is used to sense the ambient light intensity and automatically turns ON/OFF the backlight. This function is used to enable or disable the ABC function. SYNTAX int SYS_SetABC(int nOnOff); INPUT nOnOff = 0 Other than 0...
Page 170
Acquisition of ABC (Auto Backlight Control) Status The ABC (Auto Backlight Control) function is used to sense the ambient light intensity and automatically turns ON/OFF the backlight. This function acquires the current setting of the ABC function. SYNTAX int SYS_GetABC(); INPUT None OUTPUT...
Setting/Acquisition of ABC Threshold The ABC (Auto Backlight Control) function is used to sense the ambient light intensity and automatically turns ON/OFF the backlight. This function is used to set marginal levels across which the backlight changes from ON to OFF or from OFF to ON. If the readout on the AD converter falls below OnValue, the backlight turns on, and if it exceeds OffValue, the backlight turns off.
Backlight ON/OFF This function is used to forcibly turn ON or OFF the backlight. If turned ON by this function, the backlight will remain on until Backlight OFF is triggered by the Backlight OFF function or ABO. If this function is activated under the ABC control, the ABC will be temporarily disabled, and will be enabled again when Backlight OFF is triggered by the Backlight OFF function or ABO.
Acquisition of Backlight Status This function acquires the current backlight status. SYNTAX int SYS_GetBacklight(); INPUT None OUTPUT = 0 Backlight OFF = 1 Backlight ON = -2 No response from KBC = -3 VxD not registered...
Setting Buzzer Volume Sets the buzzer volume to one of four levels: Large/Medium/Small/OFF. SYNTAX int SYS_SetBuzzerVolume(int nVolume); INPUT nVolume = 0 OUTPUT = 0 Normal = -1 Parameter error = -2 No response from KBC = -3 VxD not registered Small Medium Large...
Acquisition of Buzzer Volume Acquires the buzzer volume as one of four levels: Large/Medium/Small/OFF. SYNTAX int SYS_GetBuzzerVolume(); INPUT None OUTPUT Small Medium Large No response from KBC VxD not registered...
Acquisition of Device Power Status Acquires the current power conditions (ON/OFF) of each device. SYNTAX int SYS_GetDevicePower(int Device); INPUT Device = device to be selected Other OUTPUT Power ON Power OFF Note: This function is used to control the power to devices of this system. Never designate parameters other than those specified on this page.
Device Power ON/OFF Used to turn ON and OFF the power of each device. SYNTAX int SYS_SetDevicePower(int Device, int OnOff); INPUT Device = device to be selected Other OnOff = ON/OFF setting Turns OFF. Turns ON. OUTPUT Normal termination Note: This function is used to control the power to the devices in this system.
Software Card Lock Sets or acquires the Lock/Unlock status of the software-type card lock switch. This machine has a card lock mechanism that is on the card case to prevent accidental removal of the card. This mechanism has a software driver that detects the released state of this lock and executes the appropriate file closing procedure.
Acquisition of Connector Status Acquires the connection setting of the I/O Box and AC adaptor. SYNTAX int SYS_GetConnectorStatus(int nType); INPUT nType = Connector type I/O Box AC adaptor or I/O Box OUTPUT Not connected Connected = -1 Parameter error...
Key Click Sound ON/OFF Sets the key click sound to ON or OFF. SYNTAX int SYS_SetKeyClck(int OnOff); INPUT nOnOff = 0 Other than 0 OUTPUT = 0 Normal = -2 No response from KBC = -3 VxD not registered...
Acquisition of Key Click Sound Status Acquires the key click sound ON/OFF setting. SYNTAX int SYS_GetKeyClick(); INPUT None OUTPUT = -2 No response from KBC = -3 VxD not registered...
Acquisition of Reboot Reason Used to acquire the reason the system was rebooted. SYNTAX int SYS_GetPowerOnFactor(); INPUT None OUTPUT b0 Power key b1 Reset button b2 Alarm b3 Ring signal b4 IT-2000 is being set on I/O Box Note : If the reset button is pressed the system menu is initiated.
Acquisition of OFF Reason Acquires the reason that the system was most recently turned OFF. SYNTAX int SYS_GetPowerOffFactor(); INPUT None OUTPUT Power key Reset switch Reserved b4,b6, b7 Reserved LB1 timeout (indicates “OFF” by the condition of battery voltage low.) Software-triggered OFF b10 to b15 Reserved...
Page 184
Setting Cancellation of Next Resume Process Sets the power-on process (Resume/Boot) for each power OFF reason. The default setting is Resume On. SYNTAX int SYS_SetResumeCondition(int nCondition); INPUT nCondition = b1 to b7 b10 to b15 OUTPUT Normal = -1 Parameter error Note : With this function the power-on process can be set for each of the reasons the power is turned OFF: Power key, APO, and Software-triggered OFF.
Page 185
Acquisition of Cancellation Status of Next Resume Process Acquires the power-on process setting (Resume On/Boot) for each power-off reason. SYNTAX int SYS_GetResumeCondition(); INPUT None OUTPUT b1 to b7 b10 to b15 Power key 0 = Resume ON, 1 = Boot Reserved 0 = Resume ON, 1 = Boot Software-triggered OFF...
Page 186
Request of Suspend (Software-triggered OFF) Used to turn off the system with the software. If there is a need to specify the next boot-up process, complete "Setting Cancellation of Next Resume Process" beforehand, then call this function. SYNTAX void SYS_PowerOff(); INPUT None OUTPUT...
Page 187
Acquisition of Low Battery Voltage Status An APM (Advanced Power Management) BIOS has been installed in this terminal. This function is used to directly refer the hardware conditions which are translated into input signals for the APM BIOS. SYNTAX int SYS_GetLBStatus(); INPUT None OUTPUT...
Setting APO Time Used to set a time until APO (Auto Power OFF) occurs. SYNTAX int SYS_SetApoTime (int nValue); INPUT nValue = APO time 1 to 15 OUTPUT Normal = -1 Parameter error Note : Auto Power OFF will work if the power control function is active. For more information about the power control function refer to "Setting/Acquisition of Status of Power Control Function".
Acquisition of APO Time Acquires the currently set APO time. SYNTAX int SYS_GetApoTime(); INPUT None OUTPUT Disable the APO. 1 to 15 Enable the APO in the specified-number of minutes plus 30 seconds. The actual APO time has an error of +/- 25 seconds. Note : Auto Power OFF will work if the power control function is active.
Setting Status of Alarm This function is used to set the alarm so that Int4Ah will be executed at the specified time. If the set time precedes the currently set RTC (Real Time Clock) time, the alarm will be valid on and after the following day.
Acquisition of Alarm Setting This function is used to acquire the current alarm setting made for the RTC (Real Time Clock). SYNTAX void SYS_GetAlarm(int *hour, int *min, int *sec); INPUT hour = Pointer to the area from which hours is read. min = Pointer to the area from which minutes is read.
Resetting Alarm This function prohibits an INT4Ah interrupt by internally calling INT1Ah (Ah = 7). Note that neither the time data set for the RTC is erased nor is the power ON alarm setting for the SYS_SetPowerOnAlarm() function canceled by this function. If this function is called with the power ON alarm active, the alarm is temporarily reset.
Page 193
Setting/Acquisition of Power ON Alarm This terminal has a function to automatically turn on the power to the main unit at the specified time. This function requires the RTC (Real Time Clock) function. Normally, an INT4Ah interrupt will occur when the setting is being made on the RTC. This function makes it possible to add the function which turns on the main unit at the desired time.
Page 194
Setting/Acquisition of Status of Power Control Function This terminal has incorporated unique power control functions: the auto power OFF mode and DOZE mode (CPU low-speed operation mode). Since these functions operate based on monitoring a period free from operator's concern over a given interval, they have the potential of affecting the execution performance of high-speed communication programs, including that of IrDA.
Setting Key Click Sound ON This function is used by application program to turn ON the key click sound. An example of the use is, when an button image on the LCD screen is touched it turns ON the sound. The sound is the same tone as those when ten key and keypad are pressed.
8.6.3 Keypad Library Overview The keypad library (Padctrl.vbx) is used to perform key input with the keyboard that is graphically displayed in the screen. This library can be made available when it is registered as a control on the application program. This control can be set up according to the specific properties including the modification of keypad, acquiring and modifying the key acceptance mode, etc.
Page 197
Input acceptance mode There are two acceptance modes for key input. Down acceptance mode When the pen is down on the keypad, the touched area changes to reverse video, and the corresponding keycode is generated. The reverse video area will return to normal when the pen is up.
Page 198
(1) Initiate AppStadio, then select "File"- "InstallControls". (2) Move to the directory where the keypad library is placed and select "padctrl.vbx", then click on the "Install"button. When "PADCTRL.VBX"is displayed in the "Installled"column, click on the "OK" button. Fig. 8.12 Fig. 8.13...
Page 199
(3) A new button is added in the lower section of the toolbox. However, if other controls have been registered already, the left hand-side figure will include more buttons. Fig. 8.14 With the above procedure registration of the keypad to AppStadio is completed. Explained next is the method of registering the keypad in the dialog.
Page 200
(2) As the following dialog is displayed, select "Dialog" and click on the "OK" button. With the above operation the dialog is added as a resource. (3) Next, click on the keypad button (as shown in the lower right of the left hand-side figure) of the tool box to the pressed-in position and click inside the dialog.
Page 201
(4) Modify the keypad size so that all keys can appear within the screen. (5) Subsequently, layout the necessary controls such as the edit box, etc. on the dialog. As the screen size of this system is 384 x 192 (pixels), layout the controls so they can be accommodated in this range.
Page 202
Note: The keypad library will transmit characters to the control which is focused at. Accordingly, if the focus is placed in other control than the edit box, click on the edit box or move the focus over the edit box with the program that is using SetFocus(), etc. How to use with VB application In order to develop an application program that utilizes the keypad library with the VB, it is necessary to register the keypad library to Visual BASIC.
Page 203
Where VB3 is used, select "Add File..." from the "File" menu. Fig. 8.21 (2) When the following dialog appears for VB4, click on the "Browse..." button. Fig. 8.22...
Page 204
(3) When the following dialog is displayed, move to the directory where the keypad library is placed and select "padctrl.vbx" as the file name, then click on the "OK" button. Fig. 8.23 In the case of VB3, the following dialog will appear instead of the dialog of (2). Then move to the directory where the keypad library is placed and select "padctrl.vbx"...
Page 205
(4) In the case of VB4, clicking on the "OK" button makes the previous dialog restored. Make sure that the check box at the right of "PADCTRL.VBX" is checked, then click on the "OK" button. Fig. 8.27 With the above procedure registration of the keypad to VB is completed. (5) The left hand-side figures show the results where a new button has been added in the lower section of the toolbox.
Page 206
Explained next is the method of registering the "keypad" in the dialog. (1) First double-click on the "keypad" button (the lower left button in the left hand-side figure), and the "keypad" is inserted as shown in the left hand-side figure. Fig.
Page 207
(3) Subsequently, layout the optional controls such as the edit box, etc. properly in the dialog. Because the size of the IT-2000 display is 384 x 192 (pixel), layout them so that they can be fit within the range. Note: The keypad library will transmit characters to the control which is focused at.
Page 208
Explanation of properties List of properties Property PadStatus Key acceptance property PadShow Keypad display/non-display property KeyNo Expansion key number property ExtNo Expansion keypad number property KeyCode Expansion keycode property Ext1Data1 - Expansion key image property Ext1Data48 (EXT1) (48 pieces Ext2Data1 - Expansion key image property Ext2Data48 (EXT2)
Page 209
Keypad display/non-display property Function This is a property to switch between display and non-display of the keypad. Property name PadStatus Type short Value 0 = non-display 1 = display (default) Format <In case of VC> CVBControl* m_PadCtrl; m_PadCtrl->SetNumProperty("PadShow", 0 or 1); <In case of VB>...
Page 210
Expansion keycode property Function This is a property to set up the keycode of the expansion key to be registered. Property name KeyCode Type short Value Keycode to be set Format <In case of VC> CVBControl* m_PadCtrl; m_PadCtrl->SetNumProperty(“KeyCode”, keycode); <In case of VB> Padctrl1.
Page 211
Example of expansion pad operation Registration of expansion key pad <In case of VC> void Cclass::SetProp( void ) HBITMAP hBmp; PIC pic; HPIC hPic; // Loads the bitmap from resouce hBmp = LoadBitmap( AfxGetInstanceHandle(), "bitmap resource name"); pic.picData.bmp.hbitmap = hBmp; pic.picType = PICTYPE_BITMAP;...
Page 212
Deletion of expansion key pad <In case of VC> void Cclass::DeleteProp( int KeyNo, int ExtNo ) m_PadCtrl->SetNumProperty( "KeyNo", 0 ); // Registration of Key No. m_PadCtrl->SetNumProperty( "ExtNo", 1 ); // Registration of expansion m_PadCtrl->SetNumProperty( "ExtPad", 2 ); <In case of VB> Private Sub Command2_Click() Padctrl1.
8.6.4 OBR Library Overview The OBR library is used to control the OBRs (Barcode Reader) from application programs developed by the user with the C language or Visual BASIC. It supports the following two OBRs : DT-9650BCR : Pen-type barcode reader DT-9656BCR : CCD barcode reader Note about the Libraries This library consists of the following three files.
Page 214
Reception Buffer This library uses two reception buffers, as shown below, so that during the processing (read) of one of the received barcodes the next barcode can be successfully received. The following explains the operation sequence by which codes are put into the reception buffer. When the first barcode is received, it will be temporarily stored in Buffer A.
List of Available Functions Page. Function OBR_Open OBR_Close OBR_Send OBR_Stat OBR_Read OBR_Clear OBR_SetUserEvent Initialization of OBR Initializes the COM port to establish a connection with the OBR, and turns on the power to the COM port. SYNTAX #include "obrlib.h" int FAR PASCAL _export OBR_Open(int iOBRtype); INPUT iOBRType = DT-9650 = DT-9656...
Page 217
Release of COM Port Releases the COM port and turns off the power to the COM port. SYNTAX #include "obrlib.h" void FAR PASCAL _export OBR_Close(); INPUT None OUTPUT None Note : Call this function if completing the use of the OBR (i.e. terminating the application program).
Page 218
Transmission of Command Transmits a command represented by a single ASCII code to the OBR. Various options including "Readout mode", "Data transfer format", etc., can be set for this transmission. This setup does not have to be made each time the power is turned on if it is written in the EEPROM. For information about the setup procedure refer to "Setting Operation Mode/DT-9650BCR"...
Page 219
Acknowledgment of Received Data Validates barcode data in the reception buffer of the Library. If data is not received completely as barcode data after the validation, it will be acknowledged as invalid date. SYNTAX #include "obrlib.h" int FAR PASCAL _export OBR_Stat(); INPUT None OUTPUT...
Page 220
Readout of Received Data Acquires the first barcode in the reception buffer and writes it to the specified buffer. The reception data SYNTAX is as follows: SYNTAX #include "obrlib.h" int FAR PASCAL _export OBR_Read(void far *pBuf); INPUT pBuf = Pointer to the buffer that stores the received barcode OUTPUT The absolute value shows the number of characters in the received barcode.
Page 221
Invalidating Code in Buffer Invalidates a barcode in the reception buffer and clears the reception buffer. SYNTAX #include "obrlib.h" void FAR PASCAL _export OBR_Clear(); INPUT None OUTPUT None...
Page 222
Setting event of reception completion When a barcode data is received completely, specified message can be sent as user event to the specified handle. This library will send a message to specified window handle using the SendMessage API. Specified hWnd, uMsg, wParam, lParam are used as parameter for the SendMessage API. SYNTAX #include “obrlib.h”...
Setting Operation Mode / DT-9650BCR Overview On this OBR various settings, as listed below, can be made through command transmission. For a list of the actual commands refer to the Command List on page 225. 1. Specifying the number of read digits 2.
Page 224
Example: To set the CODE39 C/D to "Prevent check (without changing the transfer function)" with the corresponding expanded commands OBR_Send (“u”); OBR_Send (“A”); OBR_Send (“v”); Power-save Mode Control Command Used to control the power-save mode of the OBR. See the following diagram. Example SW input Command “p”...
Page 225
Comm and List 1 Specifying the number of read digits No. of digits Command 1 to 42 Less than one ICG character Specify Less than eight ICG characters CODE39/ NW-7 ICG All codes Readability of code CODE39 NW-7 2 of 5 (Industrial/Standard) CODE11 CODE93 CODE128...
Page 226
NW-7 start/stop code Change codes to uppercase characters Change codes to lowercase characters C/D (CODE39/NW-7/2of5/CODE11) Readout CODE ID Enable buzzer/LED ON after normal read Disable buzzer/LED ON after normal read Specify Enable buzzer/LED ON for one time buzzer LED OFF when command awakes from sleep activation and LED ON LED ON when command awakes from sleep mode...
Page 227
NW-7 C/D Disable check (without changing the transfer Enable check/Transfer Enable check/Not transfer Disable check/Not transfer Disable check/Transfer 2 of 5 C/D Disable check (without changing the transfer Enable check/Transfer Enable check/Not transfer Disable transfer Disable check/Transfer CODE11 C/D Enable transfer of check (1) Disable transfer of check (1) Enable transfer of check (2) Disable transfer of check (2)
Setting Operation Mode / DT-9656BCR Overview On the OBR various settings, as listed below, can be made through command transmission. For a list of actual commands refer to the Command List on page 229. 1. Readability of code 2. Adding a readable code 3.
Page 229
Command List Read all codes Readability UPC only of code UPC + 2 digits of supplemental only UPC + 5 digits of supplemental only EAN only EAN + 2 digits of supplemental only EAN + 5 digits of supplemental only DTF only ITF only CODE39 only...
Page 230
UPC-A 12 digits: Not transfer "0" header for adjusting the 11 digits: Not transfer C/D and "0" header for UPC-E 7digits: Not transfer "0" header for adjusting the 6 digits: Not transfer C/D and "0" header for Acquire both system numbers "0" and "1" CODE39, NW-7: 1 digit, ITF: 2 digits Specify the least...
Page 231
Infinite 2 sec Read time 4 sec 6 sec 8 sec 10 sec 15 sec 20 sec Normal contrast Contrast Both normal/reverse contrast of normal /reverse No verification No. of Verification twice verifications Verification three times Verification four times UPC-A Use of Length CODE...
Page 232
CODE93 CODE128 MSI/Plessey Specify write to EEPROM Not transfer Transfer Not transfer Transfer Not transfer Transfer...
8.6.5 YMODEM Library Overview This library is used to transfer files from Windows applications using the YMODEM/bat protocol. The YMODEM library consists of a group of the following files. YMODEM.H LibYMOD.LIB YMODEM.DLL Relations between the files are summarized as follows. When developing your application program with the C language, never fail to link LibYMOD.LIB with the developed source program.
Error codes Each function of this library will return the following values as the error code. Error code Dialog box creation error, etc. Transmission file not exist Reception file creation error Communication time-out Reception file write error Communication API error of Windows OpenYMODEM This function should be called prior to using the YMODEM library.
Page 235
SendByYMODEM This function is used to transmit a file by means of the YMODEM/bat protocol. Before this function is called, the OpenYMODEM function must have been called. SYNTAX #include "ymodem.h" short WINAPI _export SendByYMODEM(short iPkt, short nFiles, LPSTR *sPath, BOOL bFullFileName, BOOL bFindSubDir ) short WINAPI _export SendByYMODEMforVB(short iPkt, short nFiles, LPSTR *sPath, BOOL bFullFileName, BOOL bFindSubDir ) INPUT...
Page 236
RecieveByYMODEM This function is used to receive a file by means of the YMODEM/bat protocol. Before this function is called, the OpenYMODEM function must have been called. SYNTAX #include "ymodem.h" short WINAPI _export RecieveByYMODEM(LPCSTR cDirectory ) INPUT cDirectory = Received file storage directory (by full pathname) OUTPUT Normal termination = Other Refer to the error code table.
Page 237
SetCommForYMODEM This function is used to set up the communication parameters (baud rate, parity, and stop bit) to be used by the YMODEM library. Before this function is called, the COM port must have been opened by the OpenYMODEM function. SYNTAX #include "ymodem.h"...
Page 238
CloseYMODEM If this function is called, the use of YMODEM library is completed, and the COM port is closed. SYNTAX #include "ymodem.h" short WINAPI _export CloseYMODEM( void ) INPUT None OUTPUT Normal termination = Other Refer to the error code table.
8.6.6 FLINK Library Overview The FLINK library (FLINK.DLL) is a utility used to perform communication between two IT-2000 terminals or between the terminal and a personal computer via the infrared communication interface (IrDA). It is a 16-bit dynamic link library (DLL). The FLINK function is called from its external function.
Page 240
Setup values of WIN.INI file Set up the IrDA section of the WIN.INI as follows; [IrDA.COM2] IrDA=ON MaxBaudRate=115200 SizeWindow=1 SizeData=2048 DisconnectThresholdTime=3 MaxTurnAroundTime=500 MinTurnAroundTime=5000 NumBOF=0 DeviceNickName=devicenickname DeviceName=devicename DiscoverCount=0 ServiceTyte=7 Interface to DLL Copy FLINK.DLL to the Windows system directory or to a directory where the application is located.
Page 241
int DoFlink(int argc, char** argv) This executes the FLINK protocol and various processes. SYMTAX int DoFlink(int argc, char** argv) INPUT argc = Number of input parameters argv = Pointer to the parameter array OUTPUT: Normal termination Example This is an example of transmitting the "C: overwrites the "C: function.
Page 242
Example This is an example of using the DoFlinkForVB function to transmit the "C: file on the source side so that it overwrites the "C: side . /* Code in VB */ Dim sht As Integer Dim hWnd1 As Long Dim hInst As Long ReDim Strz(3) As String hInst = GetModuleHandle("flink.exe")
Communication Commands File Transmission (/S) Function This function transmits a file on the execution-side machine to the communication partner. If the specified destination directory does not exist on the partner side, it will be automatically created. Starting method argc = number of parameter arguments char* argv = { "fl", "/S[Option]", "transmission file pathname"...
Page 245
Parameter setup examples argc argv[] = {“fl” , ”/S” , ”a: With this specification all files with a "DAT" extension under the "info" directory of the drive A of the execution-side machine will be transferred to the "d: partner side. argv argv[] = {“fl”...
File Reception (/R) Function This function is used to receive a file that exists on the communication partner side by specifying the request pathname. If the directory specified as the reception directory does not exist on the execution side, it will be automatically created. Starting method argc = number of parameter arguments char* argv[] = { "fl", "/R[Option]", "request pathname"...
Page 247
Parameter setup examples argc argv[] = {“fl” , ”/R” , ”a: With this specification all files with a "DAT" extension under the "test" directory of the drive A on the partner-side machine and all files under the "info" directory of the drive D will be transferred to the "data"...
File Append (/A) Function This function appends the contents of a file that is specified by the append file pathname to a file that is specified by the target file pathname. Note: File contents will be appended using the binary method (i.e. if the target file ends with an EOF code, data is appended after it).
File Deletion (/D) Function This function deletes a file that exists on the communication partner side. Starting method argc = Number of parameter arguments argv[] = { "fl", "/D", "deleted file pathname" [, "deleted file pathname"] } char* DoFlink(argc, argv) Deleted file pathname Specify the file to be deleted by its full pathname.
Page 250
File Move/File Rename (/N) Function This function is used to move the specified file (move source pathname) on the communication partner side to the move destination pathname. This function is used specifically to move or rename files within the same drive. Starting method argc = 4 char* argv[] = { "fl", "/N", "move source pathname"...
Idle Start Function This function is used to transfer the request right to the partner side. This function will be terminated if it is abnormally terminated, or if a termination designation is transmitted or received. If a script file is specified, communication will progress according to the contents of the specified script file that exists on the communication partner side.
Page 252
IrDA Environment Setup Commands Wait Time Setup (/L) Function This function sets up the Wait time for communication. Starting method argc = Number of parameter arguments char* argv[] = { "fl", "/L={, wait time for connection establishment, wait time for data reception/transmission,,,,}"...
Page 253
COM Environment Setup (/Y) Function This function sets up the environment of COM port. Starting method argc = Number of parameter arguments char* argv[] = { "fl", "/Y={communication speed, COM specification,,,,,,,}" } DoFlink(argc, argv) If the parameters for the Y option do not have to be entered, enter only comma separators. If this is the case, default values will be automatically used.
Page 254
Following the parameter setting shown on the previous page as example, the communication specifications can be set according to the details listed in the table below. Parameter Communication speed COM specification Data bits Parity Stop bit Process value 9600 bps Default COM1 (RS-232C) 8 bits...
Page 255
List of termination codes The following table shows the termination codes returned by FLINK.DLL. Note that only the termination code (i.e. with no message) will be displayed at a termination. End Code Category Detail Code (High) (LOW) Normal end 0DCh - 0F5h File Error (int21h) There may be cases where codes not defined as File Error (int21h) are returned.
Page 256
End Code Category Detail Code Protocol Error Protocol Error (File) Internal Error Description Command error (undefined function code). Command error (undefined sub-function code). Command error (not execute command). Check sum error. Command sequence error. Sequence number error. Other protocol error. Parameter error.
9.1 Overview The development kit contains some utility programs to be used as required. Calculator Utility Calculator program including memory calculation implementing the CASIO standard specifications . Clock Utility Used to refer the date and time of the built-in clock and to set the power ON alarm.
9.2 Calculator Utility Overview Use this calculator utility for decimal calculations. This utility provides arithmetic calculations, memory calculations and the function to transfer a result of calculations to text box in application program. It is provided as a Windows application. File Name WCALC.EXE Function...
Startup Method This utility is not stored in the basic drive (C: ). It must be copied to RAM disk (A: ) or FROM drive (D: ) and can be started up from Windows. Basic Function Operation of the utility is performed by inputs from Ten key and Touch panel. Ten Key 0 to 9 Input numeral.
.3 Clock Utility Overview The clock utility is used to reference the current time, set the date and time, or set an alarm. This utility is provided as a Windows utility. File Name WCLOCK.EXE Function The clock utility provides the following functions: Displays the current time in digital or analog mode.
Specify the logo of clock by characters. The maximum length of the logo can be 9 characters. Also, it is possible to include characters and numbers combined in the logo. /T=CASIO WINDOWS. If it does not exist, and JAN-28-1998[WED] 98/ 1/28[WED]...
9.4 Calendar Utility Overview Use this calendar utility for referring to dates. This utility is provided as a Windows utility. File Name WCAL.EXE Function The calendar utility provides the following functions: Displays a calendar for two months on one screen page. At start up, the current system date will be displayed in the top section.
9.5 Remaining Battery Voltage Display Utility Overview The remaining battery voltage display utility is used to monitor the remaining voltage of the main battery and sub-battery. This utility is provided as a Windows utility. File Name WCHKBATT.EXE Function Display for remaining battery voltage of main battery Display for power supply connection states...
9.6 FLINK Utility Overview The FLINK Utility is used to perform communication either between the IT-2000 and PC, or between two IT-2000s by means of the IrDA protocol. This utility is provided as DOS application. It can be called as single command line or as a child process of the application program. Function IrDA communication method setup...
9.6.1 Communication Parameter Setup Command (/L={,,,} Sets up command parameters according to the command specified next to "=". If the communication environment command needs to be specified, this command must precede it. Command Specification Method FLINK /L={maximum IrDA speed, wait time until the connection is established, data Always place the parameters between a pair or braces ("{ }").
Page 266
Example of specification FLINK /L={4M, 20, } Meaning: Communication will be performed with a maximum IrDA speed of 4 Mbps, the wait time until the connection is established is 20 seconds, and the data transmission/reception wait time is default-set to 300 seconds.
9.6.2 File Transmission (/S) Function This function transmits a file from the terminal machine to the host machine. If the directory specified by the "storage destination directory name" does not exist on the host side, it will be automatically created. If the identical file name exists on the host side, it will be forcibly overwritten. Even if it is a read-only file, it is possible to overwrite by specifying the "O"...
Page 268
Example of specifications of storage destination directory name Specification of root directory Specification of sub-directory Incorrect specification Note: If the host (reception) side has a file with the identical name, this command will forcibly overwrite that file. However, this overwrite operation is not unconditional. This command first creates a temporary file on the disk of the host, then it overwrites the file after the transmission has been completed.
Specify the directory in which the received file is stored. The directory name must include the drive name. Enter " " as the delimiter of the directory name. Example of specifications of storage destination directory name Specification of root directory Specification of sub-directory Incorrect specification Description CASIO CASIO...
Page 270
Note: If the terminal (reception) side has a file with the identical name, this command will forcibly overwrite that file. However, this overwrite operation is not unconditional. This command first creates a temporary file in the disk of the terminal, then it overwrites the file after transmission has been completed.
If the specified file does not exist on the partner side, a new file will be created with the specified pathname. Example of specifications FLINK /A A: CASIO.DAT MASTER.DAT Description This specification concatenates the "CASIO.DAT" file on the execution (transmission) side to the end of the "MASTER.DAT" file on the partner (reception) side.
9.6.5 File Deletion (/D) Function This function deletes a file on the host. Startup Method FLINK /D[Option] deleted pathname [deleted pathname...] Option Option If HT-to-HT communication is to be performed, specify this option on the terminal. Deletion by pathname Specify the objective file to be deleted by its full pathname, including the drive name. If multiple "deleted pathnames"...
9.6.6 File Move/Rename (/N) Function This function moves a file within the same drive or renames the file on the host. A file cannot be moved into a different drive. Startup Method FLINK /N[Option] move source pathname move destination pathname Option Option If HT-to-HT communication is to be performed, specify this option on the terminal.
9.6.7 Idle Start Function This function passes the right of communication request to the terminal and enters the command reception wait state. This function will be terminated if it is abnormally terminated, if it transmits a designation of termination, or if reception has been completed. Startup Method FLINK (No specific command exists.)
9.6.8 Termination Codes and Messages In the following table, termination codes and their error messages returned by FLINK.EXE are described. Error Code Category Detail (High) (Low) Normal End 0x00 0x00 0xDC-F5 0x00 0xF6 0x00 0xF7 0x00 0xF8 0x00 Protocol Error 0x01 0x00 0x01...
Page 276
Note: Besides the detail codes which are defined in File Error (INT24h) above, other error codes may be returned as fatal error code of DOS. Protocol Error (File) 0x04 0x00 CANNOT OVERWRITE IrDA Protocol Error (For detail refer to the table on the next page.) 0x80 0x01 IrDA PROTOCOL ERROR...
9.7 XY Utility Overview The XY utility is used to perform communication either between an IT-2000 and PC, or between two IT-2000 terminals by means of XMODEM or YMODEM BATCH protocol. This utility is provided as a DOS application and should be activated as a command line or as child-process of the application program.
Page 278
About time stamping of files: This utility supports the function to exchange time stamp information between the transmitted file and received file. The time stamp information to be exchanged will be processed assuming that it is Greenwich standard time. In contrast, the time used by the IT-2000 is the local time, and the time stamp of IT-2000 files are accordingly controlled based on the local time.
Page 279
Command Always specify /S or /R. This command must be specified as the first parameter. Transmission or reception specification /R | /S /R: File reception /S: File transmission (Both /R and /S cannot be specified at the same time.) Option After the command, specify the appropriate options.
Other parameters Specify the options immediately after (without inserting a space) the command. Options must be specified in the following order: Suppression of message display Specify this option if a copyright message or error message is suppressed from being outputted. /BN Specification of a baud rate (If omitted, 2 (9600 bps) is employed.) 2,400 bps 4,800 bps...
Page 281
Example of specifications XY /SY A: WORK TEST.DAT XY /SY /P A: WORK TEST.DAT XY /SY /P B: TEST A: WORK TEST.DAT Termination Codes and Messages Termination Message Code NORMAL END ABNORMAL END (Reserved) FILE NOT FOUND FILE NOT CREATE TIME OUT (Reserved) WRITE FAILURE...
9.8 Reverse Video Utility Overview This utility is used to change the entire screen to reverse video. From the nature of the FSTN semi-transparent type LCD unit of this terminal the density of colors (tones) will be reversed. So, for example, a light color appears dark and a dark color appears light. To avoid this problem use this supplied utility to represent colors as closely as possible.
9.9 COM2KEY Utility Overview This utility is a debug tool that allows key input at the DOS prompt from the personal computer. If this utility is resident in memory, the data entered in COM1 will be passed to the key buffer, and the characters displayed on the DOS prompt screen will be outputted for COM1.
9.10 Windows Installation Utility Overview MS-Windows has been installed on the MASK ROM drive (E:). However, MS-Windows cannot be booted directly from the MASK ROM drive. This is because MS-Windows will overwrite some of the INI files at start up. However, since all the files including the INI files are initially located in the MASK ROM drive, they cannot be overwritten, therefore an error will result.
Page 285
Operation at Menu Startup WINST.EXE can run either on the IT-2000 or on a personal computer. However, since the IT-2000 is not provided with an arrow key to move the bar-type cursor, use the following key operations. Move cursor up Move cursor down Accept Cancel...
Page 286
WINST.INF The WINST.INF file is used to make installation procedure specifications for WINST.EXE. The method used to write the WINST.INF file is the same as that used for the INI file in MS-Windows. For information about each setup item refer to the following table. Setup Section CopyOriginal= If set to "yes", a Windows directory is created in the D drive, and a file in...
Page 287
Keyboard=Setting Specifies the keyboard to be used. From the Setting column of the table shown below select a value to be placed on the right side of the equation. Country Kind Belgian British Danish Finnish French Canadian Icelandic Latin American Portuguese Swedish Swiss German...
Page 288
Example of Using WINST.EXE Preparation of necessary files The table shown below includes files essential for setting up WINST.INF. If, for example, the application program uses the OBR library, make the following settings for WINST.INF: UpdateDrivers=yes and UseOBR=yes. Then place OBRLIB.DLL in the same directory as WINST.EXE/WINST.INF.
Page 289
MD G: WINDOWS COPY E: WINDOWS LOCAL G: If the IrDA interface is used to load COMM.DRV with the following procedure. COPY E: WINDOWS COMM.DRV G: COMM.DRV must be stored in the same directory as WINST.EXE. Therefore, in the above example it is loaded onto the root directory.
Page 290
Example of execution on the IT-2000 Directly set up the environment by executing WINST.EXE on the IT-2000. If WINST.EXE and the other essential files are stored in the PC card, the card can be used for installation. Prepare the objective installation files, including WINST.EXE and WINST.INF, in the ATA card.
APPENDIX A: TFORMAT.EXE In this chapter, TFORMAT.EXE, the formatter for F-ROM drive (D:) of IT-2000, is explained. The TFORMAT.EXE is necessary to format the drive (D:). It is resided in the basic drive (C:). The syntax of the TFORMAT command is; TFORMAT [drive-letter] [/LABEL:label] [/SPARE:n]...
APPENDIX B: PC Card Driver In this chapter, each PC card driver which is called by CONFIG.SYS or by AUTOEXEC.BAT is explained. These PC card drivers and INI file are stored in the directory, C: basic drive (C: ). SystemSoft’s CardWizard PC card solution provides OEMs with a complete software solution for integrating PCMCIA controllers and slots into their computers.
Page 293
Card Identification (CARDID.EXE) This client device driver detects the insertion and removal of PC cards, automatically determines the card type upon insertion, and then configures the card and slot/adaptor (if it is an I/O Card). SRAM Card Driver (MTSRAM.EXE) This SystemSoft device driver recognizes and supports SRAM cards. IDE/ATA Support (ATADRV.EXE) ATADRV.EXE is a block device driver that supports ATA Type II Flash Disk or ATA Type III hard disk PC cards.
Page 294
(Flash, SRAM, and ATA). SSVCD.386(SSVCD311.386 for Windows for Workgroups), SSVRDD.386, PCCARD.386 (for IT-2000W only) These drivers permit hot insertion/removal of communications I/O, memory, and removable drive cards within Windows. These files are stored in the directory, E:...
APPENDIX C: Acquisition of Suspend/Resume Event and Power Status Overview Suspend/Resume event is notified by multiplex interrupt (INT2Fh). If any event such as power ON/OFF occurs, consequently the interrupt (INT2Fh) will occur. An application can acquire the event by catching the interrupt. Since the interrupt INT2Fh is multiplex interrupt, application must reset values in all the registers to the previous values after catching the interrupt and then return the control to the old-vector.
Page 296
Acquisition of Power Status Application can acquire current power status by calling APM BIOS through the interrupt INT15h. The following power statuses can be acquired by using the method. AC line status Battery status Battery flag Remaining battery life - percentage of charge Remaining battery life - time unites The functions detailed below will acquire the power statuses stated above.
Page 297
DX = Remaining battery life - time unit bit 15 = 0 : Time unit is in second. 1 : Time unit is in minute bits 14 to 0 = value for second or minutes 0 to 7FFFh : Valid value for second or minute : Unknown If function unsuccessful: Carry = 1...
Need help?
Do you have a question about the IT-2000W and is the answer not in the manual?
Questions and answers