CN110688138A - Multi-split program upgrading method and device, multi-split system equipment and medium - Google Patents

Multi-split program upgrading method and device, multi-split system equipment and medium Download PDF

Info

Publication number
CN110688138A
CN110688138A CN201910926168.8A CN201910926168A CN110688138A CN 110688138 A CN110688138 A CN 110688138A CN 201910926168 A CN201910926168 A CN 201910926168A CN 110688138 A CN110688138 A CN 110688138A
Authority
CN
China
Prior art keywords
upgrading
program
condition
node
upgrade
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
CN201910926168.8A
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.)
Hisense Shandong Air Conditioning Co Ltd
Original Assignee
Hisense Shandong Air Conditioning Co 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 Hisense Shandong Air Conditioning Co Ltd filed Critical Hisense Shandong Air Conditioning Co Ltd
Priority to CN201910926168.8A priority Critical patent/CN110688138A/en
Publication of CN110688138A publication Critical patent/CN110688138A/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
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for upgrading a multi-online program, equipment of a multi-online system and a medium, wherein the method is applied to the equipment of the multi-online system and comprises the following steps: reading a programming condition and an upgrading program written in advance from a memory of the current equipment when the current equipment is judged to be source node equipment; wherein the programming condition comprises an upgrade condition; broadcasting the upgrading condition on a communication bus of the multi-split system, so that other node equipment judges whether the other node equipment meets the upgrading condition or not when monitoring the upgrading condition, and returns corresponding reply information when judging that the upgrading condition is met; receiving reply information returned by the node equipment meeting the conditions; and sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can upgrade the program according to the upgrading program. The invention can simply and efficiently realize the multi-online program upgrading.

Description

