#errormsg=为默认检测错误信息的标志 
#token
aatoken=$
BP_ERR_ACK_FAIL$Reply msg length error!
BP_ERR_CHK_SUM_INVALID$CRC checksum invalid!
BP_ERR_COM_OPEN$Com open error!
BP_ERR_COM_RECV$Com receive error!
BP_ERR_COM_SEND$com send error!
BP_ERR_COM_TIME_OUT$Receive data timeout!
BP_ERR_DATA_OVER_BUFFER$Data over Buffer size!
BP_ERR_DL_BOOT_DATA$download boot data error!
BP_ERR_PARAM_INVALID$parameter invalid!
BP_ERR_RECV_BUF_EMPTY$Receive buffer empty error!
BP_ERR_REPLY_LENGTH$Reply msg length error!
BP_ERR_SET_BAUD_RATE$Set baud rate error!
BP_ERR_SET_READ_TIMEOUT$Set read timeout error!
CMD_ERR_APP_NUM_UNKNOWN$App num unknown!
CMD_ERR_BOOT_TOO_OLD$Boot version too old!
CMD_ERR_BOOT_LEN_INVALID$length of the boot file is invalid!
CMD_ERR_CMD_LINE_TOO_LONG$The CMD line is tool long!
CMD_ERR_COMPRESS_DATA$Compress data failed!
CMD_ERR_ERASEFATERROR$Erase fat failed!
CMD_ERR_ERASEFLASHERROR$Erase flash failed!
CMD_ERR_FIND_PARAM_POS$Find param invalid!
CMD_ERR_GET_ACT_NAME$Act name can not find!
CMD_ERR_HANDSHAKE_NONE$Error occur before handshake!
CMD_ERR_HANDSHAKE_RECV$Handshake recev failed!
CMD_ERR_HANDSHAKE_SEND$Handshake send failed!
CMD_ERR_INVALID_DATA$Invalid data received!
CMD_ERR_LDERR_APPLCIATIONNOTEXIST$POS:app not exist!
CMD_ERR_LDERR_APP_TOO_BIG$POS:app file is too Big!
CMD_ERR_LDERR_CLOCKHWERR$POS:clock hardware error!
CMD_ERR_LDERR_DECOMPRESS_ERR$POS:Decompress error!
CMD_ERR_LDERR_FONT_UNMATCH$POS:The Fontlib File is not matched!
CMD_ERR_LDERR_GENERIC$POS: Fail!
CMD_ERR_LDERR_HAVEMOREDATA$POS:Still have more data to return,can not return all data one time!
CMD_ERR_LDERR_INVALIDSIGNATURE$POS:invalid signature!
CMD_ERR_LDERR_INVALIDTIME$POS:invalid time!
CMD_ERR_LDERR_NOSUFFICIENTSPACE$POS:No sufficient space!
CMD_ERR_LDERR_REPEAT_APPNAME$POS:APP Name same conflict!
CMD_ERR_LDERR_SIGAPPERR$POS:signature name not same error!
CMD_ERR_LDERR_SIGTYPEERR$POS:signature type not same error!
CMD_ERR_LDERR_TOOMANYAPPLICATIONS$POS:too many apps,no more can download!
CMD_ERR_LDERR_TOOMANYFILES$POS:too many files,can not download!
CMD_ERR_LDERR_UNKNOWNAPPTYPE$POS:Unknow app type!
CMD_ERR_LDERR_UNSUPPORTEDBAUDRATE$POS: unsuport the baud rate!
CMD_ERR_LDERR_UNSUPPORTEDCMD$POS:Unsupported command!
CMD_ERR_LDERR_WRITEFILEFAIL$POS:Write file failed!
CMD_ERR_LD_OK$POS return:Success!
CMD_ERR_MAC_PARAM_ILLEGAL$MAC param illegal!
CMD_ERR_MPA_NOT_DYN_PARAM$Dynamic param is not like fileXname!
CMD_ERR_OLD_VERSION_ERROR$Version too old!
CMD_ERR_OPEN_FILE$Open file error!
CMD_ERR_PARAM_FILE_TYPE$File type error!
CMD_ERR_PARAM_INVALID$Param is invalid!
CMD_ERR_PARAM_PAIR_UNKNOWN$Param pair unknow!
CMD_ERR_PRE_ACTION$Error occur before action!
CMD_ERR_PROGRESS_FAIL$The Progress data replyed is invalid!
CMD_ERR_QUERY_FAILED$query failed!
CMD_ERR_REPLY_CODE$Reply message code invalid!
CMD_ERR_REPLY_SIGN_FAIL$Signature checked failed!
CMD_ERR_RESET_BAUD_RATE$Set baud rate failed,pls check baud rate!
CMD_ERR_SN_NUM_INVALID$Invalid SN number!
CMD_ERR_SO_SYSTEM_DLETEFORBID$The So is the key system file,delete is forbiden!
CMD_ERR_UNKNOWN_BP_CODE$Unknown oprate code!
CMD_ERR_WRITEFLASHERROR$Write flash failed!
CMD_ERR_WRITE_EX_SN_FAIL$Setting EXSN failed !
CMD_ERR_WRITE_MAC_FAIL$Setting Mac failed!
CMD_ERR_WRITE_SN_FAIL$Setting SN failed!
CMD_ERR_WRT_FLASH_REPLY$Reply message code of writing flash invalid!
CMD_HANDSHAKE_SUCCESS$Handshake SUCCESS!
ERROR_MESSAGE_UNKNOWN$ERROR UNKONWN!
ERROR_SUCCESS$SUCCESS!
ERR_XMODEM_OPEN_FILE_FAILED$Open file failed!
ERR_XMODEM_PATH_INVALID$illegle path!
ERR_XMODEM_SEND_FILE_FAILED$Send file failed!
MP_ERR_CHK_SUM_INVALID$CRC checksum invalid!
MP_ERR_COM_OPEN$COM open failed!
MP_ERR_COM_RECV$COM receive error!
MP_ERR_COM_SEND$Com send error!
MP_ERR_DL_BOOT_DATA$download boot data failed!
MP_ERR_ORDER_NUMBER$Msg order is invalid!
MP_ERR_PARAM_INVALID$Invalid parameter!
MP_ERR_RECV_BUF_EMPTY$Receive buffer empty error!
MP_ERR_REPLY_LENGTH$Reply msg length error!
MP_ERR_SET_BAUD_RATE$Set baud rate error!
MP_ERR_SET_READ_TIMEOUT$Set read timeout error!
MP_ERR_UNKNOWN_KEY_TYPE$Unknown key type!
SC51_ERR_ERASE_FLASH_FAILED$Erase flash failed!
SC51_ERR_RD_ACK_FAILED$Read ack failed!
SC51_ERR_REQ_AUTH_KEY_FAILED$Request authentication key failed!
SC51_ERR_SEND_DONE_FAILED$Send done state failed!
SC51_ERR_VAL_AUTH_DATA_FAILED$Authentication data failed!
SC51_ERR_WRITE_SN_FAILED$Write sn failed!
SP30_ERR_BOOT_SEND_DONE_FAILED$boot write data failed!
SP30_ERR_ERASE_FLASH_FAILED$Erase flash failed!
SP30_ERR_GET_POSTYPE_FAILED$Get postype failed!
SP30_ERR_RD_ACK_FAILED$Read ack packet failed!
SP30_ERR_SEND_DATA_FAILED$Data send failed!
SP30_ERR_SEND_DONE_FAILED$Send done state failed!
SP30_ERR_WR_ACK_FAILED$Write ack packet failed!
errormsg=$Error: