CN110319537B - Method for controlling bus communication of air conditioner, host and air conditioning system - Google Patents

Method for controlling bus communication of air conditioner, host and air conditioning system Download PDF

Info

Publication number
CN110319537B
CN110319537B CN201910629483.4A CN201910629483A CN110319537B CN 110319537 B CN110319537 B CN 110319537B CN 201910629483 A CN201910629483 A CN 201910629483A CN 110319537 B CN110319537 B CN 110319537B
Authority
CN
China
Prior art keywords
slave
communication
machine
host
current
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
CN201910629483.4A
Other languages
Chinese (zh)
Other versions
CN110319537A (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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology 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 Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN201910629483.4A priority Critical patent/CN110319537B/en
Publication of CN110319537A publication Critical patent/CN110319537A/en
Application granted granted Critical
Publication of CN110319537B publication Critical patent/CN110319537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/54Control or safety arrangements characterised by user interfaces or communication using one central controller connected to several sub-controllers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • 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

Abstract

The invention provides a method for controlling bus communication of an air conditioner, a host and an air conditioner system, wherein the method comprises the following steps: the communication sequence with at least one slave computer is pre-stored in the host computer; a1: the host machine carries out bus communication with the current slave machine in the communication sequence, whether the current slave machine is a third-party device is judged, if yes, A2 is executed, otherwise, A4 is executed after the communication with the current slave machine is finished; a2: the master machine judges whether a control command which is sent by the current slave machine and aims at any target slave machine is received within the communication time with the current slave machine, if so, A3 is executed, otherwise, A4 is executed; a3: the method comprises the steps that after communication between a host and a current slave is finished, the host establishes bus communication with a target slave, controls the target slave according to a control command, and executes A4 after communication with the target slave is finished; a4: and the master determines the next slave needing to communicate with the master according to the communication sequence, and the next slave is used as the current slave and returns to A1. The invention can save communication cost.

Description

Method for controlling bus communication of air conditioner, host and air conditioning system
Technical Field
The invention relates to the technical field of air conditioners, in particular to a method for controlling bus communication of an air conditioner, a host and an air conditioning system.
Background
The multi-split central air conditioner has the characteristics of less investment (the number of outdoor units is small and can exceed the proportion), compact and attractive structure, small occupied space (the number of outdoor units is small), flexible and convenient control (centralized control and decentralized control can be realized), comfortableness (rapid cooling and heating) and the like, is applied more and more in various commercial and household occasions, and gradually becomes the first choice for users to purchase air conditioners.
In the prior art, any one of an indoor unit and an outdoor unit is selected as a host in an air conditioner, the host is used for communicating with other indoor units and other outdoor units, and an independent communication port needs to be arranged on the host, and the host is used for independently communicating with third-party equipment.
As can be seen from the above description, in the prior art, an independent communication port needs to be provided for the third-party device, and the communication cost is high.
Disclosure of Invention
The embodiment of the invention provides a method for controlling bus communication of an air conditioner, a host and an air conditioning system, and can save communication cost.
In a first aspect, an embodiment of the present invention provides a method for controlling bus communication of an air conditioner, including:
the master pre-saves a communication sequence with at least one slave, wherein the at least one slave comprises: at least one indoor unit, at least one outdoor unit and at least one third-party device;
a1: the host computer carries out bus communication with a current slave computer which needs to be communicated with the host computer currently in the communication sequence, the host computer judges whether the current slave computer is the third-party equipment, if so, A2 is executed, otherwise, A4 is executed after the communication with the current slave computer is finished;
a2: the master machine judges whether a control command which is sent by the current slave machine and aims at any target slave machine of the at least one indoor machine and the at least one outdoor machine is received within the communication time with the current slave machine, if so, A3 is executed, otherwise, A4 is executed;
a3: the host establishes bus communication with the target slave after the communication with the current slave is finished, controls the target slave according to the control command, and executes A4 after the communication with the target slave is finished;
a4: and the master machine determines the next slave machine needing to be communicated with the master machine according to the communication sequence, and returns to A1 by taking the determined next slave machine needing to be communicated with the master machine as the current slave machine.
Alternatively,
the method further comprises the following steps:
the host pre-stores a communication period communicated with each slave;
further comprising:
the master starts timing when the master starts to communicate with the current slave, and determines that the communication with the current slave is finished after the communication period of the current slave passes;
further comprising:
and the master starts timing when the master starts to communicate with the target slave, and determines that the communication with the target slave is finished after the communication period of the target slave is passed.
Alternatively,
the method for determining the next slave machine needing to communicate with the master machine by the master machine in the A4 according to the communication sequence comprises the following steps:
and the host judges whether the current slave is the last slave in the communication sequence, if so, the first slave in the communication sequence is taken as the next slave needing to be communicated with the host, otherwise, the next slave of the current slave in the communication sequence is taken as the next slave needing to be communicated with the host.
Alternatively,
the communication sequence satisfies: and setting one third-party device at each interval of three slave machines in the at least one indoor machine and the at least one outdoor machine.
In a second aspect, an embodiment of the present invention provides a host, including:
a holding unit for holding a communication sequence with at least one slave, wherein the at least one slave includes: at least one indoor unit, at least one outdoor unit and at least one third-party device;
a control unit for performing:
a1: performing bus communication with a current slave which needs to communicate with a host currently in the communication sequence, and judging whether the current slave is the third-party equipment, if so, executing A2, otherwise, executing A4 after the communication with the current slave is finished;
a2: judging whether a control command which is sent by the current slave machine and aims at any target slave machine of the at least one indoor machine and the at least one outdoor machine is received within the communication time with the current slave machine, if so, executing A3, otherwise, executing A4;
a3: after the communication with the current slave machine is finished, bus communication is established with the target slave machine, the target slave machine is controlled according to the control command, and A4 is executed after the communication with the target slave machine is finished;
a4: and determining the next slave machine needing to be communicated with the master machine according to the communication sequence, and returning to A1 by taking the determined next slave machine needing to be communicated with the master machine as the current slave machine.
Alternatively,
the storage unit is further used for storing a communication cycle of communication with each slave;
the control unit is further used for starting timing when the communication with the current slave computer is started, and determining that the communication with the current slave computer is ended after the communication period of the current slave computer is passed;
the control unit is further used for starting timing when the communication with the target slave machine is started, and determining that the communication with the target slave machine is ended after the communication period of the target slave machine is passed.
Alternatively,
the control unit, when the master in the a4 determines the next slave needing to communicate with the master according to the communication sequence, is specifically configured to:
and judging whether the current slave is the last slave in the communication sequence, if so, taking the first slave in the communication sequence as the next slave needing to be communicated with the host, and otherwise, taking the next slave of the current slave in the communication sequence as the next slave needing to be communicated with the host.
Alternatively,
the communication sequence satisfies: and setting one third-party device at each interval of three slave machines in the at least one indoor machine and the at least one outdoor machine.
In a third aspect, an embodiment of the present invention provides an air conditioning system, including:
at least one slave and the master of any of the second aspects;
the at least one slave machine includes: at least one indoor unit, at least one outdoor unit and at least one third-party device;
the master and the at least one slave are connected by a bus.
Alternatively,
the third party device comprising: PC end, mobile terminal.
Alternatively,
and the third-party equipment is used for acquiring communication data of the communication between the host and any slave machine from the bus.
In the embodiment of the invention, the host and each slave machine carry out bus communication, wherein the third-party equipment is also a slave machine, namely, the host can also carry out communication with the third-party equipment through the bus without an independent communication port for the third-party equipment, and the host and other slave machines share the bus, so that the communication cost can be saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for controlling bus communication of an air conditioner according to an embodiment of the present invention;
FIG. 2 is a control diagram for controlling bus communication of an air conditioner according to an embodiment of the present invention;
FIG. 3 is another control diagram for controlling bus communication of an air conditioner according to an embodiment of the present invention;
FIG. 4 is a diagram of a host according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an air conditioning system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for controlling bus communication of an air conditioner, which may include the steps of:
a0: the master pre-saves a communication sequence with at least one slave, wherein the at least one slave comprises: at least one indoor unit, at least one outdoor unit and at least one third-party device;
a1: the host computer carries out bus communication with a current slave computer which needs to be communicated with the host computer currently in the communication sequence, the host computer judges whether the current slave computer is the third-party equipment, if so, A2 is executed, otherwise, A4 is executed after the communication with the current slave computer is finished;
a2: the master machine judges whether a control command which is sent by the current slave machine and aims at any target slave machine of the at least one indoor machine and the at least one outdoor machine is received within the communication time with the current slave machine, if so, A3 is executed, otherwise, A4 is executed;
a3: the host establishes bus communication with the target slave after the communication with the current slave is finished, controls the target slave according to the control command, and executes A4 after the communication with the target slave is finished;
a4: and the master machine determines the next slave machine needing to be communicated with the master machine according to the communication sequence, and returns to A1 by taking the determined next slave machine needing to be communicated with the master machine as the current slave machine.
In the embodiment of the invention, the host and each slave machine carry out bus communication, wherein the third-party equipment is also a slave machine, namely, the host can also carry out communication with the third-party equipment through the bus without an independent communication port for the third-party equipment, and the host and other slave machines share the bus, so that the communication cost can be saved.
In the embodiment of the invention, when the third-party equipment needs to control a certain indoor unit or a certain outdoor unit, the host jumps out of the communication sequence and directly communicates with the certain indoor unit or the certain outdoor unit which needs to be controlled by the third-party equipment, and after the communication is finished, the host returns to the communication sequence and then communicates with the next slave of the third-party equipment.
In an embodiment of the invention, the method further comprises:
the host pre-stores a communication period communicated with each slave;
further comprising:
the master starts timing when the master starts to communicate with the current slave, and determines that the communication with the current slave is finished after the communication period of the current slave passes;
further comprising:
and the master starts timing when the master starts to communicate with the target slave, and determines that the communication with the target slave is finished after the communication period of the target slave is passed.
In the embodiment of the invention, a corresponding communication cycle is set for each slave, the time length of each communication between the master and the slave is the communication cycle of the slave, and the communication is ended after the communication cycle of the slave is reached.
Specifically, the communication cycle of the outdoor unit and the communication cycle of the indoor unit may be set to 200ms, and the communication cycle of the third-party device may be set to 220ms, because more data needs to be transmitted between the host and the third-party device.
In an embodiment of the present invention, the determining, by the master in a4, a next slave that needs to communicate with the master according to the communication sequence includes:
and the host judges whether the current slave is the last slave in the communication sequence, if so, the first slave in the communication sequence is taken as the next slave needing to be communicated with the host, otherwise, the next slave of the current slave in the communication sequence is taken as the next slave needing to be communicated with the host.
In an embodiment of the present invention, the communication sequence satisfies: and setting one third-party device at each interval of three slave machines in the at least one indoor machine and the at least one outdoor machine.
The third-party device can be a remote monitoring device such as a PC terminal and a mobile terminal.
The master machine is any one of the indoor machine and the outdoor machine of the air conditioner, and the rest of the indoor machines and the outdoor machines are slave machines.
The following two embodiments respectively describe a method for controlling bus communication of an air conditioner when a third-party device does not need to be responded, and a method for controlling bus communication of an air conditioner when a third-party device is responded in real time.
Suppose there is a set of multi-split air conditioning system, including: two outdoor units (hereinafter abbreviated as ODU1, ODU2, and ODU1 as host), four indoor units (hereinafter abbreviated as IDU1, IDU2, IDU3, and IDU4), and one third-party device (hereinafter abbreviated as PCM). All indoor units, outdoor units other than the master unit and third-party equipment are called slave units, different communication addresses are arranged on the master unit and the slave units, the master unit and the slave units are controlled by the master unit to perform communication with the slave units in a circulating and rotating mode according to the communication sequence and the communication period and the communication sequence of the master unit control bus, and the slave units transmit information such as parameters, states or control back to the master unit when the slave units perform communication with the master unit.
The communication cycle of the host machine control and the indoor machine and the outdoor slave machine is fixed to be 200ms, the communication cycle of the host machine control and the PCM is fixed to be 220ms, and the host machine control and the PCM are communicated once after the host machine control and the 3 indoor machines or the outdoor machines are communicated once; the PCM can receive and acquire information of the master and other slaves on the bus in real time, but the PCM must transmit data back to the master when the PCM takes turns to communicate with the master.
The communication sequence is as follows: IDU1 → IDU2 → IDU3 → PCM → IDU4 → 0DU2 → IDU1 → PCM → IDU2 → IDU3 → · · · · ·
A first embodiment illustrates a method of controlling bus communication of an air conditioner without responding to a third party device, which may include the steps of:
1. the host sends data to the IDU1, if the IDU1 receives and verifies the data correctly, the data such as parameters and states are transmitted back to the host, otherwise, the data are not transmitted back;
2. the host counts time from the beginning of sending data to the IDU1, after 200ms, the host sends data to the IDU2 no matter whether the data returned by the correct IDU1 is received or received, if the IDU2 receives and verifies the data correctly, the data such as parameters and states are returned to the host, otherwise, the data is not returned;
3. the host counts time from the beginning of sending data to the IDU2, after 200ms, the host sends data to the IDU3 no matter whether the data returned by the correct IDU2 is received or received, if the IDU3 receives and verifies the data correctly, the data such as parameters and states are returned to the host, otherwise, the data is not returned;
4. the host counts time from the beginning of sending data to the IDU3, after 200ms, the host sends data to the PCM whether receiving or receiving the data returned by the correct IDU3, if the PCM receives and verifies the data correctly, the PCM returns the data of parameters, state and the like to the host, otherwise, the data is not returned;
5. the host counts time from the beginning of sending data to the PCM, and after 220ms, whether the data returned by the correct PCM is received or not is judged; if the data returned by the correct PCM is received and the PCM does not send a control command, the host sends the data to the IDU4, if the data is received and verified correctly by the IDU4, the data such as the parameters and the state of the data are returned to the host, otherwise, the data are not returned;
6. the host counts time from the beginning of sending data to the IDU4, after 200ms, regardless of whether the data returned by the correct IDU4 is received or received, the host sends the data to the ODU2, if the ODU2 receives and verifies the data correctly, the data such as parameters and states of the ODU2 are returned to the host, otherwise, the data is not returned;
7. the host counts time from the beginning of sending data to the ODU2, after 200ms, regardless of whether data returned by the correct ODU2 is received or received, the host sends the data to the IDU1, if the IDU1 receives and verifies the data correctly, the host returns data such as parameters and states of the IDU1 to the host, otherwise, the host does not return the data;
8. the host counts time from the beginning of sending data to the IDU1, after 200ms, the host sends data to the PCM whether receiving or receiving the data returned by the correct IDU1, if the PCM receives and verifies the data correctly, the PCM returns the data of parameters, state and the like to the host, otherwise, the data is not returned;
9. the host counts time from the beginning of sending data to the PCM, and after 220ms, whether the data returned by the correct PCM is received or not is judged; if the data returned by the correct PCM is received and the PCM does not send a control command, the host sends the data to the IDU2, if the data is received and verified correctly by the IDU2, the data such as the parameters and the state of the data are returned to the host, otherwise, the data are not returned;
10. the host counts time from the beginning of sending data to the IDU2, after 200ms, the host sends data to the IDU3 no matter whether the data returned by the correct IDU2 is received or received, if the IDU3 receives and verifies the data correctly, the data such as parameters and states are returned to the host, otherwise, the data is not returned;
the master machine and each slave machine are communicated in a circulating and rotating mode.
As shown in fig. 2, a control diagram for controlling bus communication of an air conditioner when a response to a third party device is not required.
A second embodiment illustrates a method for controlling bus communication of an air conditioner when a response to a third party device is required, which may include the steps of:
1. the host sends data to the IDU1, if the IDU1 receives and verifies the data correctly, the data such as parameters and states are transmitted back to the host, otherwise, the data are not transmitted back;
2. the host counts time from the beginning of sending data to the IDU1, after 200ms, the host sends data to the IDU2 no matter whether the data returned by the correct IDU1 is received or received, if the IDU2 receives and verifies the data correctly, the data such as parameters and states are returned to the host, otherwise, the data is not returned;
3. the host counts time from the beginning of sending data to the IDU2, after 200ms, the host sends data to the IDU3 no matter whether the data returned by the correct IDU2 is received or received, if the IDU3 receives and verifies the data correctly, the data such as parameters and states are returned to the host, otherwise, the data is not returned;
4. the host counts time from the beginning of sending data to the IDU3, after 200ms, the host sends data to the PCM whether receiving or receiving the data returned by the correct IDU3, if the PCM receives and verifies the data correctly, the PCM returns the data of parameters, state and the like to the host, otherwise, the data is not returned;
5. the host counts time from the beginning of sending data to the PCM, and after 220ms, whether the data returned by the correct PCM is received or not is judged; if the data returned by the correct PCM is received, and the PCM sends a control command to control the IDU2, the host temporarily quits the large-cycle communication, does not communicate with the IDU4, but sends the data to the IDU2 first, if the IDU2 receives and verifies the data correctly, returns the data of the parameters, the states and the like to the host, otherwise, does not return the data;
6. the host counts time from the beginning of sending data to the IDU2, after 200ms, whether the data returned by the correct IDU2 is received or not, the host recovers the previous large-cycle communication sequence and sends the data to the IDU4, if the IDU4 receives and verifies the data correctly, the data such as the parameters and the state of the IDU are returned to the host, otherwise, the data are not returned;
7. the host counts time from the beginning of sending data to the IDU4, after 200ms, regardless of whether the data returned by the correct IDU4 is received or received, the host sends the data to the ODU2, if the ODU2 receives and verifies the data correctly, the data such as parameters and states of the ODU2 are returned to the host, otherwise, the data is not returned;
8. the host counts time from the beginning of sending data to the ODU2, after 200ms, the host sends data to the PCM regardless of whether data returned by the correct ODU2 is received or received, if the data is received and verified correctly, the PCM returns data such as parameters and states to the host, otherwise, the data is not returned;
9. the host counts time from the beginning of sending data to the PCM, after 220ms, whether the data returned by the correct PCM is received or not is judged, if the data returned by the correct PCM is received and the PCM sends a control command to control the IDU3, the host temporarily exits the large-cycle communication and does not communicate with the IDU1, but firstly sends the data to the IDU3, if the IDU3 receives and checks the data, such as parameters, states and the like, of the IDU3 is returned to the host, otherwise, the data is not returned;
10. the host counts time from the beginning of sending data to the IDU3, after 200ms, whether the data returned by the correct IDU3 is received or not, the host recovers the previous large-cycle communication sequence and sends the data to the IDU1, if the IDU1 receives and verifies the data correctly, the data such as the parameters and the state of the IDU are returned to the host, otherwise, the data are not returned;
the master machine and each slave machine are communicated in turn in such a circulation mode, only when receiving PCM control of a certain slave machine, the master machine and each slave machine exit the communication large circulation temporarily in a stacking mode, firstly communicate with the machine controlled by the PCM, and return to the previous communication large circulation sequence again after the communication is finished.
As shown in fig. 3, a control diagram for controlling bus communication of an air conditioner when a response to a third party device is required.
As shown in fig. 4, an embodiment of the present invention provides a host, including:
a holding unit 401 configured to hold a communication sequence with at least one slave, wherein the at least one slave includes: at least one indoor unit, at least one outdoor unit and at least one third-party device;
a control unit 402 for performing:
a1: performing bus communication with a current slave which needs to communicate with a host currently in the communication sequence, and judging whether the current slave is the third-party equipment, if so, executing A2, otherwise, executing A4 after the communication with the current slave is finished;
a2: judging whether a control command which is sent by the current slave machine and aims at any target slave machine of the at least one indoor machine and the at least one outdoor machine is received within the communication time with the current slave machine, if so, executing A3, otherwise, executing A4;
a3: after the communication with the current slave machine is finished, bus communication is established with the target slave machine, the target slave machine is controlled according to the control command, and A4 is executed after the communication with the target slave machine is finished;
a4: and determining the next slave machine needing to be communicated with the master machine according to the communication sequence, and returning to A1 by taking the determined next slave machine needing to be communicated with the master machine as the current slave machine.
In an embodiment of the present invention, the saving unit is further configured to save a communication cycle of communication with each slave;
the control unit is further used for starting timing when the communication with the current slave computer is started, and determining that the communication with the current slave computer is ended after the communication period of the current slave computer is passed;
the control unit is further used for starting timing when the communication with the target slave machine is started, and determining that the communication with the target slave machine is ended after the communication period of the target slave machine is passed.
In an embodiment of the present invention, when the master in the a4 determines the next slave needing to communicate with the master according to the communication sequence, the control unit is specifically configured to:
and judging whether the current slave is the last slave in the communication sequence, if so, taking the first slave in the communication sequence as the next slave needing to be communicated with the host, and otherwise, taking the next slave of the current slave in the communication sequence as the next slave needing to be communicated with the host.
In an embodiment of the present invention, the communication sequence satisfies: and setting one third-party device at each interval of three slave machines in the at least one indoor machine and the at least one outdoor machine.
As shown in fig. 5, an air conditioning system according to an embodiment of the present invention includes:
at least one slave and a master 501 according to any of the embodiments of the present invention;
the at least one slave machine includes: at least one indoor unit 502, at least one outdoor unit 503, and at least one third party device 504;
the master and the at least one slave are connected by a bus.
In an embodiment of the present invention, the third-party device includes: PC end, mobile terminal.
In an embodiment of the present invention, the third-party device is configured to obtain, from the bus, communication data of the master device communicating with any one of the slave devices.
In the embodiment of the invention, the communication between the host and the third-party equipment such as remote control and the like is arranged in bus communication, so that the third-party equipment can acquire the parameters, the states and other information of each slave machine on the bus in time and control each slave machine in time, thereby reducing the requirement on the communication port resource of the needed singlechip, saving the cost, ensuring the real-time performance of information transmission and control, reducing the blank time of bus communication and improving the bus communication efficiency.
The embodiments of the invention have at least the following beneficial effects:
1. in the embodiment of the invention, the host and each slave machine carry out bus communication, wherein the third-party equipment is also a slave machine, namely, the host can also carry out communication with the third-party equipment through the bus without an independent communication port for the third-party equipment, and the host and other slave machines share the bus, so that the communication cost can be saved.
2. In the embodiment of the invention, the communication between the host and the third-party equipment such as remote control and the like is arranged in bus communication, so that the third-party equipment can acquire the parameters, the states and other information of each slave machine on the bus in time and control each slave machine in time, thereby reducing the requirement on the communication port resource of the needed singlechip, saving the cost, ensuring the real-time performance of information transmission and control, reducing the blank time of bus communication and improving the bus communication efficiency.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for controlling bus communication of an air conditioner,
the master pre-saves a communication sequence with at least one slave, wherein the at least one slave comprises: at least one indoor unit, at least one outdoor unit and at least one third-party device;
the method comprises the following steps:
a1: the host computer carries out bus communication with a current slave computer which needs to be communicated with the host computer currently in the communication sequence, the host computer judges whether the current slave computer is the third-party equipment, if so, A2 is executed, otherwise, A4 is executed after the communication with the current slave computer is finished;
a2: the master machine judges whether a control command which is sent by the current slave machine and aims at any target slave machine of the at least one indoor machine and the at least one outdoor machine is received within the communication time with the current slave machine, if so, A3 is executed, otherwise, A4 is executed;
a3: the host establishes bus communication with the target slave after the communication with the current slave is finished, controls the target slave according to the control command, and executes A4 after the communication with the target slave is finished;
a4: the master machine determines the next slave machine which needs to be communicated with the master machine according to the communication sequence, and the determined next slave machine which needs to be communicated with the master machine is taken as the current slave machine and returns to A1;
further comprising:
the communication period of the communication with each slave machine is pre-stored in the host machine, and the communication period of the slave machine serving as the third-party equipment is longer than the communication period of the slave machine serving as the indoor machine and the outdoor machine;
further comprising:
the master starts timing when the master starts to communicate with the current slave, and determines that the communication with the current slave is finished after the communication period of the current slave passes;
further comprising:
and the master starts timing when the master starts to communicate with the target slave, and determines that the communication with the target slave is finished after the communication period of the target slave is passed.
2. The method of claim 1,
the method for determining the next slave machine needing to communicate with the master machine by the master machine in the A4 according to the communication sequence comprises the following steps:
and the host judges whether the current slave is the last slave in the communication sequence, if so, the first slave in the communication sequence is taken as the next slave needing to be communicated with the host, otherwise, the next slave of the current slave in the communication sequence is taken as the next slave needing to be communicated with the host.
3. The method according to any one of claims 1 or 2,
the communication sequence satisfies: and setting one third-party device at each interval of three slave machines in the at least one indoor machine and the at least one outdoor machine.
4. A host, comprising:
a holding unit for holding a communication sequence with at least one slave, wherein the at least one slave includes: at least one indoor unit, at least one outdoor unit and at least one third-party device;
a control unit for performing:
a1: performing bus communication with a current slave which needs to communicate with a host currently in the communication sequence, and judging whether the current slave is the third-party equipment, if so, executing A2, otherwise, executing A4 after the communication with the current slave is finished;
a2: judging whether a control command which is sent by the current slave machine and aims at any target slave machine of the at least one indoor machine and the at least one outdoor machine is received within the communication time with the current slave machine, if so, executing A3, otherwise, executing A4;
a3: after the communication with the current slave machine is finished, bus communication is established with the target slave machine, the target slave machine is controlled according to the control command, and A4 is executed after the communication with the target slave machine is finished;
a4: determining the next slave computer needing to be communicated with the host computer according to the communication sequence, taking the determined next slave computer needing to be communicated with the host computer as the current slave computer, and returning to A1;
the storage unit is further used for storing a communication period of communication with each slave machine, and the communication period of the slave machine serving as the third-party equipment is longer than the communication periods of the slave machines serving as the indoor machine and the outdoor machine;
the control unit is further used for starting timing when the communication with the current slave computer is started, and determining that the communication with the current slave computer is ended after the communication period of the current slave computer is passed;
the control unit is further used for starting timing when the communication with the target slave machine is started, and determining that the communication with the target slave machine is ended after the communication period of the target slave machine is passed.
5. The host of claim 4,
the control unit, when the master in the a4 determines the next slave needing to communicate with the master according to the communication sequence, is specifically configured to:
and judging whether the current slave is the last slave in the communication sequence, if so, taking the first slave in the communication sequence as the next slave needing to be communicated with the host, and otherwise, taking the next slave of the current slave in the communication sequence as the next slave needing to be communicated with the host.
6. The host of any one of claims-4 or 5,
the communication sequence satisfies: and setting one third-party device at each interval of three slave machines in the at least one indoor machine and the at least one outdoor machine.
7. An air conditioning system, comprising:
at least one slave and the master of any of claims 4-6;
the at least one slave machine includes: at least one indoor unit, at least one outdoor unit and at least one third-party device;
the master and the at least one slave are connected by a bus.
8. The system of claim 7,
the third party device comprising: a PC terminal and a mobile terminal;
and/or the presence of a gas in the gas,
and the third-party equipment is used for acquiring communication data of the communication between the host and any slave machine from the bus.
CN201910629483.4A 2019-07-12 2019-07-12 Method for controlling bus communication of air conditioner, host and air conditioning system Active CN110319537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910629483.4A CN110319537B (en) 2019-07-12 2019-07-12 Method for controlling bus communication of air conditioner, host and air conditioning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910629483.4A CN110319537B (en) 2019-07-12 2019-07-12 Method for controlling bus communication of air conditioner, host and air conditioning system

Publications (2)

Publication Number Publication Date
CN110319537A CN110319537A (en) 2019-10-11
CN110319537B true CN110319537B (en) 2021-04-02

Family

ID=68122059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910629483.4A Active CN110319537B (en) 2019-07-12 2019-07-12 Method for controlling bus communication of air conditioner, host and air conditioning system

Country Status (1)

Country Link
CN (1) CN110319537B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115930377A (en) * 2022-12-12 2023-04-07 珠海格力电器股份有限公司 Air conditioner communication control method and device, air conditioning unit and remote control equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070056343A (en) * 2005-11-29 2007-06-04 삼성전자주식회사 Communication checking apparatus and method of system-type air conditioner
CN105066324B (en) * 2015-07-15 2017-12-22 四川长虹电器股份有限公司 Multi-connected air conditioner communication means
CN107104867A (en) * 2017-04-24 2017-08-29 珠海格力电器股份有限公司 The communication means and master-slave system of master-slave system
CN107678992B (en) * 2017-11-08 2019-10-11 四川虹美智能科技有限公司 A kind of communication device and a kind of communication system
CN108488914A (en) * 2018-04-13 2018-09-04 珠海格力电器股份有限公司 Air-conditioner set, the operating method of air-conditioner set and device

Also Published As

Publication number Publication date
CN110319537A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN101852472B (en) Automatic addressing method for air conditioning system and air conditioning controller
CN107632526B (en) Control device, method, storage medium and equipment
US10204072B2 (en) Method for automatically allocating addresses to similar bus users
CN104613590B (en) A kind of air conditioner wireless network-building method
CN108665897B (en) Electric appliance control method and device, storage medium and server
CN108521474B (en) Address competition method of multi-connected control system
CN110762604B (en) Indoor unit, pairing method and device of indoor unit and wired controller, storage medium and air conditioner
CN108386968B (en) Networking method of multi-split air conditioner realized through unique equipment code and physical address
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
CN113280478B (en) Networking method of air conditioning system, air conditioning equipment and storage medium
JP5431584B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
EP3764007B1 (en) Networking method and device for air conditioner, and terminal
CN111585697B (en) Communication method, device and multi-module communication system
CN110319537B (en) Method for controlling bus communication of air conditioner, host and air conditioning system
CN113114792A (en) Equipment ad hoc network method and device and air conditioning system
CN110290231A (en) Distribution method, distributor, central air conditioner system and storage medium
CN113891183A (en) Bidirectional interactive communication baud rate self-adaption method
CN107493394B (en) System and method for controlling Bluetooth equipment by mobile phone through Wi-Fi
CN113839841B (en) Household appliance and network distribution method thereof, control terminal and computer storage medium
CN110779084B (en) Indoor unit, communication control method thereof and storage medium
CN113048615B (en) Air conditioning system, communication control method and device thereof, storage medium and processor
CN201699758U (en) Terminal address storing device of central air conditioner
CN112134771B (en) Half-duplex communication method for refrigerator and refrigerator
CN114599038A (en) Pairing method and device for multi-split system and multi-split system
CN107104865B (en) RS485 bus-based background extension method and system

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