CN115183380B - Method, device, controller and storage medium for multi-terminal control of air conditioning system - Google Patents

Method, device, controller and storage medium for multi-terminal control of air conditioning system Download PDF

Info

Publication number
CN115183380B
CN115183380B CN202210646496.4A CN202210646496A CN115183380B CN 115183380 B CN115183380 B CN 115183380B CN 202210646496 A CN202210646496 A CN 202210646496A CN 115183380 B CN115183380 B CN 115183380B
Authority
CN
China
Prior art keywords
state
controller
control
conditioning system
air conditioning
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
CN202210646496.4A
Other languages
Chinese (zh)
Other versions
CN115183380A (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.)
Qingdao Haier Air Conditioner Gen Corp Ltd
Qingdao Haier Air Conditioning Electric Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Air Conditioner Gen Corp Ltd
Qingdao Haier Air Conditioning Electric Co Ltd
Haier Smart Home 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 Qingdao Haier Air Conditioner Gen Corp Ltd, Qingdao Haier Air Conditioning Electric Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Air Conditioner Gen Corp Ltd
Priority to CN202210646496.4A priority Critical patent/CN115183380B/en
Publication of CN115183380A publication Critical patent/CN115183380A/en
Application granted granted Critical
Publication of CN115183380B publication Critical patent/CN115183380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • 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/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers
    • 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
    • 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/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The application relates to the technical field of air conditioners and discloses a method, a device, a controller and a storage medium for multi-terminal control of an air conditioning system. The air conditioning system includes: the system comprises two or more controllers and two or more air conditioners, wherein the controllers and the air conditioners are in communication connection based on a serial communication protocol bus. The method comprises the following steps: if a current control instruction is received under the condition that the current working state is a slave control state, switching the current working state into a master control preparation state; and under the condition that the duration time of the current working state in the master control preparation state reaches the set time, switching the current working state to the master control state, and controlling the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus. Therefore, the user can control the whole air conditioning system at any time and any place through any one controller, and the multi-terminal control flexibility and the intelligence of the air conditioning system are improved.

Description