Multi-split program upgrading method and device, multi-split system equipment and medium
Technical Field
The invention relates to the technical field of multi-online systems, in particular to a multi-online program upgrading method and device, and equipment and a medium of a multi-online system.
Background
The multi-split commercial air conditioner has the structural characteristics that: all the internal machines and the external machines in the same refrigerating system share one communication bus, and the internal machines and the external machines of the same refrigerating system share one set of refrigerant pipelines.
In the existing multi-split program upgrading process, generally, equipment needing to be upgraded in a multi-split system is manually identified and searched, then the equipment needing to be upgraded is disassembled one by one, then a program is programmed into a main control chip of the equipment, and then the equipment is restored to the original state. The inventor finds that, in the process of implementing the present invention, in the existing multi-split program upgrading process, on one hand, because of the large number of devices in the multi-split system and the inconsistent installation positions, the time consumption is long and the efficiency is low by identifying and searching the devices to be upgraded manually, and on the other hand, because the operation process of upgrading the program of each device is too complicated, the time consumption is long and the efficiency is low, and thus it can be seen that the existing multi-split program upgrading method has the problems of high complexity and low efficiency.
Disclosure of Invention
The embodiment of the invention provides a method and a device for upgrading a multi-online program, equipment and a medium of a multi-online system, and the multi-online program can be simply and efficiently upgraded.
In order to achieve the above object, an embodiment of the present invention provides a method for upgrading a multi-split program, which is applied to a device of a multi-split system, and includes:
reading a programming condition and an upgrading program written in advance from a memory of the current equipment when the current equipment is judged to be source node equipment; wherein the programming condition comprises an upgrade condition;
broadcasting the upgrading condition on a communication bus of the multi-split system, so that other node equipment connected to the communication bus judges whether the other node equipment meets the upgrading condition or not when monitoring the upgrading condition, and returns corresponding reply information when judging that the upgrading condition is met; wherein the reply information comprises a node address;
receiving reply information returned by the node equipment meeting the conditions;
and sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can upgrade the program according to the upgrading program.
As an improvement of the above, the upgrade condition includes at least one of a node type, a node capacity, and a node program version.
As an improvement of the above scheme, the programming condition further includes a continuous transmission duration; the continuous sending time length is configured according to the longest communication time of the multi-split system;
the duration of the upgrade condition broadcast by the current device on the communication bus is equal to the duration of the continuous transmission time.
As an improvement of the above scheme, the programming condition further includes a single data packet length and a data packet number;
then, the sending the upgrade program to the node device meeting the condition according to the reply information specifically includes:
according to the length of the single data packet and the number of the data packets, performing sub-packet processing on the upgrading program to obtain a plurality of upgrading data packets;
and sending the plurality of upgrading data packets to the node equipment meeting the conditions according to the reply information.
As an improvement of the above scheme, the process of program upgrade performed by the node device that meets the condition according to the upgrade program specifically includes the steps of:
receiving and storing the plurality of upgrading data packets;
checking the plurality of upgrading data packets;
when the plurality of upgrading data packets are judged to pass the verification, program updating is carried out according to the plurality of upgrading data packets, and upgrading completion information is fed back to the current equipment after the program updating is completed;
and when judging that the plurality of upgrading data packets do not pass the verification, ending the program upgrading and restoring to the state before the program upgrading.
As an improvement of the above scheme, the upgrade data packet includes a checksum;
and the node equipment meeting the conditions checks the plurality of upgrading data packets by adopting a CRC (cyclic redundancy check) check mode.
Another embodiment of the present invention correspondingly provides a multi-split program upgrading apparatus, which is applied to a device of a multi-split system, and includes:
the reading module is used for reading the programming condition and the upgrading program written in advance from the memory of the current equipment when the current equipment is judged to be the source node equipment; wherein the programming condition comprises an upgrade condition;
the broadcast module is used for broadcasting the upgrading condition on a communication bus of the multi-split system, so that when other node equipment connected to the communication bus monitors the upgrading condition, whether the other node equipment meets the upgrading condition or not is judged, and corresponding reply information is returned when the upgrading condition is judged to be met; wherein the reply information comprises a node address;
the receiving module is used for receiving reply information returned by the node equipment meeting the conditions;
and the upgrading module is used for sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can be upgraded according to the upgrading program.
Another embodiment of the present invention provides an apparatus of a multi-split system, including the multi-split program upgrading device described above.
Another embodiment of the present invention provides a multi-online program upgrading device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements the multi-online program upgrading method as described in any one of the above items.
Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the multi-online program upgrading method described in any one of the above.
Compared with the prior art, the method, the device, the equipment and the medium for upgrading the multi-split program provided by the embodiment of the invention have the advantages that firstly, when the current equipment is judged to be the source node equipment, the pre-written programming condition and the upgrading program are read from the memory of the current equipment; wherein the programming condition comprises an upgrade condition; then broadcasting the upgrading condition on a communication bus of the multi-split system, so that other node equipment connected to the communication bus judges whether the other node equipment meets the upgrading condition when monitoring the upgrading condition, and returns corresponding reply information when judging that the upgrading condition is met; wherein the reply information comprises a node address; then, receiving reply information returned by the node equipment meeting the conditions; and finally, according to the reply information, sending the upgrading program to the node equipment meeting the conditions, so that the node equipment meeting the conditions carries out program upgrading according to the upgrading program. In the process of multi-online program upgrading, because the characteristics of bus communication of multi-online products are relied on, the node equipment meeting the upgrading conditions is searched through the communication bus of the multi-online system, and the program upgrading of the node equipment meeting the upgrading conditions is completed in batches without disassembling all equipment, so that the limitation of equipment installation positions on program upgrading is eliminated, the operation complexity of upgrading is effectively reduced, the time required by upgrading is shortened, the upgrading efficiency is improved, in addition, the upgrading conditions can be set according to the actual upgrading requirements, the flexibility is high, and the upgrading process can be more reasonable and controllable.
Drawings
Fig. 1 is a schematic flow chart of a method for upgrading a multi-online program according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a multi-online program upgrading apparatus according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a multi-online program upgrading device according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a schematic flow chart of a method for upgrading a multi-online program according to an embodiment of the present invention.
The embodiment of the invention provides a method for upgrading a multi-split program, which can be applied to equipment of a multi-split system, such as an air duct machine, a ceiling machine or a wall-mounted machine of the multi-split system, and comprises the following steps of S11 to S14:
s11, when the current equipment is judged to be source node equipment, reading a programming condition and an upgrading program written in advance from a memory of the current equipment; wherein the programming condition comprises an upgrade condition.
Specifically, it is first determined whether the current device is a source node device, and when it is determined that the current device is the source node device, the pre-written programming condition and the upgrade program are read from the memory thereof.
The source node device is a node device in the multi-split system, and programming conditions and an upgrading program are written in a memory of a main control chip in advance. In specific implementation, a node device most convenient for program programming may be manually selected in advance according to an actual installation location of the multi-split system, a programming condition and an upgrade program are written into the node device through a programmer, and the node device is used as a source node device for program upgrading.
There are various methods for determining whether the current device is a source node device, for example, determining whether the current device is a source node device by determining whether a pre-written programming condition and an upgrade program exist in a memory of a main control chip of the current device, or determining whether the current device is a source node device by setting a source node identifier in the programming condition in advance and subsequently determining whether a pre-written source node identifier exists in a memory of a main control chip of the current device. The embodiments of the present invention are not limited to these embodiments.
The upgrading conditions refer to the summary of the upgrading conditions that each node device needs to meet in the program upgrading process, and only the node devices that completely meet the upgrading conditions allow the program upgrading. In specific implementation, the upgrade condition may be set according to actual upgrade needs, for example, according to the node type of the node device or the node program version, and the flexibility is high, so that the upgrade process is more reasonable and controllable. Optionally, the upgrade condition includes at least one of a node type, a node capacity, and a node program version.
The programming conditions at least include upgrading conditions, and the programming conditions may also include conditions to be followed by the source node device in the program upgrading process, for example, the duration of the source node device broadcasting the upgrading conditions on the bus, or the manner in which the source node device sends the upgrading program, so as to further optimize the program upgrading process. In specific implementation, other contents except the upgrading condition in the programming condition can be set according to actual needs, and the beneficial effects of the invention are not influenced.
S12, broadcasting the upgrade condition on a communication bus of the multi-split system, so that when other node equipment connected to the communication bus monitors the upgrade condition, judging whether the other node equipment meets the upgrade condition, and returning corresponding reply information when the other node equipment meets the upgrade condition; wherein the reply information comprises a node address.
Specifically, taking the upgrade condition including the node type as an example, after reading the pre-written programming condition and the upgrade program, sending the upgrade condition to the communication bus of the multi-split system in a data packet manner, so as to continuously broadcast the upgrade condition within a certain time, when monitoring the upgrade condition, other node devices connected to the communication bus compare the node type of the device with the node type in the upgrade condition, thereby determining whether the device meets the upgrade condition, when determining that the node type of the device is consistent with the node type in the upgrade condition, the device meets the upgrade condition, and when determining that the upgrade condition is met, returns corresponding reply information, and enters the program upgrade state. After other node equipment connected to a communication bus of the multi-split system normally operates, information of the communication bus is monitored in real time.
Optionally, the reply information further includes a node type and a node capacity.
Further, the programming condition further comprises a continuous sending time length; the continuous sending time length is configured according to the longest communication time of the multi-split system;
the duration of the upgrade condition broadcast by the current device on the communication bus is equal to the duration of the continuous transmission time.
The maximum communication time of the multi-split system is the maximum time required for all the nodes on the communication bus of the multi-split system to send data once. By setting the duration of the upgrade condition broadcast by the current device on the communication bus to be equal to the continuous sending duration, the upgrade condition can be sent to all node devices on the communication bus, and meanwhile, the situation that the upgrade time consumption is increased due to the fact that the duration of the upgrade condition broadcast on the communication bus is too long can be effectively avoided.
And S13, receiving the reply information returned by the node equipment meeting the condition.
And if no other node equipment returns the reply information on the communication bus, all the node equipment needing to be upgraded is found by default, and the search is ended.
And S14, sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can upgrade the program according to the upgrading program.
After the search is finished, the upgrading program is sent to all the node devices meeting the conditions through the communication bus according to all the received reply information, so that all the node devices meeting the conditions receive the upgrading program and then store the upgrading program to an idle ROM (read only memory) area or an external memory for program upgrading.
Furthermore, the programming condition also comprises the length of a single data packet and the number of the data packets;
then, the sending the upgrade program to the node device meeting the condition according to the reply information specifically includes:
according to the length of the single data packet and the number of the data packets, performing sub-packet processing on the upgrading program to obtain a plurality of upgrading data packets;
and sending the plurality of upgrading data packets to the node equipment meeting the conditions according to the reply information.
The single packet length refers to a maximum packet length allowed when the source node device performs data transmission with other node devices. The number of packets is the number of packets that are obtained by packetizing the upgrade program, and specifically, the number of packets is ═ 1 (upgrade program total Byte size (Byte)/single packet length (Byte)).
The upgrading program is divided into a plurality of upgrading data packets according to the length of a single data packet and the number of the data packets in the programming condition, and then the plurality of upgrading data packets are sent to the node equipment meeting the condition through the communication bus according to the node address in the reply information. By dividing the upgrading program into a plurality of upgrading data packets and transmitting the upgrading data packets to the node equipment meeting the conditions, the data transmission efficiency between the source node equipment and other node equipment can be effectively improved, and the program upgrading efficiency is further improved.
Still further, the process of program upgrade by the node device meeting the condition according to the upgrade program specifically includes the steps of:
receiving and storing the plurality of upgrading data packets;
checking the plurality of upgrading data packets;
when the plurality of upgrading data packets are judged to pass the verification, program updating is carried out according to the plurality of upgrading data packets, and upgrading completion information is fed back to the current equipment after the program updating is completed;
and when judging that the plurality of upgrading data packets do not pass the verification, ending the program upgrading and restoring to the state before the program upgrading.
After receiving a plurality of upgrading data packets, the node equipment meeting the conditions stores the upgrading data packets into an idle ROM area or an external memory, checks the upgrading data packets after the transmission of the upgrading data packets is finished, updates programs according to the upgrading data packets when the upgrading data packets are judged to pass the checking, so that the node equipment finishes program upgrading and runs according to the updated programs, feeds back upgrading completion information to the current equipment after the program upgrading is finished, finishes program upgrading of the node equipment when the upgrading data packets are judged not to pass the checking completely, and restores the state of the node equipment to the state before the program upgrading, so that the node equipment still runs according to the state before the upgrading. By checking the received upgrading data packets, the accuracy of the upgrading data packets can be effectively ensured, and the accuracy of program upgrading is effectively ensured.
Optionally, after the program is upgraded, the node device shifts to a normal operation state, and continues to monitor bus information to prepare for upgrading again.
Furthermore, the upgrade data packet includes a checksum;
and the node equipment meeting the conditions checks the plurality of upgrading data packets by adopting a CRC (cyclic redundancy check) check mode.
The upgrading data packet is composed of a packet header, data and a checksum. After the node equipment meeting the conditions receives the upgrade data packet each time, firstly calculating the checksum of the currently received upgrade data packet, then comparing the checksum with the checksum in the upgrade data packet, if the checksum is consistent with the checksum in the upgrade data packet, correctly receiving the currently received upgrade data packet, and storing the data information in the currently received upgrade data packet; and if the updating data packet is inconsistent with the updating data packet, the currently received updating data packet is received wrongly, the currently received updating data packet is discarded, and the updating data packet is received again.
It should be noted that, the multi-split program upgrading method provided in this embodiment may be executed from the time when the current device is powered on through the BootLoader function, and the program upgrading state may be determined in advance before the chip of the current device normally works through the BootLoader function, so that preparation is made for program upgrading after the chip normally works.
The method for upgrading the multi-split program according to this embodiment will be better described with reference to the working timing sequence of the node device on the communication bus of the multi-split system.
Starting from power-on, each node device on a communication bus of the multi-split system first judges whether a node of the node device is a source node device.
If the node equipment is determined not to be the source node equipment, the node equipment enters a normal operation state and monitors bus information in real time, and once the upgrading condition is monitored and the node equipment is judged to meet the upgrading condition, the node equipment enters a program upgrading state and returns reply information. Receiving the upgrading data packet through the communication bus, storing the upgrading data packet, and after the transmission of the upgrading data packet is finished, checking the upgrading data packet: if the verification is correct, the node equipment operates according to the updated program, and feeds back upgrading completion information to the source node equipment; if the verification is wrong, the node equipment still operates according to the state before upgrading, and information is not fed back to the source node equipment. After the program is upgraded, the node equipment is switched to a normal operation state, and meanwhile, bus information continues to be monitored, so that preparation is made for upgrading again.
If the node device is determined to be the source node device, the node device enters a program upgrading state, broadcasts upgrading conditions to other node devices on the communication bus according to the read program upgrading conditions, and receives and records reply information returned by other node devices meeting the upgrading conditions. When the bus does not receive the reply information returned by the node equipment meeting the upgrading condition any more, the node searching is finished, the program upgrading state is entered, the upgrading data packet is sent to the bus one by one, after the upgrading data packet is sent, the node equipment meeting the upgrading condition is informed to finish sending, the upgrading completion information sent by the node equipment meeting the upgrading condition is received, the upgrading completion information is recorded, the upgrading process is finished, the source node equipment is recovered to be the common node equipment, the normal operation state is switched, and meanwhile, the bus information is monitored, and preparation is made for upgrading again.
It should be noted that, this embodiment depends on the characteristics of bus communication of a multi-split computer product, program upgrade can be realized in a bus programming mode without changing the design state of each node device, and program upgrade is performed by using wireless modules such as a WIFI module or a bluetooth module, at first, electronic control of each node device needs to be redesigned, an interface is added to meet the requirement, the cost is high, the practicability is low, and compared with program upgrade performed by using a WIFI module or a bluetooth module, the multi-split computer program upgrade method provided by this embodiment is more economical and practical.
The method for upgrading the multi-online program provided by the embodiment of the invention comprises the steps of firstly reading a pre-written programming condition and an upgrading program from a memory of the current equipment when the current equipment is judged to be source node equipment; wherein the programming condition comprises an upgrade condition; then broadcasting the upgrading condition on a communication bus of the multi-split system, so that other node equipment connected to the communication bus judges whether the other node equipment meets the upgrading condition when monitoring the upgrading condition, and returns corresponding reply information when judging that the upgrading condition is met; wherein the reply information comprises a node address; then, receiving reply information returned by the node equipment meeting the conditions; and finally, according to the reply information, sending the upgrading program to the node equipment meeting the conditions, so that the node equipment meeting the conditions carries out program upgrading according to the upgrading program. In the process of multi-online program upgrading, because the characteristics of bus communication of multi-online products are relied on, the node equipment meeting the upgrading conditions is searched through the communication bus of the multi-online system, and the program upgrading of the node equipment meeting the upgrading conditions is completed in batches without disassembling all equipment, so that the limitation of equipment installation positions on program upgrading is eliminated, the operation complexity of upgrading is effectively reduced, the time required by upgrading is shortened, the upgrading efficiency is improved, in addition, the upgrading conditions can be set according to the actual upgrading requirements, the flexibility is high, and the upgrading process can be more reasonable and controllable.
The embodiment of the invention also provides a multi-online program upgrading device which can implement all the processes of the multi-online program upgrading method.
Fig. 2 is a schematic structural diagram of a multi-online program upgrading apparatus according to an embodiment of the present invention.
The embodiment of the invention provides a multi-online program upgrading device, which is applied to equipment of a multi-online system and comprises the following components:
a reading module 21, configured to read a pre-written programming condition and an upgrade program from a memory of a current device when it is determined that the current device is a source node device; wherein the programming condition comprises an upgrade condition;
the broadcasting module 22 is configured to broadcast the upgrade condition on a communication bus of the multi-split system, so that when other node devices connected to the communication bus monitor the upgrade condition, whether the other node devices meet the upgrade condition is determined, and when the other node devices meet the upgrade condition, corresponding reply information is returned; wherein the reply information comprises a node address;
a receiving module 23, configured to receive reply information returned by a node device that meets the condition;
and the upgrading module 24 is configured to send the upgrading program to the node devices meeting the condition according to the reply information, so that the node devices meeting the condition perform program upgrading according to the upgrading program.
The embodiment of the invention also provides equipment of the multi-online system, which comprises the multi-online program upgrading device. The equipment of the multi-split system can be a ducted air conditioner, a ceiling fan or a wall-mounted air conditioner and the like.
The principle of implementing the multi-online program upgrade by the multi-online program upgrade device and the multi-online system device provided in this embodiment is the same as that in the above embodiments, and details are not described here.
Firstly, when judging that the current equipment is source node equipment, reading a programming condition and an upgrading program written in advance from a memory of the current equipment; wherein the programming condition comprises an upgrade condition; then broadcasting the upgrading condition on a communication bus of the multi-split system, so that other node equipment connected to the communication bus judges whether the other node equipment meets the upgrading condition when monitoring the upgrading condition, and returns corresponding reply information when judging that the upgrading condition is met; wherein the reply information comprises a node address; then, receiving reply information returned by the node equipment meeting the conditions; and finally, according to the reply information, sending the upgrading program to the node equipment meeting the conditions, so that the node equipment meeting the conditions carries out program upgrading according to the upgrading program. In the process of multi-online program upgrading, because the characteristics of bus communication of multi-online products are relied on, the node equipment meeting the upgrading conditions is searched through the communication bus of the multi-online system, and the program upgrading of the node equipment meeting the upgrading conditions is completed in batches without disassembling all equipment, so that the limitation of equipment installation positions on program upgrading is eliminated, the operation complexity of upgrading is effectively reduced, the time required by upgrading is shortened, the upgrading efficiency is improved, in addition, the upgrading conditions can be set according to the actual upgrading requirements, the flexibility is high, and the upgrading process can be more reasonable and controllable.
Fig. 3 is a schematic structural diagram of a multi-online program upgrading device according to another embodiment of the present invention.
The multi-online program upgrading device provided by the embodiment of the invention comprises a processor 31, a memory 32 and a computer program which is stored in the memory 32 and configured to be executed by the processor 31, wherein the processor 31 implements the multi-online program upgrading method according to any one of the above embodiments when executing the computer program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for upgrading an online program according to any of the above embodiments.
The processor 31, when executing the computer program, implements the steps in each of the above-described embodiments of the multi-online program upgrading method, for example, all the steps of the multi-online program upgrading method shown in fig. 1. Alternatively, the processor 31 may implement the functions of the modules/units in the above-mentioned embodiments of the multi-online program upgrading device, for example, the functions of the modules of the multi-online program upgrading device shown in fig. 2, when executing the computer program.
Illustratively, the computer program may be divided into one or more modules, which are stored in the memory 32 and executed by the processor 31 to accomplish the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used for describing the execution process of the computer program in the multi-online program upgrading device. For example, the computer program may be divided into a reading module, a broadcasting module, a receiving module and an upgrading module, and the specific functions of each module are as follows: the reading module is used for reading the programming condition and the upgrading program written in advance from the memory of the current equipment when the current equipment is judged to be the source node equipment; wherein the programming condition comprises an upgrade condition; the broadcast module is used for broadcasting the upgrading condition on a communication bus of the multi-split system, so that when other node equipment connected to the communication bus monitors the upgrading condition, whether the other node equipment meets the upgrading condition or not is judged, and corresponding reply information is returned when the upgrading condition is judged to be met; wherein the reply information comprises a node address; the receiving module is used for receiving reply information returned by the node equipment meeting the conditions; and the upgrading module is used for sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can be upgraded according to the upgrading program.
The multi-online program upgrading device can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The multi-online program upgrading device may include, but is not limited to, a processor 31 and a memory 32. It will be understood by those skilled in the art that the schematic diagram is merely an example of the multi-online program upgrading apparatus, and does not constitute a limitation of the multi-online program upgrading apparatus, and may include more or less components than those shown, or combine some components, or different components, for example, the multi-online program upgrading apparatus may further include an input and output device, a network access device, a bus, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 31 is the control center of the multi-online program upgrading device and connects the various parts of the whole multi-online program upgrading device by using various interfaces and lines.
The memory 32 may be used to store the computer programs and/or modules, and the processor 31 may implement various functions of the multi-online program upgrading device by operating or executing the computer programs and/or modules stored in the memory 32 and calling data stored in the memory 32. The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a 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.
Wherein, the modules/units integrated by the multi-online program upgrading device can be stored in a computer readable storage medium if the modules/units are realized in the form of software functional units and sold or used as independent products. 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 computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A multi-online program upgrading method is applied to equipment of a multi-online system and is characterized by comprising the following steps:
reading a programming condition and an upgrading program written in advance from a memory of the current equipment when the current equipment is judged to be source node equipment; wherein the programming condition comprises an upgrade condition;
broadcasting the upgrading condition on a communication bus of the multi-split system, so that other node equipment connected to the communication bus judges whether the other node equipment meets the upgrading condition or not when monitoring the upgrading condition, and returns corresponding reply information when judging that the upgrading condition is met; wherein the reply information comprises a node address;
receiving reply information returned by the node equipment meeting the conditions;
and sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can upgrade the program according to the upgrading program.
2. The multi-online program upgrade method according to claim 1, wherein the upgrade condition includes at least one of a node type, a node capacity, and a node program version.
3. The multi-split program upgrade method according to claim 1, wherein the programming condition further includes a duration of transmission; the continuous sending time length is configured according to the longest communication time of the multi-split system;
the duration of the upgrade condition broadcast by the current device on the communication bus is equal to the duration of the continuous transmission time.
4. The multi-split program upgrading method according to claim 1, wherein the programming conditions further include a single packet length and a packet number;
then, the sending the upgrade program to the node device meeting the condition according to the reply information specifically includes:
according to the length of the single data packet and the number of the data packets, performing sub-packet processing on the upgrading program to obtain a plurality of upgrading data packets;
and sending the plurality of upgrading data packets to the node equipment meeting the conditions according to the reply information.
5. The multi-online program upgrading method according to claim 4, wherein the process of performing program upgrading by the node devices meeting the condition according to the upgrading program specifically includes the steps of:
receiving and storing the plurality of upgrading data packets;
checking the plurality of upgrading data packets;
when the plurality of upgrading data packets are judged to pass the verification, program updating is carried out according to the plurality of upgrading data packets, and upgrading completion information is fed back to the current equipment after the program updating is completed;
and when judging that the plurality of upgrading data packets do not pass the verification, ending the program upgrading and restoring to the state before the program upgrading.
6. The multi-online program upgrading method according to claim 5, wherein the upgrade data packet includes a checksum;
and the node equipment meeting the conditions checks the plurality of upgrading data packets by adopting a CRC (cyclic redundancy check) check mode.
7. A multi-split program upgrading device is applied to equipment of a multi-split system and is characterized by comprising:
the reading module is used for reading the programming condition and the upgrading program written in advance from the memory of the current equipment when the current equipment is judged to be the source node equipment; wherein the programming condition comprises an upgrade condition;
the broadcast module is used for broadcasting the upgrading condition on a communication bus of the multi-split system, so that when other node equipment connected to the communication bus monitors the upgrading condition, whether the other node equipment meets the upgrading condition or not is judged, and corresponding reply information is returned when the upgrading condition is judged to be met; wherein the reply information comprises a node address;
the receiving module is used for receiving reply information returned by the node equipment meeting the conditions;
and the upgrading module is used for sending the upgrading program to the node equipment meeting the conditions according to the reply information, so that the node equipment meeting the conditions can be upgraded according to the upgrading program.
8. An apparatus of a multi-split system, comprising the multi-split program upgrading device according to claim 7.
9. A multi-split program upgrading device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the multi-split program upgrading method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the multi-online program upgrade method according to any one of claims 1 to 6.
CN201910926168.8A 2019-09-27 2019-09-27 Multi-split program upgrading method and device, multi-split system equipment and medium Pending CN110688138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910926168.8A CN110688138A (en) 2019-09-27 2019-09-27 Multi-split program upgrading method and device, multi-split system equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910926168.8A CN110688138A (en) 2019-09-27 2019-09-27 Multi-split program upgrading method and device, multi-split system equipment and medium

