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

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

Info

Publication number
CN115183380A
CN115183380A CN202210646496.4A CN202210646496A CN115183380A CN 115183380 A CN115183380 A CN 115183380A CN 202210646496 A CN202210646496 A CN 202210646496A CN 115183380 A CN115183380 A CN 115183380A
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.)
Granted
Application number
CN202210646496.4A
Other languages
Chinese (zh)
Other versions
CN115183380B (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

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/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 air conditioner 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: under the condition that the current working state is a slave control state, if a current control instruction is received, 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 whole air conditioning system can be controlled by any controller at any time and any place by a user, and the multi-end control flexibility and intelligence of the air conditioning system are improved.

Description

Method and device for multi-terminal control of air conditioning system, controller and storage medium
Technical Field
The present application relates to the field of air conditioning technologies, and in particular, 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, the intelligent air conditioner is indispensable equipment in home life. Also, many buildings, for example: hotel, office building all have a large-scale air conditioning system, in this air conditioning system, include: 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 the Modbus communication protocol, use 485 communication bus as the carrier, connect a plurality of controllers and a plurality of air conditioners, generally, an air conditioning system has a controller in different areas correspondence, however, only allows a controller to be the master controller in whole empty modulation, can issue control, inquiry command, and other controllers can only be from the controller neither can issue control command, also can inquire the state of other controllers, can only monitor the communication data on 485 bus. Therefore, the entire air conditioning system cannot be controlled by any one controller 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 nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for multi-terminal control of an air conditioning system, a controller and a storage medium, so as to solve the technical problem that the multi-terminal control flexibility and intelligence of the air conditioning system are yet 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:
under the condition that the current working state is a slave control state, if a current control instruction is received, 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 when the duration that the current working state is in the master control preparation state reaches a set time;
and the first control module 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, the apparatus for multi-terminal control of an air conditioning system includes a processor and a memory storing program instructions, and the processor is configured to execute the above 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 the 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 controller at the local end is in the slave control state, if a current control instruction is received, the working state needs to be switched to the master control preparation state, and when the duration time in the master control preparation state reaches a set time, the current control instruction can be issued, namely, the corresponding air conditioner can be controlled to operate according to the current control instruction through a serial communication protocol bus.
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 in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 is a schematic structural diagram of an air conditioning system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure;
3-1 is a flow chart of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure;
3-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. 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;
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;
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 elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. 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 be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "include" 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 specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: 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, which are 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 instruction can be directly issued, and if the controller is in the slave control state, switching of the working states is required, the slave control state is switched to the master control preparation state, and finally the current control instruction can be issued after the controller is switched to the master control state, that is, the controller receiving the current control instruction in any one area in the air conditioning system can be switched to be the master controller through a serial communication protocol bus according to the current control instruction, so that the controller in any one area in the air conditioning system can become the master controller through switching of the working states, and then the current control instruction can be issued, thereby realizing multi-end control of the air conditioning system at any time and any place by a user, and controlling the whole air conditioning system through any one controller, and improving multi-end control flexibility and intelligence of the 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. 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: the four controllers are four air conditioners which are respectively 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 embodiment of the present disclosure is not limited thereto, and there may be three controllers, five air conditioners; alternatively, 20 controllers, 35 air conditioners, etc., are not specifically listed.
In the air conditioning system, each controller corresponds to three working states, which are respectively as follows: the controller is in a master control state, a slave control state and a master control preparation state, so that the controller can issue a state query instruction and also can issue a control instruction if the controller is in the master control state; if the controller is in the slave control state, the controller can not issue the state query instruction and the control instruction, but can monitor the data on the communication bus and can display the data on the interface of the controller. And if the controller is in the master control ready state, the controller is indicated to need to issue a control instruction.
In the air conditioning system, the flexible control of the air conditioner is realized through the switching of the working state of the controller. Fig. 2 is a schematic flowchart of a multi-terminal control method for an air conditioning system according to an embodiment of the present disclosure. As shown in fig. 2, the process of multi-terminal control 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 a master control preparation state.
The air conditioning system is based on a serial communication protocol and takes a communication bus as a carrier, so that only one controller in the whole bus is allowed to be in a master control state, and other controllers are in slave control states, so that any one controller can be a master controller or a slave controller.
When the controller in the current area, that is, the local controller, is in the master control state, the local controller may be the master controller, and may perform status query and control command issue. In some embodiments, the local controller is in a master control state, and then the local controller is the master controller, which may be the first controller, so that the local controller may poll the state of each controller and each air conditioner, and may further issue a control instruction, that is, in a case that the current operating state is the master control state, poll to send a state query instruction to each controller and each air conditioner, and receive a state response message fed back by each controller and each air conditioner. In addition, during query, only the corresponding working state needs to be queried, so that the communication bus resource is greatly saved, and the communication efficiency is improved.
Taking fig. 1 as an example, when the air conditioning system is started to operate, if the controller 1 is a local controller and is in a master control state, then the other controllers are all slave controllers, and thus, polling the state of each controller by the controller 1 may specifically include:
the controller 1 issues a status query command to the controller 2 → the controller 2 responds to the controller 1 with status response information including a corresponding operating status → the controller 1 issues a status query command to the controller 3 → the controller 3 responds to the controller 1 with status response information including a corresponding operating status → the controller 1 issues a status query command to the controller 4 → the controller 4 responds to the controller 1 with status response information including a corresponding operating status → the controller 1 issues a status query command to the air conditioner 1 → the air conditioner 1 responds to the controller 1 with status response information including a corresponding operating status → … … → the controller 1 issues a status query command to the air conditioner 4 → the air conditioner 4 responds to the controller 1 with status response information including a corresponding operating status → the controller 1 issues a status query command to the controller 2 → the controller 2 responds to the controller 1 with status response information including a corresponding operating status → … ….
Of course, in some embodiments, if the local controller is in the master control state, after receiving the current control instruction, the local controller may also issue the current control instruction, that is, if the current control instruction is received, the local controller controls the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus when the current operating state is in the master control state.
Still taking fig. 1 as an example, the controller 2 is a local controller and is in a master control state, and when the controller 2 receives a current control instruction while polling the state of each controller and each air conditioner, the current control instruction may be issued. The method specifically comprises the following steps: the controller 2 issues a status query command to the controller 4 → the controller 4 responds status response information including a corresponding operating status to the controller 2 → the controller 2 issues a status query command to the air conditioner 1 → the air conditioner 1 responds status response information including a corresponding operating status to the controller 2 → the controller 2 issues a status query command to the air conditioner 2 → the air conditioner 2 responds status response information including a corresponding operating status to the controller 2 → the controller 2 receives a current control command and the corresponding air conditioner 1 sends a current control command → the air conditioner 1 responds control feedback information to the controller 2 → the controller 2 issues a status query command to the air conditioner 3 → the air conditioner 3 responds status response information including a corresponding operating status to the controller 2 → … ….
However, when the local controller is in the slave control state, the local controller may monitor data on the bus and display the data on the corresponding interface, wherein, when receiving a state query instruction issued by the first controller in the master control state, the local controller responds to the first controller with state response information including a corresponding working state. When the current control instruction is received, the local 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.
Certainly, after the current working state is switched to the master control preparation state, under the condition that a state query instruction issued by the first controller in the master control state is received, the first controller is responded with first state response information in the master control preparation state.
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 setting time may be 50ms, 60ms, …, 100ms, 120ms, etc., and may be determined according to the size of the air conditioning system, the performance of the controller, etc. When the duration that the current working state of the end controller is in the master control preparation state reaches the set time, the current working state can be switched from the master control preparation state to the master control state, namely, the end controller becomes the master controller, so that the issuing of a control instruction can be carried out, namely, the corresponding air conditioner can be controlled to operate according to the current control instruction through a serial communication protocol bus.
In some embodiments, the first controller issues a status query instruction, and the local controller responds to the first controller with first status response information in a master control ready state, so that after receiving the first status 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 controller is in the master control ready state, the first controller is in the slave control state, and there is no controller in the master control state in the whole bus, so that the whole bus is in the silent state, and there is no inquiry and no instruction issue.
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 silent state reaches the first set time. Therefore, the setting time can be determined according to the size of the air conditioning system, the first setting time, the controller performance, and the like.
Because the local-end controller is a master controller in some scenes and is a slave controller in some scenes, when the local-end controller is the master controller, if first response information carrying the master control preparation state is received, the current working state needs to be switched from the master control state to the slave control state, namely under the condition that the current working state is the master control state, 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 controller, and is in a slave control state, and when the air conditioning system is in operation, the controller 3 receives a current control instruction, and the controller 3 switches the working state from the slave control state to a master control preparation state.
→ the controller 1 issues a status query command to the controller 2 → the controller 2 responds to the controller 1 with status response information including a corresponding operating status → the controller 1 issues a status query command to the controller 3 → the controller 3 responds to the controller 1 with first status response information carrying a master ready status → the controller 1 issues a status query command to the controller 4 → the controller 4 responds to the controller 1 with status response information including a corresponding operating status → … … → the controller 1 switches the operating status to a slave status (the controller is not in the master status in the entire serial communication protocol bus, the entire bus is in a silent state) → the duration time reaches the set time 80ms → the controller 3 switches the operating state to the master state → the controller 3 transmits a current control command to the corresponding air conditioner 2 → the air conditioner 2 responds control feedback information to the controller 3 → the controller 3 issues a state query command to the controller 1 → the controller 1 responds state response information including the corresponding operating state to the controller 3 → … … → the controller 3 issues a state query command to the air conditioner 1 → the air conditioner 1 responds state response information including the corresponding operating state to the controller 3 → 32 zxft 3532 → the controller 3 issues a state query command to the air conditioner 4 → the air conditioner 4 responds state response information including the corresponding operating state to the controller 3 → the controller 3 issues a state query command to the controller 1 → the controller 1 responds state response information including the corresponding operating state → 3425 zxft.
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 slave control states that have received control commands, and then the operating states of the controllers may be switched to master control standby states. The master controller polls the state of each controller, and if the first response message carrying the first response message in the master control preparation state is received, the working state of the controller corresponding to the first response message needs to be switched to the slave control state when the first response message carrying the first response message in the master control preparation state is received again, 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 a main controller, and the controller 3 and the controller 4 receive a corresponding control instruction, that is, the operating states of the controller 3 and the controller 4 have been switched to the main control ready state. Wherein, the controller 1 issues a status query command to the controller 2 → the controller 2 responds to the controller 1 with status response information including a corresponding working status → the controller 1 issues a status query command to the controller 3 → the controller 3 responds to the controller 1 with first status response information in a master ready status → the controller 1 issues a status query command to the controller 4 → the controller 4 responds to the controller 1 with first status response information in a master ready status → the controller 1 determines that other controllers in the master ready status exist, issues a switch command to the controller 4, the controller 4 switches to a slave status → the controller 4 responds to the controller 1 with status response information including a corresponding working status → … … → the controller 1 switches the working status to the slave status (the whole serial communication protocol bus is not in the master status), the whole bus is in a silent state) → the duration reaches the set time 100ms → the controller 3 switches the operating state to the master state → the controller 3 sends a current control instruction to the corresponding air conditioner 3 → the air conditioner 3 responds to control feedback information to the controller 3 → the controller 3 issues a state query instruction to the controller 1 → the controller 1 responds to the controller 3 with state response information including the corresponding operating state → … … → the controller 3 responds to the air conditioner 4 with a state query instruction → the air conditioner 4 responds to the controller 3 with state response information including the corresponding operating state → the controller 3 issues a state query instruction to the controller 1 → the controller 1 responds to the controller 1 with state response information including the corresponding operating state → … ….
It can be seen that, in the embodiment of the present 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, which are a master control state, a slave control state, and a master control ready state, so that if the controller at this end is in the slave control state, switching of the working states needs to be performed, the slave control state is switched to the master control ready state, and finally, after switching to the master control state, a current control instruction can be issued, that is, the corresponding air conditioner can be controlled to operate according to the current control instruction through a serial communication protocol bus.
The following operation flows are integrated into a specific embodiment to illustrate the multi-terminal control process for the air conditioning system provided by the embodiment of the invention.
In an embodiment of the present disclosure, as shown in fig. 1, an air conditioning system includes: the four controllers are four air conditioners which are respectively 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,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. With reference to fig. 3-1,3-2, the multi-terminal control process of the air conditioning system includes:
step 301: is the current operating state judged to be the slave control state? If so, go to step 302, otherwise, go to step 309.
Step 302: determine whether a current control command is received? If so, go to step 303, otherwise, go to step 308.
Step 303: and switching the current working state into a master control preparation state, and starting duration timing.
Step 304: is a status query instruction issued by a first controller in a master control status received? If yes, go to step 305, otherwise, go back to step 304.
And monitoring the state on the 485 communication bus, executing the step 305 after monitoring a state query instruction transmitted by the first controller and polled to the local controller, and otherwise, continuing monitoring.
Step 305: and responding to the first controller and carrying the first state response information in the master control ready state.
In this way, the first controller can switch the corresponding control state to the slave control state after receiving the first state response message.
Step 306: determine if the duration reaches 100ms? If yes, go to step 307, otherwise, go back to step 306.
When the 485 bus is in the master control ready state, the working states of the controller on the 485 communication bus and the air conditioner can be monitored, but at this time, the first controller is also in the slave control state, that is, no controller on the 485 bus is in the master control state, that is, the 485 bus is in the silent state, so that step 307 can be executed after 100ms of silence.
Step 307: and 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 a 485 bus. Returning to step 301.
Step 308: and monitoring data on the 485 bus, displaying the data on an interface, and carrying out corresponding response under the condition of monitoring a state query instruction sent by the first controller in the master control state. Returning to step 301.
Step 309: is the current operating state determined to be the master control state? If yes, go to step 310, otherwise, go to step 301.
Step 310: determine whether a current control command is received? If so, go to step 311, otherwise go to step 312.
Step 311: and controlling the corresponding air conditioner to operate 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 polling to send a state inquiry command to each controller and each air conditioner and receive state response information fed back by each controller and each air conditioner.
Step 313: determine whether a first status response message carrying a first status response message in a master ready status is received? If yes, go to step 314, otherwise, go back to step 312.
Step 314: is the first status reply message received for the first time in this query? If so, go to step 315, otherwise, go to step 316.
Step 315: and after the query is completed, switching the current working state 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 as to switch the state of the corresponding controller into a slave control state. And proceeds to step 315.
It can be seen that, in this embodiment, in the operation process of the air conditioning system, the controller may be in a master control state or a slave control state, where when the controller is in the slave control state, if a current control instruction is received, the working state needs to be switched to the master control preparation state, and when the duration of the master control preparation state reaches a set time, the current control instruction may be issued, that is, the controller of the local end in any one area that receives the current control instruction may be controlled to operate according to the current control instruction through the serial communication protocol bus, and be in the master control state, and if a first state response message carrying the first state response message in the master control preparation state is received, the working state needs to be switched to the slave control state. In addition, when the controller in the master control state is used for inquiring, only the working states of other controllers are required to be inquired, so that the communication bus resource is greatly saved, and the communication efficiency is improved.
According to the above 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: a first switching module 410, a second switching module 420, and a first control module 430.
The first switching module 410 is configured to, when the current working state is the slave control state, switch the current working state to the master control preparation state if the current control instruction is received.
And a second switching module 420 configured to switch the current operating state to the master state when the duration that the current operating state is in the master ready state reaches the set time.
And a first control module 430 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: the response module is configured to respond to the first controller with 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.
In some embodiments, further comprising: and the second control module is configured to control the corresponding air conditioner to operate according to the current control instruction through the serial communication protocol bus if the current control instruction 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 to the slave main control state as the slave control state if the first response information carrying the first response information in the main control preparation state is received under the condition that the current working state is the main control state.
In some embodiments, further comprising: and the switching control module is configured to issue a switching instruction to other controllers if 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 each controller and each air conditioner to send a state query instruction 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.
The 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, the air conditioning system includes: 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: a first switching module 410, a second switching module 420, a first control module 430, an acknowledgement module 440, a second control module 450, a third switching module 460, a switching control module 470, and a polling module 480.
When the local controller for the multi-terminal control device of the air conditioning system is in the slave control state, if the current control instruction is received, the first switching module 410 may switch the current working state to the master control preparation state, and start the duration timing. And under the condition of receiving a state query instruction issued by the first controller in the master control state, the response module 440 may respond to the first controller with the first state response information in the master control preparation state, so that the first controller may switch the working state to the slave control state, and thus no controller on the entire serial communication protocol bus is in the master control state, that is, the serial communication protocol bus is in the silent state. In this way, 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 instruction through the serial communication protocol bus.
Of course, when the local controller for the multi-port control device of the air conditioning system is in the master control state and receives the current control command, the second control module 450 may directly control the corresponding air conditioner to operate according to the current control command through the serial communication protocol bus. If the first response message carrying the first response message in the master ready state is received, the third switching module 460 may switch the current working state from the master control state to the slave control state. In addition, if it is determined that there are other controllers in the master control ready state, the switching control module 470 further needs to issue a switching instruction to the other controllers, so that the other controllers are switched to the slave control state, and then the third switching control module 460 switches the current working state from the master control state to the slave control state. Of course, the local controllers in the master control state may also perform polling, that is, the polling module 480 may poll each controller and each air conditioner to send a status query command, and receive status response information fed back by each controller and each air conditioner.
It can be seen that, in the embodiment, in the air conditioning system based on the serial communication protocol bus, the local controller applied to the device for controlling the multiple terminals of the air conditioning system may be in the master control state or the slave control state, wherein in the slave control state, if a current control instruction is received, the operating state needs to be switched to the master control standby state, and when the duration of the master control standby state reaches a set time, the current control instruction may be issued, that is, the local controller receiving the current control instruction in any area in the air conditioning system may become the master controller through switching of the operating state according to the current control instruction, and in the master control state, if a first state response message carrying the first state response message in the master control standby state is received, the operating state needs to be switched to the slave control state. In addition, when the controller in the master control state is used for inquiring, only the working states of other controllers are required to be inquired, so that the communication bus resource is greatly saved, and the communication efficiency is improved.
The embodiment of the present disclosure provides a device for multi-terminal control of an air conditioning system, which has a structure as shown in fig. 6, and includes:
a processor (processor) 1000 and a memory (memory) 1001, and may further 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 through the bus 1003. Communication interface 1002 may be used for the transfer of information. The processor 1000 may call logic instructions in the memory 1001 to perform the method for multi-terminal control of an air conditioning system of the above embodiment.
In addition, the logic instructions in the memory 1001 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 1001 is used as a computer readable storage medium for storing software programs, computer executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 1000 executes functional applications and data processing by executing program instructions/modules stored in the memory 1001, that is, implements the method for multi-terminal control of the 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, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 1001 may include a high-speed random access memory and may also include a nonvolatile memory.
The embodiment of the present disclosure provides a multi-terminal control device for an air conditioning system, including: a processor and a memory storing program instructions, the processor configured to, upon execution of the program instructions, perform a multi-terminal control method for an air conditioning system.
The embodiment of the disclosure provides a controller, which comprises the multi-terminal control device for the air conditioning system.
The embodiment of the disclosure provides a storage medium, which stores program instructions, and when the program instructions are executed, the method for multi-terminal control of the air conditioning system is executed.
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 method for multi-terminal control of an air conditioning system.
The storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify 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 includes the full ambit of the claims, as well as all available equivalents of the claims. As used in this application, although the terms "first," "second," etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, unless the meaning of the description changes, so long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first and second elements are both elements, but may not be the same elements. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "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, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising a …" does not exclude the presence of another identical element in a process, method, or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would 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 may depend upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be only one type of logical functional division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart 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 disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for multi-terminal control of an air conditioning system, the air conditioning system comprising: the method comprises the following steps that two or more controllers and two or more air conditioners are connected in a communication mode based on a serial communication protocol bus, and the method comprises the following steps:
under the condition that the current working state is a slave control state, if a current control instruction is received, 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.
2. The method according to claim 1, wherein after the switching the current operating state to the master ready state, further comprising:
and under the condition of receiving a state query instruction issued by a first controller in a master control state, responding to the first controller and carrying first state response information in a master control preparation state.
3. The method of 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.
4. The method of claim 1, further comprising:
and under the condition that the current working state is a master control state, if the first response information carrying the information in the master control preparation state is received, switching the current working state from the master control state to a slave control state.
5. The method according to claim 4, wherein before switching the current operating state from the master control state to the slave control state, further comprising:
and if determining that other controllers in the master control preparation state exist, issuing a switching instruction to the other controllers so that the other controllers are switched to the slave control state.
6. The method of any one of claims 1-5, further comprising:
and polling to send a state query 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 a main control state.
7. 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, controller, the air conditioner carries out communication connection based on serial communication protocol bus, 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 second switching module is configured to switch the current working state to the master control state when the duration of the current working state in the master control preparation state reaches a set time;
and the first control module is configured to control the operation of the corresponding air conditioner according to the current control instruction through the serial communication protocol bus.
8. 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 to perform the method for multi-terminal control of an air conditioning system according to any one of claims 1 to 6 when executing the program instructions.
9. A controller, comprising: the device for the multi-terminal control of the air conditioning system as claimed in claim 7 or 8.
10. A storage medium storing program instructions, characterized in that the program instructions, when executed, perform the method for air conditioning system multi-terminal control according to any one of claims 1 to 6.
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 true CN115183380A (en) 2022-10-14
CN115183380B 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
CN115183380B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US5978593A (en) Programmable logic controller computer system with micro field processor and programmable bus interface unit
EP1060604B2 (en) Input/output (i/o) scanner for a control system with peer determination
CN111542130A (en) Method and device for controlling household appliance and terminal equipment
US20110238188A1 (en) Engineering tool
CN113436631B (en) Voice information processing method and system and device for voice information processing
CN112925219A (en) Method and device for executing smart home scene
CN113218058B (en) Method and device for controlling air conditioner and server
CN109884971A (en) Long-range control method, apparatus and system
CN115183380A (en) Method and device for multi-terminal control of air conditioning system, controller and storage medium
CN113341738A (en) Method, device and equipment for controlling household appliance
CN105207866B (en) Communication method of control terminal based on air conditioner control network and air conditioner control network
CN109085786B (en) Double-channel field bus design method, control system and computer terminal
CN114484762B (en) Control method of multi-split air conditioning system, multi-split air conditioning system and electronic equipment
CN115826426A (en) Control method of intelligent home system and intelligent home system
CN210015336U (en) Redundant control system
CN110319537B (en) Method for controlling bus communication of air conditioner, host and air conditioning system
CN210518417U (en) Address allocation system
CN112530150A (en) Pairing method and pairing device for remote controller and remote controller
CN114740739A (en) Method, device, system and storage medium for intelligent household electrical appliance centralized control
CN113819587A (en) Method and device for controlling air conditioner and air conditioner
CN114500145B (en) Data communication system, method, terminal equipment and medium of driving and controlling integrated controller
CN114061048B (en) Method, device and equipment for air conditioner control and storage medium
CN110779084B (en) Indoor unit, communication control method thereof and storage medium
CN117128607A (en) Control method, device, system, terminal equipment and medium for air conditioner
CN217880038U (en) Control system of fan filter unit

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