Matrix Orbital GLK19264A-7T-1U User Manual
Page 53
48
Command Summary
continues with a block count and continues in this way until the end of file is reached. Files may be
padded with 255 values to reach an even multiple of 128 bytes in size, but the download command will
always report true size. Once the end of the upload file is reached, the host should transmit a single end
of transmission byte. If the end of file is expected, the display will ACK one last time.
Table 41: XModem File Upload Protocol
Host
Display
Comments
254
Command Prefix
220
XModem Upload Command
133
Command Byte One
6
Command Byte Two
48
Command Byte Three
1
File ID LSB
0
File ID MSB
1
File Type
0
Size LSB
0
Size
1
Size
0
Size MSB
67
C (If file fits)
1
Start of Header
128
Block Count
127
Inverted Block Count (255-Count)
<128 B>
128 Byte Data Block
30
*
CRC MSB
71
*
CRC LSB
6
ACK (NAK if counts don’t match)
…
…
…
4
End of Transmission
6
ACK (NAK if EOT is not expected)
Table 42: XModem File Download Protocol
Host Display
Comments
254
Command Prefix
221
XModem Download Command
133
Command Byte One
6
Command Byte Two
48
Command Byte Three
1
File ID LSB
0
File ID MSB
1
File Type
0
Size LSB (NAK if not found)
0
Size
1
Size
0
Size MSB
67
C
1
Start of Header
128
Block Count
127
Inverted Block Count (255-Count)
<128 B>
128 Byte Data Block
30
*
CRC MSB
71
*
CRC LSB
6
ACK (NAK if counts don’t match)
…
…
…
4
End of Transmission
6
ACK (NAK if EOT is not expected)
Table 43: XModem Message Bytes
Value
Action
Description
1
Start of Header
Begin upload transfer
4
End of Transmission
End completed upload transfer
6
Acknowledged
Transfer successful, upload continues
21
Not Acknowledged
Transfer failed, upload aborted
67
C
Confirmation that file will fit
*Note:
CRC bytes are calculated using the XMODEM CRC-CCITT algorithm available at:
http://www.matrixorbital.ca/appnotes/XModem/ymodem.txt
.