CN113127031A - Method and device for remote upgrading of double main control boards, terminal device and storage medium - Google Patents

Method and device for remote upgrading of double main control boards, terminal device and storage medium Download PDF

Info

Publication number
CN113127031A
CN113127031A CN202110307137.1A CN202110307137A CN113127031A CN 113127031 A CN113127031 A CN 113127031A CN 202110307137 A CN202110307137 A CN 202110307137A CN 113127031 A CN113127031 A CN 113127031A
Authority
CN
China
Prior art keywords
main control
control board
upgrading
upgraded
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110307137.1A
Other languages
Chinese (zh)
Inventor
罗森
蔡鹏城
雷朋飞
张利
刘志力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong PHNIX Eco Energy Solution Ltd
Original Assignee
Guangdong PHNIX Eco Energy Solution Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong PHNIX Eco Energy Solution Ltd filed Critical Guangdong PHNIX Eco Energy Solution Ltd
Priority to CN202110307137.1A priority Critical patent/CN113127031A/en
Publication of CN113127031A publication Critical patent/CN113127031A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a method for remotely upgrading double main control boards, which comprises the following steps: the first main control board obtains a remote upgrading instruction; judging whether the first main control board can be remotely upgraded or not; if the first main control board can be remotely upgraded, the remote upgrading instruction is sent to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails; the second main control board obtains a remote upgrading instruction; judging whether the second main control board can be remotely upgraded or not; judging whether the second main control board can be remotely upgraded or not; if the second main control board can be upgraded remotely, sending an instruction to the first main control board, and receiving upgrade data by the first main control board and simultaneously transmitting the upgrade data to the second main control board for upgrading; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed. The invention also provides a device for remotely upgrading the double main control boards, a terminal device and a storage medium. The invention realizes remote upgrade of two main boards by one DTU, thereby saving cost.

Description

Method and device for remote upgrading of double main control boards, terminal device and storage medium
Technical Field
The present invention relates to the field of remote upgrade technologies, and in particular, to a method and an apparatus for remote upgrade of dual master control boards, a terminal apparatus, and a storage medium.
Background
In the conventional technology, when a control system adopts double main control boards for control, and when the main control boards need to be upgraded, upgrading processes need to be configured respectively, so that a plurality of upgrading modules need to be configured; moreover, for the upgrading conditions of the two main control boards, including whether the upgrading is successful or not and whether the upgrading is correct or not, no way of judging is provided, so that the program work is easy to cause problems, and the upgrading task cannot be completed.
Disclosure of Invention
In order to solve the problems in the prior art, the invention aims to provide a method for remotely upgrading a dual-master control board, so that the accuracy of remote upgrading is improved.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for remotely upgrading double main control boards, wherein the double main control boards comprise a first main control board and a second main control board, and the method comprises the following steps:
the first main control board obtains a remote upgrading instruction;
judging whether the first main control board can be remotely upgraded or not; if the first main control board can be remotely upgraded, the remote upgrading instruction and the upgrading data are sent to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails;
the second main control board obtains a remote upgrading instruction;
judging whether the second main control board can be remotely upgraded or not; if the second main control board can be upgraded remotely, sending an instruction to the first main control board, receiving the upgrade data by the first main control board, simultaneously transmitting the upgrade data to the second main control board, and acquiring the upgrade data by the second main control board for upgrading; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
Preferably, the method further comprises the following steps: the second main control board is upgraded, and if the second main control board is successfully upgraded, the first main control board is upgraded through upgrading data; and if the second main control board fails to be upgraded, ending the process.
Preferably, the method further comprises the following steps: the first main control board is upgraded, and if the first main control board is upgraded successfully, a result is reported to the server; and if the first main control board fails to be upgraded, ending the process.
Preferably, the method further comprises the following steps: before the second main control board is upgraded, the first main control board sends an upgrading instruction to the second main control board after confirming that the second main control board correctly receives the remote upgrading data, and the second main control board carries out remote upgrading.
Preferably, the method for judging whether the first main control board can be upgraded remotely includes the following steps:
the first main control board obtains the software code and the version number of the sent upgrading program from the server, compares the software code and the version number, and then responds whether the upgrading is allowed or not according to the following conditions:
if the issued software code is different from the software code in the current first main control board, upgrading is not allowed;
if the issued software code is the same as the software code in the current first main control board, but the version number is the same, the upgrading is not allowed;
if the issued software code is the same as the software code in the current first main control board, the version number is different, and upgrading is allowed;
the first main control board obtains the firmware size and the firmware MD5 check code, verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions:
if the size of the firmware is larger than 300M, the first main control board responds that upgrading is not allowed;
if the size of the firmware is smaller than 300M, the response of the first main control board can be upgraded;
preferably, the step of judging whether the second main control board can be upgraded remotely includes the following steps:
the second main control board obtains the software code and the version number of the upgrading program, compares the software code and the version number, and then responds whether the upgrading is allowed or not according to the following conditions:
if the issued software code is different from the software code in the current second main control board, upgrading is not allowed;
if the issued software code is the same as the software code in the current second main control board, but the version number is the same, the upgrading is not allowed;
if the issued software code is the same as the software code in the current second main control board, the version number is different, and upgrading is allowed;
the second main control board acquires the firmware size and the firmware MD5 check code, verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions:
if the size of the firmware is larger than 300M, the second main control board responds that upgrading is not allowed;
if the firmware size is smaller than 300M, the second main control board response can be upgraded.
Preferably, the first main control board confirms that the second main control board correctly receives the remote upgrade data, wherein the confirmation mode includes the following steps.
The first main control board acquires upgrading data;
the first main control board carries out check calculation on the upgrade data, compares a calculation result with the check mark in the upgrade data, and if the calculation result is consistent with the check mark in the upgrade data, the data is successfully received, otherwise, the data is wrong.
And when the first main control board correctly receives the upgrading data, the upgrading data is completely sent to the second main control board, the second main control board also calculates the received upgrading data, if the upgrading data is consistent, the data is successfully received, and otherwise, the data is wrong.
And if the second main control board receives the upgrading data correctly, the first main control board is responded to successfully receive the upgrading data.
And when the first main control board judges that the second main control board successfully receives the data, the response server successfully receives the data.
The utility model provides a long-range upgrading device of two main control boards, two main control boards include first main control board and second main control board, include following module:
the first instruction obtaining module is used for obtaining a remote upgrading instruction by the first main control board;
the first remote upgrade judging module is used for judging whether the first main control board can be upgraded remotely or not; if the first main control board can be remotely upgraded, the remote upgrading instruction is sent to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails;
the second instruction obtaining module is used for obtaining a remote upgrading instruction by the second main control board;
the second remote upgrade judging module is used for judging whether the second main control board can be upgraded remotely or not; if the second main control board can be remotely upgraded, sending an instruction to the first main control board, receiving upgrade data by the first main control board and simultaneously transmitting the upgrade data to the second main control board, and remotely upgrading the second main control board; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
Preferably, the system further comprises the following modules:
the third remote upgrading judgment module is used for upgrading the second main control board, if the second main control board is upgraded successfully, the first main control board is upgraded through upgrading data, and if the second main control board is upgraded unsuccessfully, the second remote upgrading judgment module is ended;
the fourth remote upgrading judgment module is used for upgrading the first main control board, reporting the result to the server if the first main control board is upgraded successfully, and finishing if the first main control board is upgraded unsuccessfully;
and the fifth remote upgrade judging module is used for issuing an upgrade instruction to the second main control board after the first main control board confirms that the second main control board correctly receives the remote upgrade data before the second main control board is upgraded, and the second main control board carries out remote upgrade.
A terminal device comprises a processor, a memory and a program which is stored in the memory and configured to be executed by the processor, wherein the processor realizes the remote upgrading method of the double main control boards when executing the program.
A readable storage medium comprises a stored program, wherein when the program runs, a device in which the readable storage medium is located is controlled to execute the method for the remote upgrade of the dual master control boards.
The invention has the beneficial effects that:
the invention can realize remote upgrade of two main boards by one DTU, saves one DTU compared with the prior method for remotely upgrading one main board by one DTU and saves cost. The DTU is connected on the first main control board, when carrying out remote upgrade, the DTU sends the firmware data of remote upgrade to the first main control board, and the second main control board is sent to the first main control board, just can send the order down and carry out remote upgrade for the second main control board after the first main control board confirms that the second main control board correctly receives the firmware data of remote upgrade, after the second main control board correctly upgrades successfully, first main control board just can carry out remote upgrade, otherwise, do not upgrade, improve the exactness of remote upgrade.
Drawings
The invention is explained in more detail below with reference to the figures and examples.
Fig. 1 is a flowchart of a method for remotely upgrading dual master control boards according to the present invention;
fig. 2 is a schematic flow chart illustrating the process of confirming that the second main control board correctly receives the upgrade data according to the present invention;
fig. 3 is a schematic diagram of a circuit of a dual main control board (a part of the frequency conversion board is omitted).
In the figure:
1-a first main control board; 2-a second main control panel; 3-a wire controller; 4-DTU; 5-a frequency conversion plate; 6-centralized control screen.
Detailed Description
In order to make the technical problems solved, technical solutions adopted, and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention are described in further detail below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for remotely upgrading a dual master control board, where the dual master control board includes a first master control board and a second master control board, and the method includes the following steps:
s1, the first main control board obtains a remote upgrading instruction;
s2, judging whether the first main control board can be upgraded remotely, the specific steps are as follows:
s21, the first main control board obtains the software code and the version number from the server and compares the software code and the version number, and then whether the upgrade is allowed is responded according to the following conditions:
s211, if the issued software code is different from the software code in the existing first main control board, upgrading is not allowed;
s212, if the issued software code is the same as the software code in the existing first main control board, but the version number is the same, the upgrading is not allowed;
s213, if the issued software code is the same as the software code in the current first main control board and the version number is different, allowing upgrading;
s22, the first main control board obtains the firmware size and the firmware MD5 check code, verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions:
s221, if the size of the firmware is larger than 300M, the first main control board responds that upgrading is not allowed;
s222, if the size of the firmware is smaller than 300M, the response of the first main control board can be upgraded;
s23, if the first main control board can be upgraded remotely, sending a remote upgrade instruction, a software code and a version number of an upgrade program, a firmware size and a firmware MD5 check code to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails;
s3, the second main control board obtains a remote upgrading instruction;
s4, judging whether the second main control board can be upgraded remotely, and the specific steps are as follows:
s41, the second main control board obtains the software code and the version number of the upgrade program and compares the software code and the version number, and then whether the upgrade is allowed is responded according to the following conditions:
s411, if the issued software code is different from the software code in the existing second main control board, upgrading is not allowed;
s412, if the issued software code is the same as the software code in the current second main control board, but the version number is the same, the upgrading is not allowed;
s413, if the issued software codes are the same as the software codes in the existing second main control board, and the version numbers are different, upgrading is allowed;
s42, the second main control board obtains the firmware size and the firmware MD5 check code, verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions:
s421, if the size of the firmware is larger than 300M, the second main control board responds that the upgrading is not allowed;
s422, if the size of the firmware is smaller than 300M, the response of the second main control board can be upgraded;
and S43, if the second main control board can be upgraded remotely, sending an instruction to the first main control board, receiving the upgrade data by the first main control board, and simultaneously transmitting the upgrade data to the second main control board, wherein the second main control board acquires the upgrade data to upgrade. If the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
S5, upgrading the second main control board, if the second main control board is upgraded successfully, the first main control board is upgraded through upgrading data; and if the second main control board fails to be upgraded, ending the process.
S6, upgrading the first main control board, and reporting the result to the server if the first main control board is upgraded successfully; and if the first main control board fails to be upgraded, ending the process.
Particularly, in step S4, before the second main control board performs the upgrade, the first main control board issues the upgradable command to the second main control board after confirming that the second main control board correctly receives the remote upgrade data, and the second main control board performs the remote upgrade.
In this embodiment, the first main control board is connected with a DTU, and the DTU sends the upgrade data issued by the server to the first main control board. The server issues the upgrade data, and the upgrade data can be issued according to a preset program or based on an external instruction.
Referring to fig. 2, the first main control board confirms that the second main control board correctly receives the remote upgrade data, and then issues the upgradable command to the second main control board, and for the confirmation mode, the following embodiments may be adopted, but not limited to:
in one embodiment, this may be embodied as follows:
s101, a first main control board acquires upgrade data;
and S102, the upgrading data has a check mark, the first main control board performs check calculation on the upgrading data, the calculation result is compared with the check mark in the upgrading data, if the calculation result is consistent with the check mark in the upgrading data, the data is successfully received, and otherwise, the data is wrong.
And S103, when the first main control board receives the upgrade data correctly, the upgrade data is completely sent to the second main control board, the second main control board also calculates the received upgrade data, if the upgrade data is consistent, the received data is successful, and otherwise, the data is wrong.
And S104, if the second main control board receives the upgrading data correctly, the second main control board responds to the first main control board to successfully receive the upgrading data.
And S105, when the first main control board judges that the second main control board successfully receives the data, the response server successfully receives the data.
The five points represent the receiving process of one frame of upgrading data, and all the upgrading data are received in sequence in the mode.
The first main control board and the second main control board realize upgrading, and the specific upgrading mode can be that the received upgrading data is used for replacing corresponding original data in the program of the main control board.
By the method, remote upgrading is achieved, the DTU is connected to the first main control board, when remote upgrading is conducted, the DTU can send upgrading data of remote upgrading sent by the server to the first main control board, the first main control board sends the upgrading data to the second main control board through the communication adapter, when the first main control board confirms that the second main control board correctly receives the upgrading data of the remote upgrading, the upgrading instruction can be sent to the second main control board for remote upgrading, when the second main control board correctly upgrades, the first main control board can conduct the remote upgrading, otherwise, upgrading is not conducted, and correctness of the remote upgrading is improved.
The invention realizes that one DTU carries out remote upgrade on two main control boards, and saves the cost compared with the prior DTU which carries out remote upgrade on one main board.
As shown in the structural block diagram of fig. 3, the dual master control board remote upgrade apparatus according to the present invention includes the first master control board and the second master control board, and includes the following modules:
the first instruction obtaining module is used for obtaining a remote upgrading instruction by the first main control board;
the first remote upgrade judging module is used for judging whether the first main control board can be upgraded remotely or not; if the first main control board can be upgraded remotely, sending a remote upgrading instruction, a software code and a version number of an upgrading program, a firmware size and a firmware MD5 check code to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails;
the second instruction obtaining module is used for obtaining a remote upgrading instruction by the second main control board;
the second remote upgrade judging module is used for judging whether the second main control board can be upgraded remotely or not; if the second main control board can be upgraded remotely, sending an instruction to the first main control board, receiving the upgrade data by the first main control board, simultaneously transmitting the upgrade data to the second main control board, and acquiring the upgrade data by the second main control board for upgrading; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
The third remote upgrading judgment module is used for upgrading the second main control board, and if the second main control board is upgraded successfully, the first main control board is upgraded through upgrading data; and if the second main control board fails to be upgraded, ending the process.
And the fourth remote upgrading judgment module is used for upgrading the first main control board, reporting the result to the server if the first main control board is upgraded successfully, and finishing if the first main control board is upgraded unsuccessfully.
And the fifth remote upgrade judging module is used for issuing an upgradable instruction to the second main control board after the first main control board confirms that the second main control board correctly receives the remote upgrade data before the second main control board is upgraded, and the second main control board carries out remote upgrade.
In one embodiment, the first remote upgrade determination module includes a first transceiver module, a first verification module, a second verification module, and a second transceiver module.
The first transceiver module is used for the first main control board to obtain the software code and the version number of the upgrading program from the server;
the first checking module is used for comparing the obtained data by the first main control board, and then whether the response is allowed to be upgraded is determined according to the following conditions: if the issued software code is different from the software code in the current first main control board, upgrading is not allowed; if the issued software code is the same as the software code in the current first main control board, but the version number is the same, the upgrading is not allowed; if the issued software code is the same as the software code in the current first main control board, and the version number is different, upgrading is allowed;
the second check module is used for the first main control board to obtain the firmware size and the firmware MD5 check code, and the first main control board verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions: if the size of the firmware is larger than 300M, the first main control board responds that upgrading is not allowed; if the firmware size is smaller than 300M, the first main control board response can be upgraded.
The second transceiver module is used for sending a remote upgrading instruction, a software code and a version number of an upgrading program, a firmware size and a firmware MD5 check code to the second main control board if the first main control board can be upgraded remotely; if the first main control board can not be remotely upgraded, the upgrading is judged to be failed.
In one embodiment, the second remote upgrade determination module includes a third transceiver module, a third verification module, a fourth verification module, and a fourth transceiver module.
The third transceiver module is used for the second main control board to obtain the software code and the version number of the upgrading program to the second main control board;
the third checking module is used for comparing the obtained data of the second main control board, and then whether the response is allowed to be upgraded is carried out according to the following conditions: if the issued software code is different from the software code in the current second main control board, upgrading is not allowed; if the issued software code is the same as the software code in the current second main control board, but the version number is the same, the upgrading is not allowed; if the issued software code is the same as the software code in the current second main control board, the version number is different, and upgrading is allowed;
the fourth check module is used for the second main control board to obtain the firmware size and the firmware MD5 check code, and the second main control board verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions: if the size of the firmware is larger than 300M, the second main control board responds that upgrading is not allowed; if the size of the firmware is smaller than 300M, the response of the second main control board can be upgraded;
the fourth transceiver module is used for judging that the second main control board can be upgraded remotely, namely sending an instruction to the first main control board to receive the upgrading data, receiving and transmitting the upgrading data to the second main control board, and the second main control board acquires the upgrading data to upgrade; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
The invention also provides a terminal device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the method for remotely upgrading the dual master control boards when executing the computer program.
The processor may be a central processing unit, other general purpose processor, a digital signal processor, an application specific integrated circuit, etc.
The memory may be used to store the programs and/or modules, and the processor may perform various functions by operating or executing the programs and/or modules stored in the memory and calling data stored in the memory. A
The terminal device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a program, which may be stored in a readable storage medium and executed by a processor, to implement the steps of the above-described method embodiments.
As an embodiment, referring to fig. 3, the present invention provides a dual main control board circuit configured and matched with the above remote upgrade method, including the following structures: line controller, centralized control, DTU, first main control board, second main control board.
Specifically, the first main control board and the second main control board are respectively provided with three communication ports; the line controller and the DTU are arranged on the first main control board, and the centralized control screen is arranged on the second main control board; the first main control board and the second main control board are connected with each other through a communication port.
The three communication ports of the first main control board and the second main control board are 485 communication ports, namely an RS485_1 communication port, an RS485_2 communication port and an RS485_3 communication port, and the 485 communication mode is half-duplex communication. The RS485_2 communication port of the first main control board is connected with the RS485_2 communication port of the second main control board; the RS485_1 communication port of the first main control board is connected with the line controller, the RS485_3 communication port of the first main control board is connected with the DTU, and the RS485_2 communication port of the second main control board is connected with the centralized control screen. The double master controllers are provided with a centralized control port; the two main control boards are respectively provided with interconnected communication ports, and the second main control board is used as a slave machine for communicating with the first main control board and listening to the coordination control of the first main control board.
The first main control board and the second main control board are both provided with selection switches for distinguishing the first main control board from the second main control board; when the selection switch is short-circuited, the first main control board is used; and when the selection switch is disconnected, the selection switch is a second main control board.
In this embodiment, the main control board is a PC1602 main control board, and only one of the main control board can be used as a host at the same time, and the line controller and the DTU are placed on the first main control board as a general logic coordination control.
In the using process, if the frequency conversion board is used as a slave, the RS485_1 communication ports of the two main control boards are determined to be used as a host for transmitting data, and the condition that the communication data volume is large is considered, the first main control board is used for general logic coordination control, a wire controller for collecting and uploading all data and a DTU (data transfer unit) are suitable for displaying, and data are not specially sent to the second main control board for displaying, so that the RS485_1 communication ports are used for connecting slave driving boards such as the frequency conversion board, and the RS485_1 communication port of the first main control board is used as a wire controller connecting port.
The invention also provides a readable storage medium, which comprises a stored computer program, wherein when the program runs, the device where the readable storage medium is located is controlled to execute a method such as dual master control board remote upgrade.
The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM) or Random Access Memory (RAM) hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
In the description herein, it is to be understood that the terms "upper," "lower," "left," "right," and the like are used in an orientation or positional relationship merely for convenience in description and simplicity of operation, and do not indicate or imply that the referenced device or element must have a particular orientation, configuration, and operation in a particular orientation, and therefore should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used merely for descriptive purposes and are not intended to have any special meaning.
In the description herein, references to the description of "an embodiment," "an example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be appropriately combined to form other embodiments as will be appreciated by those skilled in the art.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.

