| With the continuous improvement and optimization of the marine engine room simulators,they have been widely applied in fields such as crew training,education,and scientific research.However,when traditional solutions such as firmware replacement are required to address issues such as software defects and feature upgrades during the operation of the marine engine room simulator’s data interaction unit,the maintenance costs can be high.Therefore,remote upgrade technology has become an essential technology requirement for networked devices in order to solve problems quickly,effectively,and at a low cost during device operation and maintenance.In this context,this thesis completes the study of the remote upgrade mechanism of the data interaction unit and realizes the design of the remote upgrade system.Using network communication technology and in-application programming technology,remote access to the cloud server is achieved to download firmware upgrade packages and complete device firmware updates.The main research work of this thesis are as follows:1.Realize the remote access of devices to cloud server through the Wide Area Network.The data interaction unit of the same type of marine engine room simulator can access the network through a router and obtain a dynamically assigned IP address from the DHCP server in the local gateway.By interacting with the cloud server,it determines whether there is a new version of the firmware and decides whether to trigger the firmware upgrade operation.2.Improve the remote upgrade mechanism of data interaction unit.Based on the traditional IAP technology,the Bootloader program was improved.On the basis of the existing upgrade mechanism,add a backup upgrade mechanism,a program verification mechanism and a breakpoint renewal mechanism to improve the reliability and security of the remote upgrade process and make the system have a good fault tolerance mechanism.3.Develop the remote upgrade system for data interaction unit.Complete the construction of the cloud server and determine the communication mechanism between the remote control software,the device side and the cloud server.After receiving the control command for firmware upgrade,the device end remotely connects to the server and sends a request command to download the upgrade package.After the upgrade package is downloaded,it is written into the flash memory to complete the device’s firmware upgrade.The remote control software is designed and developed to remotely control and monitor the data interaction unit.Through the construction of a test environment,the designed remote upgrade system is evaluated,and the effectiveness of the firmware remote upgrade mechanism is tested to verify the main functions that the system can achieve.The test data show that the remote upgrade system designed in this thesis can complete remote upgrades of data interaction units of marine engine simulators,and the system has good fault tolerance and can recover to normal operation under abnormal upgrade conditions. |