![L3 Systems KeyAT-4 Скачать руководство пользователя страница 6](http://html.mh-extra.com/html/l3-systems/keyat-4/keyat-4_manual_665110006.webp)
KeyAT-4 Keyboard Port Adapter
5/19/2007
4
L3 Systems
Sending Data
The main job of the KeyAT is to transfer data from the RS-232 port and send it through
to the computer's keyboard port. Data can be sent using ASCII, ASCII control codes,
DOS scan codes, keyboard scan codes or ASCII hex. A line can have a maximum
length of 80 characters and should end with an <ENTER> (CR, hex 0D). When using
immediate mode, data and commands are interpreted as received, and buffered up to 80
characters. If you get more than 80 characters ahead of the computer, the additional
characters will be ignored.
In line turn-around mode, the KeyAT sends a colon prompt after the data has been
processed, signaling that it is ready for another command. The example shows the ASCII
characters ‘DIR<ENTER>’ being sent through the KeyAT.
Example:
KeyAT, V4.0x1, [C]L3 Systems, Inc. 2005
:DIR^M<ENTER>
:
Commands
Commands are instructions to the KeyAT to do something other than just pass data
through to the computer. All commands begin with a ~ (tilde, hex 7E) character followed
by a command character and then in some cases some data.
~@ Disable Commands
– All commands are disabled until 10 consecutive tildes
(~~~~~~~~~~) or reset/power cycle.
~~~~~~~~~~
Reset/Enable Commands
– If commands are disabled, sending 10
consecutive tilde (~) characters will enable commands. If commands
are enabled, this will reset the KeyAT (& run power-up string if
loaded).
Data Mode Commands
The four mode commands set the way data is interpreted by the KeyAT. A mode is set
until another mode is given or until a power failure occurs.
~C
Character Mode
- is the default mode of operation. When this mode is set, any
ASCII character except ~ (tilde, hex 7E), ^ (caret, hex 5E), and CR (return, hex
0D) is converted to the scan codes for that character. Each ASCII character will
be sent to the computer with the corresponding “make” and “release” codes.
Allow enough time for the codes to be sent through to the computer.
Control codes may be sent by a combination of a ^ (caret, hex 5E), and the
corresponding letter. For example, a control C (Hex 03) is ^C.
~H
Hex ASCII Mode
- Data is interpreted as hexadecimal encoded ASCII. For
example, to send the computer the character 'A', you would need to send its
hexadecimal ASCII value (Hex 41) as two ASCII digits, 4 and 1.