Communication control device and method of air conditioner controller and air conditioner
By introducing a first bus device to detect the idle state of the communication bus and a second bus device to execute control instructions in the air conditioner controller, the problems of high occupancy rate and slow response speed in the prior art are solved, and more efficient and Stable communication control.
Patent Information
- Application Number
- CN202411606987.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-14
AI Technical Summary
In the communication control mode of existing air conditioning controllers, single-host polling leads to a high communication bus occupancy rate and slow response speed, and the system will be paralyzed when the host fails.
By introducing the first bus device and the second bus device into the air conditioning controller, the first bus device detects whether the communication bus is in an idle state and then transmits data, and verifies the data consistency after sending data to ensure the accuracy of data transmission and efficiency.
It reduces waiting time, avoids bus conflicts, ensures the rational use of bus resources, improves the operating efficiency and stability of the system, and enhances the maintainability and scalability of the system.
Smart Images

Figure CN119449510A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliances, and in particular to a communication control device and method of an air-conditioning controller and an air-conditioner. Background Art
[0002] With the rapid development of science and technology and the continuous improvement of people's living standards, the use of air conditioners has gradually become popular. As home appliances, air conditioners have become an indispensable part of people's daily lives.
[0003] At present, the communication control method of air-conditioning controller is mainly polled by a host to control and query the status of the slave, so as to actively send control instructions to the corresponding idle cluster to realize communication control. However, in the above method, the wire controller needs to constantly query the status of the connected indoor unit on the bus to synchronize the display content, which makes the utilization rate of the communication bus too high and the data redundancy is large, which may affect the overall performance and response speed of the system. The communication bus occupancy rate is high, the response speed is slow, and the communication distance is short. Especially when there are multiple control terminals, the control status synchronization logic is cumbersome and it is necessary to wait for a polling cycle before synchronization. In addition, the above method is generally a single-master system. Once the host fails, the communication of the entire system will be paralyzed. Summary of the invention
[0004] The present invention provides a communication control device and method of an air conditioner controller and an air conditioner, which are used to solve the defects of a single host polling mode communication bus with high occupancy rate and slow response speed in the prior art, and improve the operation efficiency and stability of the system.
[0005] The present invention provides a communication control device for an air-conditioning controller, comprising a first bus device and a second bus device connected based on a communication bus, wherein: the first bus device detects whether the communication bus is in an idle state, and based on the communication bus being in the idle state, sends first control data to the communication bus, and detects the communication bus to obtain second control data, and verifies whether the second control data is consistent with the first control data, and determines that the data is sent correctly based on the consistency of the verification; the second bus device obtains the corresponding first control data based on the communication bus, and executes the corresponding control instruction according to the first control data.
[0006] According to a communication control device of an air-conditioning controller provided by the present invention, the first bus device includes a first control module, a first communication module and a second communication module. The first bus device sends first control data to the communication bus, detects the communication bus, obtains second control data, and verifies whether the second control data is consistent with the first control data. The device includes: the first control module sends the first control data to the first communication module based on the device address of the second bus device obtained in advance; the first communication module sends the first control data to the communication bus; the second communication module detects the communication bus, obtains the second control data, and sends the second control data to the first control module; the first control module verifies whether the second control data is consistent with the first control data.
[0007] According to a communication control device of an air-conditioning controller provided by the present invention, the first control module verifies whether the second control data is consistent with the first control data, and also includes: the first control module determines the bus code conflict based on the verification that the second control data is inconsistent with the first control data, and controls the first communication module to re-detect whether the communication bus is in an idle state, so as to control the first communication module to re-send the first control data to the communication bus according to a preset delayed sending strategy based on the communication bus being in an idle state; wherein the preset delayed sending strategy is used to limit the delay of sending to the corresponding second bus device; the second bus device re-acquires the corresponding first control data from the communication bus based on the delay limited by the preset delay strategy, and executes the corresponding control instruction according to the first control data.
[0008] According to a communication control device of an air-conditioning controller provided by the present invention, a first control module controls the first communication module to detect whether the communication bus is in an idle state, including: the first control module sends a first idle state detection instruction to the first communication module; the first communication module detects the communication bus based on the first idle state detection instruction, and sends the detection result to the first control module; the first control module determines that the communication bus is in an idle state based on the fact that no communication information is detected in the detection result within a first target time.
[0009] According to a communication control device of an air-conditioning controller provided by the present invention, the second bus device includes a second control module and a third communication module. After the second bus device executes the corresponding control instruction according to the first control data, it also includes: the second control module sends a second idle state judgment instruction to the third communication module; the third communication module detects the communication bus based on the second idle state judgment instruction, and sends the detection result to the second control module; the second control module determines that the communication bus is in an idle state based on the monitoring result within the second target time that no communication information is detected, and controls the third communication module to send the instruction execution result to the communication bus according to a preset delayed sending strategy; the first communication module obtains the corresponding instruction execution result from the communication bus based on the delay specified by the preset delay strategy, and sends the obtained instruction execution result to the first control module.
[0010] According to a communication control device of an air-conditioning controller provided by the present invention, the preset delayed sending strategy includes a first strategy and a second strategy. The first strategy is used to limit the second bus device receiving data to one, and the delay is correspondingly set to 0. The second strategy is used to limit the second bus device receiving data to at least two, and determine the delay of the corresponding second bus device based on the device type and device address of the corresponding second bus device.
[0011] According to a communication control device of an air-conditioning controller provided by the present invention, the first bus device is an indoor unit, and the second bus device is a wire controller; or, the first bus device is a wire controller, and the second bus device is the indoor unit; the wire controller detects whether the communication bus is in an idle state within a fourth target time based on the fact that no control data is sent or received within a third target time, and initiates communication to the indoor unit based on the communication bus based on the communication bus.
[0012] According to a communication control device of an air-conditioning controller provided by the present invention, before the first bus device detects whether the communication bus is in an idle state, the device comprises: the first bus device, based on the communication bus, sends communication data to the second bus device; the second bus device, receives the communication data and returns communication response information to the first bus device; the first bus device, receives the communication response information, and determines that the communication with the second bus device is normal.
[0013] The present invention also provides a communication control method for an air-conditioning controller, comprising: detecting whether a communication bus is in an idle state; based on the communication bus being in an idle state, sending first control data to the communication bus for a second bus device, based on the communication bus, obtaining corresponding first control data, and executing corresponding control instructions according to the first control data; and detecting the communication bus to obtain second control data, and verifying whether the second control data is consistent with the first control data, and determining that the data is sent correctly based on the verification consistency.
[0014] The present invention also provides an air conditioner, comprising a communication control device of any one of the above air conditioner controllers.
[0015] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the communication control method for the air conditioning controller as described above are implemented.
[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the communication control method for the air conditioning controller as described in any one of the above are implemented.
[0017] The communication control device, method and air conditioner of the air-conditioning controller provided by the present invention send data only after the first bus device detects whether the communication bus is in an idle state, and timely transmits data when the bus is idle, thereby reducing waiting time, avoiding bus conflicts, and ensuring that bus resources are reasonably used. After sending the data, the communication bus is detected to obtain second control data to verify whether it is consistent with the first control data sent by itself, thereby effectively ensuring the accuracy of the data during the transmission process and avoiding the situation where inaccurate data transmission caused by bus code conflicts. The first bus device ensures the accurate transmission of data, and the second bus device responds to and executes control instructions in a timely manner, thereby making the entire communication process smooth and efficient, improving the system operation efficiency and stability, and improving the maintainability and expansibility of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 It is one of the structural schematic diagrams of the communication control device of the air conditioner controller provided by the present invention; Figure 2 This is the second structural schematic diagram of the communication control device of the air-conditioning controller provided by the present invention; Figure 3 This is the third structural schematic diagram of the communication control device of the air-conditioning controller provided by the present invention; Figure 4 It is a flow chart of the communication control method of the air-conditioning controller provided by the present invention; Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] Figure 1 Schematic diagram of the structure of the communication control device of the air conditioner controller provided by the present invention. Figure 1 As shown, the device includes a first bus device and a second bus device connected based on a communication bus, wherein: The first bus device detects whether the communication bus is in an idle state, and based on the communication bus being in the idle state, sends first control data to the communication bus, detects the communication bus, obtains second control data, and verifies whether the second control data is consistent with the first control data, and determines that the data is sent correctly based on the verification consistency; The second bus device obtains the corresponding first control data based on the communication bus, and executes the corresponding control instruction according to the first control data.
[0022] In an optional embodiment, before the first bus device detects whether the communication bus is in an idle state, the process includes: the first bus device sends communication data to the second bus device based on the communication bus; the second bus device receives the communication data and returns communication response information to the first bus device; and the first bus device receives the communication response information and determines that communication with the second bus device is normal.
[0023] It should be added that reference Figure 2 The first bus device includes a first control module, a first communication module and a second communication module, and the second bus device includes a second control module, a third communication module and a fourth communication module.
[0024] It should be noted that the first bus device and the second bus device are respectively configured with corresponding device types and device addresses, so that when communicating, the corresponding bus device can be locked based on the device type and device address, so that in the case of multiple connections, the target second bus device can accurately receive the control data sent by the first bus device, improve communication efficiency, and make the interaction between the first bus device and the second bus device faster and smoother. For example, the device type of the first bus device is A and the device address is 1, and the device type of the second bus device is B and the device address is 1.
[0025] Correspondingly, the first bus device sends communication data to the second bus device based on the communication bus, including: the first control module sends the communication data to the first communication module; the first communication module sends the communication data to the communication bus.
[0026] In addition, the second bus device receives communication data and returns communication response information to the first bus device, including: the third communication module detects the communication bus, obtains corresponding communication data, and sends the communication data to the second control module; the second control module generates communication response information based on the received communication data, and sends the communication response information to the third communication module; the third communication module sends the communication response information to the communication bus.
[0027] In addition, the first bus device receives the communication response information and determines that the communication with the second bus device is normal, including: the first communication module detects the communication bus, obtains the corresponding communication response information, and sends the communication response information to the first control module.
[0028] In this embodiment, the first control module controls the first communication module to detect whether the communication bus is in an idle state, including: the first control module sends a first idle state detection instruction to the first communication module; the first communication module detects the communication bus based on the first idle state detection instruction, and sends the detection result to the first control module; the first control module determines that the communication bus is in an idle state based on the fact that no communication information is detected in the detection result within the first target time.
[0029] It should be added that the first target time can be determined according to the actual bus occupancy. For example, if there is no communication on the communication bus for 50 ms continuously, the bus can be considered idle. Then the first target time can be set to 50 ms. No further limitation is made here. In addition, when the first control module sends the first idle state detection instruction to the first communication module based on the device address of the second bus device obtained earlier, the first control module determines the number of devices of the second bus device based on the device address of the second bus device obtained when it is powered on first, and sends the corresponding first control data according to the corresponding device address. The first control data may include the device address of the control data to be received, the device type, and the control information to be sent.
[0030] Specifically, the first bus device sends the first control data to the communication bus, detects the communication bus, obtains the second control data, and verifies whether the second control data is consistent with the first control data, including: the first control module, based on the device address of the second bus device obtained previously, sends the first control data to the first communication module; the first communication module sends the first control data to the communication bus; the second communication module detects the communication bus, obtains the second control data, and sends the second control data to the first control module; the first control module verifies whether the second control data is consistent with the first control data.
[0031] It should be noted that the first communication module and the second communication module can use a 485 chip, which is an interface chip that implements the RS-485 communication standard. Since the 485 chip is in the state of sending data, the reception is in an interrupted state, so it is necessary to detect the communication bus through the second communication module to determine whether the data sent to the communication bus by the first bus device is consistent with the data of the detected communication bus, so as to ensure the correctness of the data and avoid the situation where data transmission errors are caused by bus code conflicts.
[0032] Specifically, the first control module verifies whether the second control data is consistent with the first control data, and also includes: the first control module determines the bus code conflict based on the verification that the second control data is inconsistent with the first control data, and controls the first communication module to re-detect whether the communication bus is in an idle state, and based on the communication bus being in an idle state, controls the first communication module to re-send the first control data to the communication bus according to a preset delayed sending strategy; wherein the preset delayed sending strategy is used to limit the delay in sending to the corresponding second bus device; the second bus device, based on the delay limited by the preset delay strategy, re-acquires the corresponding first control data from the communication bus, and executes the corresponding control instruction according to the first control data.
[0033] It should be noted that the detection of whether the communication bus is in an idle state can refer to the above description of the first control module, controlling the first communication module, and detecting whether the communication bus is in an idle state, which will not be repeated here. In addition, the preset delayed sending strategy includes a first strategy and a second strategy, the first strategy is used to limit the second bus device receiving data to one time delay of 0, and the second strategy is used to limit the second bus device receiving data to at least two times, based on the device type and device address of the corresponding second bus device, the delay of the corresponding second bus device is determined, and the first bus device sends the corresponding data through the preset delayed sending strategy to reduce the probability of communication data errors.
[0034] Furthermore, latency = (device type + device address × target value).
[0035] Furthermore, the delay unit determined according to the device type and device address of the second bus device to receive the first control data can be controlled in milliseconds, and the target value can be set according to the actual delay sending requirements, such as 10, which is not further limited here.
[0036] In an optional embodiment, the second bus device includes a second control module and a third communication module. After the second bus device executes the corresponding control instruction according to the first control data, it also includes: the second control module sends a second idle state judgment instruction to the third communication module; the third communication module detects the communication bus based on the second idle state judgment instruction, and sends the detection result to the second control module; the second control module determines that the communication bus is in an idle state based on the monitoring result within the second target time that no communication information is detected, and controls the third communication module to send the instruction execution result to the communication bus according to a preset delayed sending strategy; the first communication module obtains the corresponding instruction execution result from the communication bus based on the delay specified by the preset delay strategy, and sends the obtained instruction execution result to the first control module.
[0037] It is worth noting that the second bus device also includes a fourth communication module. When the second bus device needs to send corresponding control data to the first bus device, the first bus device can send corresponding first control data to the second bus device, which will not be repeated here. In addition, the second target time can be set with reference to the first target time, which will not be repeated here.
[0038] In an optional embodiment, the first bus device is an indoor unit, and the second bus device is a wired controller; or, the first bus device is a wired controller, and the second bus device is an indoor unit.
[0039] In an optional embodiment, in order to avoid a long period of no control data being sent and to avoid misjudging communication abnormalities, the wire controller detects whether the communication bus is idle within a fourth target time based on the fact that no control data is sent or received within the third target time, and initiates communication with the indoor unit based on the communication bus based on the fact that the communication bus is idle within the fourth target time. It should be added that the fourth target time can be set according to the actual frequency of sending control data and the time threshold for misjudging communication abnormalities, such as 1 minute, which is not further limited here.
[0040] In an alternative embodiment, reference Figure 3The wire controller includes a master wire controller and at least one slave wire controller. When the number of indoor units is at least two, the indoor units are connected to the master wire controller through a communication bus, and the slave wire controller is connected to the master wire controller. Accordingly, the master wire controller and the slave wire controller establish communication. In the event of a communication failure with the master wire controller, the slave wire controller takes over the communication with the indoor unit or the control of the indoor unit, so as to avoid the situation where the whole system is paralyzed due to a failure of the master wire controller.
[0041] In summary, the embodiment of the present invention sends data only after the first bus device detects whether the communication bus is in an idle state, and transmits data in time when the bus is idle, thereby reducing waiting time, avoiding bus conflicts, and ensuring that bus resources are reasonably used. After sending the data, the communication bus is detected to obtain the second control data to verify whether it is consistent with the first control data sent by itself, thereby effectively ensuring the accuracy of the data during the transmission process and avoiding inaccurate data transmission caused by bus code conflicts. The first bus device ensures accurate data transmission, and the second bus device responds to and executes control instructions in a timely manner, thereby making the entire communication process smooth and efficient, improving system operation efficiency and stability, and improving the maintainability and extensibility of the system.
[0042] The communication control method of the air-conditioning controller provided by the present invention is described below. The communication control method of the air-conditioning controller described below and the communication control device of the air-conditioning controller described above can be referred to each other.
[0043] Figure 4 A flow chart of a communication control method of an air conditioning controller is shown, the method comprising: S41, detecting whether the communication bus is in an idle state; S42, based on the communication bus being in an idle state, sending first control data to the communication bus, so that the second bus device obtains the corresponding first control data based on the communication bus, and executes the corresponding control instruction according to the first control data; and S43, detecting the communication bus, obtaining the second control data, and verifying whether the second control data is consistent with the first control data, and determining that the data is sent correctly based on the verification consistency.
[0044] It should be noted that the executor of this specification is the first bus device, and the step number "S3N" in this specification does not represent the sequence of the communication control method of the air-conditioning controller. The communication control method of the air-conditioning controller of the present invention is described in detail below.
[0045] Step S41, detecting whether the communication bus is in an idle state.
[0046] In this embodiment, the first bus device includes a first control module, a first communication module and a second communication module. Accordingly, detecting whether the communication bus is in an idle state includes: using the first control module to send a first idle state detection instruction to the first communication module; using the first communication module to detect the communication bus based on the first idle state detection instruction, and sending the detection result to the first control module; using the first control module to determine that the communication bus is in an idle state based on the detection result within the first target time that no communication information is detected.
[0047] In an optional embodiment, before detecting whether the communication bus is in an idle state, it includes: sending communication data to the second bus device based on the communication bus; receiving communication response information returned by the second bus device based on the received communication data, and determining that communication with the second bus device is normal.
[0048] Furthermore, based on the communication bus, sending communication data to the second bus device includes: using the first control module to send the communication data to the first communication module; using the first communication module to send the communication data to the communication bus.
[0049] In addition, receiving the communication response information returned by the second bus device based on the received communication data, and determining that the communication with the second bus device is normal, includes: using the first communication module to detect the communication bus, obtaining the corresponding communication response information, and sending the communication response information to the first control module.
[0050] It should be added that after the communication data is sent to the communication bus using the first communication module, the second bus device receives the communication data and returns communication response information to the first bus device. Specifically, the second bus device includes a second control module, a third communication module and a fourth communication module. Accordingly, the second bus device receives the communication data and returns the communication response information to the first bus device, including: using the third communication module to detect the communication bus, obtain the corresponding communication data, and send the communication data to the second control module; using the second control module to generate communication response information according to the received communication data, and sending the communication response information to the third communication module; using the third communication module to send the communication response information to the communication bus.
[0051] Step S42, based on the communication bus being in an idle state, sending first control data to the communication bus, so that the second bus device obtains the corresponding first control data based on the communication bus, and executes the corresponding control instruction according to the first control data.
[0052] Furthermore, based on the communication bus being in an idle state, sending the first control data to the communication bus includes: using the first control module to send the first control data to the first communication module based on the device address of the second bus device obtained previously; using the first communication module to send the first control data to the communication bus.
[0053] Step S43, detecting the communication bus, obtaining the second control data, and verifying whether the second control data is consistent with the first control data, and determining that the data is sent correctly based on the verification consistency.
[0054] Specifically, detecting the communication bus, obtaining the second control data, and verifying whether the second control data is consistent with the first control data includes: after using the first communication module to send the first control data to the communication bus, using the second communication module to detect the communication bus, obtaining the second control data, and sending the second control data to the first control module; and using the first control module to verify whether the second control data is consistent with the first control data.
[0055] Furthermore, the first control module is used to verify whether the second control data is consistent with the first control data, and it also includes: using the first control module, based on verifying that the second control data is inconsistent with the first control data, determining the bus code conflict, and controlling the first communication module to re-detect whether the communication bus is in an idle state, so as to control the first communication module to re-send the first control data to the communication bus according to a preset delayed sending strategy based on the communication bus being in an idle state; wherein the preset delayed sending strategy is used to limit the delay in sending to the corresponding second bus device.
[0056] It should be noted that the preset delayed sending strategy includes a first strategy and a second strategy. The first strategy is used to limit the second bus device receiving data to one time delay of 0, and the second strategy is used to limit the second bus device receiving data to at least two times. The delay of the corresponding second bus device is determined based on the device type and device address of the corresponding second bus device. The first bus device sends the corresponding data through the preset delayed sending strategy to reduce the probability of communication data errors.
[0057] In an optional embodiment, based on the communication bus being in an idle state, controlling the first communication module to re-send the first control data to the communication bus according to a preset delayed sending strategy, it also includes: a second bus device, based on the delay specified by the preset delay strategy, re-acquiring the corresponding first control data from the communication bus, and executing the corresponding control instruction according to the first control data.
[0058] In an optional embodiment, the second bus device includes a second control module and a third communication module. After the second bus device executes the corresponding control instruction according to the first control data, it also includes: the second control module sends a second idle state judgment instruction to the third communication module; the third communication module detects the communication bus based on the second idle state judgment instruction, and sends the detection result to the second control module; the second control module determines that the communication bus is in an idle state based on the monitoring result within the second target time that no communication information is detected, and controls the third communication module to send the instruction execution result to the communication bus according to a preset delayed sending strategy; the first communication module obtains the corresponding instruction execution result from the communication bus based on the delay specified by the preset delay strategy, and sends the obtained instruction execution result to the first control module.
[0059] In an optional embodiment, the first bus device is an indoor unit, and the second bus device is a wired controller; or, the first bus device is a wired controller, and the second bus device is an indoor unit.
[0060] In an optional embodiment, the method also includes: the wire controller detects whether the communication bus is in an idle state within a fourth target time based on not sending control data or not receiving control data within the third target time, and initiates communication to the indoor unit based on the communication bus based on the communication bus.
[0061] In an optional embodiment, the wire controller includes a master wire controller and at least one slave wire controller, and when the number of indoor units is at least two, the indoor units are connected to the master wire controller through a communication bus, and the slave wire controller is connected to the master wire controller. Accordingly, the method further includes: the master wire controller and the slave wire controller establish communication, and when the slave wire controller fails to communicate with the master wire controller, the slave wire controller takes over the communication with the indoor unit or the control of the indoor unit, so as to avoid the situation where the whole system is paralyzed due to the failure of the master wire controller.
[0062] To summarize, the embodiments of the present invention send data only after detecting whether the communication bus is in an idle state, and transmit data in time when the bus is idle, thereby reducing waiting time, avoiding bus conflicts, and ensuring that bus resources are reasonably utilized. After sending the data, the communication bus is detected to obtain the second control data to verify whether it is consistent with the first control data sent by itself, thereby effectively ensuring the accuracy of the data during the transmission process, avoiding inaccurate data transmission caused by bus code conflicts, ensuring that the entire communication process is smooth and efficient, improving the system operation efficiency and stability, and improving the maintainability and extensibility of the system.
[0063] The present invention also provides an air conditioner, comprising a communication control device of any of the above-mentioned air conditioner controllers.
[0064] Specifically, the air conditioner, including the communication control device of the air-conditioning controller as described above, can send data only after detecting whether the communication bus is in an idle state through the first bus device based on the communication control device of the air-conditioning controller, and timely transmit data when the bus is idle, thereby reducing waiting time and ensuring that bus resources are reasonably utilized. After sending the data, the communication bus is detected to obtain the second control data to verify whether it is consistent with the first control data sent by itself, thereby effectively ensuring the accuracy of the data during the transmission process, and responding to and executing the control instructions in a timely manner through the second bus device, thereby making the entire communication process smooth and efficient, and improving the maintainability and scalability of the system.
[0065] The specific structure and control method of the communication control device of the air-conditioning controller of the above-mentioned air-conditioner can be referred to the above-mentioned embodiments, and will not be repeated here.
[0066] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the communication control method of the air conditioner controller, the method comprising: detecting whether the communication bus is in an idle state; based on the communication bus being in an idle state, sending the first control data to the communication bus for the second bus device, based on the communication bus, obtaining the corresponding first control data, and executing the corresponding control instruction according to the first control data; and detecting the communication bus, obtaining the second control data, and verifying whether the second control data is consistent with the first control data, and determining that the data is sent correctly based on the verification consistency.
[0067] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0068] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the communication control method of the air-conditioning controller provided by the above-mentioned methods, and the method includes: detecting whether the communication bus is in an idle state; based on the communication bus being in an idle state, sending first control data to the communication bus for a second bus device, based on the communication bus, obtaining corresponding first control data, and executing corresponding control instructions according to the first control data; and detecting the communication bus to obtain second control data, and verifying whether the second control data is consistent with the first control data, and determining that the data is sent correctly based on the verification consistency.
[0069] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the communication control method of the air-conditioning controller provided above, the method comprising: detecting whether the communication bus is in an idle state; based on the communication bus being in an idle state, sending first control data to the communication bus for a second bus device, based on the communication bus, obtaining corresponding first control data, and executing corresponding control instructions according to the first control data; and detecting the communication bus to obtain second control data, and verifying whether the second control data is consistent with the first control data, and determining that the data is sent correctly based on the verification consistency.
[0070] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A communication control device for an air conditioning controller, characterized in that: The invention comprises a first bus device and a second bus device connected based on a communication bus, wherein: The first bus device detects whether the communication bus is in an idle state, and based on the communication bus being in an idle state, sends first control data to the communication bus, detects the communication bus to obtain second control data, and verifies whether the second control data is consistent with the first control data, and determines that the data is sent correctly based on the verification consistency; The second bus device obtains corresponding first control data based on the communication bus, and executes corresponding control instructions according to the first control data.
2. The communication control device of the air conditioner controller according to claim 1, characterized in that: The first bus device includes a first control module, a first communication module and a second communication module. The first bus device sends first control data to the communication bus, detects the communication bus, obtains second control data, and verifies whether the second control data is consistent with the first control data, including: The first control module sends first control data to the first communication module based on the device address of the second bus device previously acquired; The first communication module sends the first control data to the communication bus; The second communication module detects the communication bus, obtains second control data, and sends the second control data to the first control module; The first control module verifies whether the second control data is consistent with the first control data.
3. The communication control device of the air conditioner controller according to claim 2, characterized in that: The first control module verifies whether the second control data is consistent with the first control data, further comprising: The first control module determines that the bus code conflict occurs based on checking that the second control data is inconsistent with the first control data, and controls the first communication module to re-detect whether the communication bus is in an idle state, so as to control the first communication module to re-send the first control data to the communication bus according to a preset delayed sending strategy based on the communication bus being in an idle state; wherein the preset delayed sending strategy is used to limit the delay of sending to the corresponding second bus device; The second bus device reacquires the corresponding first control data from the communication bus based on the delay defined by the preset delay strategy, and executes the corresponding control instruction according to the first control data.
4. The communication control device of the air conditioner controller according to claim 3, characterized in that: The first control module controls the first communication module to detect whether the communication bus is in an idle state, including: The first control module sends a first idle state detection instruction to the first communication module; The first communication module detects the communication bus based on the first idle state detection instruction, and sends the detection result to the first control module; The first control module determines that the communication bus is in an idle state based on the detection result within the first target time that no communication information is detected.
5. The communication control device of the air conditioner controller according to claim 3, characterized in that: The second bus device includes a second control module and a third communication module. After the second bus device executes the corresponding control instruction according to the first control data, the second bus device further includes: The second control module sends a second idle state determination instruction to the third communication module; The third communication module detects the communication bus based on the second idle state judgment instruction, and sends the detection result to the second control module; The second control module determines that the communication bus is in an idle state based on the monitoring result within the second target time that no communication information is detected, and controls the third communication module to send the instruction execution result to the communication bus according to a preset delayed sending strategy; The first communication module obtains the corresponding instruction execution result from the communication bus based on the delay defined by the preset delay strategy, and sends the obtained instruction execution result to the first control module.
6. The communication control device of the air conditioner controller according to claim 3 or 5, characterized in that: The preset delayed sending strategy includes a first strategy and a second strategy. The first strategy is used to limit the second bus device receiving data to one, and the delay is correspondingly set to 0. The second strategy is used to limit the second bus device receiving data to at least two, and determine the delay of the corresponding second bus device based on the device type and device address of the corresponding second bus device.
7. The communication control device of the air conditioner controller according to any one of claims 1 to 5, characterized in that: The first bus device is an indoor unit, and the second bus device is a wired controller; or, the first bus device is a wired controller, and the second bus device is an indoor unit; The wire controller detects whether the communication bus is in an idle state within a fourth target time based on the fact that no control data is sent or received within the third target time, and initiates communication with the indoor unit based on the communication bus based on the communication bus being in an idle state within the fourth target time.
8. The communication control device of the air conditioner controller according to any one of claims 1 to 5, characterized in that: Before the first bus device detects whether the communication bus is in an idle state, the method includes: The first bus device sends communication data to the second bus device based on the communication bus; The second bus device receives the communication data and returns communication response information to the first bus device; The first bus device receives the communication response information and determines that the communication with the second bus device is normal.
9. A communication control method for an air conditioning controller, characterized in that: include: Detecting whether the communication bus is in an idle state; Based on the communication bus being in an idle state, first control data is sent to the communication bus, so that the second bus device obtains the corresponding first control data based on the communication bus, and executes the corresponding control instruction according to the first control data; as well as, The communication bus is detected to obtain second control data, and the second control data is verified to be consistent with the first control data. Based on the verification consistency, it is determined that the data is sent correctly.
10. An air conditioner, characterized in that: A communication control device comprising an air conditioning controller as claimed in any one of claims 1 to 8.
Citation Information
Cited By
Air conditioner energy-saving control method and system based on smart cloud analysis
CN119983484A