Download Three Modem Control Methods:

Transcript
The 6 keys are Up, Down, Left, Right which are obvious, Enter being the green check
mark in the center and Exit being the red X button. The Keypad on units with it integral
is also used for Power On via the Enter key and Power Off via the X key as desired.
The type of keyboard activity events returned are:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
KEY_UP_PRESS 1
KEY_DOWN_PRESS 2
KEY_LEFT_PRESS 3
KEY_RIGHT_PRESS 4
KEY_ENTER_PRESS 5
KEY_EXIT_PRESS 6
KEY_UP_RELEASE 7
KEY_DOWN_RELEASE 8
KEY_LEFT_RELEASE 9
KEY_RIGHT_RELEASE 10
KEY_ENTER_RELEASE 11
KEY_EXIT_RELEASE 12
As such in addition to normal use additional functionality can be achieved by monitoring
the duration of time between a key press and key release, such as the X key being pressed
longer than x to validate that Power Off is desired as the result.
The 4 bi-color status LED's of the 4 line displays will get plenty of use as well in
providing status on states and events taking place in a multi-functional use of each LED
based on what operations are being performed and use of steady state or changing state
and color of the given LED.
The 4x20 LCD display has great potential for data entry and editing with the data being
entered for sending also being displayed on the LCD panel and no keyboard required in a
pinch but supported for use with the LCD panel, which I really like the idea of providing,
as a full keyboard and the LCD display is an even more powerful combination. However
the 4x20 LCD panel alone is just the thing for a bare bones operation of Data Modem or
ALE in the field where a PC or even a connected video monitor or keyboard to send and
display messages with is undesirable in many poor conditions as we all know such
devices all fail and frequently as well.
There are of course many makes and models of LCD displays, however it is the 2x16 and
4x20 Crystalfontz displays that will be the focus of my development where the 4x20 will
definitely be supported with perhaps 2x16 support provided as well. Support for similar
models from other another manufacturer as an alternate source may be provided at a later