CN107329784B - Firmware upgrading method and distributed multi-layer system - Google Patents

Firmware upgrading method and distributed multi-layer system Download PDF

Info

Publication number
CN107329784B
CN107329784B CN201710499584.5A CN201710499584A CN107329784B CN 107329784 B CN107329784 B CN 107329784B CN 201710499584 A CN201710499584 A CN 201710499584A CN 107329784 B CN107329784 B CN 107329784B
Authority
CN
China
Prior art keywords
component
current
firmware
stage
components
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.)
Active
Application number
CN201710499584.5A
Other languages
Chinese (zh)
Other versions
CN107329784A (en
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.)
Midea Group Co Ltd
GD Midea Heating and Ventilating Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Heating and Ventilating Equipment 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 Midea Group Co Ltd, GD Midea Heating and Ventilating Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710499584.5A priority Critical patent/CN107329784B/en
Publication of CN107329784A publication Critical patent/CN107329784A/en
Application granted granted Critical
Publication of CN107329784B publication Critical patent/CN107329784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Abstract

The invention discloses a firmware upgrading method which is used for a distributed multilayer system. The distributed multi-tier system includes a plurality of components. The plurality of components includes a current level component and a lower level component in communication with the current level component. The firmware upgrading method comprises the following steps: the current stage component acquires a firmware upgrading program; the current level part judges whether a plurality of lower level parts exist; and broadcasting the firmware upgrade program to the plurality of lower components by the current-level component when the plurality of lower components exist. Therefore, each current-level component and each subordinate component of the distributed multilayer system can be upgraded simultaneously, so that the time required by upgrading the distributed multilayer system is short, the efficiency is high, and the user experience is good.

Description

