Air conditioner centralized control device

CN119096098APending Publication Date: 2024-12-06QINGDAO HISENSE BOSCH AIR CONDITIONING SYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380037178.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-09-30
Filing Date
2023-06-26
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

During the data transmission process of the existing air-conditioning centralized control device, the data transmission rate of the UART interface is fixed, resulting in a low transmission rate when the amount of data during the communication process is large, affecting the user experience and system response.

Method used

By determining the required data transmission rate based on the service type in the air-conditioning centralized control device and switching the data transmission rate of the UART interface, flexible rate changes are achieved. Specific steps include the controller stopping the work of the communication device, configuring the rate parameters of the communication interface, and restarting the communication device through the switching rate signal to achieve switching between the first data transmission rate and the second data transmission rate.

Benefits of technology

It improves communication efficiency, expands the application scenarios of air-conditioning centralized control devices, and improves user experience and system response performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119096098A_ABST
    Figure CN119096098A_ABST
Patent Text Reader

Abstract

An air conditioner centralized control device (100) comprises a communication device (20) and a controller (10). The communication device (20) comprises a first communication interface. The controller (10) comprises a second communication interface; after the air conditioner centralized control device (100) is powered and the air conditioner centralized control device (100) is initialized, the controller (10) is configured to control the communication device (20) to stop working; determining a required data transmission rate based on the current service type of the air conditioner centralized control device (100), and configuring a first rate parameter of the first communication interface; sending a switching rate signal to the communication device (20); and restarting the communication device (20); after receiving the switching rate signal, the communication device (20) is further configured to configure a second rate parameter of the second communication interface to complete switching between a second data transmission rate and a first data transmission rate between the controller (10) and the communication device (20).
Need to check novelty before this filing date? Find Prior Art

Description

Air conditioning centralized control device

[0001] This application claims priority to the Chinese patent application with application number 202211208659.7 filed on September 30, 2022; and priority to the Chinese patent application with application number 202211208660.X filed on September 30, 2022, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present disclosure relates to the field of centralized control technology, and in particular to an air-conditioning centralized control device. Background Art

[0003] With the development of air conditioning technology, central air conditioning systems are becoming more and more popular among consumers. Air conditioning centralized control devices can manage central air conditioning systems to meet user needs.

[0004] Summary of the Invention

[0005] An air conditioning centralized control device is provided. The air conditioning centralized control device includes a communication device and a controller. The communication device includes a first communication interface, and the communication device is configured to connect to a network. The controller includes a second communication interface, and the controller and the communication device are communicatively connected via the first communication interface and the second communication interface; after the air conditioning centralized control device is powered on and initialized, the controller is configured to: control the communication device to stop working; determine the required data transmission rate based on the current business type of the air conditioning centralized control device, and configure the first rate parameter of the first communication interface; send a switching rate signal to the communication device; and restart the communication device; after receiving the switching rate signal, the communication device is further configured to: configure the second rate parameter of the second communication interface to complete the switching between the second data transmission rate and the first data transmission rate between the controller and the communication device. The switching rate signal represents the rate parameter corresponding to the configuration of the communication device, the second rate parameter corresponds to the first rate parameter, and the first data transmission rate is lower than the second data transmission rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] FIG1 is a block diagram of an air conditioning centralized control device according to some embodiments;

[0007] FIG2 is a block diagram illustrating a communication device and a controller in communication connection according to some embodiments;

[0008] FIG3 is a flow chart of steps executed by a controller according to some embodiments;

[0009] FIG4 is a circuit diagram of a controller and a communication device according to some embodiments;

[0010] FIG5 is a circuit diagram of a power control circuit according to some embodiments;

[0011] FIG6 is another circuit diagram of a power control circuit according to some embodiments;

[0012] FIG7 is another circuit diagram of a power control circuit according to some embodiments;

[0013] FIG8 is another circuit diagram of a controller and a communication device according to some embodiments;

[0014] FIG9 is another flow chart of steps performed by a controller according to some embodiments;

[0015] FIG10 is a flow chart of steps performed by a communication device according to some embodiments;

[0016] FIG11 is a parameter setting table for a first timing mode and a second timing mode according to some embodiments;

[0017] FIG12 is a flow chart of steps executed by an air conditioning centralized control device according to some embodiments;

[0018] FIG13 is another flow chart of steps executed by the air conditioning centralized control device according to some embodiments;

[0019] FIG14 is a table showing the running status of timed tasks in the first timing mode and the second timing mode according to some embodiments;

[0020] FIG15 is another flow chart of steps executed by the air conditioning centralized control device according to some embodiments;

[0021] FIG16 is another flow chart of steps executed by the air conditioning centralized control device according to some embodiments;

[0022] FIG17 is another flow chart of steps executed by the air conditioning centralized control device according to some embodiments;

[0023] FIG18 is a block diagram of another air conditioning centralized control device according to some embodiments;

[0024] FIG19 is a circuit diagram of a target circuit according to some embodiments;

[0025] FIG20 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments;

[0026] FIG21 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments. DETAILED DESCRIPTION

[0027] The following will be combined with the accompanying drawings to clearly and completely describe some embodiments of the present disclosure. Obviously, the embodiments described are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of the present disclosure.

[0028] Unless the context requires otherwise, throughout the specification and claims, the term "comprise" and its other forms, such as the third person singular form "comprises" and the present participle form "comprising", are to be interpreted as open and inclusive, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the particular features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner.

[0029] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0030] When describing some embodiments, the word "connected" and its derivatives may be used. The term "connected" should be understood broadly. For example, "connected" can mean fixed, removable, or integrated; it can be directly connected or indirectly connected through an intermediary. The embodiments disclosed herein are not necessarily limited to the contents of this document.

[0031] “A and / or B” includes the following three combinations: A only, B only, and a combination of A and B.

[0032] The use of "adapted to" or "configured to" herein is intended to be open and inclusive language that does not exclude devices adapted or configured to perform additional tasks or steps.

[0033] As used herein, "about," "substantially," or "approximately" includes the stated value and an average value that is within an acceptable range of deviation from the particular value as determined by one of ordinary skill in the art taking into account the measurements in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).

[0034] As used herein, "parallel," "perpendicular," and "equal" include the stated conditions and conditions approximating the stated conditions within an acceptable range of deviation as determined by one of ordinary skill in the art taking into account the measurement in question and the errors associated with the measurement of the particular quantity (i.e., the limitations of the measurement system).

[0035] Some embodiments of the present disclosure provide an air conditioning system, comprising a central air conditioning system and an air conditioning centralized control system. The central air conditioning system comprises one or more air conditioning units. The air conditioning units comprise one or more air conditioners, each of which comprises an outdoor unit and an indoor unit.

[0036] The outdoor unit includes a compressor, an outdoor heat exchanger, an expansion valve, and a four-way valve. The indoor unit includes an indoor heat exchanger. When the air conditioner is operating in cooling mode, the refrigerant flows sequentially through the compressor, the four-way valve, the outdoor heat exchanger, the expansion valve, the indoor heat exchanger, and the compressor. The outdoor heat exchanger serves as a condenser, and the indoor heat exchanger serves as an evaporator. When the air conditioner is operating in heating mode, the refrigerant flows sequentially through the compressor, the four-way valve, the indoor heat exchanger, the expansion valve, the outdoor heat exchanger, and the compressor. The indoor heat exchanger serves as a condenser, and the outdoor heat exchanger serves as an evaporator.

[0037] The air conditioning centralized control system includes an air conditioning centralized control device 100, a cloud platform, and a mobile terminal. The air conditioning centralized control device 100 includes a communication device and a data acquisition device. The data acquisition device is configured to collect parameters of the air conditioning unit and transmit them to the air conditioning centralized control device 100, and to receive instructions from the air conditioning centralized control device 100. The communication device is used for information exchange. For example, the communication device is a gateway device. The cloud platform is used to receive, transmit, and manage data. The mobile terminal is configured to control and monitor the status of the air conditioning unit.

[0038] The air conditioning centralized control device 100 sends the parameters of the air conditioning unit collected by the collection device to the cloud platform through the communication device, and the mobile terminal can obtain the parameters of the air conditioning unit from the cloud platform.

[0039] FIG1 is a block diagram of an air conditioning centralized control device according to some embodiments.

[0040] In some embodiments, as shown in FIG. 1 , the air conditioning centralized control device 100 includes a controller 10 , a communication device 20 , a display device 30 , a first circuit 40 , and a second circuit 50 .

[0041] For example, the controller 10 is a microcontroller unit (MCU). The communication device 20 is configured to connect to a network. The communication device 20 is communicatively connected to the cloud platform. The communication device 20 can communicate with the mobile terminal through the cloud platform to achieve remote management of the air conditioning unit.

