BINARY FILE UPLOAD AND DOWNLOAD COMMANDS
PRODUCT REFERENCE GUIDE 56
BINARY FILE UPLOAD AND DOWNLOAD COMMANDS
These commands allow to upload and download binary files from the device and check
the status of the procedures. They are divided into two types of commands:
1. Upload and download.
2. Procedure control.
More generally, the upload and download of the file are carried out through an
exchange area, of variable size, which can contain only one file. Each time a command
to create a binary file or upload a binary file is executed, the exchange area is overwrit
-
ten.
Upload command format
The upload command remains encoded in ASCII.
• Command → encoding containing the command.
• Separator → standard protocol separator (see “
Delimiters and separator" on page
).
• Binary File → Base64 encoded binary file.
• Delimitatore → standard protocol delimiter (see “
Delimiters and separator" on page
).
Upload reply format
The reply is in ASCII format.
• Command → command to which the reply is related.
• Separator → standard protocol separator (see “
Delimiters and separator" on page
).
• Return Code → it contains the result of the command, a code that identifies
whether the command has been accepted or not, and possibly the type of error.
• Delimiter → standard protocol delimiter (see “
Delimiters and separator" on page
).
Download command format
The download command remains encoded in ASCII.
• Command → encoding containing the command.
• Delimiter → standard protocol delimiter (see “
Delimiters and separator" on page
).
NOTE: The binary files are encoded by the protocol in Base64 with padding.
Command
;
Binary File
CR LF
Command
;
Return Code
CR LF
Command
CR LF