Firmware upgrading method and distributed multi-layer system
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a firmware upgrade method and a distributed multi-layer system.
Background
Commercial air conditioners are generally distributed multi-tier systems, for example, a distributed multi-tier system comprising a centralized controller, an outdoor unit, an MS, an indoor unit, and a line controller in a downward cascade. There may be a one-to-many relationship between the upper level components and the lower level components. The existing air conditioner firmware upgrading is generally carried out by adopting a one-to-one master-slave equipment communication method. The superior component upgrades the next subordinate component one by one after the communication of the current subordinate component is upgraded, and the efficiency is poor.
Disclosure of Invention
The embodiment of the invention provides a firmware upgrading method and a distributed multi-layer system.
The firmware upgrading method is used for a distributed multilayer system, wherein the distributed multilayer system comprises a plurality of components, and the plurality of components comprise a current-level component and a lower-level component communicated with the current-level component; the firmware upgrading method comprises the following steps:
the current stage component acquires a firmware upgrade program;
the current level component determines whether a plurality of the lower level components exist; and
the current stage component broadcasts the firmware upgrade program to a plurality of the lower components when the plurality of the lower components exist.
In the firmware upgrading method according to the embodiment of the present invention, the current-stage component acquires the firmware upgrading program and transmits the firmware upgrading program to the plurality of lower-stage components in a broadcast manner, and the plurality of lower-stage components receive and upgrade the firmware upgrading program at the same time. Therefore, each current-level component and each lower-level component of the distributed multilayer system can be upgraded simultaneously, so that the time required by upgrading the distributed multilayer system is short, the efficiency is high, and the user experience is good.
In some embodiments, the firmware upgrade method comprises the steps of:
initializing the distributed multi-tier system;
each component acquiring current firmware information of the plurality of components; and
judging whether any one component is triggered to be upgraded, if so, entering a step of acquiring a firmware upgrading program by the current-stage component; if not, returning to the step of judging whether any part is triggered to be upgraded.
In certain embodiments, the step of initializing the distributed multi-tier system comprises the steps of:
the distributed multi-layer system allocates addresses to the indoor units; and
the distributed multi-layer system operates normally.
In some embodiments, the firmware information includes model information, software version information, chip information, supported function information, and firmware size.
In some embodiments, the current stage component has transparent transmission capability, and the firmware upgrading method comprises the following steps:
the current stage component acquires software information of the firmware upgrading program;
the current stage component judges whether the upgrading is suitable according to the software information and the current firmware information, if not, the current stage component judges whether a plurality of lower stage components exist or not, and the current stage component broadcasts the firmware upgrading program to the plurality of lower stage components by using the transparent transmission capacity when the lower stage components exist; and when the current-stage component is suitable for upgrading, upgrading the firmware by using the firmware upgrading program.
In some embodiments, said broadcasting said firmware upgrade program by said current stage component to a plurality of said lower components when a plurality of said lower components are present comprises the steps of:
the current stage component stores the firmware upgrade program and then broadcasts the firmware upgrade program when it is appropriate for upgrade.
In some embodiments, the firmware upgrade method further comprises the steps of:
the current stage component judges whether the current stage component is a bottom stage component or not; if yes, entering a step that the current stage component acquires software information of the firmware upgrading program; and
and when the current component is the bottom component, the current component judges that the lower component does not exist.
In some embodiments, the firmware upgrade method further comprises the steps of:
the current stage part inquiring a firmware upgrade status of a plurality of the lower stage parts when the plurality of the lower stage parts exist; and
each lower level component feeds back a firmware upgrade status to the current level component.
In some embodiments, the plurality of components includes a lower level component in communication with the lower level component; each lower-level component feeds back the firmware upgrading state to the current-level component and forwards the firmware upgrading program to the lower-level component.
The distributed multilayer system of the embodiment of the present invention includes a plurality of components including a current-level component and a lower-level component communicating with the current-level component, the current-level component being configured to acquire a firmware upgrade program; the current stage component is configured to determine whether a plurality of the lower stage components exist and broadcast the firmware upgrade program to the plurality of the lower stage components when the plurality of the lower stage components exist.
In some embodiments, the distributed multi-tier system comprises a centralized controller, an outdoor unit, an MS, an indoor unit, and a line controller in a downward progression.
In certain embodiments, the distributed multi-tier system comprises a processor for initializing the distributed multi-tier system; each component is used for acquiring current firmware information of the plurality of components; the processor is used for judging whether any current component is triggered to be upgraded, and if yes, the current-stage component acquires a firmware upgrading program; if not, the processor continues to judge whether any current component is triggered to be upgraded.
In some embodiments, the distributed multi-tier system is configured to assign addresses to the indoor units; and the distributed multi-layer system operates normally.
In some embodiments, the firmware information includes model information, software version information, chip information, supported function information, and firmware size.
In some embodiments, the current stage component has transparent transmission capability, and the current stage component is used for acquiring software information of the firmware upgrading program; the current-stage component is used for judging whether the upgrading is suitable according to the software information and the current firmware information, and if not, the current-stage component is used for judging whether a plurality of lower-stage components exist and broadcasting the firmware upgrading program to the lower-stage components by using the transparent transmission capability when the lower-stage components exist; and upgrading the firmware by using the firmware upgrading program when the upgrading is suitable.
In some embodiments, the current stage component is configured to store the firmware upgrade program prior to broadcasting the firmware upgrade program when appropriate for upgrading.
In some embodiments, the current stage component is configured to determine whether itself is a bottom stage component; if yes, the current stage component acquires software information of the firmware upgrading program; and when the current component is the bottom component, the current component is used for judging that the lower component does not exist.
In some embodiments, the current stage component is configured to query a plurality of the lower components for a firmware upgrade status when the plurality of the lower components are present; and each lower-level component is used for feeding back the firmware upgrading state to the current-level component.
In some embodiments, the plurality of components includes a lower level component in communication with the lower level component; each lower-level component is used for feeding back the firmware upgrading state to the current-level component and forwarding the firmware upgrading program to the lower-level component.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a firmware upgrading method according to an embodiment of the present invention.
FIG. 2 is a block schematic diagram of a distributed multi-tier system of an embodiment of the present invention.
Fig. 3 is another flow chart of the control method according to the embodiment of the present invention.
FIG. 4 is another block diagram of a distributed multi-tier system in accordance with an embodiment of the present invention.
Fig. 5 is another flowchart of a firmware upgrading method according to an embodiment of the present invention.
Fig. 6 is another flowchart of a firmware upgrading method according to an embodiment of the present invention.
Fig. 7 is another flowchart of the firmware upgrading method according to the embodiment of the present invention.
Fig. 8 is another flowchart of the firmware upgrading method according to the embodiment of the present invention.
FIG. 9 is another block diagram of a distributed multi-tier system in accordance with an embodiment of the present invention.
FIG. 10 is another block diagram of a distributed multi-tier system in accordance with an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the embodiments of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality" means two or more unless specifically limited otherwise.
In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; either directly or indirectly through intervening media, either internally or in any other relationship. Specific meanings of the above terms in the embodiments of the present invention can be understood by those of ordinary skill in the art according to specific situations.
In embodiments of the invention, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise the first and second features being in direct contact, or the first and second features being in contact, not directly, but via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different configurations of embodiments of the invention. In order to simplify the disclosure of embodiments of the invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, embodiments of the invention may repeat reference numerals and/or reference letters in the various examples, which have been repeated for purposes of simplicity and clarity and do not in themselves dictate a relationship between the various embodiments and/or arrangements discussed. In addition, embodiments of the present invention provide examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Referring to fig. 1 and fig. 2, a firmware upgrade method according to an embodiment of the present invention is applied to a distributed multi-tier system 100. The distributed multi-tier system 100 includes a plurality of components 10, the plurality of components 10 including a current-level component 12 and a lower-level component 14 in communication with the current-level component. The firmware upgrading method comprises the following steps:
s12, the current-stage component 12 acquires the firmware upgrade program;
s14, the current stage part 12 judges whether or not there are a plurality of lower stage parts 14;
s16, the current-stage component 12 broadcasts the firmware upgrade program to the plurality of lower-stage components 14 when the plurality of lower-stage components 14 exist.
The firmware upgrading method of the present embodiment can be implemented by the distributed multi-tier system 100 of the present embodiment. Step S12, step 14, step 16 may be implemented by the current stage component 12. The distributed multi-tier system 100 includes a plurality of components 10. The plurality of components 10 includes a current level component 12 and a lower level component 14 in communication with the current level component. The current stage component 12 is used to obtain a firmware upgrade program. The current level component 12 is used to determine whether a plurality of lower level components 14 exist and broadcast a firmware upgrade program to the plurality of lower level components 14 when the plurality of lower level components 14 exist.
In the firmware upgrading method and the distributed multi-layer system 100 according to the embodiment of the present invention, the front-stage component 12 acquires the firmware upgrading program and transmits the firmware upgrading program to the plurality of lower-stage components 14 in a broadcast manner, and the plurality of lower-stage components 14 receive and upgrade the firmware upgrading program at the same time. In this way, each of the current-stage component 12 and the lower-stage component 14 of the distributed multi-layer system 100 can be upgraded simultaneously, so that the time required for upgrading the distributed multi-layer system 100 is short, the efficiency is high, and the user experience is good.
Specifically, the distributed multi-tier system 100 is composed of a client application, an application server tier, and a database service tier. The distributed multi-tier system 100 includes a plurality of components 10, with coupling connections between the components 10. Each component 10 of the distributed multi-tier system employs a master-slave data transfer and storage approach. The components 10 are connected and communicated with each other through an RS485 communication bus.
It will be appreciated that the current stage component 12 may obtain the firmware upgrade program through an external port. For example, the external port of the front-stage component 12 may obtain the firmware upgrade program from the outside in a USB, SD card, WIFI, or other manners.
It will be appreciated that the front level component 12 may send the firmware upgrade program to the RS485 communication bus and inform the plurality of lower level components 14 of the firmware upgrade program in a broadcast fashion at the same time, and the lower level components 14 may directly obtain the firmware upgrade program from the RS485 communication bus.
It is understood that the distributed multi-tier system 100 may be applied to an air conditioner. For example, the components 10 may include a cluster controller, an outdoor unit, an MS, an indoor unit, and a line controller. The centralized controller, the outdoor unit, the MS, the indoor unit and the line controller are all connected and communicated with each other through an RS485 communication bus. In one embodiment, the centralized controller may be considered as the current stage part 12, and the outdoor unit may be considered as the lower stage part 14. When the centralized controller learns that the centralized controller is connected with a plurality of outdoor units through the RS485 communication bus. At this time, the centralized controller may simultaneously send the firmware upgrade program to the plurality of outdoor units in a broadcast manner.
In some embodiments, referring to fig. 3 and 4, the firmware upgrading method includes the following steps:
s11, initializing the distributed multi-layer system 100;
s13, each component 10 obtaining current firmware information of a plurality of components 10; and
s15, judging whether any part 10 is triggered to be upgraded, if yes, entering step S12; if not, the step S15 is returned to.
In some embodiments, the firmware upgrade method may be performed by the distributed multi-tier system 100. Distributed multi-tier system 100 includes components 10 and processors 20. Steps S11 and S15 may be implemented by the processor 20. Step S13 may be implemented by component 10. The processor 20 is used to initialize the distributed multi-tier system 100. Each component 10 is used to obtain current firmware information for the plurality of components 10. And the processor 20 is used for judging whether any part 10 is triggered to upgrade the firmware, if yes, the current-stage part 12 obtains a firmware upgrading program; if not, the processor 20 continues to determine whether any of the components 10 has triggered a firmware upgrade.
Therefore, the firmware upgrading can be checked one by one for any component 10, and the condition that the distributed multilayer system 100 does not start an upgrading step when the component 10 triggers upgrading through an external interface is avoided.
It is understood that initialization refers to the initialization of data objects or variables in the field of computer programming, and how initialization depends on the program language used and the properties of the object to be initialized, such as the storage type. The program structure for initialization is called an initializer or initialization list. The distributed multi-tier system 100 may be initialized by encoding an address.
It is understood that the distributed multi-tier system 100 may include centralized controllers, line controllers, outdoor units, indoor units, etc. The centralized controller, the line controller, the outdoor unit, and the indoor unit communicate with each other via the RS485 communication bus, and each component 10 notifies its own firmware information to any other component 10. In this manner, each component may be aware of firmware information for any component 10 in the distributed multi-tier system 100.
It will be appreciated that the hub or cable will typically be located in a location that is relatively accessible indoors. Thus, a firmware upgrade typically selects either a hub or a line director as the entry point for the triggering of the firmware upgrade. And an external interface of the centralized controller or the line controller acquires a firmware upgrading program from the outside in a USB (universal serial bus), SD (secure digital) card, wireless WIFI (wireless fidelity) and other modes, and then triggers upgrading. On the contrary, the outdoor unit is generally installed outdoors, and the indoor unit is generally installed in a ceiling or the like, and is not generally selected as an entry point for triggering upgrade.
In some embodiments, referring to fig. 5, step S13 further includes the following sub-steps:
s132, the distributed multi-layer system 100 allocates addresses to the indoor units; and
and S134, the distributed multilayer system 100 operates normally.
In some embodiments, steps S132 and S134 may be implemented by the distributed multi-tier system 100. The distributed multi-tier system 100 is used to assign addresses to the indoor units. The distributed multi-tier system 100 operates normally.
Thus, addresses are allocated to the indoor units, so that the distributed multi-layer system 100 can transmit and receive data according to the corresponding addresses, and the distributed multi-layer system 100 can normally operate.
Specifically, address coding may be performed on the indoor units in sequence. The distributed multi-layer system 100 transmits data to corresponding target addresses according to address matching in the process of transmitting the data, so that the error rate can be reduced.
In some embodiments, the firmware information includes model information, software version information, chip information, supported function information, and firmware size.
Therefore, the firmware upgrading information of the component can be quickly acquired through the model information, the software version information, the chip information and the supported function information of the component.
In some embodiments, referring to fig. 6, when the front-level component 12 has transparent transmission capability, the firmware upgrade method further includes the following steps:
s17, the current-stage component 12 obtains the software information of the firmware upgrade program;
s18, the current stage component 12 determines whether it is suitable for upgrading according to the software information and the current firmware information, if not, it goes to step S14 and broadcasts the firmware upgrading program to the plurality of lower stages 14 by the current stage component 12 using the transparent transmission capability when there are a plurality of lower stages 14. And firmware upgrade with a firmware upgrade program for the front-stage component 12 when appropriate for the upgrade.
In some embodiments, the firmware upgrade method may be implemented by the distributed multi-tier system 100. The front stage component 12 has transparent transmission capability. The current level component 12 is used to obtain software information of the firmware upgrade program. The current-stage component 12 is configured to determine whether the upgrade is appropriate according to the software information and the current firmware information, and if not, the current-stage component 12 is configured to determine whether a plurality of lower-stage components 14 exist and broadcast a firmware upgrade program to the plurality of lower-stage components 14 by using the transparent transmission capability when the plurality of lower-stage components 14 exist; and performing firmware upgrade using a firmware upgrade program when upgrade is appropriate.
In this manner, the front level component 12 can be upgraded when appropriate and pass data directly to the lower level component 14 when not appropriate, in a manner that increases the rate of data transfer and reduces the time required for upgrade.
It can be understood that transparent transmission refers to that in the process of transmitting a service, a transmission system only needs to transmit data to be transmitted to a destination node without processing the transmitted data on the premise of ensuring the transmission quality. The current stage component 12 may pass the transmitted data directly to the lower stage component 14 in a pass-through manner.
It is understood that the chip having the storage capability of the current-stage component 12 includes a Bootloader area, an application program area, a backup program area, and a program information area. The Bootloader area is entered immediately after the power on of the front-stage component 12. The Bootloader area is responsible for managing the application program area and the backup program area. The application area includes programs having specific functions. The backup program area may backup the upgraded firmware program. When the current-stage component receives the program of the upgraded firmware, the current-stage component compares the program of the upgraded firmware with the program memory of the backup program area. If the backup program area can accommodate the program of the upgraded firmware, the backup program area saves the program of the upgraded firmware. The program information area is arranged at the end of the application program area and the backup program area. The program information area includes information such as model information, version, program size, and verification of the current-level component.
It is understood that the current stage component 12 reads the software information of the firmware upgrade program, and the software information includes model information, version, program size, verification, and the like. The current stage component 12 compares the read information with current firmware information of the current stage component 12 to determine whether an upgrade is appropriate. For example, when the model information of the firmware upgrade program does not coincide with the model information of the current-stage component 12, the current-stage component 12 is not suitable for upgrade. Or the model information of the firmware upgrade program coincides with the model information of the current-stage component 12, although the version information of the firmware upgrade program does not coincide with the version information of the current-stage component 12, the current-stage component 12 is still suitable for upgrade.
In certain embodiments, step S16 includes the following sub-steps
And S162, when the firmware upgrading program is suitable for upgrading, the current-stage component 12 is used for storing the firmware upgrading program firstly and then broadcasting the firmware upgrading program.
In some embodiments, the firmware upgrade method may be implemented by the distributed multi-tier system 100. Step S162 may be implemented by the current stage component 12. The current stage component 12 is used to store the firmware upgrade program before broadcasting the firmware upgrade program when appropriate for upgrading.
The current stage component 12 stores the firmware upgrade program and broadcasts the firmware upgrade program, so that the current stage component 12 can determine when to upgrade according to the requirement, and the stored firmware upgrade program can be directly forwarded to other components 10 needing to be upgraded.
Specifically, the current-stage component 12 stores the firmware upgrade program in the backup program area of the current-stage component 12 when the upgrade is appropriate. When the upgrade of the current-stage component 12 fails, the current-stage component 12 may be upgraded again using the saved firmware upgrade program. In addition, when the other components 10 fail to be upgraded by broadcasting, the current-stage component 12 may directly acquire the firmware upgrade program from the backup program area and directly forward to the failed component 10 in a one-to-one manner.
In some embodiments, referring to fig. 7, the firmware upgrading method further includes the following steps:
s19, the current-stage component 12 determines whether it is a bottom-stage component; if yes, go to step S16; and
when the current-stage component 12 determines that the lower-stage component 14 does not exist, it is a bottom-stage component.
In some embodiments, the firmware upgrade method may be implemented by the distributed multi-tier system 100. Step S19 may be implemented by the current stage component 12. The current-stage component 12 is used for judging whether the current-stage component is a bottom-stage component; if yes, the current-stage component 12 acquires software information of the firmware upgrade program; and the current stage part 12 is used to judge that the lower stage part 14 does not exist when it is the bottom stage part itself.
In this manner, by determining whether the component is a bottom-level component stage by stage, each stage of the distributed multi-layer system 100 can be checked and each component can obtain a firmware upgrade program, so that all components of the distributed multi-layer system 100 can be covered.
In some embodiments, referring to fig. 8, the firmware upgrading method further includes the following steps:
s21, the current stage part 12 inquiring the firmware upgrade status of the plurality of lower stage parts 14 when the plurality of lower stage parts 14 exist; and each lower level component 14 feeds back the firmware upgrade status to the current level component 12.
In some embodiments, the firmware upgrade method may be implemented by the distributed multi-tier system 100. Step S21 may be implemented by the current level component 12 and the lower level component 14. The current-stage component 12 is used to query the firmware upgrade status of the plurality of lower-stage components 14 when the plurality of lower-stage components 14 exist. Each lower level component 14 is used to feed back the firmware upgrade status to the current level component 12.
In this manner, the front level element 12 and the lower level element 14 communicate with each other, thereby increasing the rate of information exchange.
In some embodiments, referring to fig. 9, the plurality of components 10 includes a lower component 16 in communication with a lower component 14; the lower level component 14 forwards the firmware upgrade program to the lower level component 18 while feeding back the firmware upgrade status to the current level component 12.
In some embodiments, the firmware upgrade method may be implemented by the distributed multi-tier system 100. The plurality of components 10 includes a lower level component 16 in communication with a lower level component 14. The lower level component 14 is used to forward the firmware upgrade program to the lower level component 18 while feeding back the firmware upgrade status to the current level component 12.
The lower level component 14 forwards the firmware upgrade program to the lower level component 18 while feeding back the firmware upgrade status to the current level component 12. Thus, the efficiency of communication can be improved, and the time for upgrading can be reduced.
Specifically, referring to fig. 10, in an embodiment, the external interface of the centralized controller 12 obtains the firmware upgrade program through USB or the like. The outdoor unit 14(14a), the outdoor unit 14(14b), and the outdoor unit 14(14c) communicate with each other via an RS485 communication a bus. The outdoor unit 14(14a) serves as an outdoor master of the RS485 communication bus. The outdoor unit 14(14a), the indoor unit 16(16B), and the indoor unit 16(16c) communicate with each other via another RS485 communication B bus. The centralized controller 12 issues the firmware upgrade program to the outdoor unit 14(14 a). The outdoor unit 14(14a) determines whether the model information of the firmware upgrade program matches the model information of the outdoor unit 14, and if so, the outdoor unit 14(14a) performs broadcast upgrade on the outdoor unit 14(14b) and the outdoor unit 14(14c) through an RS485 communication a bus. Meanwhile, the outdoor unit 14(14a) determines whether the model information of the firmware upgrade program matches the model information of the indoor unit 16, and if so, the outdoor unit 14(14a) performs broadcast upgrade on the indoor unit 16(16a), the indoor unit 16(16B), and the indoor unit 16(16c) through an RS485 communication B bus.
Of course, the connection method of the central controller 12, the outdoor unit 14, and the indoor units 16 is not limited to the above embodiment, and in one embodiment, the central controller 12 may be connected to the indoor units 16 by wires. In still other embodiments, other implementations are used depending on actual installation requirements.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like 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, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires (control method), a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (14)