[0042] The display device 30 has touch and display functions and is configured to display the status of the air conditioning unit and control the air conditioning unit. The first circuit 40 is configured to communicate with the air conditioning unit. The second circuit 50 is configured to provide power to the various components in the air conditioning centralized control device 100.

[0043] It should be noted that the user can perform remote control and local control of the air-conditioning unit through the air-conditioning centralized control device 100. The remote control mainly accesses the network through a wired or wireless method, relying on the Internet to control the air-conditioning unit, and is not restricted by time and geographical location. The local control does not require access to the network, and the user can perform local control through buttons, touch screens, etc. at the local end, which is not affected by network signals. For example, the air-conditioning centralized control device 100 includes a remote controller, and the local control is to adjust the temperature and air volume of the air-conditioning unit through the remote controller.

[0044] If the air conditioning centralized control device 100 is used to remotely control the air conditioning unit and upload data, the communication device 20 needs to be connected to the Internet, and the user needs to log in to operate through the air conditioning centralized control device 100.

[0045] FIG. 2 is a block diagram illustrating a communication device and a controller in communication with each other according to some embodiments.

[0046] In some embodiments, as shown in Figure 2, the communication device 20 includes a first communication interface, which is RXD2 and TXD2 in Figure 2. The controller 10 includes a second communication interface, which is RXD (Receive External Data) 1 and TXD (Transmit External Data) 1 in Figure 2. The controller 10 and the communication device 20 are communicatively connected through the first communication interface and the second communication interface. For example, the communication device 20 and the controller 10 are communicatively connected through a universal asynchronous receiver transmitter (UART) interface to transmit data or information. This connection method has the characteristics of simple and stable communication and can meet the needs of most application scenarios (for example, air conditioning operation status control, air conditioning status reporting, etc.). However, in the process of using the UART interface for communication, the data transmission rate of the UART interface is usually set to a fixed value. In this way, when the amount of data in the communication process is large, the communication device 20 and the controller 10 still use a lower data transmission rate for communication, which affects user use and system response.

[0047] To solve the above problems, some embodiments of the present disclosure provide an air conditioning centralized control device 100. The air conditioning centralized control device 100 determines the required data transmission rate based on the service type to switch the data transmission rate and realize flexible speed change of the UART interface.

[0048] FIG3 is a flow chart of steps performed by a controller according to some embodiments.

[0049] In some embodiments, as shown in FIG3 , after the air conditioning centralized control device 100 is powered on by the second circuit 50 , the components in the air conditioning centralized control device 100 are initialized for centralized control.

[0050] In step 101 , the communication device 20 is controlled to stop working.

[0051] In some embodiments, the controller 10 can control the communication device 20 to stop working in various ways, such as stopping power supply to the communication device 20 .

[0052] FIG4 is a circuit diagram of a controller and a communication device according to some embodiments.

[0053] In some embodiments, as shown in FIG. 4 , the communication device 20 includes a power supply terminal VCC1 , and the controller 10 controls to disconnect the power supply path to the power supply terminal VCC1 to control the communication device 20 to stop working and save power.

[0054] For example, as shown in Fig. 4, the air conditioning centralized control device 100 further includes a power control circuit 60. The controller 10 includes a first interface GPIO (General Purpose Input Output) 1, and the power control circuit 60 is provided between the first interface GPIO1 and the power supply terminal VCC1.

[0055] After the air conditioning centralized control device 100 is powered on and initialized, the power control circuit 60 is configured to control whether to supply power to the power supply terminal VCC1 according to the signal output by the first interface GPIO1. The power control circuit 60 includes a first target power supply (target power supply) VCC (Volt Current Condenser). The first target power supply VCC is configured to supply power to the communication device 20. The power control circuit 60 includes a first control terminal (control terminal), and the first interface GPIO1 of the controller 10 is connected to the first control terminal. The power control circuit 60 receives the signal output by the first interface GPIO1 through the first control terminal to control the connection or disconnection of the power supply path. The power supply path is a circuit between the first target power supply VCC and the power supply terminal VCC1.

[0056] Furthermore, the signal output by the first interface GPIO1 may be a high level or a low level.

[0057] In some embodiments, the power control circuit 60 further includes a power circuit and a switch. The input terminal of the power circuit is connected to a first target power supply VCC, and the output terminal of the power circuit is connected to a power supply terminal VCC1. The switch includes a sub-control terminal, and the sub-control terminal is connected to a first interface GPIO1. The control terminal of the power control circuit is the sub-control terminal.

[0058] Figure 5 is a circuit diagram of a power control circuit according to some embodiments. Figure 6 is another circuit diagram of a power control circuit according to some embodiments.

[0059] In some embodiments, as shown in Figures 5 and 6, the switch is an NPN (Negative-Positive-Negative, NPN) type transistor Q1, and the switch is a high-level conductive switch. For example, the NPN type transistor Q1 has a base B, a collector C, an emitter E, a first ground resistor R1, a first current-limiting resistor R2, a first pull-down resistor R3, and a first pull-up resistor R4. The base B corresponds to the control end (first end) of the switch. The base B is connected to the first interface GPIO1 through the first current-limiting resistor R2, and the base B is connected to the first pull-down resistor R3. The collector C (second end) is connected to the first target power supply VCC through the first pull-up resistor R4 to serve as the input end. The emitter E is connected to the first ground resistor R1. The connection between the first pull-up resistor R4 and the collector C serves as the output end P of the power circuit, which is connected to the power supply end VCC1.

[0060] In this way, after the air-conditioning centralized control device 100 is powered on, when the controller 10 outputs a high-level signal through the first interface GPIO1, the base B is at a high level, the NPN transistor Q1 is turned on, and the electric energy at the power supply terminal VCC1 of the communication device 20 is reduced to zero through the grounding resistor R1, and the communication device 20 cannot be powered, thereby stopping power supply to the communication device 20 and causing the communication device 20 to stop working.

[0061] The difference between Figure 6 and Figure 5 lies in the connection location of the power supply terminal VCC1. As shown in Figure 6, the connection location between the first grounding resistor R1 and the emitter E (third terminal) serves as the output terminal P of the power circuit, which is connected to the power supply terminal VCC1. Similarly, after the air conditioning centralized control device 100 is powered on, when the controller 10 outputs a low-level signal at the first interface GPIO1, the power control circuit 60 does not supply power to the communication device 20.

[0062] When the controller 10 outputs a low-level signal through the first interface GPIO1, the base B is at a low level, and the NPN transistor Q1 is cut off. The power energy at the power supply terminal VCC1 of the communication device 20 is reduced to zero through the grounding resistor R1, and the communication device 20 cannot be powered. In this way, the power supply to the communication device 20 can be stopped.

[0063] FIG. 7 is another circuit diagram of a power control circuit according to some embodiments.

[0064] The above description mainly uses the switch being an NPN transistor Q1 as an example. Of course, in some embodiments, as shown in FIG7 , the switch may also be a PNP (Positive-Negative-Positive) transistor Q2.

[0065] When the switch is a low-level conduction switch, as shown in FIG7 , the PNP transistor Q2 includes a base B (first terminal), a collector C (third terminal), an emitter E (second terminal), a second grounding resistor R5, a second current-limiting resistor R6, and a second pull-up resistor R7. The principles and effects of the PNP transistor Q2 are similar to those of the NPN transistor Q1 and are not further described here.

[0066] The preceding description primarily uses the example of the controller 10 stopping power to the communication device 20 to control the communication device 20 to stop operating. Of course, the controller 10 can also control the communication device 20 to stop operating in other ways. For example, the controller 10 may utilize a preset program to continuously send a reset signal to the communication device 20, causing the communication device 20 to remain in a reset state and unable to enter an operating state, thereby controlling the communication device 20 to stop operating.

[0067] FIG8 is another circuit diagram of a controller and a communication device according to some embodiments.

[0068] For example, as shown in FIG8 , the communication device 20 includes a reset pin RES. The first interface GPIO1 of the controller 10 is connected to the reset pin RES of the communication device 20 .

[0069] When the air conditioning centralized control device 100 is powered on, the controller 10 continuously outputs a reset signal at the first interface GPIO1 according to the first preset program (preset program). The reset pin RES receives the reset signal and continuously maintains the reset state, so that the communication device 20 can be controlled to stop working.

[0070] In some embodiments of the present disclosure, the power control circuit 60 can be controlled to supply power to the communication device 20 according to the service type and application scenario. In this way, when networking is not required, the power supply of the communication device 20 can be cut off to reduce power consumption.

[0071] In step 102 , it is determined whether the required data transmission rate is the second data transmission rate. If yes, step 103 is executed; if no, step 106 is executed.