Method, device, controller and storage medium for multi-terminal control of air conditioning system
Technical Field
The present application relates to the field of air conditioning technology, for example, to a method, an apparatus, a controller, and a storage medium for multi-terminal control of an air conditioning system.
Background
With the popularization of intelligent technology, intelligent air conditioners are indispensable devices in home life. And, many buildings, for example: hotels and office buildings all have a large air conditioning system in which: a plurality of controllers and a plurality of air conditioners based on a serial communication protocol.
At present, many air conditioning systems can be based on a Modbus communication protocol, a 485 communication bus is used as a carrier to connect a plurality of controllers and a plurality of air conditioners, generally, one air conditioning system corresponds to one controller in different areas, but only one controller is allowed to be a master controller in the whole air conditioning system, control and inquiry instructions can be issued, and other controllers can only be slave controllers which cannot issue control instructions, cannot inquire the states of other controllers and can only monitor communication data on the 485 bus. Thus, the entire air conditioning system cannot be controlled by any one of the controllers at any time and any place.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method, a device, a controller and a storage medium for multi-terminal control of an air conditioning system, so as to solve the technical problems of multi-terminal control flexibility and intelligence of the air conditioning system to be improved. The air conditioning system includes: the system comprises two or more controllers and two or more air conditioners, wherein the controllers and the air conditioners are in communication connection based on a serial communication protocol bus.
In some embodiments, the method comprises:
if a current control instruction is received under the condition that the current working state is a slave control state, switching the current working state into a master control preparation state;
and under the condition that the duration time of the current working state in the master control preparation state reaches the set time, switching the current working state to the master control state, and controlling the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus.
In some embodiments, the apparatus comprises:
the first switching module is configured to switch the current working state into a master control preparation state if a current control instruction is received under the condition that the current working state is a slave control state;
The second switching module is configured to switch the current working state to the master control state under the condition that the duration time of the current working state in the master control preparation state reaches a set time;
the first control module is configured to control the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus.
In some embodiments, the apparatus for multi-terminal control of an air conditioning system includes a processor and a memory storing program instructions, the processor being configured to perform the above-described method for multi-terminal control of an air conditioning system when executing the program instructions.
In some embodiments, the controller comprises the device for multi-terminal control of an air conditioning system.
In some embodiments, the storage medium stores program instructions that, when executed, perform the above-described method for multi-terminal control of an air conditioning system
The method, the device and the controller for multi-terminal control of the air conditioning system provided by the embodiment of the disclosure can realize the following technical effects:
in the air conditioning system, each controller corresponds to three working states, namely a master control state, a slave control state and a master control preparation state, wherein when the local end controller is in the slave control state, if the local end controller receives a current control instruction, the working state is required to be switched to the master control preparation state, and when the duration time of the master control preparation state reaches a set time, the current control instruction can be issued, namely the corresponding air conditioning operation can be controlled through a serial communication protocol bus according to the current control instruction, so that the local end controller in any area of the air conditioning system, which receives the current control instruction, can be changed into the master controller through the switching of the working state, thereby issuing the current control instruction, realizing that a user can control the whole air conditioning system at any time and any place through any one controller, and improving the multi-end control flexibility and intelligence of the air conditioning system.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
fig. 1 is a schematic structural diagram of an air conditioning system according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure;
FIG. 3-1 is a schematic flow chart of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure;
fig. 3-2 is a schematic flow chart of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a multi-terminal control device for an air conditioning system according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a multi-terminal control device for an air conditioning system according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a multi-terminal control device for an air conditioning system according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
In the embodiment of the disclosure, in an air conditioning system configured based on a serial communication protocol, there are two or more controllers and two or more air conditioners, and each controller corresponds to three working states, namely a master control state, a slave control state and a master control preparation state, so that when any one controller receives a current control instruction, if the controller is in the master control state, the controller can directly issue the instruction, if the controller is in the slave control state, the working state needs to be switched, the slave control state is switched to the master control preparation state, and finally, after the controller is switched to the master control state, the current control instruction can be issued, namely, the operation of the corresponding air conditioner can be controlled according to the current control instruction through a serial communication protocol bus.
An air conditioning system includes: the system comprises two or more controllers and two or more air conditioners, wherein the controllers and the air conditioners are in communication connection based on a serial communication protocol bus. Fig. 1 is a schematic structural diagram of an air conditioning system according to an embodiment of the present disclosure. As shown in fig. 1, the air conditioning system includes: four controllers, four air conditioners, namely a controller 1, a controller 2, a controller 3 and a controller 4; the four air conditioners are air conditioner 1, air conditioner 2, air conditioner 3 and air conditioner 4, respectively. And the controller and the air conditioner are in communication connection based on a 485 communication bus. Of course, the embodiments of the present disclosure are not limited thereto, and there may be three controllers, five air conditioners; or 20 controllers, 35 air conditioners, etc., are not specifically exemplified.
In an air conditioning system, each controller corresponds to three working states, namely: the controller can issue a state inquiry command and also issue a control command if the controller is in the master control state; if the controller is in the slave control state, the controller cannot issue a state inquiry command and a control command, but can monitor data on the communication bus and can be displayed on the controller interface. And the controller is in a master control preparation state, which indicates that the controller needs to issue a control instruction.
In the air conditioning system, the flexible control of the air conditioner is realized through the working state switching of the controller. Fig. 2 is a schematic flow chart of a multi-terminal control method for an air conditioning system according to an embodiment of the disclosure. As shown in fig. 2, the multi-terminal control process of the air conditioning system includes:
step 201: and under the condition that the current working state is the slave control state, if a current control instruction is received, switching the current working state into the master control preparation state.
The air conditioning system uses a communication bus as a carrier based on a serial communication protocol, so that only one controller is allowed to be in a master control state in the whole bus, and other controllers are in slave control states, and thus, any one controller can be a master controller or a slave controller.
When the controller in the current area, namely the local end controller is in the main control state, the local end controller can be the main controller, can perform state inquiry and control instruction issuing. In some embodiments, the home end controller is in a master control state, and is the master controller, which may be the first controller, so that the home end controller may poll the state of each controller and each air conditioner, and may also issue a control instruction, that is, poll the state query instruction sent to each controller and each air conditioner, and receive the state response information fed back by each controller and each air conditioner, when the current working state is the master control state. In addition, only the corresponding working state is required to be inquired during inquiry, so that the communication bus resources are greatly saved, and the communication efficiency is improved.
Taking fig. 1 as an example, when the air conditioning system starts to operate, if the controller 1 is a local end controller and is in a master control state, the other controllers are slave controllers, so that the controller 1 polls the state of each controller, which may specifically include:
the controller 1 sends a state inquiry command to the controller 2, the controller 2 sends a state inquiry command to the controller 1, the controller 1 sends a state inquiry command to the controller 3, the controller 3 sends a state inquiry command to the controller 1, the controller 1 sends a state inquiry command to the controller 4, the controller 4 sends a state inquiry command to the controller 1, the controller 1 sends a state inquiry command to the air conditioner 1, the air conditioner 1 sends a state response message to the controller 1, the air conditioner 1 sends a state inquiry command to the air conditioner 4, the air conditioner 4 sends a state response message to the controller 1, the controller 1 sends a state inquiry command to the controller 2, the controller 2 sends a state response message to the controller 1, and the controller 1 sends a state response message to the controller … ….
Of course, in some embodiments, if the local end controller is in the master control state, after receiving the current control instruction, the local end controller may also issue the current control instruction, that is, if the current control instruction is received in the case that the current working state is the master control state, the local end controller controls the operation of the corresponding air conditioner according to the current control instruction through the serial communication protocol bus.
Still taking fig. 1 as an example, the controller 2 is a local end controller and is in a master control state, and when the controller 2 polls the state of each controller and each air conditioner, it receives a current control instruction, and then it can issue the current control instruction. The method specifically comprises the following steps: the method comprises the steps of sending a state query instruction to a controller 4 by the controller 2, sending a state response message including a corresponding working state to the controller 4, sending the state query instruction to an air conditioner 1 by the controller 2, sending the state response message including the corresponding working state to the controller 2 by the air conditioner 1, sending the state query instruction to the air conditioner 2, sending the state response message including the corresponding working state to the controller 2 by the air conditioner 2, receiving a current control instruction by the controller 2, sending the current control instruction by the corresponding air conditioner 1, sending control feedback information to the controller 2 by the air conditioner 1, sending the state query instruction to the air conditioner 3 by the controller 2, sending the state response message including the corresponding working state to the controller 2 by the air conditioner 3, and sending the state response message including the corresponding working state to the controller 2 by the air conditioner … ….
However, when the local end controller is in the slave control state, the data on the bus can be monitored and displayed on the corresponding interface, wherein the state response information comprising the corresponding working state is responded to the first controller under the condition that the state query instruction issued by the first controller in the master control state is received. When receiving the current control instruction, the local end controller needs to switch the working state, and can switch the current working state from the slave control state to the master control preparation state.
Of course, after the current working state is switched to the master control preparation state, the first state response information in the master control preparation state is carried by the response to the first controller under the condition that the state query instruction issued by the first controller in the master control state is received.
Step 202: and under the condition that the duration time of the current working state in the master control preparation state reaches the set time, switching the current working state to the master control state, and controlling the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus.
The set time may be 50ms, 60ms, …, 100ms, 120ms, etc., and may be determined according to the volume size of the air conditioning system, the performance of the controller, etc. When the duration time of the current working state of the local end controller in the main control preparation state reaches the set time, the current working state can be switched from the main control preparation state to the main control state, namely the local end controller becomes the main controller, so that the control command can be issued, and the corresponding air conditioner can be controlled to operate according to the current control command through the serial communication protocol bus.
Because only one controller is allowed to be in the master control state in the whole bus, the first controller in the master control state also needs to switch the working state, in some embodiments, the first controller issues a state query instruction, the local end controller replies to the first controller with first state response information in the master control preparation state, and after the first controller receives the first state response information, the first controller can switch the working state from the master control state to the slave control state. At this time, the local end controller is in a master control preparation state, the first controller is in a slave control state, and no controller in the master control state exists in the whole bus, so that the whole bus is in a silent state, no inquiry exists, and no instruction is issued.
In some embodiments, the controller in the master ready state may switch to the master state if the duration of the serial communication protocol bus in the silence state reaches the first set time. Accordingly, the set time may be determined based on the volume of the air conditioning system, the first set time, the controller performance, and the like.
Because the local end controller is a master controller in some scenes and a slave controller in some scenes, when the local end controller is the master controller, if the first response information carrying the master control preparation state is received, the current working state is required to be switched from the master control state to the slave control state, namely, if the current working state is the master control state, and if the first response information carrying the master control preparation state is received, the current working state is switched from the master control state to the slave control state.
Taking fig. 1 as an example, the controller 1 is a master controller, the controller 3 is a local end controller, and is in a slave control state, the controller 3 receives a current control instruction in the running process of the air conditioning system, and the controller 3 switches the working state from the slave control state to a master control preparation state.
The method comprises the steps of firstly, sending a state inquiry command to a controller 2 by the controller 1, sending a state inquiry command to the controller 3 by the controller 2, sending a first state inquiry command carrying a state inquiry command in a master preparation state to the controller 3 by the controller 3, sending a state inquiry command to the controller 4 by the controller 1, sending a state inquiry command to the controller 1 by the controller 4, sending a state inquiry command to the controller 1 by the controller 1, switching the working state to a slave control state (the whole serial communication protocol bus is not provided with the controller in the master control state, the whole bus is in the silence state), enabling the duration to reach a set time of 80ms, switching the working state to the master control state, sending a current control command to the corresponding air conditioner 2 by the controller 3, sending a control feedback message to the controller 3, sending a state inquiry command to the controller 1, sending a state response message to the controller 3, including the corresponding working state to the controller 3, … …, sending a state inquiry command to the controller 3 to the controller 1, sending a state response message to the controller 3, sending a state response to the controller 62, sending a state response message to the controller 1 to the controller 62 including the corresponding working state response message to the controller 1, and sending a state response message to the controller 62 including the corresponding working state response message to the controller 1 to the controller 4.
Of course, in an air conditioning system including a plurality of controllers and a plurality of air conditioners, there may be two or more controllers in a slave control state that receive control instructions, and then the operation states of the controllers may be switched to a master preparation state. Because the master controller polls and inquires the state of each controller, if the first response information carrying the first response information in the master control preparation state is received, when the first response information carrying the first response information in the master control preparation state is received again, the working state of the controller corresponding to the first response information needs to be switched to the slave control state, that is, in some embodiments, if other controllers in the master control preparation state are determined to exist, a switching instruction is issued to the other controllers, so that the other controllers are switched to the slave control state.
Taking fig. 1 as an example, the controller 1 is taken as a main controller, and the controller 3 and the controller 4 receive corresponding control instructions, that is, the working states of the controller 3 and the controller 4 are switched to a main control preparation state. Wherein, the controller 1 issues a state inquiry command to the controller 2, the controller 2 issues a state response message including a corresponding working state to the controller 1, the controller 1 issues a state inquiry command to the controller 3, the controller 3 issues a state inquiry command to the controller 1 carrying a first state response message in a master ready state, the controller 1 issues a state inquiry command to the controller 4, the controller 4 issues a first state response message to the controller 1 carrying a master ready state, the controller 1 determines that there are other controllers in a master ready state, issues a switching command to the controller 4, the controller 4 switches to a slave state, the controller 4 issues a state response message including a corresponding working state to the controller 1, … …, the controller 1 switches the working state to a slave state (the whole serial communication protocol bus is not in a master state), the whole bus is in a silent state), the duration reaches a set time of 100ms, the controller 3 switches the working state to the master state, the controller 3 sends a current control command to the controller 3, the controller 3 responds to the controller 3, the controller 1 responds to the controller, the controller 1 responds to the state response message including the master state response message, the controller 3824 responds to the controller 1, and the controller responds to the controller 1 responds to the controller in the working state response message including the master state response message to the controller 1 and the controller 1 responds to the controller 3.
It can be seen that, in the embodiment of the disclosure, in an air conditioning system configured based on a serial communication protocol, there are two or more controllers, and two or more air conditioners, and each controller corresponds to three working states, namely, a master control state, a slave control state, and a master control preparation state, so if the local end controller is in the slave control state, the working state needs to be switched, the slave control state is switched to the master control preparation state, and after the local end controller is finally switched to the master control state, a current control instruction can be issued, that is, the operation of the corresponding air conditioner can be controlled according to the current control instruction through the serial communication protocol bus, so that the controller in any area in the air conditioning system can be changed into the master controller through the switching of the working state, and therefore, the current control instruction can be issued, the user can control the whole air conditioning system through any one controller at any time and any place, and the multi-end control flexibility and the intelligence of the air conditioning system are improved.
The following integrates the operation flow into a specific embodiment, and illustrates the multi-terminal control process for the air conditioning system provided by the embodiment of the invention.
In one embodiment of the present disclosure, as shown in fig. 1, an air conditioning system includes: four controllers, four air conditioners, namely a controller 1, a controller 2, a controller 3 and a controller 4; the four air conditioners are air conditioner 1, air conditioner 2, air conditioner 3 and air conditioner 4, respectively. And the controller and the air conditioner are in communication connection based on a 485 communication bus. The set time may be 100ms.
Fig. 3-1 and 3-2 are schematic flow diagrams of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure. 3-1,3-2, the multi-terminal control process of the air conditioning system includes:
step 301: determine whether the current operating state is a slave state? If yes, go to step 302, otherwise, go to step 309.
Step 302: determine whether a current control instruction is received? If yes, go to step 303, otherwise, go to step 308.
Step 303: and switching the current working state into a main control preparation state, and starting duration time counting.
Step 304: is a status query instruction issued by a first controller in a master status received? If yes, go to step 305, otherwise, return to step 304.
And monitoring 485 the state on the communication bus, after monitoring the state inquiry command which is issued by the first controller and polled to the local end controller, executing step 305, otherwise, continuing monitoring.
Step 305: the first controller is replied with first state response information in a master control preparation state.
Thus, the first controller can switch the corresponding control state to the slave control state after receiving the first state response information.
Step 306: determine if the duration has reached 100ms? If yes, go to step 307, otherwise, return to step 306.
When in the master control preparation state, the working states of the controllers and the air conditioner on the 485 communication bus can be monitored, but at this time, the first controller is in the slave control state, namely, no controller on the 485 bus is in the master control state, namely, the 485 bus is in the silence state, so that step 307 can be executed after 100ms of silence.
Step 307: and switching the current working state to a main control state, and controlling the operation of the corresponding air conditioner through a 485 bus according to the current control instruction. Returning to step 301.
Step 308: and monitoring the data on the 485 bus, displaying the data on the interface, and carrying out corresponding response under the condition of monitoring a state inquiry instruction issued by the first controller in the master control state. Returning to step 301.
Step 309: determine whether the current operating state is the master control state? If yes, go to step 310, otherwise, go to step 301.
Step 310: determine whether a current control instruction is received? If yes, go to step 311, otherwise, go to step 312.
Step 311: and controlling the operation of the corresponding air conditioner according to the current control instruction through the 485 bus, and receiving control feedback information returned by the air conditioner. Returning to step 301.
Step 312: and the polling sends a state inquiry instruction to each controller and each air conditioner and receives state response information fed back by each controller and each air conditioner.
Step 313: determine whether or not to receive a first status response message carrying a master ready status? If yes, go to step 314, otherwise, return to step 312.
Step 314: is the first status response information received for the first time in this query? If yes, go to step 315, otherwise, go to step 316.
Step 315: after the inquiry is completed, the current working state is switched from the master control state to the slave control state. Returning to step 301.
Step 316: and issuing a switching instruction to the controller which sends the first state response information, so that the state of the corresponding controller is switched to a slave control state. And proceeds to step 315.
In this embodiment, the controller may be in a master control state or a slave control state in the running process of the air conditioning system, when in the slave control state, if the current control instruction is received, the working state needs to be switched to the master control preparation state, and when the duration time of the master control preparation state reaches the set time, the current control instruction can be issued, that is, the corresponding air conditioner is controlled to run according to the current control instruction through the serial communication protocol bus, and when in the master control state, if the first state response information carrying the master control preparation state is received, the working state needs to be switched to the slave control state, so that the local end controller in any area of the air conditioning system, which receives the current control instruction, can be switched to the master controller through the working state, and only one controller in the master control state is ensured in the bus, thereby realizing multi-end control of the air conditioning system by any controller at any time and any place, without the help of a network, and improving the flexibility and the intelligence of the multi-end control of the air conditioning system. In addition, when the controller in the main control state inquires, only the working states of other controllers are required to be inquired, so that communication bus resources are greatly saved, and communication efficiency is improved.
According to the above-described process for multi-terminal control of an air conditioning system, an apparatus for multi-terminal control of an air conditioning system can be constructed.
Fig. 4 is a schematic structural diagram of a multi-terminal control device for an air conditioning system according to an embodiment of the present disclosure. As shown in fig. 4, the multi-terminal control apparatus for an air conditioning system includes: the first switching module 410, the second switching module 420, and the first control module 430.
The first switching module 410 is configured to switch the current working state to the master preparation state if the current control command is received in the case that the current working state is the slave state.
The second switching module 420 is configured to switch the current operating state to the master state if the duration of the current operating state in the master ready state reaches the set time.
The first control module 430 is configured to control the operation of the corresponding air conditioner according to the current control instruction through the serial communication protocol bus.
In some embodiments, further comprising: and the response module is configured to respond to the first controller to carry the first state response information in the master control preparation state under the condition of receiving the state query instruction issued by the first controller in the master control state.
In some embodiments, further comprising: the second control module is configured to control the corresponding air conditioner to operate according to the current control command through the serial communication protocol bus if the current control command is received under the condition that the current working state is the main control state.
In some embodiments, further comprising: and the third switching module is configured to switch the current working state from the master control state to the slave control state if the first response information carrying the master control preparation state is received under the condition that the current working state is the master control state.
In some embodiments, further comprising: and the switching control module is configured to send a switching instruction to the other controllers if the other controllers in the master control preparation state are determined to exist, so that the other controllers are switched to the slave control state.
In some embodiments, further comprising: and the polling module is configured to poll and send a state inquiry instruction to each controller and each air conditioner and receive state response information fed back by each controller and each air conditioner under the condition that the current working state is the main control state.
An air conditioning control process for the multi-terminal control device of the air conditioning system is further described below with reference to the embodiments.
In this embodiment, an air conditioning system includes: the system comprises 5 controllers and 8 air conditioners, wherein the controllers and the air conditioners are in communication connection based on a serial communication protocol bus. The set time may be 120ms.
Fig. 5 is a schematic structural diagram of a multi-terminal control device for an air conditioning system according to an embodiment of the present disclosure. As shown in fig. 5, the multi-terminal control apparatus for an air conditioning system includes: the first switching module 410, the second switching module 420, the first control module 430, the acknowledgement module 440, the second control module 450, the third switching module 460, the switching control module 470, and the polling module 480.
When the local controller of the multi-terminal control device of the air conditioning system is in the slave control state, if the current control command is received, the first switching module 410 can switch the current working state to the master control preparation state, and start duration time counting. And under the condition that a state inquiry instruction issued by the first controller in the master control state is received, the response module 440 can respond to the first controller and carry the first state response information in the master control preparation state, so that the first controller can switch the working state to the slave control state, and therefore, no controller is in the master control state on the whole serial communication protocol bus, namely, the serial communication protocol bus is in the silence state. Thus, when the duration of the master preparation state reaches 120ms, the second switching module 420 may switch the current working state to the master state, so that the first control module 430 may control the corresponding air conditioner to operate according to the current control command through the serial communication protocol bus.
Of course, when the local end controller of the multi-end control device of the air conditioning system is in the master control state, if the current control instruction is received, the second control module 450 can directly control the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus. And if the first response message carrying the master ready state is received, the third switching module 460 may switch the current working state from the master state to the slave state. In addition, if it is determined that there are other controllers in the master ready state, the switching control module 470 also needs to issue a switching instruction to the other controllers, so that the other controllers switch to the slave state, and then the third switching control module 460 switches the current working state from the master state to the slave state. Of course, the local end controller in the master control state may also perform a query, that is, the polling module 480 may poll each controller and each air conditioner to send a state query instruction, and receive the state response information fed back by each controller and each air conditioner.
In this embodiment, in the air conditioning system based on the serial communication protocol bus, the local end controller applied to the device for multi-end control of the air conditioning system may be in a master control state or a slave control state, where when in the slave control state, if the local end controller is in the slave control state, it is required to switch the working state to the master control ready state, and when the duration time in the master control ready state reaches a set time, the current control instruction is issued, that is, the corresponding air conditioner is controlled to operate according to the current control instruction through the serial communication protocol bus, and is in the master control state, if the local end controller in any area receives the first state response information in the master control ready state, it is required to switch the working state to the slave control state, so that the local end controller in any area in the air conditioning system can be the master control controller at any time, and only one controller in the master control state is ensured in the bus, thereby realizing that a user can control the whole air conditioning system anywhere, and multi-end control of the air conditioning system is not required to be realized by a network, and flexibility of the air conditioning system is improved. In addition, when the controller in the main control state inquires, only the working states of other controllers are required to be inquired, so that communication bus resources are greatly saved, and communication efficiency is improved.
The embodiment of the disclosure provides a device for multi-terminal control of an air conditioning system, the structure of which is shown in fig. 6, comprising:
a processor (processor) 1000 and a memory (memory) 1001, and may also include a communication interface (Communication Interface) 1002 and a bus 1003. The processor 1000, the communication interface 1002, and the memory 1001 may communicate with each other via the bus 1003. The communication interface 1002 may be used for information transfer. The processor 1000 may invoke logic instructions in the memory 1001 to perform the method for multi-terminal control of an air conditioning system of the above-described embodiments.
Further, the logic instructions in the memory 1001 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 1001 is used as a computer readable storage medium for storing a software program and a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 1000 performs functional applications and data processing by executing program instructions/modules stored in the memory 1001, i.e., implements the method for multi-terminal control of an air conditioning system in the above-described method embodiment.
The memory 1001 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 1001 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides a multi-terminal control device for an air conditioning system, which comprises: the system includes a processor and a memory storing program instructions, the processor configured to execute a multi-terminal control method for an air conditioning system when the program instructions are executed.
The embodiment of the disclosure provides a controller, which comprises the multi-terminal control device for an air conditioning system.
The disclosed embodiments provide a storage medium storing program instructions that, when executed, perform a method for multi-terminal control of an air conditioning system as described above.
The disclosed embodiments provide a computer program product comprising a computer program stored on a storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above-described multi-terminal control method for an air conditioning system.
The storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. The scope of the embodiments of the present disclosure encompasses the full ambit of the claims, as well as all available equivalents of the claims. When used in this application, although the terms "first," "second," etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without changing the meaning of the description, so long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first element and the second element are both elements, but may not be the same element. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (7)