1. A firmware upgrade method for a distributed multi-tier system comprising a plurality of components including a current-tier component and a lower-tier component in communication with the current-tier component; the firmware upgrading method is characterized by comprising the following steps:
the current stage component acquires a firmware upgrade program;
the current level component determines whether a plurality of the lower level components exist; and
the current stage component broadcasting the firmware upgrade program to a plurality of the lower components when the plurality of the lower components are present, wherein the current stage component broadcasting the firmware upgrade program to a plurality of the lower components when the plurality of the lower components are present comprises:
when the current stage component is suitable for upgrading, the firmware upgrading program is stored firstly and then broadcasted;
the current stage component has transparent transmission capacity, and the firmware upgrading method comprises the following steps:
the current stage component acquires software information of the firmware upgrade program and current firmware information of the current stage component;
the current stage component judges whether the upgrading is suitable according to the software information and the current firmware information, if not, the current stage component judges whether a plurality of lower stage components exist or not, and the current stage component broadcasts the firmware upgrading program to the plurality of lower stage components by using the transparent transmission capacity when the lower stage components exist; and
when the current-stage component is suitable for upgrading, the firmware is upgraded by using the firmware upgrading program;
the current stage component judges whether the current stage component is a bottom stage component or not; if yes, entering a step that the current stage component acquires software information of the firmware upgrading program; and
and when the current component is the bottom component, the current component judges that the lower component does not exist.
2. The firmware upgrade method of claim 1, wherein the distributed multi-tier system comprises a centralized controller, an outdoor unit, an MS, an indoor unit, and a line controller in a downward stage.
3. The firmware upgrade method according to claim 1, wherein the firmware upgrade method comprises the steps of:
initializing the distributed multi-tier system;
each component acquiring current firmware information of the plurality of components; and
judging whether any one component is triggered to be upgraded, if so, entering a step of acquiring a firmware upgrading program by the current-stage component; if not, returning to the step of judging whether any current stage component is triggered to upgrade the firmware.
4. A firmware upgrade method according to claim 3, wherein the step of initializing the distributed multi-tier system comprises the steps of:
the distributed multi-layer system allocates addresses to the indoor units; and
the distributed multi-layer system operates normally.
5. A firmware upgrade method according to claim 3, wherein the firmware information includes model information, software version information, chip information, supported function information, and firmware size.
6. The firmware upgrade method according to claim 1, further comprising the steps of:
the current stage part inquiring a firmware upgrade status of a plurality of the lower stage parts when the plurality of the lower stage parts exist; and
each lower level component feeds back a firmware upgrade status to the current level component.
7. The firmware upgrade method according to claim 6, wherein the plurality of components include a lower component in communication with the lower component; each lower-level component feeds back the firmware upgrading state to the current-level component and forwards the firmware upgrading program to the lower-level component.
8. A distributed, multi-tiered system comprising a plurality of components, the plurality of components including a current-tier component and a lower-tier component in communication with the current-tier component, the current-tier component for obtaining a firmware upgrade program; the current stage component is used for judging whether a plurality of lower-stage components exist or not and broadcasting the firmware upgrading program to the lower-stage components when the lower-stage components exist, wherein the current stage component is used for storing the firmware upgrading program and then broadcasting the firmware upgrading program when the upgrading is suitable;
the current stage component has transparent transmission capability and is used for acquiring the software information of the firmware upgrading program and the current firmware information of the current stage component;
the current-stage component is used for judging whether the upgrading is suitable according to the software information and the current firmware information, and if not, the current-stage component is used for judging whether a plurality of lower-stage components exist and broadcasting the firmware upgrading program to the lower-stage components by using the transparent transmission capability when the lower-stage components exist; and upgrading the firmware by using the firmware upgrading program when the firmware upgrading program is suitable for upgrading;
the current stage component is used for judging whether the current stage component is a bottom stage component or not; if yes, the current stage component acquires software information of the firmware upgrading program; and
and when the current component is the bottom component, the current component is used for judging that the lower component does not exist.
9. The distributed multi-tier system of claim 8, wherein the distributed multi-tier system comprises a centralized controller, an outdoor unit, an MS, an indoor unit, and a line controller in a downward progression.
10. The distributed multi-tier system of claim 8, wherein the distributed multi-tier system comprises a processor to initialize the distributed multi-tier system; each component is used for acquiring current firmware information of the plurality of components; the processor is used for judging whether any one component is triggered to be upgraded, and if yes, the current-stage component acquires a firmware upgrading program; if not, the processor continues to judge whether any one of the components is triggered to be upgraded.
11. The distributed multi-tier system of claim 10,
the distributed multi-layer system is used for allocating addresses to the indoor units; and
the distributed multi-layer system operates normally.
12. The distributed multi-tier system of claim 10, wherein the firmware information includes model information, software version information, chip information, supported function information, and firmware size.
13. The distributed multi-tier system of claim 8,
the current stage component is configured to inquire about firmware upgrade statuses of a plurality of the lower components when the plurality of the lower components exist; and
each lower-level component is used for feeding back the firmware upgrading state to the current-level component.
14. The distributed multi-tier system of claim 13,
the plurality of components includes a lower level component in communication with the lower level component; each lower-level component is used for feeding back the firmware upgrading state to the current-level component and forwarding the firmware upgrading program to the lower-level component.
CN201710499584.5A 2017-06-27 2017-06-27 Firmware upgrading method and distributed multi-layer system Active CN107329784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710499584.5A CN107329784B (en) 2017-06-27 2017-06-27 Firmware upgrading method and distributed multi-layer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710499584.5A CN107329784B (en) 2017-06-27 2017-06-27 Firmware upgrading method and distributed multi-layer system