[0072] In some embodiments, the controller 10 is configured to determine the required data transmission rate based on the current service type of the air conditioning centralized control device 100. The service type and the data transmission rate correspond to each other, and the data transmission rate can be determined according to the service type.

[0073] The service types include a first service type and a second service type. The data transmission rates include a first data transmission rate and a second data transmission rate. The first data transmission rate is lower than the second data transmission rate. Services executed at the first data transmission rate are the first service type, and services executed at the second data transmission rate are the second service type.

[0074] For example, the first service type includes conventional air conditioning control, such as cooling, heating, and air conditioning status reporting. The first service type can be executed using the low, stable, and fixed rate of the UART interface between the controller 10 and the communication device 20.

[0075] The second service type includes remote upgrade, advertising video playback, etc. The second service type can be executed by performing communication at a second data transmission rate via a UART interface between the controller 10 and the communication device 20 .

[0076] Therefore, the controller 10 can determine the required data transmission rate by determining the current service type.

[0077] For example, if the controller 10 determines that the current service type is a remote upgrade service, the required data transmission rate is determined to be the second data transmission rate; if the controller 10 determines that the current service type is an air conditioning conventional control service, the required data transmission rate is determined to be the first data transmission rate.

[0078] In this way, by switching the rate between the second data transmission rate and the first data transmission rate according to different business types, the communication efficiency can be improved and the application scenarios of the air conditioning centralized control device 100 can be expanded.

[0079] In step 103, the first rate parameter of the first communication interface is configured as a second preset parameter.

[0080] If the required data transmission rate is the second data transmission rate, the controller 10 configures the first rate parameter of the first communication interface to be a second preset parameter (eg, 2 Mbps).

[0081] In step 104 , a second switching rate signal is sent to the communication device 20 .

[0082] In some embodiments, the controller 10 includes a second GPIO2 interface (as shown in Figures 4 and 8), and the communication device 20 includes a third GPIO interface. The second GPIO2 interface and the third GPIO interface are connected, so that the controller 10 can send a switching rate signal to the communication device 20 via the second GPIO2 interface. The switching rate signal represents the corresponding configured rate parameter of the communication device 20. The configured rate parameter (e.g., the second rate parameter) matches the first rate parameter. The second rate parameter will be described below.

[0083] The switching rate signal corresponds to the data transmission rate. The switching rate signal includes a second switching rate signal. The second switching rate signal corresponds to a second preset parameter. When the first rate parameter is the second preset parameter, the configured rate parameter is also the second preset parameter.

[0084] In step 105 , the communication device 20 is controlled to be powered on and restarted.

[0085] In step 106, a first rate parameter of the first communication interface is configured as a first preset parameter.

[0086] If it is determined that the required data transmission rate is the first data transmission rate, the controller 10 configures the first rate parameter of the first communication interface to be a first preset parameter, for example, the first preset parameter is 9.6 Kbps.

[0087] In step 107 , a first switching rate signal is sent to the communication device 20 .

[0088] The switching rate signal further includes a first switching rate signal. The first switching rate signal corresponds to a first preset parameter. When the first rate parameter is the first preset parameter, the configured rate parameter (eg, the second rate parameter) is also the first preset parameter.

[0089] In step 108 , the communication device 20 is controlled to be powered on and restarted.

[0090] On the one hand, as shown in FIG5 , when the controller 10 outputs a low-level signal at the first interface GPIO1, since the base B is at a low level, the NPN transistor Q1 is turned off, and the first target power supply VCC is at a high level. The power supply terminal VCC1 is connected to the first target power supply VCC to provide power, thereby powering the communication device 20. In this way, the communication device 20 can be powered on and restarted.

[0091] On the other hand, as shown in FIG6 , when the controller 10 outputs a high-level signal at the first interface GPIO1, since the base B is at a high level, the NPN transistor Q1 is turned on, and the first target power supply VCC is at a high level. The power supply terminal VCC1 is connected to the first target power supply VCC to provide power, thereby powering the communication device 20. In this way, the communication device 20 can be powered on and restarted.

[0092] In some embodiments, when the controller 10 determines the current business type, the controller 10 stores the current configuration file so that the air conditioning centralized control device 100 can resume executing the current business type after a system abnormality occurs or after a restart while executing the business.

[0093] For example, as shown in FIG3 , after step 101 , the controller 10 is further configured to execute step 113 .

[0094] In step 113, the configuration file is read.

[0095] After the air conditioning centralized control device 100 is powered on and initialized, the controller 10 needs to read the configuration file to restore the current service type.

[0096] It should be noted that when a system abnormality or restart occurs when the air conditioning centralized control device 100 is executing a business, it is necessary to restore the current business type before the system abnormality or restart and maintain the data transmission rate corresponding to the current business type to avoid data loss.

[0097] For example, before the air conditioning centralized control device 100 is restarted, if the service executed by the air conditioning centralized control device 100 is the first service type, the air conditioning centralized control device 100 needs to restore the service corresponding to the first service type after initialization, and the controller 10 needs to determine the data transmission rate required for the current service type.

[0098] In this case, if the data transmission rate required by the current business type is the second data transmission rate, the controller 10 will update the configuration file to the configuration file corresponding to the second data transmission rate, and then switch the rate from the first data transmission rate to the second data transmission rate; if the data transmission rate required by the current business type is still the first data transmission rate, the controller 10 does not need to update the configuration file.

[0099] Before the air-conditioning centralized control device 100 is restarted, if the service executed by the air-conditioning centralized control device 100 is the second service type, after the air-conditioning centralized control device 100 is initialized, if the data transmission rate required by the current service type is the first data transmission rate, the controller 10 will update the configuration file to the configuration file corresponding to the first data transmission rate, and switch the second data transmission rate to the first data transmission rate; if the required data transmission rate is still the second data transmission rate, the controller 10 does not need to update the configuration file.

[0100] FIG. 9 is another flow chart illustrating steps performed by a controller according to some embodiments.

[0101] In some embodiments, as shown in FIG9 , after step 104 , the controller 10 is further configured to execute step 105 ′. In step 105 ′, the communication device 20 is controlled to reset and restart.

[0102] In some embodiments, as shown in FIG9 , after step 107 , the controller 10 is further configured to perform step 108 ′.

[0103] In step 108 ′, the communication device 20 is controlled to reset and restart.

[0104] In some embodiments, the controller 10 may output a target reset signal at the first interface GPIO1 according to a second preset program to restart the communication device 20 after resetting the communication device 20 once. After the controller 10 completes the rate switching, the communication device 20 is restarted to facilitate the communication device 20 to perform rate matching switching again.

[0105] In some embodiments, as shown in FIG. 9 , after step 101 , the controller 10 is further configured to execute step 114 .

[0106] In step 114 , the configuration file is read.

[0107] It should be noted that the principle and effect of step 114 are the same as those of step 113 and will not be described again here.

[0108] FIG10 is a flow chart illustrating steps performed by a communication device according to some embodiments.

[0109] In some embodiments, as shown in FIG10 , after the controller 10 completes the rate switching and the communication device 20 restarts, the communication device 20 is configured to execute steps 109 to 112 .

[0110] In step 109, the switching rate signal is received.

[0111] The second GPIO2 interface of the controller 10 sends the switching rate signal to the third GPIO interface of the communication device 20. After the communication device 20 is restarted, the third GPIO interface of the communication device 20 receives the switching rate signal and configures the rate parameters of the communication device 20 according to the switching rate signal. The switching rate signal can be either a high level or a low level.

[0112] It should be noted that the switching rate signal can be set to a high level or a low level according to requirements.

[0113] The following description will take as an example that when the switching rate signal is high, the communication device 20 corresponds to the second preset parameter for the required configuration rate parameter, and when the switching rate signal is low, the communication device 20 corresponds to the first preset parameter for the required configuration rate parameter.

[0114] In step 110 , it is determined whether the rate corresponding to the switching rate signal is the second data transmission rate. If yes, step 111 is executed; if no, step 112 is executed.

[0115] For example, the communication device 20 determines the corresponding data transmission rate based on the switching rate signal. When the third GPIO interface of the communication device 20 receives a high-level switching rate signal, the corresponding rate is the second data transmission rate. When the third GPIO interface of the communication device 20 receives a low-level switching rate signal, the corresponding rate is the first data transmission rate.

[0116] In step 111, a second rate parameter of the second communication interface is configured as a second preset parameter.

[0117] In step 112, a second rate parameter of the second communication interface is configured as a first preset parameter.

[0118] If the first rate parameter is the second preset parameter, the controller 10 configures the second rate parameter of the second communication interface to be the second preset parameter.