1. A method for multi-terminal control of an air conditioning system, the air conditioning system comprising: two or more controllers, and two or more air conditioners, wherein the controllers and the air conditioners are in communication connection based on a serial communication protocol bus, and the method comprises the following steps:
if a current control instruction is received under the condition that the current working state is a slave control state, switching the current working state into a master control preparation state;
under the condition of receiving a state inquiry instruction issued by a first controller in a main control state, responding to the first controller, wherein the first state response information is carried in a main control preparation state;
when the duration time of the current working state in the master control preparation state reaches a set time, switching the current working state to a master control state, and controlling the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus;
if the other controllers in the master control preparation state are determined to exist, a switching instruction is issued to the other controllers, so that the other controllers are switched into the slave control state;
and under the condition that the current working state is the master control state, if the first state response information carrying the master control preparation state is received, switching the current working state from the master control state to the slave control state.
2. The method as recited in claim 1, further comprising:
and under the condition that the current working state is the main control state, if a current control instruction is received, controlling the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus.
3. The method according to claim 1 or 2, further comprising:
and under the condition that the current working state is the main control state, polling sends a state inquiry command to each controller and each air conditioner, and receives state response information fed back by each controller and each air conditioner.
4. An apparatus for multi-terminal control of an air conditioning system, the air conditioning system comprising: two or more controllers, and two or more air conditioners, wherein the controllers, the air conditioners are based on serial communication protocol bus to carry out communication connection, and the device includes:
the first switching module is configured to switch the current working state into a master control preparation state if a current control instruction is received under the condition that the current working state is a slave control state;
the response module is configured to respond to the first controller to carry first state response information in a master control preparation state under the condition of receiving a state query instruction issued by the first controller in the master control state;
The second switching module is configured to switch the current working state to the master control state under the condition that the duration time of the current working state in the master control preparation state reaches a set time;
the first control module is configured to control the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus;
the switching control module is configured to send a switching instruction to other controllers if the other controllers in the master control preparation state are determined to exist, so that the other controllers are switched to the slave control state;
and the third switching module is configured to switch the current working state from the master control state to the slave control state when the first state response information carrying the master control preparation state is received under the condition that the current working state is the master control state.
5. An apparatus for multi-terminal control of an air conditioning system, the apparatus comprising a processor and a memory storing program instructions, wherein the processor is configured, when executing the program instructions, to perform the method for multi-terminal control of an air conditioning system of any of claims 1 to 3.
6. A controller, comprising: the apparatus for multi-terminal control of an air conditioning system according to claim 4 or 5.
7. A storage medium storing program instructions which, when executed, perform the method for multi-terminal control of an air conditioning system according to any one of claims 1 to 3.
CN202210646496.4A 2022-06-09 2022-06-09 Method, device, controller and storage medium for multi-terminal control of air conditioning system Active CN115183380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210646496.4A CN115183380B (en) 2022-06-09 2022-06-09 Method, device, controller and storage medium for multi-terminal control of air conditioning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210646496.4A CN115183380B (en) 2022-06-09 2022-06-09 Method, device, controller and storage medium for multi-terminal control of air conditioning system

