Software upgrade methods, systems, devices and media for controllers
By enabling real-time communication and information exchange between the controller and the host computer, the problem of low success rate of controller software upgrades was solved, a stable and reliable software upgrade process was achieved, and the operational reliability of the equipment was improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- STATE NUCLEAR POWER AUTOMATION SYST ENGCO
- Filing Date
- 2022-08-03
- Publication Date
- 2026-08-04
AI Technical Summary
The existing controller software has a low success rate for upgrades, which cannot meet actual needs. Furthermore, if the upgrade fails, the equipment may malfunction and require professional repair.
By establishing a communication connection between the controller and the host computer, relevant parameter information is obtained, the target software upgrade package is matched, and feedback information is monitored in real time during the upgrade process. Different preset compression and decompression methods are used to process the upgrade package, thereby realizing real-time monitoring and information interaction of the software upgrade process.
This improved the efficiency and success rate of software upgrades, ensured the stability and reliability of software upgrades in the controller, reduced manual intervention, and enhanced equipment reliability.
Smart Images

Figure CN115268977B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software upgrade technology, and in particular to a software upgrade method, system, device and medium for a controller. Background Technology
[0002] Online software upgrade functionality is a feature found in most electronic devices (or controllers) running software. The difference lies in their upgrade methods: some devices use wireless technologies like Wi-Fi (mobile hotspot) and Bluetooth, while others use wired technologies such as computer networks, cable TV networks, and RS232 (a serial communication interface standard). Existing upgrade technologies generally lack information interaction during the software upgrade process. The device receives the software upgrade package, automatically installs it, and restarts to complete the upgrade. If the upgrade fails, the device is highly likely to malfunction and become unusable, requiring professional repair. Therefore, existing controller software upgrades generally suffer from low success rates and fail to meet practical needs. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to overcome the shortcomings of the existing technology in which the success rate of controller software upgrades is generally low and cannot meet actual needs, and to provide a method, system, device and medium for upgrading controller software.
[0004] The present invention solves the above-mentioned technical problems through the following technical solution:
[0005] In a first aspect, a software upgrade method for a controller is provided, wherein the controller is connected to a host computer via communication, and the software upgrade method is applied to the host computer.
[0006] The software upgrade method includes:
[0007] Obtain the associated parameter information of the controller;
[0008] Based on the associated parameter information, a target software upgrade package matching the controller is obtained and sent to the controller;
[0009] Receive a number of feedback messages sent sequentially by the controller when performing an upgrade operation based on the target software upgrade package;
[0010] Different feedback information corresponds to different upgrade processing operations;
[0011] The controller software upgrade status is determined based on the feedback information.
[0012] Preferably, the associated parameter information includes the controller type information and / or the platform information of the platform on which it is located.
[0013] Preferably, the step of obtaining a target software upgrade package matching the controller based on the associated parameter information and sending it to the controller specifically includes:
[0014] Based on the associated parameter information, obtain an initial software upgrade package that matches the controller;
[0015] The initial software upgrade package is compressed using a first preset compression method to obtain the target software upgrade package, which is then sent to the controller.
[0016] The feedback information includes decompression success information or decompression failure information generated by the controller when decompressing the target software upgrade package based on the first preset decompression method;
[0017] The step of determining the controller software upgrade status based on the feedback information specifically includes:
[0018] If the decompression success message is received, an installation command is generated and sent to the controller;
[0019] If the decompression failure message is received, a re-decompression instruction is generated and sent to the controller, so that the controller decompresses the target software upgrade package based on the second preset decompression method.
[0020] Preferably, the feedback information further includes format conformance information and format non-conformance information generated by the controller based on the format parameter information corresponding to the target software upgrade package; the associated parameter information is included in the format parameter information;
[0021] The step of compressing the initial software upgrade package based on the first preset compression method to obtain the target software upgrade package and sending it to the controller includes:
[0022] If the received information conforms to the specified format, a decompression command is sent to the controller.
[0023] If the received format mismatch information is stopped, the software update is stopped; or, the initial software upgrade package that matches the controller is re-acquired, the initial software upgrade package is compressed according to the second preset compression method to obtain the target software upgrade package and sent to the controller.
[0024] Preferably, the step of determining the controller software upgrade status based on the feedback information further includes:
[0025] When the feedback information indicates that the installation is complete, a restart command is generated and sent to the controller;
[0026] When the feedback information indicates a successful restart, it is determined that the controller software upgrade was successful;
[0027] If the feedback information indicates a restart failure, then the controller software upgrade is determined to have failed.
[0028] Preferably, the step of receiving a plurality of feedback messages sequentially sent by the controller during the upgrade operation based on the target software upgrade package includes, before:
[0029] The controller sends a query command to the controller at preset time intervals to obtain the current upgrade status;
[0030] Based on the query command, the system receives the feedback information sent by the controller when performing an upgrade operation according to the target software upgrade package.
[0031] Secondly, a software upgrade method for a controller is provided, wherein the controller is connected to a host computer, and the software upgrade method is applied to the controller.
[0032] The software upgrade method includes:
[0033] Receive the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information;
[0034] During the upgrade operation based on the target software upgrade package, several feedback messages are generated and sent to the host computer in sequence.
[0035] Different feedback information corresponds to different upgrade processing operations;
[0036] Receive instructions sent by the host computer based on the feedback information and execute the corresponding operations.
[0037] Preferably, the associated parameter information includes the controller type information and / or the platform information of the platform on which it is located.
[0038] Preferably, the step of receiving the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information, specifically includes:
[0039] The target software upgrade package is obtained by compressing the initial software upgrade package based on the first preset compression method after obtaining the initial software upgrade package that matches the controller obtained by the host computer based on the associated parameter information;
[0040] The step of generating several feedback messages and sending them sequentially to the host computer during the upgrade operation based on the target software upgrade package specifically includes:
[0041] Receive the decompression command sent by the host computer, and decompress the target software upgrade package based on the first preset decompression method;
[0042] If decompression is successful, a decompression success message is generated and sent to the host computer;
[0043] If decompression fails, a decompression failure message is generated and sent to the host computer; a re-decompression command is received from the host computer, and the target software upgrade package is re-decompressed based on the second preset decompression method;
[0044] The feedback information includes both successful decompression information and decompression failure information.
[0045] The step of receiving the instruction sent by the host computer based on the feedback information and executing the corresponding operation specifically includes:
[0046] Receive the installation instructions sent by the host computer.
[0047] Preferably, the step of receiving the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information, includes the following:
[0048] Obtain the format parameter information of the target software upgrade package;
[0049] Based on the format parameter information, determine whether the format of the target software upgrade package meets the preset format requirements;
[0050] If so, then generate formatted information and send it to the host computer;
[0051] If not, a format mismatch message is generated, sent to the host computer, and the software update is stopped;
[0052] Alternatively, the host computer may reacquire the initial software upgrade package that matches the controller, and compress the initial software upgrade package based on the second preset compression method to obtain the target software upgrade package.
[0053] Preferably, the step of receiving the instruction sent by the host computer based on the feedback information and executing the corresponding operation further includes:
[0054] Receive the generator restart command sent by the host computer;
[0055] The system restarts based on the restart command, generates a restart success message or a restart failure message, and sends it to the host computer.
[0056] The feedback information includes both successful restart information and failed restart information.
[0057] Preferably, the step of generating several feedback messages and sequentially sending them to the host computer during the upgrade operation based on the target software upgrade package includes:
[0058] Receive query commands sent by the host computer at preset time intervals to obtain the current upgrade status;
[0059] Based on the query command, send the feedback information generated when performing the upgrade operation according to the target software upgrade package.
[0060] Thirdly, a software upgrade system for a controller is provided, wherein the controller is connected to a host computer, and the software upgrade system is applied in the host computer;
[0061] The software upgrade system includes:
[0062] The parameter information acquisition module is used to acquire the associated parameter information of the controller;
[0063] The first acquisition module is used to acquire a target software upgrade package that matches the controller based on the associated parameter information and send it to the controller.
[0064] The second acquisition module is used to receive a number of feedback messages sent sequentially by the controller when it performs an upgrade operation based on the target software upgrade package;
[0065] Different feedback information corresponds to different upgrade processing operations;
[0066] The upgrade status determination module is used to determine the upgrade status of the controller software based on the feedback information.
[0067] Preferably, the associated parameter information includes the controller type information and / or the platform information of the platform on which it is located.
[0068] Preferably, the first acquisition module specifically includes:
[0069] The first acquisition unit is used to acquire an initial software upgrade package that matches the controller based on the associated parameter information;
[0070] The first compression unit is used to compress the initial software upgrade package based on a first preset compression method to obtain the target software upgrade package and send it to the controller;
[0071] The feedback information includes decompression success information or decompression failure information generated by the controller when decompressing the target software upgrade package based on the first preset decompression method;
[0072] The upgrade status determination module is specifically used to generate an installation command and send it to the controller if the decompression success information is received; and to generate a re-decompression command and send it to the controller if the decompression failure information is received; so that the controller decompresses the target software upgrade package based on the second preset decompression method.
[0073] Preferably, the feedback information further includes format conformance information and format non-conformance information generated by the controller based on the format parameter information corresponding to the target software upgrade package; the associated parameter information is included in the format parameter information;
[0074] The software upgrade system also includes a first format processing module, which is used to send a decompression command to the controller if the format conformity information is received;
[0075] If the received format mismatch information is stopped, the software update is stopped; or, the initial software upgrade package that matches the controller is re-acquired, the initial software upgrade package is compressed according to the second preset compression method to obtain the target software upgrade package and sent to the controller.
[0076] Preferably, the upgrade status determination module is further configured to generate a restart command and send it to the controller when the feedback information indicates that the installation is complete; determine that the controller software upgrade is successful when the feedback information indicates that the restart is successful; and determine that the controller software upgrade fails when the feedback information indicates that the restart fails.
[0077] Preferably, the software upgrade system further includes a first query module, used to control the sending of a query instruction to the controller at preset time intervals to obtain the current upgrade status; and based on the query instruction, to receive the feedback information sent by the controller when performing an upgrade operation according to the target software upgrade package.
[0078] Fourthly, a software upgrade system for a controller is provided, wherein the controller is connected to a host computer, and the software upgrade system is applied to the controller;
[0079] The software upgrade system includes:
[0080] The third acquisition module is used to receive the target software upgrade package that matches the controller, which is obtained by the host computer based on the controller's associated parameter information;
[0081] The fourth acquisition module is used to generate several feedback messages and send them to the host computer in sequence when performing an upgrade operation based on the target software upgrade package;
[0082] Different feedback information corresponds to different upgrade processing operations;
[0083] The feedback information operation module is used to receive instructions sent by the host computer based on the feedback information and execute the corresponding operations.
[0084] Preferably, the associated parameter information includes the controller type information and / or the platform information of the platform on which it is located.
[0085] Preferably, the third acquisition module is specifically used to acquire the initial software upgrade package that matches the controller obtained by the host computer based on the associated parameter information, and to compress the initial software upgrade package based on the first preset compression method to obtain the target software upgrade package;
[0086] The fourth acquisition module is specifically used to receive the decompression command sent by the host computer and decompress the target software upgrade package based on the first preset decompression method;
[0087] If decompression is successful, a decompression success message is generated and sent to the host computer;
[0088] If decompression fails, a decompression failure message is generated and sent to the host computer; a re-decompression command is received from the host computer, and the target software upgrade package is re-decompressed based on the second preset decompression method;
[0089] The feedback information includes both successful decompression information and decompression failure information.
[0090] The feedback information operation module is specifically used to receive installation instructions sent by the host computer; or, to receive re-decompression instructions sent by the host computer.
[0091] Preferably, the software upgrade system further includes a second format processing module for obtaining format parameter information of the target software upgrade package;
[0092] Based on the format parameter information, determine whether the format of the target software upgrade package meets the preset format requirements;
[0093] If so, then generate formatted information and send it to the host computer;
[0094] If not, a format mismatch message is generated, sent to the host computer, and the software update is stopped; or, the host computer re-acquires the initial software upgrade package that matches the controller, and the target software upgrade package is obtained by compressing the initial software upgrade package based on the second preset compression method.
[0095] Preferably, the feedback information operation module is further configured to receive a generation restart command sent by the host computer;
[0096] The system restarts based on the restart command, generates a restart success message or a restart failure message, and sends it to the host computer.
[0097] The feedback information includes both successful restart information and failed restart information.
[0098] Preferably, the software upgrade system further includes a second query module, used to receive a query instruction sent by the host computer at preset time intervals to obtain the current upgrade status; and based on the query instruction, to send the feedback information generated when performing the upgrade operation according to the target software upgrade package.
[0099] Fifthly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the software upgrade method of any of the controllers described above.
[0100] In a sixth aspect, a computer-readable storage medium is provided having a computer program stored thereon, the computer program implementing the software upgrade method for any of the controllers described above when executed by a processor.
[0101] The positive and progressive effects of this invention are as follows:
[0102] The software upgrade method for the controller of the present invention establishes a communication connection between the controller and a host computer. The software upgrade method is applied in the host computer or the controller. By monitoring each stage of the software upgrade process in real time, the information interaction between the controller and the host computer during the software upgrade process is enhanced, improving the efficiency and success rate of the software upgrade and ensuring the stability and reliability of the software upgrade in the controller. Attached Figure Description
[0103] Figure 1 This is a first flowchart illustrating the software upgrade method for the controller provided in Embodiment 1 of the present invention;
[0104] Figure 2 This is a second flowchart illustrating the software upgrade method for the controller provided in Embodiment 1 of the present invention;
[0105] Figure 3 This is a schematic diagram of the third process of the software upgrade method for the controller provided in Embodiment 1 of the present invention;
[0106] Figure 4 This is a schematic diagram of the fourth process of the software upgrade method for the controller provided in Embodiment 1 of the present invention;
[0107] Figure 5 This is a schematic diagram of the fifth process of the software upgrade method for the controller provided in Embodiment 1 of the present invention;
[0108] Figure 6 This is a first flowchart illustrating the software upgrade method for the controller provided in Embodiment 2 of the present invention;
[0109] Figure 7 This is a schematic diagram of the second process of the software upgrade method for the controller provided in Embodiment 2 of the present invention;
[0110] Figure 8 This is a schematic diagram of the third process of the software upgrade method for the controller provided in Embodiment 2 of the present invention;
[0111] Figure 9 This is a schematic diagram of the fourth process of the software upgrade method for the controller provided in Embodiment 2 of the present invention;
[0112] Figure 10 This is a schematic diagram of the fifth process of the software upgrade method for the controller provided in Embodiment 2 of the present invention;
[0113] Figure 11 This is a schematic diagram of the software upgrade system for the controller provided in Embodiment 3 of the present invention;
[0114] Figure 12 This is a schematic diagram of the software upgrade system for the controller provided in Embodiment 4 of the present invention;
[0115] Figure 13 This is a schematic diagram of the structure of the electronic device provided in Embodiment 5 of the present invention. Detailed Implementation
[0116] The present invention will be further illustrated by way of embodiments below, but the present invention is not limited to the scope of the embodiments described herein.
[0117] Example 1
[0118] This embodiment provides a software upgrade method for a controller, wherein the controller and a host computer are connected for communication, and the software upgrade method is applied in the host computer; Figure 1 This is a first flowchart illustrating the software upgrade method for the controller provided in this embodiment, as shown below. Figure 1 As shown, the software upgrade method in this embodiment includes:
[0119] Step 101: Obtain the associated parameter information of the controller.
[0120] The associated parameter information includes the controller type information, the platform information of the platform on which the controller is located, etc. Based on the controller's associated parameter information, the controller type and the platform information on which the controller runs can be automatically matched and determined to ensure the matching degree and reliability of the subsequent upgrade package.
[0121] The associated parameter information of different controllers can be the same or different. For example, controller A's type information is ARM CPU (a type of processor), and controller B's type information is x86 CPU (a type of processor). In this case, controller A and controller B can be called heterogeneous controllers. Controller C and controller D both have ARM CPU type information, but controller C's platform information is Quick UNIX (a type of operating system platform information), while controller D's platform information is Reworks (another type of operating system platform information). In this case, controller C and controller D can also be called heterogeneous controllers. For example, controller E and controller F both have ARM CPU type information, and both have Quick UNIX platform information.
[0122] Step 102: Obtain the target software upgrade package that matches the controller based on the associated parameter information and send it to the controller.
[0123] Different controllers have their own corresponding target software upgrade packages, which are used for subsequent upgrade operations. When upgrading a controller, the host computer can accurately determine the target software upgrade package corresponding to that controller based on the controller's associated parameter information. After obtaining the target software upgrade package that matches the controller, the host computer sends the target software upgrade package to the controller.
[0124] Step 103: Receive several feedback messages sent sequentially by the controller when performing the upgrade operation based on the target software upgrade package.
[0125] Different feedback messages correspond to different upgrade processing operations.
[0126] After receiving the target software upgrade package, the controller performs relevant upgrade operations according to different upgrade processing operations (or different upgrade stages or sub-processes), and sends corresponding feedback information to the host computer in sequence.
[0127] Step 104: Determine the controller software upgrade status based on feedback information.
[0128] The host computer determines the controller software upgrade status based on different feedback information.
[0129] In this embodiment, the host computer and controller can establish a communication connection based on Ethernet or industrial Ethernet to remotely interact with the controller and control the controller to perform software upgrades; for example, a TCP (Transmission Control Protocol) connection can be established between the host computer and the controller. The host computer in this embodiment can also be referred to as an engineering workstation.
[0130] The controller software upgrade method in this embodiment involves a host computer obtaining a target software upgrade package matching the controller based on the controller's associated parameter information and sending it to the controller. The host computer also receives several feedback messages sequentially sent by the controller during the upgrade operation based on the target software upgrade package. The software upgrade status of the controller is determined based on the different feedback messages. Real-time monitoring of each stage of the software upgrade process by the host computer enhances the information interaction between the controller and the host computer during the upgrade process, improving the efficiency and success rate of the software upgrade and ensuring the stability and reliability of the software upgrade in the controller.
[0131] In an optional implementation, the feedback information includes decompression success information or decompression failure information generated by the controller when decompressing the target software upgrade package based on a first preset decompression method.
[0132] Figure 2 This is a second flowchart illustrating the software upgrade method for the controller provided in this embodiment, as shown below. Figure 2 As shown, step 102 specifically includes:
[0133] Step 1021: Obtain the initial software upgrade package that matches the controller based on the associated parameter information.
[0134] An initial software upgrade package refers to the original software package that has not been compressed or decompressed.
[0135] Step 1022: Compress the initial software upgrade package based on the first preset compression method to obtain the target software upgrade package and send it to the controller.
[0136] In this step, the initial software upgrade package is compressed using a pre-defined first compression method. This first compression method could be .tgz (a compressed file format), .rar (a compressed file format), or another method. Using a uniform compression format (i.e., the first preset compression method) to compress the initial software packages for different controllers reduces the workload of the host computer and improves its efficiency.
[0137] Step 104 above specifically includes:
[0138] Step 1041: If a successful decompression message is received, an installation command is generated and sent to the controller.
[0139] After successfully receiving the target software upgrade package, the controller decompresses the package using a first preset decompression method, generating either a decompression success message or a decompression failure message, and then sends this message to the host computer. If the host computer receives the decompression success message, it generates an installation command and sends it to the controller.
[0140] The first preset decompression method can be either the same as the first preset compression method or not. For example, if the first preset compression method is RAR compression, then the first preset decompression method can be either RAR decompression or TGZ decompression, depending on the controller type information.
[0141] The controller uses a unified decompression method (i.e., the first preset decompression method) to decompress the target software upgrade package, which reduces the workload of the controller and improves the working efficiency of the controller.
[0142] Step 1042: If a decompression failure message is received, a re-decompression command is generated and sent to the controller; so that the controller decompresses the target software upgrade package based on the second preset decompression method.
[0143] If the host computer receives a decompression failure message, it generates a re-decompression command and sends it to the controller; the controller re-decompresses the target software upgrade package based on the second preset decompression method.
[0144] If the controller fails to decompress, the target software upgrade package will be decompressed again using the second preset decompression method. In this case, the second preset decompression method is the decompression method corresponding to the controller type information.
[0145] For example, controller A's type information is ARM CPU, and its corresponding decompression method is RAR decompression. The first preset decompression method is TGZ decompression, and the second preset decompression method is RAR decompression. If the first preset decompression method is used to decompress the target upgrade software, it will result in decompression failure. At this time, the controller sends the decompression failure information to the host computer, and the host computer generates a re-decompression command and sends it to the controller, so that the controller decompresses the target software upgrade package based on the second preset decompression method, thereby successfully decompressing the target software upgrade package.
[0146] When the first preset decompression method does not meet the controller's own requirements, the second preset decompression method is used for decompression, which improves the controller's flexibility in decompressing target software and expands the controller's application scenarios.
[0147] The controller software upgrade method in this embodiment enhances information interaction between the host computer and the controller during the decompression phase of the software upgrade process by monitoring the decompression stage of the target software upgrade package. This improves information interaction throughout the entire software upgrade process, increases the efficiency and success rate of the software upgrade, and ensures the stability and reliability of the software upgrade in the controller. The method also employs a unified compression method to compress the initial software packages of different controllers, reducing the workload of the host computer and improving its efficiency. Furthermore, it reduces the workload of the controller and improves its efficiency. Finally, it enhances the controller's flexibility in decompressing the target software, expanding the controller's application scenarios.
[0148] In an optional implementation, the feedback information also includes format conformance information and format non-conformance information generated by the controller based on the format parameter information corresponding to the target software upgrade package; the associated parameter information is included in the format parameter information; Figure 3 A third flowchart illustrating the software upgrade method for the controller provided in this embodiment is shown below. Figure 3 As shown, after step 1022 above, the following steps are included:
[0149] Step 1001: If the received information is in the correct format, send a decompression command to the controller.
[0150] The format parameter information is used to characterize the compression method corresponding to the controller, and the host computer compresses the initial software upgrade package of the controller based on the first preset compression method; the first preset compression method may be the same as or different from the compression method corresponding to the format parameter of the controller.
[0151] When the first preset compression method is the same as the compression method corresponding to the controller's format parameters, the controller generates format matching information and sends it to the host computer; when the host computer receives the format matching information, it sends a decompression command to the controller.
[0152] Step 1002: If a format mismatch message is received, stop the software update; or, re-acquire the initial software upgrade package that matches the controller, compress the initial software upgrade package based on the second preset compression method to obtain the target software upgrade package and send it to the controller.
[0153] When the first preset compression method differs from the compression method corresponding to the controller's format parameters, the controller generates a format mismatch message and sends it to the host computer. Upon receiving this message, the host computer stops the software update. Alternatively, the controller re-acquires an initial software upgrade package that matches its own specifications, compresses the initial software upgrade package using the second preset compression method to obtain the target software upgrade package, and sends it back to the controller. In this case, the second preset compression method is the same as the compression method corresponding to the controller's format parameters.
[0154] For example, if the type information of controller A is ARM CPU, its corresponding compression method is RAR decompression, the first preset compression method is TGZ compression, and the second preset compression method is RAR compression, if the first preset compression method is used to compress the initial software upgrade package, the format will not meet the controller's requirements, thus stopping the software update. Alternatively, the host computer can re-obtain the initial software upgrade package corresponding to the controller, use the second preset compression method to compress the initial software upgrade package, generate the target software upgrade package, and send it to the controller to meet the controller's requirements.
[0155] When the first preset compression method does not meet the controller's own requirements, the second preset compression method is used for compression, which improves the flexibility of the host computer in compressing the initial software upgrade package and expands the application scenarios of the host computer.
[0156] The format parameter information can also be referred to as the naming information of the target software upgrade package.
[0157] For example, the format parameter information of the target software upgrade package corresponding to a certain controller W is: Firmware_P1_snlb_V030000C.tgz. Here, 'tgz' represents the compression format of the target software upgrade package, and the associated parameter information is P1. P1 represents the type information of controller W as an x86 CPU, and the platform information of the platform is Quick UNIX. The format parameter information of the target software upgrade package corresponding to a certain controller E is: Firmware_Q1_snlb_V030000C.rar. Here, 'rar' represents the compression format of the target software upgrade package, and the associated parameter information is Q1. Q1 represents the type information of controller E as an x86 CPU, and the platform information of the platform is Reworks. In specific application scenarios, the format parameter information and associated parameter information can be predefined. The format parameter information and associated parameter information in this invention are merely exemplary and should not limit the scope of this invention. They can be defined in conjunction with the platform information of existing operating system platforms and the type information of controllers.
[0158] Furthermore, the software upgrade method for the controller of the present invention does not limit the type of controller and can be applied to redundant controllers.
[0159] The controller software upgrade method in this embodiment monitors the decompression stage of the target software upgrade package, enhancing information interaction between the host computer and the controller during the decompression phase of the software upgrade process. This improves information interaction throughout the entire software upgrade process, increasing the efficiency and success rate of the software upgrade and ensuring the stability and reliability of the software upgrade in the controller. A unified compression format is used to compress the initial software packages of different controllers, reducing the workload of the host computer and improving its efficiency. When the first preset compression method does not meet the controller's requirements, a second preset compression method is used, increasing the flexibility of the host computer in compressing the initial software upgrade package and expanding its application scenarios. This also reduces the workload of the controller, improves its efficiency, and enhances the controller's flexibility in decompressing the target software, thus expanding its application scenarios.
[0160] In an alternative implementation, Figure 4 A fourth flowchart illustrating the software upgrade method for the controller provided in this embodiment is shown in the figure. Step 104 specifically further includes:
[0161] Step 1043: When the feedback information indicates that the installation is complete, a restart command is generated and sent to the controller.
[0162] Step 1044: When the feedback information indicates a successful restart, the controller software upgrade is confirmed to be successful.
[0163] Step 1045: If the feedback information indicates that the restart has failed, then the controller software upgrade has failed.
[0164] The feedback information also includes installation completion (i.e., installation successful) information, restart success information, and restart failure information. The host computer determines the controller software upgrade status based on the different feedback information received and sends corresponding control commands to monitor the controller's installation and restart phases.
[0165] Meanwhile, the controller can also report installation failure information during the installation phase. Based on the received installation failure information, the host computer sends a reinstallation command to the controller, causing the controller to reinstall.
[0166] The software upgrade method for the controller in this embodiment enhances the information interaction between the controller and the host computer during the installation and restart phases by monitoring the controller via a host computer. This improves the efficiency and success rate of the software upgrade and ensures the stability and reliability of the software upgrade in the controller.
[0167] In an alternative implementation, Figure 5A fifth flowchart illustrating the software upgrade method for the controller provided in this embodiment is shown in the figure. Prior to step 103, the method further includes:
[0168] Step 1003: Control the system to send a query command to the controller at preset time intervals to obtain the current upgrade status.
[0169] For example, if the controller is currently performing a decompression operation, meaning the current upgrade status of the controller is decompression, the controller sends a query command to the controller at preset time intervals to check the decompression progress.
[0170] Step 1004: Based on the query command, receive the feedback information sent by the controller when performing the upgrade operation according to the target software upgrade package.
[0171] Based on the query command, the host computer receives feedback from the controller regarding the current decompression, installation, or restart progress. The current upgrade status can be decompression, installation, or restart, and the host computer receives feedback information from the controller based on the query command for each upgrade status.
[0172] The software upgrade method for the controller in this embodiment sends a query command to the controller at preset time intervals to obtain the current upgrade status. Based on the query command, it receives feedback information sent by the controller when performing the upgrade operation according to the target software upgrade package. This enables further monitoring of the various upgrade statuses of the controller, further enhances the information interaction between the controller and the host computer during the software upgrade process, facilitates timely detection of anomalies and follow-up processing and monitoring of the upgrade progress, improves the efficiency and success rate of software upgrades, and ensures the stability and reliability of software upgrades in the controller.
[0173] Example 2
[0174] This embodiment provides a software upgrade method for a controller, wherein the controller communicates with a host computer, and the software upgrade method is applied to the controller; Figure 6 This is a first flowchart illustrating the software upgrade method for the controller provided in this embodiment, as shown below. Figure 6 As shown, the software upgrade method in this embodiment includes:
[0175] Step 201: Receive the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information.
[0176] The associated parameter information includes the controller type information, platform information, etc.
[0177] Step 202: When performing the upgrade operation based on the target software upgrade package, generate several feedback messages and send them to the host computer in sequence.
[0178] Different feedback messages correspond to different upgrade processing operations.
[0179] Step 203: Receive the instructions sent by the host computer based on the feedback information and execute the corresponding operations.
[0180] In this embodiment, the controller receives a target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information. When the controller performs an upgrade operation based on the target software upgrade package, it generates several feedback messages and sends them to the host computer in sequence. The controller receives the instructions sent by the host computer based on the feedback messages and executes the corresponding operations.
[0181] The software upgrade method for the controller in this embodiment corresponds to the software upgrade method for the controller in Embodiment 1, and the details will not be repeated here.
[0182] The software upgrade method for the controller in this embodiment enables the host computer to monitor each stage of the software upgrade process in real time by providing feedback from the controller at each stage. This enhances the information interaction between the controller and the host computer during the software upgrade process, improves the efficiency and success rate of the software upgrade, and ensures the stability and reliability of the software upgrade in the controller.
[0183] In one optional implementation, the feedback information includes decompression success information and decompression failure information; Figure 7 This is a second flowchart illustrating the software upgrade method for the controller provided in this embodiment, as shown below. Figure 7 As shown, step 201 above specifically includes:
[0184] Step 2011: Obtain the initial software upgrade package that matches the controller obtained by the host computer based on the associated parameter information, and compress the initial software upgrade package based on the first preset compression method to obtain the target software upgrade package.
[0185] Step 202 above specifically includes:
[0186] Step 2021: Receive the decompression command sent by the host computer and decompress the target software upgrade package based on the first preset decompression method.
[0187] After successfully receiving the target software upgrade package and the decompression command sent by the host computer, the controller decompresses the target software upgrade package based on the first preset decompression method.
[0188] The controller uses a unified decompression method (i.e., the first preset decompression method) to decompress the target software upgrade packages for different controllers, reducing the workload of the controller and improving its efficiency.
[0189] Step 2022: If decompression is successful, generate a decompression success message and send it to the host computer.
[0190] Step 2023: If decompression fails, generate decompression failure information and send it to the host computer; receive the re-decompression command sent by the host computer, and re-decompress the target software upgrade package based on the second preset decompression method.
[0191] When the controller attempts to decompress the target software upgrade package using the first preset decompression method, the decompression fails because the first preset decompression method does not meet the decompression format requirements of the target software upgrade package. In this case, the controller uses the second preset decompression method to decompress the target software upgrade package, thus successfully decompressing it.
[0192] The second preset decompression method is a decompression method that matches the decompression format requirements of the target software upgrade package.
[0193] Step 203 above specifically includes:
[0194] Step 2031: Receive the installation instructions sent by the host computer.
[0195] At the same time, the controller can also provide feedback during the installation phase, generating installation success or failure information based on the installation instructions.
[0196] The controller software upgrade method in this embodiment enhances information interaction between the host computer and the controller during the decompression phase of the software upgrade process by monitoring the decompression and installation stages of the target software upgrade package. This improves information interaction throughout the entire software upgrade process, increases the efficiency and success rate of the software upgrade, and ensures the stability and reliability of the software upgrade in the controller. A unified decompression method is used to decompress the target software upgrade packages for different controllers, reducing the workload of the controller and improving its efficiency. When the first preset decompression method does not meet the controller's requirements, a second preset decompression method is used, increasing the controller's flexibility in decompressing target software and expanding the controller's application scenarios.
[0197] In an alternative implementation, Figure 8 This is a schematic diagram of the third process of the software upgrade method for the controller provided in this embodiment, as shown below. Figure 8 As shown, after step 201 above, the following steps are included:
[0198] Step 2001: Obtain the format parameter information of the target software upgrade package.
[0199] Step 2002: Determine whether the format of the target software upgrade package meets the preset format requirements based on the format parameter information.
[0200] If yes, proceed to step 2003; otherwise, proceed to step 2004 or step 2005.
[0201] When the first preset compression method is the same as the compression method corresponding to the controller's format parameters, the controller generates format conformance information and sends it to the host computer; when the host computer receives the format conformance information, it sends a decompression command to the controller, and the controller decompresses the target software upgrade package based on the first preset decompression method.
[0202] Step 2003: Generate formatted information and send it to the host computer.
[0203] The controller receives the decompression command sent by the host computer, decompresses the target software upgrade package based on the first preset decompression method, and performs subsequent operations.
[0204] Step 2004: Generate a format mismatch message, send it to the host computer, and stop the software update.
[0205] Step 2005: Receive the initial software upgrade package that matches the controller from the host computer, and compress the initial software upgrade package based on the second preset compression method to obtain the target software upgrade package.
[0206] When the first preset compression method is different from the compression method corresponding to the controller's format parameters, the controller generates a format mismatch information and sends it to the host computer, and stops the software update; or, the controller receives the initial software upgrade package that matches the controller and is re-acquired by the host computer, and compresses the initial software upgrade package based on the second preset compression method to obtain the target software upgrade package.
[0207] The second preset compression method is the compression method corresponding to the format parameters of the target software upgrade package. When the compression method of the target software upgrade package does not meet the requirements, the second preset compression method that matches the target software upgrade package is used for compression to facilitate subsequent successful decompression.
[0208] The controller software upgrade method in this embodiment enhances the information interaction between the host computer and the controller during the decompression phase of the software upgrade process by monitoring the decompression stage of the target software upgrade package. This improves the overall information interaction during the software upgrade process, increases the efficiency and success rate of the software upgrade, and ensures the stability and reliability of the software upgrade in the controller. Furthermore, by using a unified decompression method to decompress the target software upgrade packages for different controllers, the workload of the controller is reduced, and the working efficiency of the controller is improved. Finally, the application scenarios of the controller are broadened.
[0209] In an alternative implementation, Figure 9 This is a schematic diagram of the fourth process of the software upgrade method for the controller provided in this embodiment, as shown below. Figure 9 As shown, the specific steps following step 203 above include:
[0210] Step 2032: Receive the generation and restart command sent by the host computer.
[0211] Step 2033: Restart based on the restart command and generate restart success information or restart failure information, and send it to the host computer.
[0212] The feedback information includes both successful and failed reboot messages.
[0213] The controller performs corresponding operations based on the received instructions. When the controller receives a restart instruction, it restarts and sends the restart result, either a successful restart message or a failed restart message, to the host computer, thereby enabling the host computer to monitor the controller's restart phase.
[0214] The software upgrade method for the controller in this embodiment enhances the information interaction between the controller and the host computer during the software upgrade process by monitoring the restart stage of the controller through the host computer, thereby improving the efficiency and success rate of the software upgrade and ensuring the stability and reliability of the software upgrade in the controller.
[0215] In an alternative implementation, Figure 10 This is a schematic diagram of the fifth process of the software upgrade method for the controller provided in this embodiment, as shown below. Figure 10 As shown, the steps preceding step 202 above include:
[0216] Step 2005: Receive query commands sent by the host computer at preset time intervals to obtain the current upgrade status.
[0217] Step 2006: Based on the query command, send the feedback information generated when performing the upgrade operation according to the target software upgrade package.
[0218] Based on the query command, the host computer receives feedback from the controller regarding the current decompression, installation, or restart progress. The current upgrade status can be decompression, installation, or restart, and the host computer receives feedback information from the controller based on the query command for each upgrade status.
[0219] The controller software upgrade method in this embodiment receives query commands from the host computer at preset time intervals to obtain the current upgrade status. Based on the query commands, it sends feedback information generated during the upgrade operation according to the target software upgrade package. This enables the host computer to further monitor the various upgrade statuses of the controller, further enhances the information interaction between the controller and the host computer during the software upgrade process, facilitates timely detection of anomalies and follow-up processing and monitoring of the upgrade progress, improves the efficiency and success rate of software upgrades, and ensures the stability and reliability of software upgrades in the controller.
[0220] The controller software upgrade method in this embodiment is applied in the controller, while the controller software upgrade method in embodiment 1 is applied in the host computer. The controller software upgrade method in this embodiment corresponds one-to-one with the controller software upgrade method in embodiment 1.
[0221] Example 3
[0222] This embodiment provides a software upgrade system for a controller, wherein the controller communicates with a host computer, and the software upgrade system is applied in the host computer; Figure 11 This is a schematic diagram of the software upgrade system for the controller provided in this embodiment; as shown. Figure 11 As shown, the software upgrade system of this embodiment includes a parameter information acquisition module 1, used to acquire the associated parameter information of the controller; a first acquisition module 2, used to acquire a target software upgrade package that matches the controller based on the associated parameter information and send it to the controller; a second acquisition module 3, used to receive a number of feedback messages sent sequentially by the controller when performing an upgrade operation based on the target software upgrade package; wherein, different feedback messages correspond to different upgrade processing operations; and an upgrade status determination module 4, used to determine the controller software upgrade status based on the feedback messages.
[0223] The associated parameter information includes the controller type information, platform information, etc.
[0224] In an optional implementation, the first acquisition module 2 specifically includes: a first acquisition unit 21, used to acquire an initial software upgrade package matching the controller based on associated parameter information; a first compression unit 22, used to compress the initial software upgrade package according to a first preset compression method to obtain a target software upgrade package and send it to the controller; feedback information includes decompression success information or decompression failure information generated by the controller when decompressing the target software upgrade package according to the first preset decompression method. The upgrade status determination module 4 is specifically used to generate an installation command and send it to the controller if a decompression success information is received; and to generate a re-decompression command and send it to the controller if a decompression failure information is received, so that the controller decompresses the target software upgrade package according to a second preset decompression method.
[0225] In an optional implementation, the feedback information further includes format conformance information and format non-conformance information generated by the controller based on the format parameter information corresponding to the target software upgrade package; the associated parameter information is included in the format parameter information. The software upgrade system also includes a first format processing module 5, used to send a decompression command to the controller if format conformance information is received; to stop the software update if format non-conformance information is received; or, to re-acquire an initial software upgrade package that matches the controller, compress the initial software upgrade package based on a second preset compression method to obtain the target software upgrade package, and send it to the controller.
[0226] In an optional implementation, the upgrade status determination module 4 is further configured to generate a restart command and send it to the controller when the feedback information indicates that the installation is complete; determine that the controller software upgrade is successful when the feedback information indicates that the restart is successful; and determine that the controller software upgrade has failed when the feedback information indicates that the restart has failed.
[0227] In an optional implementation, the software upgrade system further includes a first query module 6, which controls the sending of a query instruction to the controller at preset time intervals to obtain the current upgrade status; and receives feedback information sent by the controller when performing an upgrade operation based on the target software upgrade package, based on the query instruction.
[0228] It should be noted that the working principle of the controller software upgrade system in this embodiment is the same as that of the controller software upgrade method in Embodiment 1, and will not be repeated here.
[0229] The software upgrade system in this embodiment enhances the information interaction between the controller and the host computer during the software upgrade process by cooperating with each module and unit and monitoring each stage of the software upgrade process in real time. This improves the efficiency and success rate of the software upgrade and ensures the stability and reliability of the software upgrade in the controller.
[0230] Example 4
[0231] This embodiment provides a software upgrade system for a controller, wherein the controller communicates with a host computer, and the software upgrade system is applied in the controller; Figure 12 This is a schematic diagram of the software upgrade system for the controller provided in this embodiment; as shown. Figure 12 As shown, the software upgrade system of this embodiment includes a third acquisition module 7, which is used to receive a target software upgrade package that matches the controller, obtained by the host computer based on the associated parameter information of the controller; a fourth acquisition module 8, which is used to generate several feedback messages and send them to the host computer in sequence when performing an upgrade operation based on the target software upgrade package; wherein, different feedback messages correspond to different upgrade processing operations; and a feedback information operation module 9, which is used to receive instructions sent by the host computer based on the feedback messages and execute the corresponding operations.
[0232] The associated parameter information includes the controller type information, platform information, etc.
[0233] In an optional implementation, the third acquisition module 7 is specifically used to acquire the initial software upgrade package matching the controller obtained by the host computer based on the associated parameter information, and to compress the initial software upgrade package according to the first preset compression method to obtain the target software upgrade package; the fourth acquisition module 8 is specifically used to receive the decompression command sent by the host computer, and to decompress the target software upgrade package according to the first preset decompression method; if the decompression is successful, a decompression success message is generated and sent to the host computer; if the decompression fails, a decompression failure message is generated and sent to the host computer; to receive the re-decompression command sent by the host computer, and to re-decompress the target software upgrade package according to the second preset decompression method; wherein, the feedback information includes decompression success information and decompression failure information; the feedback information operation module 9 is specifically used to receive the installation command sent by the host computer.
[0234] In an optional implementation, the software upgrade system further includes a second format processing module 10, used to obtain format parameter information of the target software upgrade package; determine whether the format of the target software upgrade package conforms to the preset format requirements based on the format parameter information; if yes, generate format conformity information and send it to the host computer; if no, generate format non-conformity information, send it to the host computer, and stop the software update; or, receive the target software upgrade package obtained by the host computer re-acquiring the initial software upgrade package that matches the controller and compressing the initial software upgrade package based on the second preset compression method.
[0235] In an optional implementation, the feedback information operation module 9 is further configured to receive a restart command sent by the host computer; perform a restart based on the restart command and generate a restart success message or a restart failure message, and send it to the host computer; wherein the feedback information includes restart success message and restart failure message.
[0236] In an optional implementation, the software upgrade system further includes a second query module 11, which is used to receive a query command sent by the host computer at preset time intervals to obtain the current upgrade status; and based on the query command, to send feedback information generated when performing the upgrade operation according to the target software upgrade package.
[0237] It should be noted that the working principle of the controller software upgrade system in this embodiment is the same as that of the controller software upgrade method in embodiment 2, and will not be repeated here.
[0238] The software upgrade system in this embodiment enhances the information interaction between the controller and the host computer during the software upgrade process by cooperating with each module and unit and monitoring each stage of the software upgrade process in real time. This improves the efficiency and success rate of the software upgrade and ensures the stability and reliability of the software upgrade in the controller.
[0239] Example 5
[0240] This embodiment provides an electronic device. Figure 13 This is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the software upgrade method of the controller in the above embodiment. Figure 13 The electronic device 80 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0241] like Figure 13 As shown, the electronic device 80 can be manifested as a general-purpose computing device, such as a server device. The components of the electronic device 80 may include, but are not limited to: at least one processor 81, at least one memory 82, and a bus 83 connecting different system components (including memory 82 and processor 81).
[0242] Bus 83 includes a data bus, an address bus, and a control bus.
[0243] The memory 82 may include volatile memory, such as random access memory (RAM) 821 and / or cache memory 822, and may further include read-only memory (ROM) 823.
[0244] The memory 82 may also include a program / utility 825 having a set (at least one) of program modules 824, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0245] The processor 81 executes various functional applications and data processing by executing computer programs stored in the memory 82, such as the software upgrade method of the controller in the above embodiments of the present invention.
[0246] The electronic device 80 can also communicate with one or more external devices 84 (e.g., keyboard, pointing device, etc.). This communication can be performed via input / output (I / O) interface 85. Furthermore, the model-generating device 80 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 86. Figure 13As shown, network adapter 86 communicates with other modules of the model-generated device 80 via bus 83. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 80, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.
[0247] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0248] Example 6
[0249] This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the software upgrade method for the controller in the above embodiment.
[0250] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.
[0251] In a possible implementation, the present invention can also be implemented as a program product comprising program code, which, when executed on a terminal device, causes the terminal device to perform the steps in the software upgrade method for the controller described in the above embodiments.
[0252] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.
[0253] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.
Claims
1. A software upgrade method for a controller, characterized in that, The controller is connected to the host computer for communication, and the software upgrade method is applied to the host computer. The software upgrade method includes: Obtain the associated parameter information of the controller; Based on the associated parameter information, a target software upgrade package matching the controller is obtained and sent to the controller; Receive a number of feedback messages sent sequentially by the controller when performing an upgrade operation based on the target software upgrade package; Different feedback information corresponds to different upgrade processing operations; The controller software upgrade status is determined based on the feedback information; The step of obtaining a target software upgrade package that matches the controller based on the associated parameter information and sending it to the controller specifically includes: Based on the associated parameter information, obtain an initial software upgrade package that matches the controller; The initial software upgrade package is compressed using a first preset compression method to obtain the target software upgrade package, which is then sent to the controller. The feedback information includes decompression success information or decompression failure information generated by the controller when decompressing the target software upgrade package based on the first preset decompression method; The step of determining the controller software upgrade status based on the feedback information specifically includes: If the decompression success message is received, an installation command is generated and sent to the controller; If the decompression failure message is received, a re-decompression instruction is generated and sent to the controller, so that the controller decompresses the target software upgrade package based on the second preset decompression method.
2. The software upgrade method according to claim 1, characterized in that, The associated parameter information includes the controller's type information and / or the platform information of the platform it is on.
3. The software upgrade method according to claim 1, characterized in that, The feedback information also includes format compliance information and format non-compliance information generated by the controller based on the format parameter information corresponding to the target software upgrade package; The associated parameter information is included in the format parameter information; The step of compressing the initial software upgrade package based on the first preset compression method to obtain the target software upgrade package and sending it to the controller includes: If the received information conforms to the specified format, a decompression command is sent to the controller. If the received format mismatch information is stopped, the software update is stopped; or, the initial software upgrade package that matches the controller is re-acquired, the initial software upgrade package is compressed according to the second preset compression method to obtain the target software upgrade package and sent to the controller.
4. The software upgrade method according to claim 1, characterized in that, The step of determining the controller software upgrade status based on the feedback information further includes: When the feedback information indicates that the installation is complete, a restart command is generated and sent to the controller; When the feedback information indicates a successful restart, it is determined that the controller software upgrade was successful; If the feedback information indicates a restart failure, then the controller software upgrade is determined to have failed.
5. The software upgrade method according to claim 1, characterized in that, Before the step of receiving the feedback information sent sequentially by the controller when performing the upgrade operation according to the target software upgrade package, the following steps are included: The controller sends a query command to the controller at preset time intervals to obtain the current upgrade status; Based on the query command, the system receives the feedback information sent by the controller when performing an upgrade operation according to the target software upgrade package.
6. A software upgrade method for a controller, characterized in that, The controller communicates with the host computer, and the software upgrade method is applied to the controller. The software upgrade method includes: Receive the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information; During the upgrade operation based on the target software upgrade package, several feedback messages are generated and sent to the host computer in sequence. Different feedback information corresponds to different upgrade processing operations; Receive instructions sent by the host computer based on the feedback information and execute the corresponding operations; The step of receiving the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information, specifically includes: The target software upgrade package is obtained by compressing the initial software upgrade package based on the first preset compression method after obtaining the initial software upgrade package that matches the controller obtained by the host computer based on the associated parameter information; The step of generating several feedback messages and sending them sequentially to the host computer during the upgrade operation based on the target software upgrade package specifically includes: Receive the decompression command sent by the host computer, and decompress the target software upgrade package based on the first preset decompression method; If decompression is successful, a decompression success message is generated and sent to the host computer; If decompression fails, a decompression failure message is generated and sent to the host computer; a re-decompression command is received from the host computer, and the target software upgrade package is re-decompressed based on the second preset decompression method; The feedback information includes both successful decompression information and decompression failure information. The step of receiving the instruction sent by the host computer based on the feedback information and executing the corresponding operation specifically includes: Receive the installation instructions sent by the host computer.
7. The software upgrade method according to claim 6, characterized in that, The associated parameter information includes the controller's type information and / or the platform information of the platform it is on.
8. The software upgrade method according to claim 6, characterized in that, The step of receiving the target software upgrade package that matches the controller, obtained by the host computer based on the controller's associated parameter information, includes: Obtain the format parameter information of the target software upgrade package; Based on the format parameter information, determine whether the format of the target software upgrade package meets the preset format requirements; If so, then generate formatted information and send it to the host computer; If not, a format mismatch message is generated, sent to the host computer, and the software update is stopped; or, the host computer re-acquires the initial software upgrade package that matches the controller, and the target software upgrade package is obtained by compressing the initial software upgrade package based on the second preset compression method.
9. The software upgrade method according to claim 6, characterized in that, The step of receiving the instruction sent by the host computer based on the feedback information and executing the corresponding operation further includes: Receive the generator restart command sent by the host computer; The system restarts based on the restart command, generates a restart success message or a restart failure message, and sends it to the host computer. The feedback information includes both successful restart information and failed restart information.
10. The software upgrade method according to claim 6, characterized in that, Before the step of generating several feedback messages and sequentially sending them to the host computer during the upgrade operation based on the target software upgrade package, the following steps are included: Receive query commands sent by the host computer at preset time intervals to obtain the current upgrade status; Based on the query command, send the feedback information generated when performing the upgrade operation according to the target software upgrade package.
11. A software upgrade system for a controller, characterized in that, The controller is connected to the host computer for communication, and the software upgrade system is applied in the host computer. The software upgrade system includes: The parameter information acquisition module is used to acquire the associated parameter information of the controller; The first acquisition module is used to acquire a target software upgrade package that matches the controller based on the associated parameter information and send it to the controller. The second acquisition module is used to receive a number of feedback messages sent sequentially by the controller when it performs an upgrade operation based on the target software upgrade package; Different feedback information corresponds to different upgrade processing operations; An upgrade status determination module is used to determine the upgrade status of the controller software based on the feedback information; The first acquisition module includes: The first acquisition unit is used to acquire an initial software upgrade package that matches the controller based on the associated parameter information; The first compression unit is used to compress the initial software upgrade package based on a first preset compression method to obtain the target software upgrade package and send it to the controller; The feedback information includes decompression success information or decompression failure information generated by the controller when decompressing the target software upgrade package based on the first preset decompression method; The upgrade status determination module is used to generate an installation command and send it to the controller if the decompression success information is received; and to generate a re-decompression command and send it to the controller if the decompression failure information is received; so that the controller decompresses the target software upgrade package based on the second preset decompression method.
12. A software upgrade system for a controller, characterized in that, The controller communicates with the host computer, and the software upgrade system is applied in the controller. The software upgrade system includes: The third acquisition module is used to receive the target software upgrade package that matches the controller, which is obtained by the host computer based on the controller's associated parameter information; The fourth acquisition module is used to generate several feedback messages and send them to the host computer in sequence when performing an upgrade operation based on the target software upgrade package; Different feedback information corresponds to different upgrade processing operations; The feedback information operation module is used to receive instructions sent by the host computer based on the feedback information and execute the corresponding operations; The third acquisition module is used to acquire the initial software upgrade package that matches the controller obtained by the host computer based on the associated parameter information, and to compress the initial software upgrade package based on the first preset compression method to obtain the target software upgrade package; The fourth acquisition module is used to receive the decompression command sent by the host computer and decompress the target software upgrade package based on the first preset decompression method; If decompression is successful, a decompression success message is generated and sent to the host computer; If decompression fails, a decompression failure message is generated and sent to the host computer; a re-decompression command is received from the host computer, and the target software upgrade package is re-decompressed based on the second preset decompression method; The feedback information includes both successful decompression information and decompression failure information. The feedback information operation module is used to receive installation instructions sent by the host computer.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes a computer program, it implements the software upgrade method for the controller as described in any one of claims 1 to 5; or the software upgrade method for the controller as described in any one of claims 6 to 10.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by a processor, implements the software upgrade method for the controller as described in any one of claims 1 to 5; or the software upgrade method for the controller as described in any one of claims 6 to 10.