[0119] If the first rate parameter is the first preset parameter, the controller 10 configures the second rate parameter of the second communication interface to be the first data transmission rate parameter.

[0120] It should be noted that the service type, the first rate parameter, the switching rate signal and the second rate parameter correspond to each other.

[0121] For example, if the data transmission rate required by the service type is the second preset parameter, the first rate parameter is the second preset parameter, the rate corresponding to the switching rate signal is the second data transmission rate, and the second rate parameter is set to the second preset parameter. For example, the first rate parameter and the second rate parameter are each 2 Mbps.

[0122] For another example, the data transmission rate required by the service type is a first preset parameter, the first rate parameter and the second rate parameter are first preset parameters, and the rate corresponding to the switching rate signal is the first data transmission rate.

[0123] In some embodiments of the present disclosure, two signal transmission paths are provided between the controller 10 and the communication device 20. These two signal transmission paths are a first signal transmission path between the first GPIO1 interface of the controller 10 and the power supply terminal VCC1 of the communication device 20, and a second signal transmission path between the second GPIO2 interface of the controller 10 and the third GPIO interface of the communication device 20. Furthermore, based on the service type, the controller 10 and the communication device 20 each configure rate parameters.

[0124] When the service type requires the second data transmission rate, communication is switched to the second preset parameters. When the service type requires the first data transmission rate, communication is switched to the first preset parameters. This flexibly meets the communication needs of different service types and improves communication efficiency. In addition, the two-way signal transmission path has a simple structure, is easy to implement, and provides reliable communication, reducing communication costs and increasing switching stability.

[0125] In addition, when the second data transmission rate scenario is completed and needs to be switched to the first data transmission rate again, the above process can be executed and configured to the first preset parameters so as to communicate again.

