45 OTA_STATE_CONNECT_SERVER,
46 OTA_STATE_REQ_OTA_DIR,
47 OTA_STATE_CHECK_ARCHIVE_NEW_UPDATE,
48 OTA_STATE_REQ_FILE_URL,
49 OTA_STATE_CONNECT_FILE_SERVER,
50 OTA_STATE_REQ_FILE_CONTENT,
51 OTA_STATE_PREPARE_DOWNLOAD,
52 OTA_STATE_DOWNLOADING,
53 OTA_STATE_WAIT_CONFIRM,
54 OTA_STATE_NUMBER_OF_STATES
57 #define MAX_VENDIR_DIR_SIZE 50 65 uint8_t VendorDir[MAX_VENDIR_DIR_SIZE];
73 uint8_t *pOtaFileName;
75 uint8_t FileUrlBuf[MAX_URL_SIZE];
79 int16_t RecvChunkSize;
80 int16_t RecvChunkOffset;
81 int16_t RecvChunkForceReadMode;
82 int16_t RecvChunkReserved;
85 uint8_t NetBuf[NET_BUF_SIZE+1];
88 int8_t ConsecutiveOtaErrors;