Format
# Format
Control PC sends:
<STX><FLAG><Command><FileName.length><FileName><ItemNameLength><ItemName><FileBlockNumber><FileData><ETX><LRC>
Device responds:
Success: <STX><FLAG><SucceedCode><FileBlockNumber><ETX><LRC>
Error: <STX><FLAG><FailedCode><INFO><ETX><LRC>
| Field | Format | Length | Example | HEX Example | Description |
|---|---|---|---|---|---|
| Command | AN | 3 | "620" | 36 32 30 | Fixed as 620, command for issuing VSN file, 3 bytes |
| FileName.length | AN | 2 | 10 | 31 30 | Length of program name as a string, 2 bytes |
| FileName | AN | As per actual length | Single.vsn | 53 69 6E 67 6C 65 2E 76 73 6E 0A | File name |
| ItemName Length | 2 | 7 | 30 37 | Length of material name, including the extension | |
| ItemName | As per actual length | tt.png | 74 74 2E 70 6E 67 0A | Material name; when publishing text programs, the material name can be omitted, set the length of ItemName to 0 | |
| FileBlockNumber | AN | 5 | 1 | 30 30 30 30 31 | File block number; if the file does not exceed 2048 bytes, the block number is 1. If it exceeds 2048 bytes, it is sent in blocks with block numbers ranging from 1 to 9999. The maximum size of FileData for each block number is 2048. |
| FileData | AN | As per actual length | / | / | File data, maximum 2048 bytes per transmission |