Publications (2)

Publication Number Publication Date
CN115183380A CN115183380A (en) 2022-10-14
CN115183380B true CN115183380B (en) 2024-03-22

Family

ID=83514077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210646496.4A Active CN115183380B (en) 2022-06-09 2022-06-09 Method, device, controller and storage medium for multi-terminal control of air conditioning system

Country Status (1)

Country Link
CN (1) CN115183380B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009255808A (en) * 2008-04-18 2009-11-05 Fujitsu Ten Ltd Communication control device, vehicle control device, and simulator
JP2013017100A (en) * 2011-07-05 2013-01-24 Fuji Electric Co Ltd Data transmission system
CN105471653A (en) * 2015-12-09 2016-04-06 中国航空工业集团公司西安飞机设计研究所 Airborne dual channel seamless switching method and system
CN205158001U (en) * 2015-11-05 2016-04-13 上海科泰电源股份有限公司 Redundant control system of special high -pressure diesel generating set of data center
WO2019006708A1 (en) * 2017-07-05 2019-01-10 全球能源互联网研究院有限公司 Sdn multi-domain network backup method and system based on dual-port switch
CN209231730U (en) * 2018-12-28 2019-08-09 中国船舶工业系统工程研究院 A kind of box redundancy control system of plugging under water
CN110401359A (en) * 2019-09-02 2019-11-01 大连弘达电气股份有限公司 It is a kind of based on redundancy switching fairing to device control method for parallel
CN111005861A (en) * 2019-11-18 2020-04-14 浙江志展电气科技有限公司 Automatic water pump control system of network deployment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009255808A (en) * 2008-04-18 2009-11-05 Fujitsu Ten Ltd Communication control device, vehicle control device, and simulator
JP2013017100A (en) * 2011-07-05 2013-01-24 Fuji Electric Co Ltd Data transmission system
CN205158001U (en) * 2015-11-05 2016-04-13 上海科泰电源股份有限公司 Redundant control system of special high -pressure diesel generating set of data center
CN105471653A (en) * 2015-12-09 2016-04-06 中国航空工业集团公司西安飞机设计研究所 Airborne dual channel seamless switching method and system
WO2019006708A1 (en) * 2017-07-05 2019-01-10 全球能源互联网研究院有限公司 Sdn multi-domain network backup method and system based on dual-port switch
CN209231730U (en) * 2018-12-28 2019-08-09 中国船舶工业系统工程研究院 A kind of box redundancy control system of plugging under water
CN110401359A (en) * 2019-09-02 2019-11-01 大连弘达电气股份有限公司 It is a kind of based on redundancy switching fairing to device control method for parallel
CN111005861A (en) * 2019-11-18 2020-04-14 浙江志展电气科技有限公司 Automatic water pump control system of network deployment