Publications (2)

Publication Number Publication Date
CN107329784A CN107329784A (en) 2017-11-07
CN107329784B true CN107329784B (en) 2021-01-05

Family

ID=60197602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710499584.5A Active CN107329784B (en) 2017-06-27 2017-06-27 Firmware upgrading method and distributed multi-layer system

Country Status (1)

Country Link
CN (1) CN107329784B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144551A (en) * 2018-09-05 2019-01-04 杭州和利时自动化有限公司 Equipment firmware update and system under a kind of multi-layer networking mode
CN111124445B (en) * 2018-11-01 2023-08-15 中移(杭州)信息技术有限公司 Home gateway upgrading method and home gateway
CN109656597A (en) * 2018-12-19 2019-04-19 广东美的暖通设备有限公司 Firmware upgrade method, device and computer readable storage medium
CN110990040A (en) * 2019-12-02 2020-04-10 珠海格力电器股份有限公司 Software upgrading method of air conditioning system
CN111475184B (en) * 2020-03-09 2022-07-08 苏州浪潮智能科技有限公司 Method for guiding front-stage and back-stage online upgrade of server power supply
CN112104738B (en) * 2020-09-18 2023-04-18 深圳赛时达科技有限公司 Automatic upgrading method, server and system for electronic price tag system software
CN115314384A (en) * 2022-06-13 2022-11-08 珠海派诺科技股份有限公司 Device upgrading method and device upgrading system under RS485 bus and collector

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009599A (en) * 2007-01-24 2007-08-01 华为技术有限公司 Remote load method, system and device of patch package file to the network element node
CN101409636A (en) * 2008-11-20 2009-04-15 山东山大新元易通信息科技有限公司 Safety on-line upgrade method for networking equipment firmware
CN103763351A (en) * 2014-01-03 2014-04-30 中达电通股份有限公司 Software online upgrading method based on upper computer and lower computers
CN105812426A (en) * 2014-12-30 2016-07-27 浙江大华系统工程有限公司 Upgrade system and upgrade method for multi-business access platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100589078C (en) * 2007-08-21 2010-02-10 中兴通讯股份有限公司 Multi-core terminal firmware upgrading method
US8839230B2 (en) * 2011-12-02 2014-09-16 Xerox Corporation Method and apparatus for automatically distributing firmware updates in an image production device network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009599A (en) * 2007-01-24 2007-08-01 华为技术有限公司 Remote load method, system and device of patch package file to the network element node
CN101409636A (en) * 2008-11-20 2009-04-15 山东山大新元易通信息科技有限公司 Safety on-line upgrade method for networking equipment firmware
CN103763351A (en) * 2014-01-03 2014-04-30 中达电通股份有限公司 Software online upgrading method based on upper computer and lower computers
CN105812426A (en) * 2014-12-30 2016-07-27 浙江大华系统工程有限公司 Upgrade system and upgrade method for multi-business access platform

