C_FILESTART#

code: 51

# set
C_FILESTART <file_type> <size> <time> <mode> <checksum> <name>

Description#

Initiates upload of a file to the chassis. This command should be followed by a sequence og C_FILEDATA parameters to provide the file content, and finally a C_FILEFINISH to commit the new file to the chassis.

Actions#

set

Parameters#

  1. file_type: hex4, the file type, should be 1

  2. size: hex4, the number of bytes in the file

  3. time: hex4, the Linux date+time of the file

  4. mode: hex4, the Linux permissions of the file

  5. checksum: hex4, the checksum of the file

  6. name: string, the name and location of the file, as a full path

Example#

# set
input:  C_FILESTART 0x01 0x01 0x01020304 0x444 0xedfe44324 "filename"
output: <OK>