
30
Once a file is confirmed to fit within the display, the upload will begin. A protocol is used here to ensure
each byte is uploaded successfully. After each byte is sent, the module will echo it back to the host. It
should then be checked against the value originally sent before a confirmation byte of 1 is returned. If
the transmitted and echoed values do not match the upload should be aborted by sending a value of 8
instead. The upload will continue in this manner as indicated by the examples below which utilize
familiar font and bitmap files.
Table 26: Font Upload Protocol
Host Display
Comments
254
Command Prefix
36
Upload Font File Command
1
Reference ID LSB
0
Reference ID MSB
31
Font File Size LSB
0
Font File Size
0
Font File Size
0
Font File MSB
1
Acknowledge Size
5
First Font Data Byte
5
Echo Data Byte
1
Acknowledge Data Byte
7
Second Font Data Byte
...
...
...
96
Last Font Data Byte
96
Echo Data Byte
1
Acknowledge Data Byte
Table 27: Bitmap Upload Protocol
Host Display
Comments
254
Command Prefix
94
Upload Bitmap File Command
1
Reference ID LSB
0
Reference ID MSB
5
Bitmap File Size LSB
0
Bitmap File Size
0
Bitmap File Size
0
Bitmap File MSB
1
Acknowledge Size
5
First Bitmap Data Byte
5
Echo Data Byte
1
Acknowledge Data Byte
4
Second Bitmap Data Byte
...
...
...
224
Last Bitmap Data Byte
224
Echo Data Byte
1
Acknowledge Data Byte
It should be noted that the display has a timeout setting of 2.1 seconds before it resets to prevent it
from hanging during the upload process. Upon reset, the values 254 and 212 will be returned to
indicate an error or lengthy delay has occurred in the upload process. If everything goes smoothly, the
protocol will end with the host transmitting a final confirmation byte and the font will be stored in the
display ready for any application.
6.10
Data Security
10.1
Set
Remember
Dec
Hex
ASCII
254 147
FE 93
■
ô
Mode
Mode
Mode
v5.8
Allows changes to specific settings to be saved to the display memory. Writing to non-volatile memory can be slow
and each change consumes 1 write of at least 100,000 available. The Command Summary outlines which
commands are saved always, never, and when this command is on only. Remember is off by default.
Mode
Byte
1 for on or 0 for off.