[0126] Typically, a user can create a scheduled task on the local side (for example, the air conditioning unit shuts down after running for a few hours), or create a scheduled task on the remote side (for example, a mobile application (Application, APP) or a personal computer (Personal Computer, PC), and then synchronize the scheduled task remotely to the local side so that the air conditioning unit executes the scheduled task. It should be noted that whether the scheduled task is created on the local side or on the remote side, the local side is the main one.

[0127] The scheduled tasks include remote scheduled tasks and local scheduled tasks. The remote scheduled tasks are configured to be synchronized to the air conditioning centralized control device 100. Some embodiments of the present disclosure also provide a timing method for an air conditioning centralized control device. When the air-conditioning unit is remotely controlled by the air conditioning centralized control device 100, the controller 10 needs to be connected to the network. For example, the user creates and sets a scheduled task through a user terminal (for example, a mobile phone APP side or a PC web page side), and the timing-related information is set on the cloud platform. In this way, the scheduled task is highly dependent on the network. When abnormal conditions such as the controller 10 being powered off and restarted or the network being interrupted occur, the timing method of the air conditioning centralized control device 100 provided in some embodiments of the present disclosure can avoid disorder in the timing function, resulting in timing failure, thereby affecting the execution of the scheduled task and user use.

[0128] When creating a scheduled task, some embodiments of the present disclosure provide two scheduling modes to ensure reliable and stable execution of the scheduled task. For example, the scheduled task may be to shut down the air conditioner after 10 minutes or to turn on the air conditioner after 20 minutes. The two scheduling modes include a first scheduling mode and a second scheduling mode.

[0129] The first timing mode and the second timing mode will be described below respectively.

[0130] FIG. 11 is a parameter setting table for a first timing mode and a second timing mode according to some embodiments.

[0131] In some embodiments, as shown in Figure 11, the parameters in the first timing mode include a creation flag FLAG and a target time VALUE. The creation flag FLAG and the target time VALUE are respectively related to the network status.

[0132] For example, when creating a scheduled task, if the network status is connected, the creation flag FLAG is marked as the first flag (TRUE); if the network status is disconnected, the creation flag FLAG is marked as the second flag (FALSE). The network status may refer to whether the air conditioning centralized control device 100 is connected to the network. The target time VALUE is the sum of the current system time Tm and the scheduled time duration ΔT. The current system time Tm is related to the network status.

[0133] In some embodiments, when the network status is connected, the Universal Time Coordinated (UTC) may be obtained to calibrate a local clock, which is the current system time Tm.

[0134] When the network status is disconnected, the local clock is not calibrated and the local clock is used by default.

[0135] FIG12 is a flow chart of steps executed by an air conditioning centralized control device according to some embodiments.

[0136] Taking FIG. 12 as an example, the steps executed by the air conditioning centralized control device 100 in the first timing mode are exemplarily described.

[0137] In some embodiments, after power is supplied to the air conditioning centralized control device 100 , the air conditioning centralized control device 100 is configured to execute steps 201 to 205 .

[0138] In step 201, initialization is performed.

[0139] After the air conditioning centralized control device 100 is powered on, the air conditioning centralized control device 100 is initialized to achieve centralized control.

[0140] In step 202, it is determined whether the network connection is successful. If yes, step 203 is executed; if no, step 205 is executed.

[0141] Determine whether the air conditioning centralized control device 100 is connected to the network. For example, the communication device 20 establishes a connection with the cloud platform via the Message Queuing Telemetry Transport (MQTT) protocol. If the connection is successful, the communication device 20 sends a special character, such as "1". If the connection is unsuccessful, the communication device 20 sends "0".

[0142] In step 203, it is determined whether UTC time is obtained. If yes, step 204 is executed; if no, step 205 is executed.

[0143] If the local clock needs to be calibrated, the UTC time should be obtained. Therefore, when the air conditioning centralized control device 100 is connected to the network, the air conditioning centralized control device 100 will initiate a timestamp request to the cloud platform to obtain the UTC time.

[0144] In step 204, the local clock is calibrated.

[0145] After obtaining the UTC time, the air conditioning centralized control device 100 calibrates the local clock.

[0146] When the air conditioning centralized control device 100 is connected to the network for the first time, the local clock will be calibrated immediately. After that, the air conditioning centralized control device 100 will periodically calibrate the local clock.

[0147] In step 205, the local clock is defaulted.

[0148] If the air conditioning centralized control device 100 is not connected to the network, the air conditioning centralized control device 100 defaults to timing according to the local clock. For example, when the air conditioning centralized control device 100 cannot connect to the network after restarting, the air conditioning centralized control device 100 counts according to the local clock. If the air conditioning centralized control device 100 is reconnected to the network, it will automatically obtain the UTC time and calibrate the local clock. In this way, when connected to the network, the air conditioning centralized control device 100 will calibrate the current system time Tm, and the current system time Tm is consistent with the UTC time; when disconnected from the network, the air conditioning centralized control device 100 will not calibrate the current system time Tm, and the current system time Tm may deviate from the UTC time. At this time, if the air conditioning centralized control device 100 is reconnected to the network, the air conditioning centralized control device 100 will immediately calibrate the current system time Tm.

[0149] It should be noted that even after the air conditioning centralized control device 100 successfully connects to the network, it may fail to obtain the UTC time due to factors such as network conflicts or signal interference. Furthermore, the current system time Tm is counted forward. Forward counting means that the time is incremented.

[0150] The following describes the parameter settings for creating a scheduled task in the first timing mode.

[0151] When creating a scheduled task, the user obtains the target time VALUE based on the current system time Tm and the scheduled duration ΔT. The target time VALUE is assigned to the scheduled end time UTCend. The scheduled end time UTCend is equal to the sum of the current system time Tm and the scheduled duration ΔT (i.e., UTCend = Tm + ΔT).

[0152] Since the current system time Tm is continuously updated, when the current system time Tm reaches the timing end time UTCend, the timing task is triggered to be executed.

[0153] It should be noted that scheduled tasks are mainly based on the local end. Therefore, for scheduled tasks created locally and remotely, the scheduled end time UTCend will be stored locally respectively.

[0154] The first timing mode is set to a first structure TIME1, which includes two parameters (ie, a creation flag FLAG and a target time VALUE).

[0155] In the online state, the creation flag is the same as the first flag (FLAG=TRUE), and the target time is the same as the timing end time (VALUE=UTCend).

[0156] TIME1.FLAG=TRUE, TIME1.VALUE=UTCend.

[0157] It should be noted that the current system time Tm in the timing end time UTCend is the calibrated current system time.

[0158] In the disconnected state, the creation flag is the same as the second flag (FLAG=TRUE), and the target time is the same as the timing end time (VALUE=UTCend).

[0159] TIME1.FLAG=FALSE, TIME1.VALUE=UTCend.

[0160] It should be noted that the current system time Tm in the timing end time UTCend is the uncalibrated current system time. Also, when the network status is connected, the precise UTC time selected in the first timing mode is more accurate. Therefore, if the network status is connected, the first timing mode is selected.

[0161] The second timing mode is described below with reference to FIG. 11 and FIG. 13 .

[0162] In some embodiments, as shown in FIG11 , the parameters in the second timing mode include a timing duration VALUE.

[0163] It should be noted that in some embodiments of the present disclosure, to save costs, the air conditioning centralized control device 100 does not have a real-time clock (RTC) backup battery. Therefore, if the air conditioning centralized control device 100 loses power, the time is no longer saved. The current system time of the air conditioning centralized control device 100 is measured with second-level accuracy. Furthermore, the current system time Tm is counted backwards. Reverse counting refers to a decreasing time.

[0164] Therefore, in the second timing mode, when the user creates a scheduled task, the timing duration ΔT is also converted with second-level accuracy, that is, the timing duration ΔT is converted into seconds Ts to match the current system time Tm.

[0165] The second timing mode is set as a second structure TIME2, and the second timing mode includes a timing duration ΔT.

[0166] TIME2.VALUE=Ts.

[0167] If the scheduled task is created successfully, Ts is stored as the initial value.

[0168] After the scheduled task is triggered, Ts begins to decrease until it reaches zero, triggering the execution of the scheduled task.

[0169] It should be noted that, during the second timing mode, the remaining duration will be stored in real time, ie, the timing duration will be updated, to prevent abnormalities such as power outages and restarts from affecting the acquisition of the timing duration.

[0170] FIG13 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments.

[0171] In some embodiments, as shown in FIG13 , the air conditioning centralized control device 100 is configured to execute steps 301 to 309 .

[0172] In step 301, the timing duration is set.

[0173] According to the scheduled task created by the user, the air conditioning centralized control device 100 sets the timing duration to ΔT.

[0174] In step 302, the timing duration ΔT is converted into seconds Ts.

[0175] When a user creates a scheduled task, the air conditioning centralized control device 100 converts the scheduled duration ΔT into seconds, that is, into seconds Ts, to match the current system time.

[0176] In step 303, the number of seconds Ts is stored.

[0177] For example, the air conditioning centralized control device 100 stores the number of seconds Ts so as to obtain the timing duration ΔT when the timing task is started. In this case, the timing duration is equal to the number of seconds, that is, ΔT=Ts.

[0178] In step 304, the scheduled task is started.

[0179] After completing the setting and storing the timing duration ΔT, the air conditioning centralized control device 100 starts the timing task, that is, the air conditioning centralized control device 100 starts to execute the timing task.

[0180] In step 305 , it is determined whether the number of seconds Ts has decreased to zero. If “no”, step 306 is executed; if “yes”, step 309 is executed.

[0181] Since the number of seconds Ts represents the timer duration ΔT, the number of seconds Ts decreases while the air conditioning centralized control device 100 executes the scheduled task. As the number of seconds Ts decreases, after a period of time t, the timer duration ΔT is updated to Tn (Tn = Ts - t). In this case, the timer duration ΔT is updated, Tn is assigned to ΔT (Tn = ΔT), and the value is stored so that the timer duration ΔT can be retrieved after the air conditioning centralized control device 100 is powered off and restarted.

[0182] In step 306, it is determined whether the set time t k If “yes”, execute step 307; if “no”, execute step 305.

[0183] Set time t k The value of can be defined by the user. When the cumulative decrease time of seconds Ts reaches the set time t k When the timer is set, the air conditioning centralized control device 100 updates the timing duration.

[0184] For example, according to the application scenario of the air conditioning centralized control device 100, the set time t k When higher timing accuracy is required, set the time t k The value can be smaller. When the accuracy is lower, set the time t k Can be larger.

[0185] For example, set the set time t k That is, every time the cumulative decrease is 2 seconds, the timing duration is updated and the updated timing duration is stored.

[0186] In step 307, the timing duration is updated.

[0187] For example, if the initial value of the timing duration Ts is 30 seconds, set the time t k When the cumulative decreasing time of the number of seconds Ts reaches 3 seconds, the timing duration Ts is updated. The updated timing duration Ts is the difference between 30 seconds and 3 seconds. The updated timing duration Ts is 27s (i.e., 30 seconds - 3 seconds = 27 seconds).

[0188] When the next cumulative decrement time reaches 3 seconds, the timing duration is updated to the difference between 27 seconds and 3 seconds. The timing duration Ts after the next update is 24 seconds (i.e., 27 seconds - 3 seconds = 24 seconds). This cycle is repeated until it decreases to 0, and step 309 is performed.

[0189] In step 308, the updated timing duration Ts is stored.

[0190] The air conditioning centralized control device 100 stores the updated timing duration Ts for subsequent retrieval.

[0191] In step 309, the scheduled task is executed.

[0192] When the timing duration Ts decreases to 0, the timing task is triggered and the air conditioning centralized control device 100 starts to execute the timing task.

[0193] In some embodiments, when creating a scheduled task, the air conditioning centralized control device 100 enables two timing modes, which can increase the reliability of the system so as to accurately execute the timing function.

[0194] In some embodiments, the parameters in the first timing mode further include a first running state identifier STATE1, and the parameters in the second timing mode further include a second running state identifier STATE2, so as to identify the timing mode currently adopted when the timing task is running.

[0195] For example, the first structure TIME1 also includes a first operating state identifier STATE. When the air conditioning centralized control device 100 is operating in the first timing mode, the first operating state identifier is the same as the first identifier (i.e., STATE1 = TRUE). In other words, TIME1.STATE = TRUE. If the air conditioning centralized control device is not operating in the first timing mode, the first operating state identifier is the same as the second identifier (i.e., STATE1 = FALSE). In other words, TIME1.STATE = FALSE.

[0196] For another example, the second structure TIME2 also includes a second operating state identifier STATE2. When the air conditioning centralized control device 100 is operating in the second timing mode, the second operating state identifier is the same as the first identifier (i.e., STATE1 = TRUE). In other words, TIME2.STATE = TRUE. If the air conditioning centralized control device is not operating in the first timing mode, the second operating state identifier is the same as the second identifier (i.e., STATE2 = FALSE). In other words, TIME2.STATE = FALSE.

[0197] After the timing task is executed, the first timing mode and the second timing mode are ended respectively, and the parameters in the first timing mode and the parameters in the second timing mode are cleared.

[0198] The following uses FIG. 14 as an example to illustrate the operation of the first timing mode and the second timing mode when the timing task is running.

[0199] In some embodiments, as shown in FIG14 , different network states correspond to different timing modes. Based on the network state of the air conditioning centralized control device 100 during the creation of a scheduled task and the network state after the scheduled task is triggered, the timing mode of the air conditioning centralized control device 100 is divided into the following four situations. Here, the process of creating a scheduled task refers to the time range from the creation of the scheduled task to the triggering of the scheduled task execution. The network state after the scheduled task is triggered can be referred to as the current network state.

[0200] On the one hand, if the network is continuously disconnected during the scheduled task, as shown in Figure 14, when the air conditioning centralized control device 100 is connected to the network when the scheduled task is created and is currently disconnected, the air conditioning centralized control device 100 executes the first timing mode or the second timing mode. The scheduled task period refers to the time range from when the scheduled task is created to when the scheduled task is triggered.

[0201] During the timed task, for the first timing mode, the current system time Tm cannot be calibrated, and the execution of the timed task depends on the timing duration ΔT; for the second timing mode, the execution of the timed task also depends on the timing duration ΔT.

[0202] Therefore, during the timing task, the network is disconnected. In this case, the timing accuracy of the first timing mode and the second timing mode are consistent.

[0203] On the other hand, when the air conditioning control device 100 is continuously connected to the Internet during the scheduled task, as shown in Figure 14, when the air conditioning control device 100 is connected to the Internet when creating the scheduled task, and the current network status is connected to the Internet, the air conditioning control device 100 executes the first timing mode or the second timing mode.

[0204] During the timing task, for the first timing mode, the current system time Tm is calibrated, and the execution of the timing task depends on the timing duration ΔT; for the second timing mode, the execution of the timing task also depends on the timing duration ΔT.

[0205] Therefore, when the network is continuously connected, the timing accuracy of the first timing mode and the second timing mode are consistent.

[0206] On the other hand, when the network is disconnected after creating a scheduled task while connected to the network, for example, as shown in Figure 14, when the network status of the air-conditioning centralized control device 100 is connected when creating the scheduled task, and the current network status is disconnected, when connected to the network, the air-conditioning centralized control device 100 first executes the first timing mode, and after the network is disconnected, the air-conditioning centralized control device 100 executes the second timing mode.

[0207] It should be noted that the network disconnection time range refers to the time after the scheduled task is created and before the scheduled task is triggered for execution.

[0208] After the air conditioning centralized control device 100 creates a scheduled task in the network state, the network is disconnected, that is, the initial value of the creation flag is the first flag (ie, TIME1.FLAG = TRUE). Therefore, before the network is disconnected, the air conditioning centralized control device 100 executes the first timing mode for accurate timing.

[0209] In this case, when the network is connected again, if the air conditioning control device 100 operates in the first timing mode, the time calibration after reconnecting to the network may cause time to regress. Therefore, after the network is disconnected, the air conditioning control device 100 executes the second timing mode to continue running the timing task.

[0210] Furthermore, after a network outage, the timing accuracy of the first and second timing modes remains the same. However, if the first timing mode is still used after a network outage, in this case, if the air conditioning centralized control device 100 is offline for a long time and then suddenly reconnects to the network, the air conditioning centralized control device 100 will recalibrate the local clock, which may cause the scheduled task to be executed twice.

[0211] For example, if a scheduled task is created to shut down the computer 36 hours later, 36 hours is converted to 129,600 seconds.

[0212] In this case, when the air conditioning centralized control device 100 operates in the first timing mode, TIME1.VALUE=Tm+129600; TIME1.FLAG=TRUE; when the air conditioning centralized control device 100 operates in the second timing mode, TIME2.VALUE=12960.

[0213] In this way, after the air conditioning centralized control device 100 is disconnected from the network, if the air conditioning centralized control device 100 still uses the first timing mode for timing, when the current system time Tm reaches TIME1.VALUE, the timing task is triggered to be executed.

[0214] However, if the air conditioning centralized control device 100 is successfully connected to the network again at this time, after the local clock is calibrated, the current system time Tm is less than TIME1.VALUE, which will cause the air conditioning centralized control device 100 to execute a timing task again.

[0215] Therefore, the second timing mode is used during the offline period. When the timing duration ΔT decreases to 0, the scheduled task is triggered. After execution, TIME1.STATE = FALSE, and the scheduled task will no longer be executed, avoiding the risk of repeated execution of the scheduled task.

[0216] FIG15 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments.

[0217] For example, as shown in FIG15 , when the air conditioning centralized control device 100 is connected to the network, the air conditioning centralized control device 100 is configured to execute steps 401 to 404 .

[0218] In step 401, the creation flag is set to the first flag TRUE.

[0219] In step 402, a first timing mode is executed.

[0220] Before disconnecting from the network, the first timing mode of the air-conditioning centralized control device 100 is executed to achieve accurate timing.

[0221] In step 403, it is determined whether the network is connected. If yes, step 402 is executed; if no, step 404 is executed.

[0222] The current networking status is determined. If the network is still connected, the air conditioning centralized control device 100 still executes the first timing mode to achieve accurate timing.

[0223] In step 404, a second timing mode is executed.

[0224] If the current network is disconnected, in order to avoid the risk of repeatedly executing the scheduled task, the air conditioning centralized control device 100 executes the second timing mode.

[0225] It should be noted that when the air conditioning centralized control device 100 runs the first timing mode to execute a timing task, the air conditioning centralized control device 100 will also execute the second timing mode, but will update the parameters in the second timing mode without targeting the timing task.

[0226] Correspondingly, when the air conditioning centralized control device 100 runs the second timing mode to execute the timing task, the air conditioning centralized control device 100 will also execute the first timing mode, but will update the parameters in the first timing mode without targeting the timing task.

[0227] On the other hand, when the air conditioning centralized control device 100 is disconnected from the network, the air conditioning centralized control device 100 creates a scheduled task, and then the air conditioning centralized control device 100 is connected to the network. For example, as shown in Figure 14, when the network status of the air conditioning centralized control device 100 is disconnected when creating the scheduled task, and the current network status is connected, in this case, when the network is disconnected, the air conditioning centralized control device 100 executes the second timing mode, and after connecting to the network, the air conditioning centralized control device 100 executes the first timing mode. Here, the target time VALUE in the first timing mode is obtained based on the remaining duration. The remaining duration refers to the remaining timing duration after a period of time has passed since the air conditioning centralized control device 100 executes the timing mode.

[0228] When the air conditioning control device 100 creates a scheduled task in an offline state, since the local clock has not been calibrated, there is a deviation between the current system time Tm and the UTC time. Therefore, the initial value of the creation identifier FLAG corresponding to the first timing mode at this time is FALSE (i.e., TIME1.FLAG=FALSE).

[0229] After the scheduled task is created, it will be run according to the second timing mode.

[0230] Afterwards, if the user successfully connects to the network by configuring the network, the parameters in the first timing mode (such as the target time VALUE) have no reference meaning due to the recalibration of the local clock. At this time, the target time VALUE in the first timing mode is obtained based on the timing duration ΔT in the second timing mode.

[0231] FIG16 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments.

[0232] For example, as shown in FIG16 , when the air conditioning centralized control device 100 is disconnected from the network, the air conditioning centralized control device 100 is configured to execute steps 501 to 505 .

[0233] In step 501, the creation flag is set to the second flag FALSE.

[0234] In step 502, a second timing mode is executed.

[0235] Before the air conditioning centralized control device 100 is connected to the network, the air conditioning centralized control device 100 executes the second timing mode.

[0236] In step 503, it is determined whether the network is connected. If yes, step 502 is executed; if no, step 504 is executed.

[0237] If the air conditioning centralized control device 100 is still disconnected from the network, the second timing mode is still used.

[0238] If the air conditioning centralized control device 100 is currently connected to the network, the first timing mode is adopted to achieve accurate timing.

[0239] In step 504, the timing duration ΔT of the second timing mode is obtained.

[0240] If the network is successfully connected by configuring the network settings, the local clock will be recalibrated. In this case, the values ​​of the parameters in the first timing mode have no reference significance. Therefore, it is necessary to obtain the parameters in the first timing mode, such as the target time VALUE, to execute the first timing mode.

[0241] It should be noted that, since the timing duration ΔT is decreasing and updating as the timing task is running, the timing duration of the second timing mode refers to the updated timing duration ΔT, that is, the duration to be ended.

[0242] In step 505, the target time VALUE of the first timing mode is updated and stored.

[0243] After obtaining the timing duration ΔT of the second timing mode, the air conditioning centralized control device 100 may obtain the target time VALUE in the first timing mode based on the timing duration of the second timing mode.

[0244] FIG17 is another flow chart of steps executed by the air conditioning centralized control device according to some embodiments.

[0245] In some embodiments, as shown in FIG. 17 , step 505 includes steps 5051 to 5054 .

[0246] In step 5051, the timing duration ΔT in the second timing mode is obtained.

[0247] In step 5052, the current system time Tm is calibrated to obtain the calibrated current system time Tm.

[0248] In step 5053, the target time VALUE is determined to be the sum of the current system time Tm and the timing duration ΔT.

[0249] In step 5054, the target time VALUE in the first timing mode is updated and stored.

[0250] The preceding description primarily uses the example of executing scheduled tasks while the air conditioning centralized control device 100 is powered on and in different network states (e.g., disconnected, connected, disconnected and then connected, and connected and then disconnected). Of course, the present disclosure is not limited to this. During the use of the air conditioning centralized control device 100, the air conditioning centralized control device 100 may be powered off and restarted. In this case, it is necessary to determine the duration of the power outage.

[0251] FIG18 is a block diagram of another air conditioning centralized control device according to some embodiments.

[0252] In some embodiments, as shown in FIG18 , the air conditioning centralized control device 100 further includes a target circuit 70 , which is configured to detect when the controller 10 is powered off.

[0253] If the power-off time of the air-conditioning centralized control device 100 exceeds the target duration, the target circuit 70 outputs a first signal; if the power-off time of the air-conditioning centralized control device 100 is within the target duration, the target circuit 70 outputs a second signal. For example, the target duration is 5s. In this case, if the power-off time of the air-conditioning centralized control device 100 exceeds 5s, the target circuit 70 outputs a first signal; if the power-off time of the air-conditioning centralized control device 100 is less than or equal to 5s, the target circuit 70 outputs a second signal. Of course, the target duration may also refer to other times, which can be set according to needs, and the present disclosure does not limit this.

[0254] It should be noted that the power-off duration of the air-conditioning centralized control device 100 can be adjusted according to the parameters of the components in the adjustment target circuit 70 .

[0255] FIG. 19 is a circuit diagram of a target circuit according to some embodiments.

[0256] In some embodiments, as shown in FIG19 , the second target power source VCC2 may be an external power source, or the air conditioning centralized device 100 further includes a power supply that supplies power to the target circuit 70. For example, the power supply is a direct current voltage (DC voltage) +5V.

[0257] As shown in Figure 19, the target circuit 70 includes a first resistor R8, a second resistor R9, a target output terminal PL, and a capacitor C1. When the air conditioning centralized control device 100 is powered off, the capacitor C1 discharges, and within a short period of time, the level output by the target output terminal PL will not immediately drop to zero. In this case, a preset voltage Vset can be set in advance, and the period of time from the start of power failure to the voltage Vp output by the target output terminal PL to the preset voltage Vset is called the first target time (first time period) of the air conditioning centralized control device 100. The first target time corresponds to the voltage Vp output at the target output terminal PL being greater than or equal to the preset voltage Vset (i.e., Vp ≥ Vset).

[0258] The time after the first time period is the second time period. The second time period can be referred to as the second target time of the air conditioning centralized control device 100. During the second target time, the voltage Vp output by the target output terminal PL is less than the preset voltage Vset (i.e., Vp < Vset). Moreover, after the second target time begins, the voltage Vp output by the target output terminal PL starts to decrease from the preset voltage Vset. The size of the first time period is inversely proportional to the size of the preset voltage Vset. That is, the smaller the preset voltage Vset, the longer the first time period, and the larger the preset voltage Vset, the shorter the first time period.

[0259] Therefore, the first time period and the second time period can be adjusted by changing the preset voltage Vset.

[0260] It should be noted that when the air-conditioning centralized control device 100 is powered on again, the air-conditioning centralized control device 100 will immediately collect the voltage Vp output by the target output terminal PL. When the air-conditioning centralized control device 100 determines that the voltage Vp output by the target output terminal PL is greater than or equal to the preset voltage Vset (Vp≥Vset), it indicates that the discharge time of the capacitor C1 is short, and the power-off time of the air-conditioning centralized control device 100 is determined to be within the target duration; when the air-conditioning centralized control device 100 determines that the voltage Vp output by the target output terminal PL is less than the preset voltage Vset (Vp<Vset), it indicates that the discharge time of the capacitor C1 is long, and the power-off time of the air-conditioning centralized control device 100 is determined to exceed the target duration.

[0261] FIG20 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments.

[0262] In some embodiments, as shown in FIG20 , after the air conditioning centralized control device 100 is powered off and restarted, the air conditioning centralized control device 100 is configured to execute steps 601 to 612 .

[0263] In step 601, a scheduled task is read.

[0264] In step 602 , it is determined whether the power outage time is within the target duration. If yes, step 603 is executed; if no, step 608 is executed.

[0265] In step 603, a second timing mode is executed.

[0266] If the power-off time of the air-conditioning centralized control device 100 is within the target duration, after the air-conditioning centralized control device 100 is restarted, the scheduled task continues to run according to the scheduled task stored in the second timing mode.

[0267] In step 604, it is determined whether the network is connected. If yes, step 605 is executed; if no, step 603 is executed.

[0268] The current network status is judged. If the network is still disconnected, the second timing mode is still used.

[0269] If the network is currently connected, the timing mode to be used needs to be determined based on the network status before the power outage to achieve accurate timing.

[0270] In step 605 , it is determined whether the creation flag FLAG of the first timing mode is the first flag TRUE. If yes, step 606 is executed; if no, step 612 is executed.

[0271] Determine the creation flag FLAG to determine the networking status before the power outage.

[0272] If the air conditioning centralized control device 100 is connected to the network when creating the scheduled task, TIME1.FLAG=TRUE; otherwise, TIME1.FLAG=FALSE.

[0273] In step 606, a first timing mode is executed.

[0274] If it is determined that the creation identifier FLAG of the first timing mode is TRUE, it means that the timing task was created when the air conditioning control device 100 was connected to the Internet before the power outage, and the network is connected again after the current power outage and restart. Therefore, in order to make the timing accurate, the first timing mode is adopted and the current system time Tm is calibrated.

[0275] In step 607, the timing duration of the second timing mode is updated and stored.

[0276] In step 608, the scheduled task is paused.

[0277] If the power outage time of the air conditioning centralized control device 100 exceeds the target duration, since the power outage time cannot be determined, the air conditioning centralized control device 100 suspends the scheduled task and waits for the network to be reconnected before resuming the scheduled task.

[0278] It should be noted that no matter the power outage time of the air conditioning centralized control device 100 is within the target duration or exceeds the target duration, the scheduled task can be restored as long as the network is successfully connected.

[0279] In step 609 , it is determined whether the network is connected. If yes, step 610 is executed; if no, step 608 is executed.

[0280] The current networking status of the air-conditioning centralized control device 100 is judged. If the current networking status is still disconnected, the scheduled task is still suspended.

[0281] In step 610, the scheduled task is resumed.

[0282] If the current network status is connected, the scheduled task is resumed. In addition, the timing mode of the scheduled task can be determined according to the network status before the power outage.

[0283] In step 611, it is determined whether the creation flag FLAG of the first timing mode is the first flag TRUE. If "yes", step 606 is executed; if "no", step 608 is executed.

[0284] Determine the creation flag FLAG to determine the networking status before the power outage.

[0285] If you are connected to the Internet when creating a scheduled task, TIME1.FLAG = TRUE, otherwise, TIME1.FLAG = FALSE.

[0286] In this way, when the power-off time of the air-conditioning centralized control device 100 exceeds the target duration, and when the device is restarted, the first timing mode is adopted to run the timing task.

[0287] In step 612, the target time of the first timing mode is updated and stored.

[0288] Based on the remaining duration of the second timing mode, a target time VALUE in the first timing mode is obtained.

[0289] When the voltage outputted by the air-conditioning centralized control device 100 at the output terminal PL of the target circuit 70 is greater than or equal to the preset voltage and the device is restarted, the timing task is run in the first timing mode and the second timing mode.

[0290] FIG21 is another flowchart of steps executed by the air conditioning centralized control device according to some embodiments.

[0291] In some embodiments, as shown in FIG. 21 , step 607 includes steps 6071 to 6073 .

[0292] In step 6071, the duration of the first timing mode to end is obtained.

[0293] When executing the first timing mode, the air conditioning centralized control device 100 needs to update the parameters of the second timing mode, and therefore needs to obtain the timing duration in the second timing mode. The air conditioning centralized control device 100 can obtain the duration of the second timing mode by obtaining the duration to be ended of the first timing mode.

[0294] In step 6072, the timing duration in the second timing mode is updated using the duration to be ended.

[0295] In step 6073, the updated timing duration is stored.

[0296] By adopting the first timing mode and the second timing mode during the triggering of the timing task, the timing requirements in various application scenarios can be met, the stability of the timing task can be increased, and the timing task can be accurately executed.

[0297] Through the timing method of the air-conditioning centralized control device 100 provided in some embodiments of the present disclosure, the network status and the current network status for creating a scheduled task are determined, and a first timing mode and a second timing mode are designed to be used in combination, so that the air-conditioning centralized control device 100 can achieve reliable timing under different network disconnection conditions, is less affected by abnormal network disconnection conditions, and has higher stability.

[0298] Some embodiments of the present disclosure also provide a timing method for the air conditioning centralized control device 100 .

[0299] In some embodiments, the timing method of the air conditioning central control device 100 includes: the air conditioning central control device 100 creates a timing task and enables a first timing mode and a second timing mode; the parameters corresponding to the first timing mode include a creation identifier and a target time, the creation identifier corresponds to the networking status of the air conditioning central control device 100, and the target time is configured to trigger the timing task; the parameters corresponding to the second timing mode include a timing duration.

[0300] If the air-conditioning centralized control device 100 is disconnected from the network after creating a scheduled task while connected to the network, the air-conditioning centralized control device 100 executes the first timing mode when connected to the network, and executes the second timing mode after disconnecting from the network; if the air-conditioning centralized control device 100 is connected to the network after creating a scheduled task while disconnected from the network, the air-conditioning centralized control device 100 executes the second timing mode when disconnected from the network, and executes the first timing mode after connecting to the network, the target time in the first timing mode executed by the air-conditioning centralized control device 100 after connecting to the network is obtained based on the timing duration; if during the scheduled task, the air-conditioning centralized control device 100 is continuously connected to the network or continuously disconnected from the network, the air-conditioning centralized control device 100 executes the first timing mode or the second timing mode; the scheduled task period is the time range from the creation of the scheduled task to the triggering of the execution of the scheduled task.

[0301] After the scheduled task is completed, the air conditioning centralized control device 100 clears the parameters corresponding to the first timing mode and the second timing mode respectively.

[0302] It should be noted that the specific steps of the timing method of the air conditioning centralized control device 100 can be found in the description of the steps executed by the air conditioning centralized control device 100 above, and will not be repeated here. It should be noted that some embodiments of the present disclosure are not limited to the order of the steps described above. Those skilled in the art may change the order of the steps described above according to actual needs, or may omit one or more of the steps described above, or may add one or more steps to the steps described above.

[0303] Those skilled in the art will understand that the scope of the present invention is not limited to the above specific embodiments, and that certain elements of the embodiments may be modified and replaced without departing from the spirit of the present application. The scope of the present application is limited by the appended claims.

Claims

1. An air conditioning centralized control device, comprising: A communication device comprising a first communication interface, wherein the communication device is configured to connect to a network; as well as a controller comprising a second communication interface, wherein the controller and the communication device are communicatively connected via the first communication interface and the second communication interface; After the air conditioning centralized control device is powered on and initialized, the controller is configured to: Controlling the communication device to stop working; Determining a required data transmission rate based on a current service type of the air conditioning centralized control device, and configuring a first rate parameter of the first communication interface; sending a switching rate signal to the communication device; as well as Restarting the communication device; After receiving the switching rate signal, the communication device is further configured to: configuring a second rate parameter of the second communication interface to complete switching between a first data transmission rate and a second data transmission rate between the controller and the communication device; The switching rate signal represents a rate parameter corresponding to the configuration of the communication device, the second rate parameter corresponds to the first rate parameter, and the first data transmission rate is lower than the second data transmission rate.

2. The air conditioning centralized control device according to claim 1, wherein: The controller is further configured to: Based on the current business type, a configuration file corresponding to the current business type is stored to restore the current business type after the air conditioning centralized control device is abnormal or restarted.

3. The air conditioning centralized control device according to claim 1 or 2, wherein: The current service type includes a first service type and a second service type, the first service type corresponds to a first data transmission rate, and the second service type corresponds to a second data transmission rate; The controller is further configured to: If the current service type is the first service type, determining that the required data transmission rate is a first data transmission rate, and configuring the first rate parameter to be a first preset parameter; the first preset parameter corresponds to the first data transmission rate; as well as If the current service type is the second service type, the required data transmission rate is determined to be the second data transmission rate, and the first rate parameter is configured as a second preset parameter; the second preset parameter corresponds to the second data transmission rate.

4. The air conditioning centralized control device according to claim 3, wherein: The switching rate signal includes a first switching rate signal and a second switching rate signal, the first switching rate signal corresponds to the first preset parameter, the second switching rate signal corresponds to the second preset parameter, the first switching rate signal is one of a high level and a low level, and the second switching rate signal is the other of a high level and a low level.

5. The air conditioning centralized control device according to any one of claims 1 to 4, wherein: The controller includes a first interface, the communication device includes a reset pin, and the first interface is connected to the reset pin; When the switching rate signal is issued, the controller is further configured to output a reset signal to reset the communication device and restart the communication device. 6 . The air conditioning centralized control device according to claim 5 , wherein the controller is further configured to continuously output the reset signal to control the communication device to stop working.

7. The air conditioning centralized control device according to any one of claims 1 to 4, wherein: The controller includes a first interface, the communication device also includes a power supply end, and the air conditioning centralized control device also includes: a power control circuit comprising a control terminal, a power circuit, and a target power supply, wherein the control terminal is connected to the first interface, the target power supply is connected to the input terminal of the power circuit, the output terminal of the power circuit is connected to the power supply terminal of the communication device, and the target power supply is configured to supply power to the communication device; The controller is further configured to control the connection or disconnection of the power circuit so that the target power supply supplies power to the communication device or stops supplying power.

8. The air conditioning centralized control device according to claim 7, wherein: The controller is further configured to output a signal through the first interface to disconnect the power circuit and stop the communication device from working; When the controller outputs the switching rate signal, the controller is further configured to output a signal through the first interface to connect the power circuit to power on and restart the communication device.

9. The air conditioning centralized control device according to claim 7, wherein: The power control circuit includes: A switch is provided in the power supply circuit, the switch includes a sub-control terminal, the sub-control terminal is connected to the first interface, and the control terminal of the power supply control circuit is the sub-control terminal.

10. The air conditioning centralized control device according to any one of claims 1 to 9, wherein: The controller further includes a second interface, and the communication device further includes a third interface; the third interface is connected to the second interface; The controller is further configured to send the switching rate signal to the third interface through the second interface.

11. The air conditioning centralized control device according to any one of claims 1 to 10, wherein: The air conditioning centralized control device is configured as follows: Create a scheduled task and enable the first and second scheduling modes; the parameters corresponding to the first scheduling mode include a creation identifier and a target time, the creation identifier corresponds to the network status of the air conditioning centralized control device, and the target time is configured to trigger the scheduled task; the parameters corresponding to the second scheduling mode include the timing duration; If a scheduled task is created while connected to the Internet and then disconnected, the first scheduling mode will be executed when the network is connected, and the second scheduling mode will be executed after the network is disconnected; If a scheduled task is created while disconnected from the network and then connected to the network, the second scheduling mode is executed while disconnected, and the first scheduling mode is executed after connecting to the network, and the target time in the first scheduling mode executed after connecting to the network is obtained based on the scheduling duration; If the network is continuously connected or disconnected during the scheduled task, the first timing mode or the second timing mode is executed; the scheduled task period is the time range from when the scheduled task is created to when the scheduled task is triggered; as well as After the scheduled task is executed, the parameters corresponding to the first timing mode and the second timing mode are cleared.

12. The air conditioning centralized control device according to claim 11, wherein: When the air conditioning centralized control device is connected to the network, the air conditioning centralized control device is further configured to: Gets the Coordinated Universal Time and calibrates the current system time.

13. The air conditioning centralized control device according to claim 11 or 12, wherein: The current system time is configured to be measured with second-level accuracy; The air conditioning centralized control device is further configured to convert the timing duration according to second-level accuracy.

14. The air conditioning centralized control device according to any one of claims 11 to 13, wherein: In the second timing mode, the air conditioning centralized control device is further configured to: The timing duration is updated and stored.

15. The air conditioning centralized control device according to any one of claims 11 to 14, wherein the scheduled tasks include: A remote scheduled task, wherein the remote scheduled task is configured to be synchronized to the air conditioning centralized control device; or Local scheduled tasks.

16. The air conditioning centralized control device according to any one of claims 11 to 15, wherein: When the scheduled task is created while disconnected from the network and then connected to the network, the air conditioning centralized control device is configured to: After connecting to the network, obtaining the timing duration in the second timing mode; Calibrate the current system time and obtain the calibrated current system time; Determine the target time as the sum of the current system time and the timing duration; The target time corresponding to the first timing mode is updated and stored.

17. The air conditioning centralized control device according to any one of claims 11 to 16, further comprising: a target circuit, the target circuit being configured to: output a first signal if the power-off time of the air-conditioning centralized control device exceeds a target time length; If the power-off time of the air-conditioning centralized control device is within the target duration, outputting a second signal; After the air conditioning centralized control device is powered off and restarted, the air conditioning centralized control device is configured to: Read the scheduled task; When the power-off time of the air-conditioning centralized control device is within the target duration, executing the second timing mode; If the network is connected and the creation identifier of the first timing mode is the first identifier, the first timing mode is executed. formula, updating and storing the timing duration of the second timing mode; If the network is established and the creation identifier of the first timing mode is the second identifier, updating and storing the target time of the first timing mode; If the network is disconnected, the second timing mode is executed; When the power outage time of the air conditioning centralized control device exceeds the target duration, suspending the scheduled task; If connected to the network, resume the scheduled task; After resuming the timed task, if the creation identifier of the first timing mode is the first identifier, executing the first timing mode, and updating and storing the timing duration of the second timing mode; After resuming the scheduled task, if the creation identifier of the first timing mode is the second identifier, pausing the scheduled task; If the network is disconnected, the scheduled task is suspended.

18. The air conditioning centralized control device according to claim 17, wherein: The air conditioning centralized control device meets the following requirements: When updating and storing the timing duration of the second timing mode, the air conditioning centralized control device is further configured to: Obtaining the duration of the first timing mode to be ended; Updating the timing duration in the second timing mode by using the to-be-ended duration; The updated timing duration is stored.

19. The air conditioning centralized control device according to claim 17, wherein: The air conditioning centralized control device meets the following requirements: When updating and storing the target time in the first timing mode, the air conditioning centralized control device is further configured to: Obtaining the duration to be ended in the second timing mode; Calibrate the current system time and obtain the calibrated current system time; Determine the target time as the sum of the current system time and the duration to be ended; The target time is stored.

20. The air conditioning centralized control device according to any one of claims 11 to 19, wherein: The parameters in the first timing mode further include a first running state identifier, wherein the first running state identifier is configured to identify whether the first timing mode is running; and The second timing mode parameters further include a second running state identifier, and the second running state identifier is configured to identify whether the second timing mode is running.