Back to Program Loader Commands
CMD_PGM_UPLOAD

Command:             CMD_PGM_UPLOAD
Destination:         SD_PGM
Destination Channel: 0

Description

Clients use this command to upload a file (program) to the gryphon to be executed at a later time.


Command Data Format

Block Number Handle Data padding
2 bytes 1 byte 1 to MAXPAYLOAD - 7 bytes 0 - 3 bytes
Block Number
This is a sequence number that should start at zero for the first block of data and increment by one for each subsequent block of data uploaded.
Handle
This is the handle returned by a previous CMD_PGM_DESC command.
Data
The data to be uploaded to the . The length of Data is the Data Length in the Frame Header minus 7. (4 bytes for the Command Header and 3 for the Block Number and Handle.)


Response Data Format

none


Response Return Codes
RESP_OK Execution of the command was successful.
RESP_INVAL_PARAM Either the Block Number or the Handle is not valid.
RESP_UNSUPPORTED This command is not supported on the specified channel.
RESP_UNREG The specified source channel is not registered with the server.
RESP_UNKNOWN_ERR An unknown error occurred.


|Top|