Function description
- The TTX protocol device sends the upgrade package to the device through the platform to realize the remote upgrade of the device
1. Upgrade Process
A, the client uploads the upgrade file to the server.
B. The server transmits the upgrade file to the device (only online devices can be upgraded normally),
C, after the equipment receives the upgrade file, check, check successfully, restart after upgrading
D, generally need to have storage media can be upgraded, it is best to do without storage media, can also be remotely upgraded
2. Equipment end
/very/** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** *
// Upgrade process: 1. CheckUpgradeVer, determine the version information of the upgrade file
When the client is upgraded, the upgrade version information will be sent to the device first.
2. GetUpgradeFile, return to the upgrade file storage path
3. The network library receives the upgrade file and stores it locally
4. CheckUpgradeFile and verify the upgrade file
5. UpgradeDevice, after the verification is successful, perform upgrade
// Get the upgrade file path
// Return the storage path of the upgrade file
Wash ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **/
// Verify the upgrade version
virtual bool CheckUpgradeVer(const char* szVer){ return true;}
// Obtain the storage path of the upgrade file.
virtual bool GetUpgradeFile(char* szFileName){ return false;}
// Verify the upgrade file
virtual bool CheckUpgradeFile(const char* szFileName) { return false;}
// Upgrade equipment
virtual void UpgradeDevice(const char* szFileName) { }