/* BEGIN: To_Be_Deleted_V7R2 */ VOS_UINT32 atQryBootRomVerCnf(VOS_UINT8 ucClientId,VOS_VOID *pMsgBlock) { FTM_RD_BOOTROMVER_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; gstLAtSendData.usBufLen = 0; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_RD_BOOTROMVER_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { CmdErrProc(ucClientId, ERR_MSP_FAILURE, 0, NULL); return AT_OK; } if(pstCnf->ulErrCode != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; } else { gstLAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucLAtSndCodeAddr), (VOS_CHAR *)(pgucLAtSndCodeAddr + gstLAtSendData.usBufLen), "\r\n%s\r\n", pstCnf->szSendStr ); CmdErrProc(ucClientId, pstCnf->ulErrCode, gstLAtSendData.usBufLen, pgucLAtSndCodeAddr); } return AT_OK; }
VOS_UINT32 atQryDLoadVer(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst = AT_OK; VOS_UINT8* pData = NULL; gstAtSendData.usBufLen = 0; pData = VOS_MemAlloc(WUEPS_PID_AT, (DYNAMIC_MEM_PT), UPGRADE_STR_BUF_SIZE); if(NULL == pData) { CmdErrProc(ucClientId, ERR_MSP_MALLOC_FAILUE, 0, NULL); return AT_ERROR; } MSP_MEMSET(pData,0,UPGRADE_STR_BUF_SIZE); ulRst = BSP_DLOAD_GetDloadVer((BSP_CHAR *)pData,UPGRADE_STR_BUF_SIZE); if(ulRst != ERR_MSP_SUCCESS) { VOS_MemFree(WUEPS_PID_AT, pData); CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%s\r", pData ); VOS_MemFree(WUEPS_PID_AT, pData); return AT_OK; }
VOS_UINT32 atSetNVBackupCnf(VOS_UINT8 ucClientId,VOS_VOID *pMsgBlock) { FTM_SET_NVBACKUP_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; gstLAtSendData.usBufLen = 0; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_NVBACKUP_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { CmdErrProc(ucClientId, ERR_MSP_FAILURE, 0, NULL); return AT_OK; } if(pstCnf->ulErrCode != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; } else { g_atNvBackupFlag++; gstLAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucLAtSndCodeAddr, (VOS_CHAR*)pgucLAtSndCodeAddr, "\r\n%d\r\n", pstCnf->ulRetValue ); CmdErrProc(ucClientId, pstCnf->ulErrCode, gstLAtSendData.usBufLen, pgucLAtSndCodeAddr); } return AT_OK; }
VOS_UINT32 atSetNVRstSTTSCnf(VOS_UINT8 ucClientId,VOS_VOID *pMsgBlock) { FTM_SET_NVRSTSTTS_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; gstLAtSendData.usBufLen = 0; /* VOS_BOOL bRet = TRUE; */ pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_NVRSTSTTS_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { CmdErrProc(ucClientId, ERR_MSP_FAILURE, 0, NULL); return AT_OK; } if(pstCnf->ulErrCode != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; } else { gstLAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucLAtSndCodeAddr, (VOS_CHAR*)pgucLAtSndCodeAddr, "\r\n%s\r\n", pstCnf->szNVRst ); CmdErrProc(ucClientId, pstCnf->ulErrCode, gstLAtSendData.usBufLen, pgucLAtSndCodeAddr); } return AT_OK; }
VOS_UINT32 atQryAuthorityIDCnf(VOS_UINT8 ucClientId,VOS_VOID *pMsgBlock) { FTM_RD_AUTHORITYID_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; gstLAtSendData.usBufLen = 0; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_RD_AUTHORITYID_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { CmdErrProc(ucClientId, ERR_MSP_FAILURE, 0, NULL); return AT_OK; } if(pstCnf->ulErrCode != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; } else { gstLAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR*)pgucLAtSndCodeAddr, (VOS_CHAR*)pgucLAtSndCodeAddr, "\r\n%s,%s\r\n", pstCnf->szAuthorityID,pstCnf->szAuthorityType ); CmdErrProc(ucClientId, pstCnf->ulErrCode, gstLAtSendData.usBufLen, pgucLAtSndCodeAddr); } return AT_OK; }
VOS_UINT32 atQryDLoadInfoCnf(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { FTM_RD_DLOADINFO_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; gstLAtSendData.usBufLen = 0; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_RD_DLOADINFO_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { CmdErrProc(ucClientId, ERR_MSP_FAILURE, 0, NULL); return AT_OK; } if(pstCnf->ulErrCode != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; } else { gstLAtSendData.usBufLen = 0; gstLAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucLAtSndCodeAddr), (VOS_CHAR*)(pgucLAtSndCodeAddr + gstLAtSendData.usBufLen), "\r\nswver:%s\r\n", pstCnf->szSendSW ); gstLAtSendData.usBufLen += (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucLAtSndCodeAddr), (VOS_CHAR*)(pgucLAtSndCodeAddr+ gstLAtSendData.usBufLen), "\r\nisover:%s\r\n", pstCnf->szSendISO ); gstLAtSendData.usBufLen += (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucLAtSndCodeAddr), (VOS_CHAR*)(pgucLAtSndCodeAddr+ gstLAtSendData.usBufLen), "\r\nproduct name:%s\r\n", pstCnf->szSendProductID ); gstLAtSendData.usBufLen += (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucLAtSndCodeAddr), (VOS_CHAR*)(pgucLAtSndCodeAddr+ gstLAtSendData.usBufLen), "\r\ndload type:%s\r\n", pstCnf->szSendDloadType ); CmdErrProc(ucClientId, pstCnf->ulErrCode, gstLAtSendData.usBufLen, pgucLAtSndCodeAddr); } return AT_OK; }
VOS_UINT32 atQryAuthorityVer(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst = AT_OK; VOS_UINT32 ulAuthorityVer = 0; VOS_UINT8 ucVer[4] ={0}; VOS_UINT32 i = 0; ulRst = At_GetNvAuthorityVer(&ulAuthorityVer); if(ulRst != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } MSP_MEMCPY(ucVer,&ulAuthorityVer,sizeof(VOS_UINT32)); for(i = 0;i < 4;i++) { ucVer[i] = (ucVer[i] > 9 ? 0 : ucVer[i]) + '0'; /**/ } gstAtSendData.usBufLen = 0; gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%s\r", ucVer ); return AT_OK; }
VOS_UINT32 atSetNVFactoryRestore(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst = AT_OK; /*因为MODEN拨号会下发该命令,所以在moden口不进行NV恢复,直接返回OK*/ if ( AT_MODEM_USER == gastAtClientTab[ucClientId].UserType ) { return AT_OK; } ulRst = NVM_RevertFNV(); if(ulRst != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%d\r", ulRst ); return AT_OK; }
VOS_UINT32 atQryFCHANParaCnfProc(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { FTM_RD_FCHAN_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; VOS_UINT16 usLength = 0; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_RD_FCHAN_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { return ERR_MSP_FAILURE; } usLength += (VOS_UINT16)At_sprintf(AT_CMD_MAX_LEN, (VOS_CHAR *)pgucLAtSndCodeAddr, (VOS_CHAR *)pgucLAtSndCodeAddr + usLength, "^FCHAN:%d,%d,%d,%d", pstCnf->enFchanMode, pstCnf->ucBand, pstCnf->usUlChannel, pstCnf->usDlChannel); CmdErrProc(ucClientId, pstCnf->ulErrCode, usLength, pgucLAtSndCodeAddr); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atSetRadverCnfProc(VOS_VOID *pMsgBlock) { L4A_SET_RADVER_CNF_STRU *pstCnf = NULL; pstCnf = (L4A_SET_RADVER_CNF_STRU *)pMsgBlock; CmdErrProc((VOS_UINT8)(pstCnf->usClientId), pstCnf->ulErrorCode, 0, NULL); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atSetSdloadCnf(VOS_UINT8 ucClientId,VOS_VOID *pMsgBlock) { FTM_SET_SDLOAD_CNF_STRU *pstCnf = NULL; OS_MSG_STRU*pEvent = NULL; gstLAtSendData.usBufLen = 0; /* VOS_BOOL bRet = TRUE; */ pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_SDLOAD_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { CmdErrProc(ucClientId, ERR_MSP_FAILURE, 0, NULL); return AT_OK; } CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; }
VOS_UINT32 atSetFWAVEParaCnfProc(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU* pEvent = NULL; FTM_SET_FWAVE_CNF_STRU *pstCnf = NULL; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_FWAVE_CNF_STRU *)pEvent->ulParam1; CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atSetTbatCnf(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU*pEvent = NULL; FTM_SET_TBAT_CNF_STRU *pstCnf=NULL; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_TBAT_CNF_STRU *)pEvent->ulParam1; HAL_SDMLOG("\n enter into atSetTbatCnf\n"); CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_OK; }
VOS_UINT32 atSetTselrfParaCnfProc(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU* pEvent = NULL; FTM_SET_TSELRF_CNF_STRU* pstCnf = NULL; HAL_SDMLOG("\n enter atSetTselrfParaCnfProc !!!\n"); pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_TSELRF_CNF_STRU *)pEvent->ulParam1; CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atIsmcoexCnfProc(VOS_VOID *pMsgBlock) { L4A_ISMCOEX_CNF_STRU *pstCnf = NULL; pstCnf = (L4A_ISMCOEX_CNF_STRU *)pMsgBlock; if(AT_SUCCESS == pstCnf->ulErrorCode) { VOS_MemCpy(g_astCnfIsmcoex, g_astIsmcoex, L4A_ISMCOEX_BANDWIDTH_NUM * sizeof(ISMCOEX_INFO_STRU)); } CmdErrProc((VOS_UINT8)(pstCnf->usClientId), pstCnf->ulErrorCode, 0, NULL); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atIsmcoexCnfProc(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU* pEvent = NULL; SET_ISMCOEX_CNF_STRU *pstIsmcoex = NULL; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstIsmcoex = (SET_ISMCOEX_CNF_STRU *)pEvent->ulParam1; if(AT_SUCCESS == pstIsmcoex->ulErrCode) { VOS_MemCpy(g_astCnfIsmcoex, g_astIsmcoex, L4A_ISMCOEX_BANDWIDTH_NUM * sizeof(ISMCOEX_INFO_STRU)); } CmdErrProc(ucClientId, pstIsmcoex->ulErrCode, 0, NULL); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atSetFCHANParaCnfProc(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU* pEvent = NULL; FTM_SET_FCHAN_CNF_STRU *pstCnf = NULL; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_SET_FCHAN_CNF_STRU *)pEvent->ulParam1; if(ERR_MSP_SUCCESS == pstCnf->ulErrCode) { (VOS_VOID)AT_SetGlobalFchan((VOS_UINT8)(pstCnf->enFchanMode)); } CmdErrProc(ucClientId, pstCnf->ulErrCode, 0, NULL); return AT_FW_CLIENT_STATUS_READY; }
VOS_UINT32 atSetNVFactoryBack(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst; ulRst = NVM_BackUpFNV(); if(ulRst != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%d\r", ulRst ); return AT_OK; }
/*NV备份命令*/ VOS_UINT32 atSetNVBackup(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst = AT_OK; gstAtSendData.usBufLen = 0; ulRst = NVM_UpgradeBackup(EN_NVM_BACKUP_FILE); if(ulRst != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } g_atNvBackupFlag ++; gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%d\r", ulRst ); return AT_OK; }
VOS_UINT32 atRdTbatCnf(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU*pEvent = NULL; FTM_RD_TBAT_CNF_STRU *pstCnf=NULL; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_RD_TBAT_CNF_STRU *)pEvent->ulParam1; HAL_SDMLOG("\n enter into atRdTbatCnf\n"); HAL_SDMLOG("\n pstCnf->ucType=%d,pstCnf->usValue=%d \n",(VOS_INT)pstCnf->ucType,(VOS_INT)pstCnf->usValue); gstLAtSendData.usBufLen = 0; gstLAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucLAtSndCodeAddr, (VOS_CHAR*)pgucLAtSndCodeAddr, "^TBAT:%d,%d", pstCnf->ucType,pstCnf->usValue ); CmdErrProc(ucClientId, pstCnf->ulErrCode, gstLAtSendData.usBufLen, pgucLAtSndCodeAddr); return AT_OK; }
VOS_UINT32 atQryAuthorityID(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst; VOS_UINT8 pData[NV_ITEM_IMEI_SIZE] = {0}; gstAtSendData.usBufLen = 0; ulRst = At_GetImei((VOS_CHAR *)pData); if(ulRst != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR*)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%s\r", pData ); return AT_OK; }
VOS_UINT32 atQryFRSSIParaCnfProc(VOS_UINT8 ucClientId, VOS_VOID *pMsgBlock) { OS_MSG_STRU* pEvent = NULL; FTM_FRSSI_CNF_STRU *pstCnf = NULL; VOS_UINT16 usLength = 0; pEvent = (OS_MSG_STRU*)(((MsgBlock*)pMsgBlock)->aucValue); pstCnf = (FTM_FRSSI_CNF_STRU *)pEvent->ulParam1; if(NULL == pstCnf) { return ERR_MSP_FAILURE; } usLength = 0; usLength += (VOS_UINT16)At_sprintf(AT_CMD_MAX_LEN,(VOS_CHAR *)pgucLAtSndCodeAddr,(VOS_CHAR *)pgucLAtSndCodeAddr + usLength, "^FRSSI:%d", pstCnf->lValue); CmdErrProc(ucClientId, pstCnf->ulErrCode,usLength, pgucLAtSndCodeAddr); return AT_FW_CLIENT_STATUS_READY; }
//自动恢复状态查询 VOS_UINT32 atSetNVRstSTTS(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst = AT_OK; gstAtSendData.usBufLen = 0; ulRst = At_GetNvRevertState(); if(ulRst != ERR_MSP_SUCCESS) { CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)pgucAtSndCodeAddr, (VOS_CHAR*)pgucAtSndCodeAddr, "\r%d\r", ulRst ); return AT_OK; }
/*本命令用户查询单板信息,用于返回单板和后台版本号、产品型号名称、下载类型信息*/ VOS_UINT32 atQryDLoadInfo(VOS_UINT8 ucClientId) { VOS_UINT32 ulRst = AT_OK; VOS_UINT8* pData = NULL; gstAtSendData.usBufLen = 0; pData = VOS_MemAlloc(WUEPS_PID_AT, (DYNAMIC_MEM_PT), UPGRADE_STR_BUF_SIZE); if(NULL == pData) { CmdErrProc(ucClientId, ERR_MSP_MALLOC_FAILUE, 0, NULL); return AT_ERROR; } /*获取软件版本号字符串*/ MSP_MEMSET(pData,0, UPGRADE_STR_BUF_SIZE); ulRst = BSP_DLOAD_GetSoftwareVer((BSP_CHAR *)pData,UPGRADE_STR_BUF_SIZE); if(ulRst != ERR_MSP_SUCCESS) { VOS_MemFree(WUEPS_PID_AT, pData); CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen = (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucAtSndCodeAddr), (VOS_CHAR*)(pgucAtSndCodeAddr + gstAtSendData.usBufLen), "\rswver:%s\r\n", pData ); /*后台版本号字符串 */ MSP_MEMSET(pData,0, UPGRADE_STR_BUF_SIZE); ulRst = BSP_DLOAD_GetISOVer((BSP_CHAR *)pData,UPGRADE_STR_BUF_SIZE); if(ulRst != ERR_MSP_SUCCESS) { VOS_MemFree(WUEPS_PID_AT, pData); CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen += (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucAtSndCodeAddr), (VOS_CHAR*)(pgucAtSndCodeAddr+ gstAtSendData.usBufLen), "\r\nisover:%s\r\n", pData ); /*产品名称字符串*/ MSP_MEMSET(pData,0, UPGRADE_STR_BUF_SIZE); ulRst = BSP_GetProductName((char *)pData,UPGRADE_STR_BUF_SIZE); if(ulRst != ERR_MSP_SUCCESS) { VOS_MemFree(WUEPS_PID_AT, pData); CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } gstAtSendData.usBufLen += (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucAtSndCodeAddr), (VOS_CHAR*)(pgucAtSndCodeAddr+ gstAtSendData.usBufLen), "\r\nproduct name:%s\r\n", pData ); /*获取下载类型*/ MSP_MEMSET(pData,0, UPGRADE_STR_BUF_SIZE); ulRst = BSP_DLOAD_GetDloadType(); if((ulRst != 0)&&(ulRst != 1)) { VOS_MemFree(WUEPS_PID_AT, pData); CmdErrProc(ucClientId, ulRst, 0, NULL); return AT_ERROR; } *pData = ulRst + '0'; gstAtSendData.usBufLen += (VOS_UINT16)At_sprintf( AT_CMD_MAX_LEN, (VOS_CHAR *)(pgucAtSndCodeAddr), (VOS_CHAR*)(pgucAtSndCodeAddr+ gstAtSendData.usBufLen), "\r\ndload type:%s\r", pData ); VOS_MemFree(WUEPS_PID_AT, pData); return AT_OK; }