102,6 → 102,7 |
u8 UART1_Request_Echo = FALSE; |
u8 UART1_Request_ParameterId = 0; |
u8 UART1_Request_Parameter = FALSE; |
u8 UART1_Request_SystemTime = FALSE; |
u8 UART1_DisplayKeys = 0; |
u8 UART1_DisplayLine = 0; |
u8 UART1_ConfirmFrame = 0; |
405,9 → 406,11 |
case NC_ADDRESS: // own Slave Address |
switch(SerialMsg.CmdID) |
{ |
|
case 't': // request for the GPS time |
UART1_Request_SystemTime = TRUE; |
break; |
|
case 'f': // ftp command |
|
UART1_Request_FTP = SerialMsg.pData[0]; |
//if (UART1_Request_FTP == FTP_CMD_SET_CWD || UART1_Request_FTP == FTP_CMD_GET_FILE) |
memcpy(&FTP_data, &SerialMsg.pData[1], sizeof(FTP_data)); // copy ftp parameter |
827,6 → 830,11 |
MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'V', NC_ADDRESS,1, (u8 *)&UART_VersionInfo, sizeof(UART_VersionInfo)); |
UART1_Request_VersionInfo = FALSE; |
} |
else if(UART1_Request_SystemTime && (UART1_tx_buffer.Locked == FALSE)) |
{ |
MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'T', NC_ADDRESS,1, (u8 *)&SystemTime, sizeof(SystemTime)); |
UART1_Request_SystemTime = FALSE; |
} |
else if(UART1_Request_ErrorMessage && (UART1_tx_buffer.Locked == FALSE)) |
{ |
MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'E', NC_ADDRESS, 1, (u8 *)&ErrorMSG, sizeof(ErrorMSG)); |