Also Published As

Publication number Publication date
CN107329784A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107329784B (en) Firmware upgrading method and distributed multi-layer system
US9325517B2 (en) Device abstraction system and method for a distributed-architecture heating, ventilation and air conditioning system
US20160205066A1 (en) Unique device address assignment technique for bidirectional daisy chain system
US20030106051A1 (en) System and method for high availability firmware load
US7707306B2 (en) Routing device for connecting multiple physically discrete networks into a single system and startup method thereof
JP6339107B2 (en) Requesting information from lighting devices
TW201318308A (en) Distributed battery management system and method for distributing identifications thereof
US20030106052A1 (en) System and method for high availability firmware load
CN110762604B (en) Indoor unit, pairing method and device of indoor unit and wired controller, storage medium and air conditioner
JP2010282385A (en) Information processing system
CN112114524B (en) Centralized control network-based equipment control and access method and equipment thereof
CN104660683A (en) Data transmission control method, device and system
JP2019534462A (en) Building automation system
EP2664988A1 (en) Method, device and system for installing terminal software
US20050259642A1 (en) Blade server for auto-assigning communication addresses
CN110762783A (en) Addressing method and system for multi-split air conditioner heat recovery system and storage medium
US10659300B2 (en) Self-forming network commissioning system and method
US20110246977A1 (en) Control system code installation and upgrade
US11487552B2 (en) Blade server
CN116931990A (en) Firmware upgrading control method and device, multi-connected air conditioner and storage medium
US8700832B1 (en) Automated addition of file based hardware and file based access services in a data storage system
US20060031623A1 (en) USB device set
US20160344683A1 (en) Network switch having address configuration function
CN112596763A (en) Method, device and equipment for wireless upgrading of intelligent household equipment
CN116009785A (en) Hard disk management method and computing 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
GR01 Patent grant
GR01 Patent grant