Answer / Feedback

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

<ESC>SEU

Obj-ID, Content

Touch

State of button/switch

<ESC>TQS

Obj-ID, State

Radiogroup active switch

<ESC>TQR

Obj-ID, Group-ID

Keyboard key

<ESC>TQK

Obj-ID, Code

Bargraph- /Instrument value

<ESC>TQI

Obj-ID, Value

Menu entry

<ESC>TQM

Obj-ID, ItemNumber

ComboBox entry

<ESC>TQC

Obj-ID, ItemNumber

SpinBox entry

<ESC>TQB

Obj-ID, ItemNumber

PictureBox entry

<ESC>TQP

Obj-ID, ItemNumber

Variables/Registers

Number of string files loaded

<ESC>VFC

Number

Content from string register (ASCII)

<ESC>VSA

String-ID, Length, Char1, ..., Char n

Content from string register (Unicode)

<ESC>VSU

String-ID, Length, Char1, ..., Char n

Output register value

<ESC>VRG

Register-ID, Type, Value

I/O Port

Number of port blocks

<ESC>HPI

Available

Read port

<ESC>HPR

Port, Number, State 1, State 2, ...

Read port-pin

<ESC>HBR

Portpin, Number, State 1, State 2, ...

Analogue Input

Value of analogue input

<ESC>HAR

Channel, Number, Value 1, Value 2, ...

Master interfaces

RS232 data

<ESC>HRR

Length, Data 1, Data 2, ..., Data n

SPI data

<ESC>HSR

Length, Data 1, Data 2, ..., Data n

I²C data

<ESC>HIR

Length, Data 1, Data 2, ..., Data n

RTC

Time ASCII output

<ESC>WSA

ASCII-String

Time Unicode output

<ESC>WSU

Unicode-String

Time binary output

<ESC>WSB

Hour, Minute, Second, Day, Month, Year, Weekday

File access

Current working directory

<ESC>FDG

Path

All folders and files from directory (binary output)

<ESC>FDR

Directory-/File-name, Size, Attribute, Time, Date, ...

All folders and files from directory (ASCII output)

<ESC>FDA

String

All folders from directory (ASCII output)

<ESC>FDL

Name 1, Name 2, ..., Name n

Folder / file information

<ESC>FFI

Directory-/File-name, Size, Attribute, Time, Date

Data from file

<ESC>FRD

Number, Data 1, Data 2, ..., Data n

System commands

Current project path

<ESC>XPG

Path

Version information

<ESC>XIV

Version string

Display information

<ESC>XID

Width, Height, Color depth, Touch, VideoWidth, VideoHeight

RAM memory information

<ESC>XIR

Total, Free

SD-Card memory information

<ESC>XIS

Total, Free

Hardcopy

<ESC>XHS

Header, Data

Hardcopy from video input

<ESC>XVS

Header, Data



EditBox content

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).



State of button/switch

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)


Radio group active switch

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).


Keyboard key

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.


Bargraph- /Instrument value

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.


Menu entry

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.


ComboBox entry

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.


SpinBox entry

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.


PictureBox entry

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.


Number of string files loaded

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.


Output register value

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


Number of port blocks

ESC

H

P

I

Available


$1B

$48

$50

$49

16-Bit value

All available Addresses of the connected port blocks are output. Internally there is a block with the address 0, so that $01 is returned without external hardware.


read port

ESC

H

P

R

Port

Number

State 1

State 2

...


$1B

$48

$50

$52

8-Bit value

8-Bit value

8-Bit value

8-Bit value

The status (State 1) of the port is output. If the Number is> 1, the states following the port module are sent (State 2, State n).


Read port-pin

ESC

H

B

R

Portpin

Number

State 1

State 2

...


$1B

$48

$42

$52

8-Bit value

8-Bit value

8-Bit value

8-Bit value

The state (State 1) of the port pin is output. If the Number is> 1, the states following the port module are sent (State 2, State n).


Value of analogue input

ESC

H

A

R

Channel

Number

Value 1

Value 2

...


$1B

$48

$41

$52

8-Bit value

8-Bit value

16-Bit value

16-Bit value

The value (Value 1) of the analog channel is output. If the Number is> 1, the measured values following the channel are sent (Value 2).


RS232 data

ESC

H

R

R

Length

Data 1

Data 2

...

Data n

...


$1B

$48

$52

$52

32-Bit value

8-Bit value

8-Bit value

8-Bit value

8-Bit value

The data (Data 1, Data 2, ..., Data n) that were received via the master RS232 interface are output. Length indicates how much data is sent.


SPI data

ESC

H

S

R

Length

Data 1

Data 2

...

Data n

...


$1B

$48

$53

$52

32-Bit value

8-Bit value

8-Bit value

8-Bit value

8-Bit value

The data (Data 1, Data 2, ..., Data n) that were received via the master SPI interface are output. Length indicates how much data is sent.


I²C data

ESC

H

I

R

Length

Data 1

Data 2

...

Data n

...


$1B

$48

$49

$52

32-Bit value

8-Bit value

8-Bit value

8-Bit value

8-Bit value

The data (Data 1, Data 2, ..., Data n) that were received via the master I²C interface are output. Length indicates how much data is sent.


Time ASCII output

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.


Time Unicode output

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.


Time binary output

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


Current working directory

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.


Folder/File information

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]


Data from file

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.


Current project path

ESC

X

P

G

Path

...


$1B

$58

$50

$47

'String' completed with $00

The current project path is output.


Version information

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")


Display information

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


RAM memory information

ESC

X

I

R

Total

Free

...


$1B

$58

$49

$52

32-Bit value

32-Bit value

RAM memory information is output.


SD-Card memory information

ESC

X

I

S

Total

Free

...


$1B

$58

$49

$53

32-Bit value

32-Bit value

SD-Card storage information is output.


Hardcopy

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.


Hardcopy from video input

ESC

X

V

S

Header

Data

...


$1B

$58

$56

$53

...

...

A hard copy of the video input is output. Header und Daten richten sich nach dem ausgewählten Format.