beautypg.com

Appendix d – interactive touch pad protocol, Appendix d, Interactive touch pad protocol – TEKVOX TekTouchPad User Manual

Page 32

background image

32

Appendix D

– Interactive Touch Pad Protocol

General Commands

Description

~~V

Gives the Version of the firmware, returns: V s.s,h.h where s.s

is the firmware version and h.h is the hardware version.

~~Gt

Get Data command where t = type of data

Values for t:

C

– Get configuration data

B

– Get bitmap data

F

– Get font data

S

– Get logo data

Transfer format:

LSB, Data ….., EOT>

Host responds with ACK when ready for next block until data received or time
out. The current time out value is 15 seconds. Block size is 512 bytes of data. is
used for transferring raw data not intended to be interpreted as SOH or EOT.

SOH = 0x01, EOT = 0x04, DLE = 0x10, ACK = 0x06, NAK = 0x15

~~R

Causes unit to reset

~~?

Ping unit, returns “OK

~~0

– 9600, 1 – 19200, 2 – 38400, 3 – 56800, 4 – 115200.

~~S

Report self test results

~~W Wake unit if in sleep mode

Button Commands

~~BPpb

Causes button pb to be pressed where p = page number, b = button
number

~~BRpb

Causes button pb to be released where p = page number, b = button
number

~~BSpb

Causes the state of button pb to be returned, p = 'A' returns all buttons