Claims (11)

1. A method for remotely upgrading a double main control board, wherein the double main control board comprises a first main control board and a second main control board, and is characterized by comprising the following steps:
the first main control board obtains a remote upgrading instruction;
judging whether the first main control board can be remotely upgraded or not; if the first main control board can be remotely upgraded, the remote upgrading instruction and the upgrading data are sent to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails;
the second main control board obtains a remote upgrading instruction;
judging whether the second main control board can be remotely upgraded or not; if the second main control board can be upgraded remotely, sending an instruction to the first main control board, receiving the upgrade data by the first main control board, simultaneously transmitting the upgrade data to the second main control board, and acquiring the upgrade data by the second main control board for upgrading; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
2. The method for remote upgrading of the dual master control boards according to claim 1, further comprising the following steps: the second main control board is upgraded, and if the second main control board is successfully upgraded, the first main control board is upgraded through upgrading data; and if the second main control board fails to be upgraded, ending the process.
3. The method for remote upgrading of the dual master control boards according to claim 2, further comprising the following steps: the first main control board is upgraded, and if the first main control board is upgraded successfully, a result is reported to the server; and if the first main control board fails to be upgraded, ending the process.
4. The method for remote upgrading of the dual master control boards according to claim 1, further comprising the following steps: before the second main control board is upgraded, the first main control board sends an upgradable instruction to the second main control board after confirming that the second main control board correctly receives the remote upgrading data, and the second main control board carries out remote upgrading.
5. The method for remote upgrade of dual master control boards according to claim 1,
judging whether the first main control board can be remotely upgraded or not, and specifically comprising the following steps:
the first main control board obtains the software code and the version number of the sent upgrading program from the server, compares the software code and the version number, and then responds whether the upgrading is allowed or not according to the following conditions:
if the issued software code is different from the software code in the current first main control board, upgrading is not allowed;
if the issued software code is the same as the software code in the current first main control board, but the version number is the same, the upgrading is not allowed;
if the issued software code is the same as the software code in the current first main control board, and the version number is different, upgrading is allowed;
the first main control board obtains the firmware size and the firmware MD5 check code, verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions:
if the size of the firmware is larger than 300M, the first main control board responds that upgrading is not allowed;
if the firmware size is smaller than 300M, the first main control board response can be upgraded.
6. The method for remote upgrade of dual master control boards according to claim 1,
judging whether the second main control board can be remotely upgraded or not, and specifically performing the following steps:
the second main control board obtains the software code and the version number of the upgrading program, compares the software code and the version number, and then responds whether the upgrading is allowed or not according to the following conditions:
if the issued software code is different from the software code in the current second main control board, upgrading is not allowed;
if the issued software code is the same as the software code in the current second main control board, but the version number is the same, the upgrading is not allowed;
if the issued software code is the same as the software code in the current second main control board, the version number is different, and upgrading is allowed;
the second main control board acquires the firmware size and the firmware MD5 check code, verifies the firmware size and receives the MD5 check code; then, whether the response allows the upgrade is performed according to the following conditions:
if the size of the firmware is larger than 300M, the second main control board responds that upgrading is not allowed;
if the firmware size is smaller than 300M, the second main control board response can be upgraded.
7. The method for remote upgrade of dual master control boards according to claim 4,
the first main control board confirms that the second main control board correctly receives the remote upgrading data, wherein the confirmation mode comprises the following steps.
The first main control board acquires upgrading data;
the first main control board carries out check calculation on the upgrade data, compares a calculation result with the check mark in the upgrade data, and if the calculation result is consistent with the check mark in the upgrade data, the data is successfully received, otherwise, the data is wrong.
And when the first main control board correctly receives the upgrading data, the upgrading data is completely sent to the second main control board, the second main control board also calculates the received upgrading data, if the upgrading data is consistent, the data is successfully received, and otherwise, the data is wrong.
And if the second main control board receives the upgrading data correctly, the first main control board is responded to successfully receive the upgrading data.
And when the first main control board judges that the second main control board successfully receives the data, the response server successfully receives the data.
8. The utility model provides a long-range upgrading device of two main control boards, two main control boards include first main control board and second main control board, its characterized in that includes following module:
the first instruction obtaining module is used for obtaining a remote upgrading instruction by the first main control board;
the first remote upgrade judging module is used for judging whether the first main control board can be upgraded remotely or not; if the first main control board can be remotely upgraded, the remote upgrading instruction is sent to the second main control board; if the first main control board can not be remotely upgraded, judging that the upgrading fails;
the second instruction obtaining module is used for obtaining a remote upgrading instruction by the second main control board;
the second remote upgrade judging module is used for judging whether the second main control board can be upgraded remotely or not; if the second main control board can be upgraded remotely, sending an instruction to the first main control board, receiving upgrade data by the first main control board and simultaneously transmitting the upgrade data to the second main control board, and acquiring the upgrade data by the second main control board for upgrading; if the second main control board can not be remotely upgraded, the upgrading is judged to be failed.
9. The dual master control board remote upgrade apparatus according to claim 8, further comprising the following modules:
the third remote upgrading judgment module is used for upgrading the second main control board, if the second main control board is upgraded successfully, the first main control board is upgraded through upgrading data, and if the second main control board is upgraded unsuccessfully, the second remote upgrading judgment module is ended;
the fourth remote upgrading judgment module is used for upgrading the first main control board, reporting the result to the server if the first main control board is upgraded successfully, and finishing if the first main control board is upgraded unsuccessfully;
and the fifth remote upgrade judging module is used for issuing an upgradable instruction to the second main control board after the first main control board confirms that the second main control board correctly receives the remote upgrade data before the second main control board is upgraded, and the second main control board carries out remote upgrade.
10. A terminal device, comprising a processor, a memory, and a program stored in the memory and configured to be executed by the processor, wherein the processor executes the program to implement the method for remote upgrade of dual master control boards according to any one of claims 1 to 7.
11. A readable storage medium, characterized in that the readable storage medium comprises a stored program, wherein when the program runs, the apparatus in which the readable storage medium is located is controlled to execute the method for remote upgrade of dual master control boards according to any one of claims 1 to 7.
CN202110307137.1A 2021-03-23 2021-03-23 Method and device for remote upgrading of double main control boards, terminal device and storage medium Pending CN113127031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110307137.1A CN113127031A (en) 2021-03-23 2021-03-23 Method and device for remote upgrading of double main control boards, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110307137.1A CN113127031A (en) 2021-03-23 2021-03-23 Method and device for remote upgrading of double main control boards, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN113127031A true CN113127031A (en) 2021-07-16

