Answer / Feedback (proprietary interface Short/Small Protocol only)
The module places information in its send buffer after requests or touch events. Below the individual responses from the send buffer are explained.
The responses are binary encoded unless otherwise stated:
<ESC> = 0x1B, the size (number of bits) of each parameter are given in the explanation of each response.
The module works with little-endian (Intel-format), that means the least significant byte is transferred first.
EditBox
EditBox content |
Obj-ID, Content |
Touch
State of button/switch |
Obj-ID, State |
|
Radiogroup active switch |
Obj-ID, Group-ID |
|
Keyboard key |
Obj-ID, Code |
|
Bargraph- /Instrument value |
Obj-ID, Value |
|
Menu entry |
Obj-ID, ItemNumber |
|
ComboBox entry |
Obj-ID, ItemNumber |
|
SpinBox entry |
Obj-ID, ItemNumber |
|
PictureBox entry |
Obj-ID, ItemNumber |
Variables/Registers
Number of string files loaded |
Number |
|
Content from string register (ASCII) |
String-ID, Length, Char1, ..., Char n |
|
Content from string register (Unicode) |
String-ID, Length, Char1, ..., Char n |
|
Output register value |
Register-ID, Type, Value |
RTC
Time ASCII output |
ASCII-String |
|
Time Unicode output |
Unicode-String |
|
Time binary output |
Hour, Minute, Second, Day, Month, Year, Weekday |
File access
Current working directory |
Path |
|
All folders and files from directory (binary output) |
Directory-/File-name, Size, Attribute, Time, Date, ... |
|
All folders and files from directory (ASCII output) |
String |
|
All folders from directory (ASCII output) |
Name 1, Name 2, ..., Name n |
|
Folder / file information |
Directory-/File-name, Size, Attribute, Time, Date |
|
Data from file |
Number, Data 1, Data 2, ..., Data n |
System commands
Current project path |
Path |
|
Version information |
Version string |
|
Display information |
Width, Height, Color depth, Touch, VideoWidth, VideoHeight |
|
RAM memory information |
Total, Free |
|
SD-Card memory information |
Total, Free |
|
Hardcopy |
Header, Data |
ESC |
S |
E |
U |
Obj-ID |
Content |
... |
|
$1B |
$53 |
$45 |
$55 |
16-Bit value |
'String' completed with $00 |
The content of the EditBox (16 bits per character) is transferred. The string ends with a $ 00. The feedback is triggered by keyboard code 13 ($0D).
ESC |
T |
Q |
S |
Obj-ID |
State |
... |
|
$1B |
$54 |
$51 |
$53 |
16-Bit value |
16-Bit value |
The state of a button / switch (Obj-ID) is transferred. Which events (down, up, drag) lead to the sending of the feedback is set with the #TCR command. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
State |
|
1 |
Up (not pressed) |
2 |
Down (pressed) |
ESC |
T |
Q |
R |
Obj-ID |
Group-ID |
... |
|
$1B |
$54 |
$51 |
$52 |
16-Bit value |
16-Bit value |
The active switch (Obj-ID) of a radio group (Group-ID) is transmitted with every change. If no answers are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID1,...,Obj-IDn (all object IDs of the Radiogroup elements).
ESC |
T |
Q |
K |
Obj-ID |
Code |
... |
|
$1B |
$54 |
$51 |
$4B |
16-Bit value |
16-Bit value |
The last key pressed (Code) on the keyboard (Obj-ID) is output. The prerequisite is that the keyboard is not connected to an EditBox. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
ESC |
T |
Q |
I |
Obj-ID |
Value |
... |
|
$1B |
$54 |
$51 |
$49 |
16-Bit value |
16-Bit value |
The new value of the BarGraph / instrument (Obj-ID) is output. Which events (down, up, drag) lead to the sending of the feedback is set with the #TCR command. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
ESC |
T |
Q |
M |
Obj-ID |
ItemNumber |
... |
|
$1B |
$54 |
$51 |
$4D |
16-Bit value |
32-Bit value |
The selected menu item (ItemNumber) is output. Which events (down, up, drag) lead to the sending of the feedback is set with the #TCR command. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
ESC |
T |
Q |
C |
Obj-ID |
ItemNumber |
... |
|
$1B |
$54 |
$51 |
$43 |
16-Bit value |
16-Bit value |
The selected SpinBox entry (ItemNumber) is output. Which events (down, up, drag) lead to the sending of the feedback is set with the #TCR command. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
ESC |
T |
Q |
B |
Obj-ID |
ItemNumber |
... |
|
$1B |
$54 |
$51 |
$42 |
16-Bit value |
32-Bit value |
The selected SpinBox entry (ItemNumber) is output. Which events (down, up, drag) lead to the sending of the feedback is set with the #TCR command. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
ESC |
T |
Q |
P |
Obj-ID |
ItemNumber |
... |
|
$1B |
$54 |
$51 |
$50 |
16-Bit value |
16-Bit value |
The selected PictureBox entry (ItemNumber) is output. Which events (down, up, drag) lead to the sending of the feedback is set with the #TCR command. If no responses are to be transmitted via the serial interface, this is done with #TCR 0,0,Obj-ID.
ESC |
V |
F |
C |
Number |
... |
|
$1B |
$56 |
$53 |
$43 |
16-Bit value |
The number of strings used from the string files is output.
Content from string register (ASCII)
ESC |
V |
S |
A |
String-ID |
Length |
Char 1 |
Char 2 |
... |
Char n |
... |
|
$1B |
$56 |
$53 |
$41 |
16-Bit value |
16-Bit value |
8-Bit value |
8-Bit value |
8-Bit value |
8-Bit value |
The content (8 bits per character) of the string register (String-ID) and the Length are output. The string does not end with $00.
Content from string register (Unicode)
ESC |
V |
S |
U |
String-ID |
Length |
Char 1 |
Char 2 |
... |
Char n |
... |
$1B |
$56 |
$53 |
$55 |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
The content (16 bits per character) of the string register (String-ID) and the Length are output. The string does not end with $00.
ESC |
V |
R |
G |
Register-ID |
Type |
Value |
... |
|
$1B |
$56 |
$52 |
$47 |
16-Bit value |
16-Bit value |
32-Bit value |
The contents of the register (Register-ID) and the Type are output:
Type |
|
'I' |
Integer |
'F' |
Float |
ESC |
W |
S |
A |
ASCII-String |
Ending |
... |
|
$1B |
$57 |
$53 |
$41 |
$00 |
The requested time is transmitted in the set format as ASCII. The string ends with a $00.
ESC |
W |
S |
U |
Unicode-String |
Ending |
... |
|
$1B |
$57 |
$53 |
$55 |
$00 |
The requested time is transmitted in the set format as Unicode. The string ends with a $00.
ESC |
W |
S |
B |
Hour |
Minute |
Second |
Day |
Month |
Year |
Weekday |
... |
$1B |
$57 |
$53 |
$42 |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
16-Bit value |
The requested time is transmitted in binary format in the set format. Day of the week = 0 means Sunday
ESC |
F |
D |
G |
Path |
... |
|
$1B |
$46 |
$44 |
$47 |
'String' completed with $00 |
The current working directory is output.
All folders and files from directory (binary output)
ESC |
F |
D |
R |
Verzeichnis-/ Dateiname |
Size |
Attribute |
Time |
Date |
... |
Ending |
$1B |
$46 |
$44 |
$52 |
'String' completed with $00 |
32-Bit value |
8-Bit value |
16-Bit value |
16-Bit value |
$00 |
All folders and files in the current working directory are output.
Attribute |
|
$01 |
Read only |
$02 |
Hidden |
$04 |
System |
$20 |
Archive |
The time and date give the time stamp of the last change to the file.
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Time |
Hour [0...23] |
Minute [0...59] |
Second/2 [0...29] |
|||||||||||||
Date |
Year (from 1.1.1980 0:0:0 Hour) [0...127] |
Month [1...12] |
Day [1...31] |
All folders and files from directory (ASCII output)
ESC |
F |
D |
A |
String |
Ending |
... |
$1B |
$46 |
$44 |
$41 |
Size, Attribute, Time, Date, Name |
CRLF |
All folders and files in the current working directory are output as ASCII strings.
All folders from directory (ASCII output)
ESC |
F |
D |
L |
Directory-name |
Ending |
||
$1B |
$46 |
$44 |
$4C |
'String' completed with $00 |
$00 |
All folder names in the current working directory are output as ASCII strings.
ESC |
F |
F |
I |
Directory-/ File-name |
Size |
Attribute |
Time |
Date |
... |
|
$1B |
$46 |
$46 |
$49 |
'String' completed with $00 |
32-Bit value |
8-Bit value |
16-Bit value |
16-Bit value |
Folder / file information is output.
Attribute |
|
$01 |
Read only |
$02 |
Hidden |
$04 |
System |
$20 |
Archive |
The time and date give the time stamp of the last change to the file.
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Time |
Hour [0...23] |
Minute [0...59] |
Second/2 [0...29] |
|||||||||||||
Date |
Year (ab 1.1.1980 0:0:0 Uhr) [0...127] |
Month [1...12] |
Day [1...31] |
ESC |
F |
R |
D |
Number |
Data 1 |
Data 2 |
Data n |
... |
||
$1B |
$46 |
$52 |
$44 |
32-Bit value |
8-Bit value |
8-Bit value |
8-Bit value |
The data from the file are output. Number indicates the length of the file.
ESC |
X |
P |
G |
Path |
... |
|
$1B |
$58 |
$50 |
$47 |
'String' completed with $00 |
The current project path is output.
ESC |
X |
I |
V |
Version string |
... |
|
$1B |
$58 |
$49 |
$56 |
'String' completed with $00 |
The version information of the display is output (e.g. "EA uniTFT V1.4 with capacitive touch")
ESC |
X |
I |
D |
Width |
Height |
Color depth |
Touch |
VideoWidth |
VideoHeight |
... |
|
$1B |
$58 |
$49 |
$44 |
16-Bit value |
16-Bit value |
8-Bit value |
8-Bit value |
16-Bit value |
16-Bit value |
Display information is output.
Touch |
|
$00 |
No touch |
$03 |
Resistive touch |
$07 |
Capacitive touch |
$0F |
Simulator |
ESC |
X |
I |
R |
Total |
Free |
... |
|
$1B |
$58 |
$49 |
$52 |
32-Bit value |
32-Bit value |
RAM memory information is output.
ESC |
X |
I |
S |
Total |
Free |
... |
|
$1B |
$58 |
$49 |
$53 |
32-Bit value |
32-Bit value |
SD-Card storage information is output.
ESC |
X |
H |
S |
Header |
Data |
... |
|
$1B |
$58 |
$48 |
$53 |
... |
... |
A hard copy of the display content is output. The Header and Data depend on the selected format.