Also Published As

Publication number Publication date
CN115183380A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN111542130A (en) Method and device for controlling household appliance and terminal equipment
CN113436631B (en) Voice information processing method and system and device for voice information processing
CN104251536B (en) One-to-many current loop communication method and communication device
CN115183380B (en) Method, device, controller and storage medium for multi-terminal control of air conditioning system
CN112000019B (en) Method, device and equipment for sharing equipment instruction control
CN105207866B (en) Communication means and airconditioning control network based on airconditioning control network-based control terminal
CN113819587B (en) Air conditioner control method and device and air conditioner
EP3812856A1 (en) Distributed multi-node control system and method
CN113311745B (en) Method, system, device and equipment for product monitoring
CN113606744B (en) Control method, control equipment and storage medium
CN111190367B (en) Control method and device for slot position of cabinet machine
CN114285692A (en) Communication control system, identity determination method, allocation method and device
CN104777786A (en) Hot-plugging identification method and system
CN115052312A (en) Wireless communication method, device, equipment and storage medium of heat pump equipment
CN110319537B (en) Method for controlling bus communication of air conditioner, host and air conditioning system
CN117040963B (en) Method and system for quick communication of distributed IO master and slave
CN219642236U (en) Master-slave machine system and energy storage equipment
CN117553388A (en) Method and device for controlling power failure recovery of air conditioning system and air conditioning system
CN117128607A (en) Control method, device, system, terminal equipment and medium for air conditioner
CN116954090A (en) Method, device, system and storage medium for centralized control of intelligent household appliances
CN113380250B (en) Information processing method, device and system
CN110661869A (en) Node online method, system, device, equipment and computer storage medium
CN115001892A (en) Information processing method, information processing device, electronic equipment and storage medium
CN113572675B (en) Communication system for charging and replacing battery cabinet and charging and replacing battery cabinet
CN116880271A (en) Method and device for determining control equipment, electronic equipment and storage medium

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