320 x 240 LCD Display Terminal with Touchscreen
SOH ETX Serial Protocol Features

Command Specification In
Out
Print  <SOH>
"P"
{Row 0-239(00h-EFh) in Two Digit ASCII Hex}
{Starting Column 0-319(000h-13Fh) in Three Digit ASCII Hex}
{Font 0-5 in Single Digit ASCII Hex}
   • Small 5 x 8(.0755" Character height)
   • Large 9 x 16(.151" Character height)
   • Micro 4 x 5(Caps Only)(.047" Character height)
   • Giant #'s 30 x 56(#'s Only)(.529" Character height)
{Type 1, 2(1h-2Fh) in Single Digit ASCII Hex}
   • Normal
   • Inverted
   {Justification 0, 1, 2, 3 in Single Digit ASCII Hex }
   • Left
   • Center
   • Right
   • Absolute
{Color 0 or 1 in Single Digit ASCII Hex }
   • 0 = Off
   • 1 = On
{Characters of text to be displayed}
<ETX>

Example: <SOH>P00000101 TEST<ETX> would print “TEST” on row 0, column 0, with a 5x7 font

I
Clear  <SOH>
"C"
{Starting Row 0-239(00h-EFh) in Two Digit ASCII Hex}
{Ending Row 0-239(00h-EFh) in Two Digit ASCII Hex}
{Starting Column 0-319(000h-13Fh) in Two Digit ASCII Hex}
{Ending Column 0-319(000h-13Fh) in Two Digit ASCII Hex}
<ETX>
Example: <SOH>C000000013F <ETX> would clear Row 0 from column 0 to column 319
I
Horizontal Load(Bitmap)  <SOH>
"H"
{Row 0-239(00h-00EFh) in Two Digit ASCII Hex}
{Starting Column 0-319(000h-13Fh) in Three Digit ASCII Hex}
{Length of Data 0-319(000h-13Fh) in Three Digit ASCII Hex}
{Data 0-255(00h-FFh) in Two Digit ASCII Hex}
<ETX>
Example: <SOH>H01000001xxxx.... <ETX> would display bitmap data on the upper row 
I
Line  <SOH>
"L"
{X Start0-319(000h-13Fh) in Three Digit ASCII Hex}
{Y Start 0-239(00h-EFh) in Two Digit ASCII Hex}
{X End 0-319(000h-13Fh) in Three Digit ASCII Hex}
{Y End 0-255(00h-EFh) in Two Digit ASCII Hex}
{Color 0-1(0h or 1h) in Single Digit ASCII Hex}
<ETX>
Example: <SOH>L0000013FEF1 <ETX> would draw a diagonal line on the display
I
Box  <SOH>
"B"
{Upper Left X 0-319(000h-13Fh) in Three Digit ASCII Hex}
{Upper Left Y0-239(00h-EFh) in Two Digit ASCII Hex}
{Bottom Right X0-319(000h-13Fh) in Three Digit ASCII Hex}
{Bottom Right Y0-239(00h-EFh) in Two Digit ASCII Hex}
{Color0-1(0h or 1h) in Single Digit ASCII Hex}
<ETX>
Example: <SOH>B0000013FEF1<ETX> would draw a box around the display
I
Pixel  <SOH>
"X"
{0-319(000h-13Fh) in Three Digit ASCII Hex}
{Y 0-239(00h-EFh) in Two Digit ASCII Hex}
{Color0-1 in Single Digit ASCII Hex}
<ETX>
Example: <SOH>X0A0781<ETX> would draw a circle in the middle of the display
I
Circle  <SOH>
"l"
{0-319(000h-13Fh) in Three Digit ASCII Hex}
{Y0-239(00h-EFh) in Two Digit ASCII Hex}
{Radius0-319(000h-13Fh) in Three Digit ASCII Hex}
{Color 0-1(0h or 1h) in Single Digit ASCII Hex}
<ETX>
Example: <SOH>X0A0781<ETX> would draw a circle in the middle of the display
I
Tone  <SOH>
"T"
{Frequency 0-4095Hz (00-FFF) in Three Digit ASCII Hex}
{Duration 0-255 Seconds/50 (00-FF) in Two Digit ASCII Hex}
<ETX>
Example: <SOH>T01A32 <ETX> would play a tone of 26Hz, for 50 Fiftieths(1 Second)
I
Keystroke  <SOH>
"K"
{Two Digit ASCII Hex keycode}
<ETX>
Example: <SOH>K30<ETX> would be sent when key zero is pressed
O
Touchscreen  <SOH>
"t"
X touch location 0-319(0000h-013Fh) in Four Digit ASCII Hex
Y touch location 0-239(0000h-00EFh) in Four Digit ASCII Hex
{Transmitted by Display when touchscreen was touched}
<ETX>
Example: <SOH>t00A00078<ETX> would be sent when touch screen is pressed in middle of screen
O
Reset  <SOH>
"R"
{Transmitted on Display power up, to let host know display was reset}
<ETX>
Example: <SOH>R<ETX> would be sent when key zero is pressed
O
When a displays address is set to greater than zero, commands to and from the display require/have a two digit ascii hex address between the <SOH> and the command letter.  If a message is sent to address zero, it is considered a broadcast, and displays on all displays.
Return to Top


Home

Ackerman Computer Sciences
6233 East Sawgrass Road
Sarasota, Florida 34240-8922
Phone (941)377-5775 -- Fax (941)378-4226

Copyright© 1992 - 2008 ACS, Sarasota, FL. All rights reserved. Windows TM is a trademark of the Microsoft Corporation. IBM PC, XT, AT TM are trademarks of the International Business Machines Corporation. All other brand names or product names are or may be the trademarks or registered trademarks of their respective companies

Last Updated 8/04/08