Publications (1)

Publication Number Publication Date
CN110688138A true CN110688138A (en) 2020-01-14

Family

ID=69110738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910926168.8A Pending CN110688138A (en) 2019-09-27 2019-09-27 Multi-split program upgrading method and device, multi-split system equipment and medium

Country Status (1)

Country Link
CN (1) CN110688138A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791804A (en) * 2021-09-14 2021-12-14 中元汇吉生物技术股份有限公司 Method and device for parallel upgrading of multiple instruments, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100872180B1 (en) * 2007-07-26 2008-12-09 주식회사 케이티프리텔 Apparatus, system and method for remotely upgrading the firmware of a device
CN106681777A (en) * 2017-01-18 2017-05-17 青岛海尔空调电子有限公司 Quick program updating method for multi-split unit
CN107273158A (en) * 2017-06-08 2017-10-20 广东美的暖通设备有限公司 Programme upgrade method and device, main frame, slave and multi-online air-conditioning system
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100872180B1 (en) * 2007-07-26 2008-12-09 주식회사 케이티프리텔 Apparatus, system and method for remotely upgrading the firmware of a device
CN106681777A (en) * 2017-01-18 2017-05-17 青岛海尔空调电子有限公司 Quick program updating method for multi-split unit
CN107273158A (en) * 2017-06-08 2017-10-20 广东美的暖通设备有限公司 Programme upgrade method and device, main frame, slave and multi-online air-conditioning system
CN109669714A (en) * 2018-12-19 2019-04-23 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791804A (en) * 2021-09-14 2021-12-14 中元汇吉生物技术股份有限公司 Method and device for parallel upgrading of multiple instruments, computer equipment and storage medium
CN113791804B (en) * 2021-09-14 2024-04-26 中元汇吉生物技术股份有限公司 Method, device, computer equipment and storage medium for parallel upgrading of multipath instruments