Family

ID=76773716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110307137.1A Pending CN113127031A (en) 2021-03-23 2021-03-23 Method and device for remote upgrading of double main control boards, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN113127031A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Updating method, device and system for routing equipment
CN104102518A (en) * 2014-07-23 2014-10-15 江苏兆伏新能源有限公司 Double-CPU system and program updating method thereof
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method
CN105677380A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Method and device for plate-to-plate upgrading with dual master controls isolated
CN110134415A (en) * 2019-04-12 2019-08-16 深圳市致宸信息科技有限公司 A kind of controller and its method for upgrading software and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Updating method, device and system for routing equipment
CN104102518A (en) * 2014-07-23 2014-10-15 江苏兆伏新能源有限公司 Double-CPU system and program updating method thereof
CN105677380A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Method and device for plate-to-plate upgrading with dual master controls isolated
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method
CN110134415A (en) * 2019-04-12 2019-08-16 深圳市致宸信息科技有限公司 A kind of controller and its method for upgrading software and device

Similar Documents

Publication Publication Date Title
CN101895394B (en) Implementation method and the device thereof of exchanges data is carried out with OBD diagnose connector
CN105045626A (en) Program burning method, burning device and controller
CN108616582B (en) Pairing method, device and system of internal machine and wire controller
JPWO2004039010A1 (en) Electronic equipment system
CN110727255B (en) Whole vehicle controller software upgrading test system and vehicle
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN212627964U (en) Vehicle battery replacing device, system and battery replacing station
CN114721917A (en) Data acquisition method, device, system, equipment and storage medium
CN103902315A (en) System and method for online updating of multiple board cards
CN111993947A (en) Secondary battery replacement method, device and system, storage medium and computer equipment
CN111203869B (en) Robot system maintenance method and device, robot and readable storage medium
CN106020898A (en) Software upgrading method and system of multi-processor device
CN113127031A (en) Method and device for remote upgrading of double main control boards, terminal device and storage medium
CN108769241B (en) Operation method, device and system for remote control of heat pump unit
CN203616750U (en) ID (identity) identification device based on CAN (controller area network) bus communication and battery system
CN103701505A (en) NFC (Near Field Communication) device
CN109976778B (en) Software updating method and system of vehicle electronic product, upper computer and storage medium
CN212460672U (en) Gauze mask is payment control circuit, payment system and gauze mask vending machine for vending machine
CN114630306A (en) Automatic pairing method for electric energy meter and circuit breaker based on reactive current pulse
CN112491954A (en) Intelligent ammeter upgrading method
CN104867374A (en) Slave plate ID learning system and method
CN113556210A (en) Upper computer and method for establishing communication connection
CN106530023A (en) Tax supervising server and anti-suspension method of tax supervising core board
CN110990040A (en) Software upgrading method of air conditioning system
CN215956393U (en) Test system and test equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination