CN112556104B - Load control method and device, electronic equipment and storage medium - Google Patents

Load control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112556104B
CN112556104B CN202011429773.3A CN202011429773A CN112556104B CN 112556104 B CN112556104 B CN 112556104B CN 202011429773 A CN202011429773 A CN 202011429773A CN 112556104 B CN112556104 B CN 112556104B
Authority
CN
China
Prior art keywords
main control
control board
started
load
loads
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
CN202011429773.3A
Other languages
Chinese (zh)
Other versions
CN112556104A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011429773.3A priority Critical patent/CN112556104B/en
Publication of CN112556104A publication Critical patent/CN112556104A/en
Application granted granted Critical
Publication of CN112556104B publication Critical patent/CN112556104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/54Control or safety arrangements characterised by user interfaces or communication using one central controller connected to several sub-controllers
    • 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/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • 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
    • 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/70Control systems characterised by their outputs; Constructional details thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application provides a load control method, a load control device, electronic equipment and a storage medium, and belongs to the technical field of load control. The method comprises the steps that before a load to be started is started through a first main control board, a first notification message is sent to a second main control board which establishes communication with the first main control board, and the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started; after receiving a first response message returned by the second main control board, the first response message is used for notifying the first main control board that the started load corresponding to the second main control board is closed; the load to be turned on corresponding to the first main control board is turned on. The load on the first main control board and the second main control board can be ensured not to be started at the same time.

Description

Load control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of load control technologies, and in particular, to a load control method and apparatus, an electronic device, and a storage medium.
Background
With the function of the air conditioner becoming more and more abundant, the load controlled by the main control board in the air conditioner also increases, and many times, because the load is too much, two main control boards must be divided to control different loads. In practical application, the power of the power supply is limited, and a plurality of loads between the two main control boards need to be controlled in a linkage manner but cannot be started simultaneously, so that the total power cannot exceed the requirement of the power supply.
At present, under the condition that a plurality of paths of loads are controlled by the same main control board, the plurality of paths of loads can be controlled to be started at different times, and under the condition that the plurality of paths of loads are controlled by different main control boards, the plurality of paths of loads cannot be controlled to be started at different times.
Disclosure of Invention
An object of the embodiments of the present application is to provide a load control method and apparatus, an electronic device, and a storage medium, so as to solve a problem that multiple paths of loads cannot be controlled to be turned on at different times under control of different main control boards. The specific technical scheme is as follows:
in a first aspect, a load control method is provided, which is applied to a first main control board, and the method includes:
before a load to be started is started, sending a first notification message to a second main control board which establishes communication with the load to be started, wherein the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started;
receiving a first response message returned by the second main control board, wherein the first response message is used for informing the first main control board that the started load corresponding to the second main control board is closed;
and starting the load to be started corresponding to the first main control board.
Optionally, the method further includes:
if a second notification message sent by a second main control board which establishes communication with the first main control board is received, the second notification message is used for notifying the first main control board and the load to be started corresponding to the second main control board to prepare for starting, and the started load corresponding to the first main control board and the load to be started is closed;
and sending a second response message to the second main control board, wherein the second response message is used for notifying the second main control board that the started load corresponding to the first main control board is closed.
Optionally, the method further includes:
before a load to be started is started, sending a third notification message to a second main control board of the load to be started, wherein the third notification message is used for notifying the second main control board of the corresponding priority of the first main control board;
receiving a third response message returned by the second main control board, wherein the third response message is used for informing the first main control board of the corresponding priority of the second main control board;
and when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board, starting the load to be started corresponding to the first main control board.
Optionally, the method further includes:
and after the load to be started corresponding to the first main control board is started, sending a fourth notification message to the second main control board, wherein the fourth notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is started.
Optionally, the method further includes:
before the load to be started is started, sending a fifth notification message to a second main control board which establishes communication with the load to be started, wherein the fifth notification message is used for notifying the second main control board of the number of the loads to be started corresponding to the first main control board and a preset threshold value of the number of the started loads;
receiving a fifth response message returned by the second main control board, wherein the fifth response message is used for notifying the first main control board that the started load corresponding to the second main control board is closed according to the number of the loads to be started and a preset threshold value of the number of the started loads;
and starting the load to be started corresponding to the first main control board.
Optionally, the method further includes:
if a sixth notification message sent by a second main control board establishing communication with the first main control board is received, the sixth notification message is used for notifying the first main control board of the number of the loads to be started corresponding to the second main control board and a preset threshold of the number of the started loads, and the started loads corresponding to the sixth notification message are closed according to the number of the loads to be started and the preset threshold of the number of the started loads;
and sending a sixth response message to the second main control board, wherein the sixth response message is used for notifying the second main control board that the started load corresponding to the first main control board is closed according to the number of the loads to be started and the preset threshold value of the number of the started loads.
Optionally, the method further includes:
when a plurality of loads to be started exist on the first main control board, determining the load to be started with the highest priority as a target load according to a preset load starting priority;
and starting the target load.
In a second aspect, a load control device is provided, which is applied to a first main control board, and the device includes:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a first notification message to a second main control board which establishes communication with the load to be started before the load to be started is started, and the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started;
a receiving module, configured to receive a first response message returned by the second main control board, where the first response message is used to notify the first main control board that an opened load corresponding to the second main control board is closed;
and the first starting module is used for starting the load to be started corresponding to the first main control board.
Optionally, the apparatus further comprises:
the first closing module is used for closing an opened load corresponding to the first main control board if receiving a second notification message sent by a second main control board which establishes communication with the first closing module, wherein the second notification message is used for notifying the first main control board that the load to be opened corresponding to the second main control board is ready to be opened;
and the second response message sending module is configured to send a second response message to the second main control board, where the second response message is used to notify that the started load corresponding to the first main control board is closed to the second main control board.
Optionally, the apparatus further comprises:
the third notification message sending module is used for sending a third notification message to a second main control board of the load to be started before the load to be started is started, wherein the third notification message is used for notifying the second main control board of the corresponding priority of the first main control board;
a third response message receiving module, configured to receive a third response message returned by the second main control board, where the third response message is used to notify the first main control board of a priority corresponding to the second main control board;
and the second starting module is used for starting the load to be started corresponding to the first main control board when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board.
Optionally, the apparatus further comprises:
and the fourth notification message sending module is used for sending a fourth notification message to the second main control board after the load to be started corresponding to the first main control board is started, wherein the fourth notification message is used for informing the second main control board that the load to be started corresponding to the first main control board is started.
Optionally, the apparatus further comprises:
a fifth notification message sending module, configured to send a fifth notification message to a second main control board that establishes communication with the second main control board before the load to be started is started, where the fifth notification message is used to notify the second main control board of the number of the loads to be started corresponding to the first main control board and a preset threshold of the number of the loads to be started;
the second closing module is configured to receive a fifth response message returned by the second main control board, where the fifth response message is used to notify the first main control board that the started load corresponding to the second main control board has been closed according to the number of the loads to be started and a preset threshold of the number of the loads to be started;
and the third starting module is used for starting the load to be started corresponding to the first main control board.
Optionally, the apparatus further comprises:
the third closing module is configured to, if a sixth notification message sent by a second main control board with which communication is established is received, notify the first main control board of the number of loads to be opened and a preset threshold of the number of load openings, which correspond to the second main control board, of the first main control board, and close an opened load corresponding to the third closing module according to the number of loads to be opened and the preset threshold of the number of load openings;
and the sixth response message sending module is configured to send a sixth response message to the second main control board, where the sixth response message is used to notify the second main control board that the started load corresponding to the first main control board is closed according to the number of the loads to be started and a preset threshold of the number of the loads to be started.
Optionally, the apparatus further comprises:
the determining module is used for determining the load to be started with the highest priority as a target load according to a preset load starting priority when a plurality of loads to be started exist on the first main control board;
and the target load starting module is used for starting the target load.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the load control methods described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a load control method, a load control device, electronic equipment and a storage medium, wherein before a load to be started is started through a first main control board, a first notification message is sent to a second main control board which establishes communication with the first main control board, and the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started; after receiving a first response message returned by the second main control board, the first response message is used for notifying the first main control board that the started load corresponding to the second main control board is closed; the load to be turned on corresponding to the first main control board is turned on.
Through this application, first main control board is opening before treating the opening load, through sending the notice message to the second main control board to after receiving the response message that the second main control board closed the load that has opened that corresponds with the second main control board, just can open and treat the opening load, thereby when guaranteeing that first main control board opens and treats the opening load, do not have the load that has opened on the second main control board, also can guarantee that the load on first main control board and the second main control board is opened simultaneously promptly.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a load control method according to an embodiment of the present application;
fig. 2 is another flowchart of a load control method according to an embodiment of the present application;
fig. 3 is another flowchart of a load control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a load control device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
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 making any creative effort, shall fall within the protection scope of the present invention.
At present, the multipath loads can be controlled to be started at different times under the control of the same main control board, and the multipath loads cannot be controlled to be started at different times under the control of different main control boards. Therefore, the embodiment of the application provides a load control method, which can be applied to a main control board.
A load control method provided in an embodiment of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:
s101, before a load to be started is started, a first notification message is sent to a second main control board which establishes communication with the load to be started, and the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started.
In this embodiment, before the first main control board starts the load to be started, in order to ensure that no load to be started exists on other main control boards when the load to be started is started, a first notification message may be sent to a second main control board with which communication is established, where the first notification message is used to notify the second main control board that the load to be started corresponding to the first main control board is ready to be started.
And S102, receiving a first response message returned by the second main control board, wherein the first response message is used for informing that the started loads corresponding to the first main control board and the second main control board are closed.
In this embodiment of the application, the first main control board may receive a first response message returned by the second main control board, where the first response message is used to notify the first main control board that an opened load corresponding to the second main control board is closed.
S103, the load to be started corresponding to the first main control board is started.
In this embodiment of the application, after the first main control board receives the first response message returned by the second main control board, at this time, the started load corresponding to the second main control board is already closed, and the first main control board starts the load to be started corresponding to the first main control board.
In this embodiment of the application, before the first main control board opens the load to be opened, the first main control board sends the notification message to the second main control board, and after receiving the response message that the second main control board closes the opened load corresponding to the second main control board, the load to be opened is opened, so that when the first main control board opens the load to be opened, the second main control board does not have the opened load, that is, it can be ensured that the loads on the first main control board and the second main control board are not opened at the same time.
In yet another embodiment of the present application, the load control method may further include the steps of:
before the first main control board opens the load to be opened, whether the first main control board and the second main control board establish communication is judged, and if the first main control board and the second main control board do not establish communication, the opening preparation of the load to be opened is closed.
In this embodiment, before the first main control board opens the load to be opened, it is determined whether the first main control board and the second main control board establish communication, and if the first main control board and the second main control board do not establish communication, it is not possible to determine whether the opened load corresponding to the second main control board is closed, so that the opening preparation of the load to be opened is closed, and the first main control board and the second main control board are prevented from simultaneously opening the load.
In yet another embodiment of the present application, the load control method may further include the steps of:
if a second notification message sent by a second main control board which establishes communication with the first main control board is received, the second notification message is used for notifying the first main control board and the load to be started corresponding to the second main control board to prepare for starting, and the started load corresponding to the first main control board and the load to be started is closed;
and sending a second response message to the second main control board, wherein the second response message is used for notifying the second main control board that the started load corresponding to the first main control board is closed.
In this embodiment of the application, if the first main control board receives a second notification message sent by a second main control board which establishes communication with the first main control board, where the second notification message is used to notify the first main control board and a to-be-started load corresponding to the second main control board to prepare for starting, the to-be-started load corresponding to the first main control board is closed, and a second response message is sent to the second main control board, where the second response message is used to notify the second main control board and the to-be-started load corresponding to the first main control board to be closed.
In this application embodiment, first main control board according to second main control board send with behind the notice message that the load that waits to open that second main control board corresponds prepares to open, close the load that has opened that self corresponds to send the response message that has closed the load that has opened that self corresponds to the second main control board, can guarantee that when second main control board opens and waits to open the load, no load that has opened on the first main control board, promptly, can guarantee that the load on first main control board and the second main control board does not open simultaneously.
In yet another embodiment of the present application, the load control method may further include the steps of:
and S201, before the load to be started is started, sending a third notification message to a second main control board of the load to be started, wherein the third notification message is used for notifying the second main control board of the corresponding priority of the first main control board.
In this embodiment of the application, when the loads are to be started on both the first main control board and the second main control board, the first main control board sends a third notification message to the second main control board to which the loads are to be started before the loads are to be started, where the third notification message is used to notify the second main control board of the priority corresponding to the first main control board.
And S202, receiving a third response message returned by the second main control board, wherein the third response message is used for notifying the first main control board of the corresponding priority of the second main control board.
In this embodiment of the application, the first main control board receives a third response message returned by the second main control board, where the third response message is used to notify the first main control board of the priority corresponding to the second main control board.
S203, when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board, the load to be started corresponding to the first main control board is started.
In this embodiment of the application, after receiving the third response message returned by the second main control board, the first main control board compares the priorities corresponding to the first main control board and the second main control board, and when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board, the load to be started corresponding to the first main control board is started.
In this embodiment of the application, if the loads are to be opened on the first main control board and the second main control board, before the first main control board opens the loads to be opened, the third notification message of the priority corresponding to the first main control board is sent to the second main control board to be opened, the third response message of the priority corresponding to the second main control board returned by the second main control board is received, and when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board, the third response message of the priority corresponding to the second main control board is sent to the first main control board to be opened, so that when the loads are to be opened on the first main control board and the second main control board, the loads on the first main control board and the second main control board are not opened at the same time.
In yet another embodiment of the present application, the load control method may further include the steps of:
and after the load to be started corresponding to the first main control board is started, sending a fourth notification message to the second main control board, wherein the fourth notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is started.
In this embodiment of the application, after the first main control board opens the load to be opened corresponding to the first main control board, a fourth notification message is sent to the second main control board, where the fourth notification message is used to notify the second main control board that the load to be opened corresponding to the first main control board is opened.
In yet another embodiment of the present application, the load control method may further include the steps of:
when the load to be started is to be started on the first main control board, whether the load to be started can be directly started or not can be judged according to the notification message received last time, if the notification message received last time is that the load to be started is already started by the second main control board, a notification message for notifying the second main control board to close the started load needs to be sent to the second main control board, and if the notification message received last time is that the load is already closed by the second main control board, the notification message is not sent to the second main control board, and the load to be started is directly started.
In yet another embodiment of the present application, the load control method may further include the steps of:
and S301, before the load to be started is started, sending a fifth notification message to a second main control board which establishes communication with the load to be started, wherein the fifth notification message is used for notifying the second main control board of the number of the loads to be started corresponding to the first main control board and a preset threshold value of the number of the started loads.
In this embodiment of the application, the preset threshold refers to the number of loads that can be started at most simultaneously on the first main control board and the second main control board, there may be multiple loads to be started on both the first main control board and the second main control board, and before the loads to be started are started, the first main control board sends a fifth notification message to the second main control board that establishes communication with the first main control board, where the fifth notification message is used to notify the second main control board of the number of loads to be started and the preset threshold of the number of loads to be started that correspond to the first main control board.
And S302, receiving a fifth response message returned by the second main control board, wherein the fifth response message is used for notifying the first main control board that the started load corresponding to the second main control board is closed according to the number of the loads to be started and the preset threshold value of the number of the started loads.
In this embodiment of the application, the first main control board receives a fifth response message returned by the second main control board, where the fifth response message is used to notify the first main control board that the started load corresponding to the second main control board has been closed according to the number of the loads to be started and the preset threshold of the number of the loads to be started.
And S303, starting the load to be started corresponding to the first main control board.
In this embodiment of the application, after receiving the fifth response message returned by the second main control board, the first main control board starts a load to be started corresponding to the first main control board.
In this embodiment of the application, if the first main control board and the second main control board are allowed to simultaneously open a plurality of loads, before the first main control board opens the loads to be opened, the first main control board sends a fifth notification message to the second main control board, which establishes communication with the first main control board, before opening the loads to be opened, where the fifth notification message is used to notify the second main control board of the number of the loads to be opened corresponding to the first main control board and a preset threshold of the number of the loads to be opened, so that the second main control board closes the opened loads to be closed according to the fifth notification message, and after receiving a fifth response message, which is returned by the second main control board and closes the opened loads corresponding to the second main control board, the loads to be opened corresponding to the first main control board are opened again. Therefore, the first main control board and the second main control board are ensured to simultaneously start partial loads only according to the preset threshold value.
In yet another embodiment of the present application, the load control method may further include the steps of:
step one, if a sixth notification message sent by a second main control board establishing communication with the first main control board is received, the sixth notification message is used for notifying the first main control board and the second main control board of the number of the loads to be started and the preset threshold of the number of the started loads, and the started loads corresponding to the sixth notification message are closed according to the number of the loads to be started and the preset threshold of the number of the started loads.
In this embodiment of the application, if the first main control board receives a sixth notification message sent by the second main control board that establishes communication with the first main control board, where the sixth notification message is used to notify the first main control board of the number of loads to be started and the preset threshold of the number of loads to be started, which correspond to the second main control board, and according to the number of loads to be started and the preset threshold of the number of loads to be started, the first main control board closes the started loads corresponding to the first main control board, and the first main control board may close the started loads with low priorities among the multiple started loads according to a preset priority.
Illustratively, there are 2 loads already started, a first load and a second load in the loads controlled by the first main control board, where the priority of the second load is lower than that of the first load, in the sixth notification message, the number of the loads to be started corresponding to the second main control board is 1, the preset threshold of the number of the loads started is 2, and after receiving the sixth notification message, the first main control board closes the second load with a lower priority.
And step two, sending a sixth response message to the second main control board, wherein the sixth response message is used for informing the second main control board that the started load corresponding to the first main control board is closed according to the number of the loads to be started and the preset threshold value of the number of the started loads.
In this embodiment of the application, according to the number of the loads to be started and the preset threshold of the number of the started loads, after the first main control board closes the started loads corresponding to the first main control board, a sixth response message is sent to the second main control board, where the sixth response message is used to notify the second main control board that the started loads corresponding to the first main control board have been closed according to the number of the loads to be started and the preset threshold of the number of the started loads.
In this embodiment of the application, if the first main control board receives a sixth notification message sent by the second main control board which establishes communication with the first main control board, where the sixth notification message is used to notify the first main control board of the number of loads to be started and the preset threshold of the number of loads to be started corresponding to the second main control board, and according to the number of loads to be started and the preset threshold of the number of loads to be started, the first main control board closes the started loads corresponding to the first main control board, and sends a sixth response message for closing the corresponding started loads to the second main control board.
In yet another embodiment of the present application, the load control method may further include the steps of:
when a plurality of loads to be started exist on the first main control board, determining the load to be started with the highest priority as a target load according to a preset load starting priority;
and starting the target load.
In the embodiment of the application, when a plurality of loads to be started exist on the first main control board, the load to be started with the highest priority is determined as the target load according to the preset load starting priority, and the target load is started. Illustratively, there are 2 loads to be started, a first load and a second load, among the loads controlled by the first main control board, where the priority of the first load is lower than that of the second load, it is determined that the first load is a target load, and the first load is started.
In the embodiment of the application, when a plurality of loads to be started exist on the first main control board, the loads to be started with the highest priority are started according to the preset priority for starting the loads, so that only one load can be started at the same time.
In this embodiment of the application, before the first main control board opens the load to be opened, the first main control board sends the notification message to the second main control board, and after receiving the response message that the second main control board closes the opened load corresponding to the second main control board, the load to be opened is opened, so that when the first main control board opens the load to be opened, the second main control board does not have the opened load, that is, it can be ensured that the loads on the first main control board and the second main control board are not opened at the same time.
Based on the same technical concept, an embodiment of the present application further provides a load control device, as shown in fig. 4, the load control device includes:
a sending module 410, configured to send a first notification message to a second main control board that establishes communication with the load to be started before starting the load to be started, where the first notification message is used to notify the second main control board that the load to be started corresponding to the first main control board is ready to be started;
a receiving module 420, configured to receive a first response message returned by the second main control board, where the first response message is used to notify that an opened load corresponding to the first main control board and the second main control board is closed;
a first starting module 430, configured to start the load to be started corresponding to the first main control board.
Optionally, the apparatus further comprises:
the first closing module is used for closing an opened load corresponding to the first main control board if receiving a second notification message sent by a second main control board which establishes communication with the first closing module, wherein the second notification message is used for notifying the first main control board that the load to be opened corresponding to the second main control board is ready to be opened;
and the second response message sending module is configured to send a second response message to the second main control board, where the second response message is used to notify that the started load corresponding to the first main control board is closed to the second main control board.
Optionally, the apparatus further comprises:
the third notification message sending module is used for sending a third notification message to a second main control board of the load to be started before the load to be started is started, wherein the third notification message is used for notifying the second main control board of the corresponding priority of the first main control board;
a third response message receiving module, configured to receive a third response message returned by the second main control board, where the third response message is used to notify the first main control board of a priority corresponding to the second main control board;
and the second starting module is used for starting the load to be started corresponding to the first main control board when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board.
Optionally, the apparatus further comprises:
and the fourth notification message sending module is used for sending a fourth notification message to the second main control board after the load to be started corresponding to the first main control board is started, wherein the fourth notification message is used for informing the second main control board that the load to be started corresponding to the first main control board is started.
Optionally, the apparatus further comprises:
a fifth notification message sending module, configured to send a fifth notification message to a second main control board that establishes communication with the second main control board before the load to be started is started, where the fifth notification message is used to notify the second main control board of the number of the loads to be started corresponding to the first main control board and a preset threshold of the number of the loads to be started;
the second closing module is configured to receive a fifth response message returned by the second main control board, where the fifth response message is used to notify the first main control board that the started load corresponding to the second main control board has been closed according to the number of the loads to be started and a preset threshold of the number of the loads to be started;
and the third starting module is used for starting the load to be started corresponding to the first main control board.
Optionally, the apparatus further comprises:
the third closing module is configured to, if a sixth notification message sent by a second main control board with which communication is established is received, notify the first main control board of the number of loads to be opened and a preset threshold of the number of load openings, which correspond to the second main control board, of the first main control board, and close an opened load corresponding to the third closing module according to the number of loads to be opened and the preset threshold of the number of load openings;
and the sixth response message sending module is configured to send a sixth response message to the second main control board, where the sixth response message is used to notify the second main control board that the started load corresponding to the first main control board is closed according to the number of the loads to be started and a preset threshold of the number of the loads to be started.
Optionally, the apparatus further comprises:
the determining module is used for determining the load to be started with the highest priority as a target load according to a preset load starting priority when a plurality of loads to be started exist on the first main control board;
and the target load starting module is used for starting the target load.
In this embodiment of the application, before the first main control board opens the load to be opened, the first main control board sends the notification message to the second main control board, and after receiving the response message that the second main control board closes the opened load corresponding to the second main control board, the load to be opened is opened, so that when the first main control board opens the load to be opened, the second main control board does not have the opened load, that is, it can be ensured that the loads on the first main control board and the second main control board are not opened at the same time.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
before a load to be started is started, sending a first notification message to a second main control board which establishes communication with the load to be started, wherein the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started;
receiving a first response message returned by the second main control board, wherein the first response message is used for informing the first main control board that the started load corresponding to the second main control board is closed;
and starting the load to be started corresponding to the first main control board.
In this embodiment of the application, before the first main control board opens the load to be opened, the first main control board sends the notification message to the second main control board, and after receiving the response message that the second main control board closes the opened load corresponding to the second main control board, the load to be opened is opened, so that when the first main control board opens the load to be opened, the second main control board does not have the opened load, that is, it can be ensured that the loads on the first main control board and the second main control board are not opened at the same time.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned load control methods.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the load control methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A load control method is applied to a first main control board, and the method comprises the following steps:
before a load to be started is started, sending a first notification message to a second main control board which establishes communication with the load to be started, wherein the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started;
receiving a first response message returned by the second main control board, wherein the first response message is used for informing the first main control board that the started load corresponding to the second main control board is closed;
starting the load to be started corresponding to the first main control board;
wherein the method further comprises:
before a load to be started is started, sending a fifth notification message to a second main control board which establishes communication with the second main control board, wherein the fifth notification message is used for notifying the second main control board of the number of the loads to be started corresponding to the first main control board and a preset threshold value of the number of the started loads, and the preset threshold value refers to the number of the loads which can be started at most at the same time on the first main control board and the second main control board;
receiving a fifth response message returned by the second main control board, wherein the fifth response message is used for notifying the first main control board that the started load corresponding to the second main control board is closed according to the number of the loads to be started and a preset threshold value of the number of the started loads;
and starting the load to be started corresponding to the first main control board.
2. The method of claim 1, further comprising:
if a second notification message sent by a second main control board which establishes communication with the first main control board is received, the second notification message is used for notifying the first main control board and the load to be started corresponding to the second main control board to prepare for starting, and the started load corresponding to the first main control board and the load to be started is closed;
and sending a second response message to the second main control board, wherein the second response message is used for notifying the second main control board that the started load corresponding to the first main control board is closed.
3. The method of claim 1, further comprising:
before a load to be started is started, sending a third notification message to a second main control board of the load to be started, wherein the third notification message is used for notifying the second main control board of the corresponding priority of the first main control board;
receiving a third response message returned by the second main control board, wherein the third response message is used for informing the first main control board of the corresponding priority of the second main control board;
and when the priority corresponding to the first main control board is higher than the priority corresponding to the second main control board, starting the load to be started corresponding to the first main control board.
4. The method of claim 1, further comprising:
and after the load to be started corresponding to the first main control board is started, sending a fourth notification message to the second main control board, wherein the fourth notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is started.
5. The method of claim 1, further comprising:
if a sixth notification message sent by a second main control board establishing communication with the first main control board is received, the sixth notification message is used for notifying the first main control board of the number of the loads to be started corresponding to the second main control board and a preset threshold of the number of the started loads, and the started loads corresponding to the sixth notification message are closed according to the number of the loads to be started and the preset threshold of the number of the started loads;
and sending a sixth response message to the second main control board, wherein the sixth response message is used for notifying the second main control board that the started load corresponding to the first main control board is closed according to the number of the loads to be started and the preset threshold value of the number of the started loads.
6. The method of claim 1, further comprising:
when a plurality of loads to be started exist on the first main control board, determining the load to be started with the highest priority as a target load according to a preset load starting priority;
and starting the target load.
7. A load control device, applied to a first main control board, the device comprising:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a first notification message to a second main control board which establishes communication with the load to be started before the load to be started is started, and the first notification message is used for notifying the second main control board that the load to be started corresponding to the first main control board is ready to be started;
a receiving module, configured to receive a first response message returned by the second main control board, where the first response message is used to notify the first main control board that an opened load corresponding to the second main control board is closed;
the first starting module is used for starting the load to be started corresponding to the first main control board;
wherein the apparatus further comprises:
a fifth notification message sending module, configured to send a fifth notification message to a second main control board that establishes communication with the second main control board before the load to be started is started, where the fifth notification message is used to notify the second main control board of the number of the loads to be started and a preset threshold of the number of started loads, where the preset threshold refers to the number of the loads that can be started at most simultaneously on the first main control board and the second main control board;
the second closing module is configured to receive a fifth response message returned by the second main control board, where the fifth response message is used to notify the first main control board that the started load corresponding to the second main control board has been closed according to the number of the loads to be started and a preset threshold of the number of the loads to be started;
and the third starting module is used for starting the load to be started corresponding to the first main control board.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
9. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202011429773.3A 2020-12-07 2020-12-07 Load control method and device, electronic equipment and storage medium Active CN112556104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011429773.3A CN112556104B (en) 2020-12-07 2020-12-07 Load control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011429773.3A CN112556104B (en) 2020-12-07 2020-12-07 Load control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112556104A CN112556104A (en) 2021-03-26
CN112556104B true CN112556104B (en) 2021-11-16