Similar Documents

Publication Publication Date Title
US11080404B2 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
CN107729179B (en) System and method for realizing unified software mirror image based on different hardware of same processor
CN105763602A (en) Data request processing method, server and cloud interactive system
CN107066300B (en) Firmware upgrading method of storage device and storage device
CN104317667A (en) Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)
CN109240754B (en) Logic device, method and system for configuring BIOS starting item
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
CN106873970B (en) Installation method and device of operating system
CN111694589B (en) Upgrade package generation method, device, server and computer readable storage medium
CN109358876A (en) A kind of version synchronization method and device, equipment, storage medium
CN113094087A (en) Software configuration method, electronic device and storage medium
CN115695186A (en) Internet of things equipment upgrading method and system and electronic equipment
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
CN111459524A (en) Software upgrading method, device and system
CN111190621A (en) Firmware burning method, device, system, terminal equipment and storage medium
CN110688138A (en) Multi-split program upgrading method and device, multi-split system equipment and medium
CN104331330A (en) Resource pool generation method and device
CN110134423B (en) Firmware updating method and device and computer readable storage medium
CN115599311B (en) Polarity inversion method and apparatus, storage medium, and electronic apparatus
CN111984287A (en) Equipment upgrading method and system
CN111049717A (en) Variable acquisition method and equipment
WO2020113421A1 (en) Method for mounting file system, terminal device, and storage medium
CN116074308A (en) Method, system, equipment and readable storage medium for downloading vehicle-end upgrade package
CN115469964A (en) Method and device for determining mapping relation between block device and virtual machine disk character
CN110347683B (en) Data table merging processing method and device

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
CB02 Change of applicant information

Address after: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Applicant after: Hisense Air Conditioning Co.,Ltd.

Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Applicant before: HISENSE (SHANDONG) AIR-CONDITIONING Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114

RJ01 Rejection of invention patent application after publication