Family

ID=75059900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011429773.3A Active CN112556104B (en) 2020-12-07 2020-12-07 Load control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112556104B (en)

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3338808A1 (en) * 1983-10-26 1985-05-15 Diehl GmbH & Co, 8500 Nürnberg Changeover device between a network and load circuits
JPH04257674A (en) * 1991-02-06 1992-09-11 Sanyo Electric Co Ltd Controlling device for refrigerator
DK0866392T3 (en) * 1997-10-30 1999-06-21 Leister Process Tech Method and circuit for coupling-free power control of electrical loads
US6721672B2 (en) * 2002-01-02 2004-04-13 American Power Conversion Method and apparatus for preventing overloads of power distribution networks
JP2008125295A (en) * 2006-11-14 2008-05-29 Central Res Inst Of Electric Power Ind Method and device for selecting/interrupting load in consumer
CN101995073A (en) * 2010-11-17 2011-03-30 西安信唯信息科技有限公司 Switch and open control method of domestic air conditioner
US10840735B1 (en) * 2011-05-26 2020-11-17 J. Carl Cooper Power source load control
CN104466951A (en) * 2014-11-24 2015-03-25 珠海格力电器股份有限公司 Control method and device for automatically detecting and adjusting loads
KR102436823B1 (en) * 2015-12-17 2022-08-26 삼성전자주식회사 An air conditioner, an air conditioning system and method thereof
US10655872B2 (en) * 2017-04-06 2020-05-19 Eaton Intelligent Power Limited Load management system and method utilizing breaker metering data and occupancy data
CN107422644B (en) * 2017-07-11 2021-05-25 广东美的制冷设备有限公司 Control method of household appliance, mobile terminal, device, system and storage medium
CN107421064B (en) * 2017-07-13 2020-10-09 广东美的制冷设备有限公司 Control method and control device of air conditioner, system and storage medium
CN107526633B (en) * 2017-08-04 2021-03-19 广东美的制冷设备有限公司 Energy-saving control method and device for electric equipment, energy-saving system and storage medium
CN107505974B (en) * 2017-08-04 2019-08-27 广东美的制冷设备有限公司 Control method, device, house system and the storage medium of the anti-tripping of household electricity
CN109506330B (en) * 2018-11-12 2019-12-03 珠海格力电器股份有限公司 A kind of dual system air conditioner and its load control method
CN111854042B (en) * 2020-07-30 2021-07-23 珠海格力电器股份有限公司 Interconnection control method and device, purifying equipment and purifying system

Also Published As

Publication number Publication date
CN112556104A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
US11799786B2 (en) Device and method for disabling a WLAN hotspot based on data traffic value
CN108390856B (en) DDoS attack detection method and device and electronic equipment
EP3669530A1 (en) Systems and methods for controlling real-time traffic surge of application programming interfaces (apis) at server
CN109450701B (en) Virtual switch switching method and device, host machine and computer readable storage medium
US20240143443A1 (en) Method and apparatus for repairing hanging in communication bus, electronic device, and storage medium
CN112770308A (en) Network distribution method and device of intelligent device, electronic device and computer readable medium
CN112556104B (en) Load control method and device, electronic equipment and storage medium
CN112527615B (en) Equipment determination method and device, electronic equipment and storage medium
CN111224809A (en) Fault log transmission method and device, electronic equipment and storage medium
EP4092529A1 (en) Service scheduling method and apparatus, electronic device, and storage medium
CN113010214A (en) BIOS option setting method, system and storage medium
CN111324477A (en) Processing method and device for distributed fusing
CN112214437B (en) Storage device, communication method and device and computer readable storage medium
CN114490135A (en) Task processing method and device, electronic equipment and storage medium
CN114826906A (en) Flow control method and device, electronic equipment and storage medium
CN112235630B (en) Data backup transmission method, LED mesh loop backup system and electronic equipment
CN111555918B (en) Return source optimization method and device and electronic equipment
CN110737420B (en) Voice conflict management method, system, computer readable storage medium and device
CN114257958B (en) Information determination method and device, electronic equipment and storage medium
CN106993300B (en) Access control method and system for terminal hotspot
CN113810486B (en) Internet of things platform docking method and device, electronic equipment and storage medium
CN111354174A (en) Alarm method, device, server and readable storage medium
CN111614747B (en) Information processing method and device
CN110209513B (en) Broadcast registration method, device, equipment and medium of application program
CN114328446A (en) Database parameter setting method and device and electronic equipment

Legal Events

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