A communication method and device of a multi-split air conditioner, electronic equipment and storage medium
By connecting the controller, indoor unit, and outdoor unit in a series bus within a multi-split air conditioning system, and using a preset address range to calculate time intervals and allocate virtual addresses, the problems of resource waste and communication complexity are solved, achieving stable and efficient communication.
Patent Information
- Application Number
- CN202310455582.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2043-04-25
AI Technical Summary
In existing multi-split air conditioning systems, the RS485 bus connection method leads to resource waste and communication complexity, and does not consider the offline situation of the slave unit, resulting in excessively long communication time or failure.
The controller, indoor unit, and outdoor unit are connected in series via a single bus. The master unit communicates with the slave unit. The first time interval is calculated using a preset address range to confirm the online status. The second time interval is calculated based on the online status to ensure stable communication. Virtual addresses are also assigned to newly added slave units.
It saves resources, simplifies wiring, improves communication stability, avoids waiting time caused by slave device offline, and ensures communication efficiency.
Smart Images

Figure CN116465057B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the communication technology field of air conditioners, in particular to a communication method and device of a multi-split air conditioner, an electronic device and a storage medium. BACKGROUND
[0002] In a multi-split air conditioner system, it is generally composed of a controller, an indoor unit and an outdoor unit. Usually, the controller and the outdoor unit are connected through an RS485 bus, the controller and the indoor unit are also connected through an RS485 bus, and the outdoor unit and the indoor unit are connected through an RS485 bus. This connection mode causes great waste of resources. On the one hand, it requires a large amount of UATR resources of the control chip, resulting in great limitations in the selection of the control chip. On the other hand, it causes a large number of RS485 chips to be used, making the engineering installation wiring complex.
[0003] In addition, the above connection mode causes the indoor unit and the outdoor unit to use a communication mode of polling each other or a communication mode of broadcast response. In this process, if the communication time reserved for the slave is too long, the entire communication time will be too long. If the communication time reserved for the slave is too short, communication failure is likely to occur.
[0004] To this end, the Chinese invention patent with the application number 201610235375.5 proposes a multi-split air conditioner system and a communication method thereof. It discloses that in the process of sending response information from the indoor unit to the outdoor unit, the indoor units that do not send response information in the multiple indoor units receive the response information sent by other slaves on the communication bus in real time, obtain the address of the indoor unit that sends the response information, and adjust the response time point of the indoor unit that does not send response information according to the response end time point of the response information. Specifically, the indoor unit that does not send response information obtains the address difference between itself and the address of the indoor unit that sends the current response information, and adjusts the response time point of the indoor unit that does not send response information according to the address difference and the response end time point of the current response information.
[0005] However, in the above prior art solution, the response time point of the slave is only corrected by the address difference, without considering the offline situation of the slave. Moreover, the slave that does not send response information needs to constantly obtain the current response information and the address of the corresponding slave from the bus, which means that the more the address of the slave is, the more times the slave needs to obtain the information from the bus, which will occupy too much computing resources.
[0006] To solve the above problems, the present application proposes an improved solution. SUMMARY
[0007] The application aims to provide a multi-connected air conditioner communication method, device, electronic equipment and storage medium, which has the advantages of saving resources and stable communication.
[0008] In a first aspect, the application provides a multi-connected air conditioner communication method for controlling indoor units and outdoor units of an air conditioning system. A controller in the air conditioning system is connected in series with the indoor units and the outdoor units through a bus. The indoor unit or the outdoor unit directly connected with the controller is taken as a master, and the remaining indoor units and outdoor units are taken as slaves. The technical solution is as follows:
[0009] The method comprises the following steps:
[0010] Obtaining a preset indoor unit address range and an outdoor unit address range;
[0011] Calculating a first time interval according to the preset indoor unit address range and the outdoor unit address range. The master communicates with the slaves according to the first time interval and obtains first data information of all online slaves. The first data information at least comprises online status information of the slaves.
[0012] According to the online status information in the first data information, a second time interval is calculated. The master communicates with all online slaves according to the second time interval.
[0013] The controller, the indoor units and the outdoor units are connected in series through a bus. First, the problem of resource waste and complex wiring caused by excessive use of the bus is avoided. The indoor unit or the outdoor unit directly connected with the controller is taken as a master, and the remaining indoor units and outdoor units are taken as slaves. The controller sends instructions to the master, and then controls the indoor units and the outdoor units through the communication between the master and the slaves. The first time interval can be calculated by obtaining the preset indoor unit address range and the outdoor unit address range. The master communicates with the slaves according to the first time interval. The indoor unit address range and the outdoor unit address range usually include all the slaves. Each address usually represents a slave, and each slave is usually preset with a communication time. Therefore, the first time interval calculated according to the indoor unit address range and the outdoor unit address range can include the communication time of all the slaves. The master first communicates with the slaves according to the first time interval, i.e., it is first assumed that all the slaves in the indoor unit address range and the outdoor unit address range are online and communicate with the master. The master first communicates with the slaves according to the first time interval to confirm the online status information of the slaves. According to the online status information, the online status of the slaves is confirmed. Then, the second time interval is calculated according to the online status information. The second time interval is the sum of the communication time of all online slaves and the master. The master communicates with the slaves according to the second time interval. In this way, the master can avoid waiting for unnecessary time due to the offline of part of the slaves. Therefore, the application has the advantages of saving resources and stable communication.
[0014] Further, in the present application, the step of communicating with the slaves and obtaining the first data information of all the online slaves in the first time interval comprises:
[0015] sending data acquisition information to all the slaves, and receiving the first data information returned by the online slaves according to the data acquisition information in sequence;
[0016] after the first time interval, sending all the obtained first data information to each online slave respectively;
[0017] the first data information further comprises at least address information of the slaves;
[0018] after the step of sending all the obtained first data information to each online slave respectively after the first time interval, the present application further comprises:
[0019] controlling each online slave to calculate its own communication sequence according to the online status information and the address information in all the first data information.
[0020] sending all the first data information to all the online slaves at one time, so that the online slaves can calculate their own reply time nodes according to their own address information and the address information of other online slaves; each online slave can know the online status information and the address information of other online slaves, and thus can calculate the sequence of its own address information in the address information of all the online slaves, so as to determine its own reply time node, and further skip the offline slaves to avoid unnecessary waiting time of the master in the communication process.
[0021] Further, in the present application, the step of controlling each online slave to calculate its own communication sequence according to the online status information and the address information in all the first data information comprises:
[0022] controlling each online slave with the address information to calculate its own communication sequence according to the online status information and the address information in all the first data information.
[0023] Further, in the present application, it further comprises:
[0024] finding the online slave with the address information being empty according to the first data information;
[0025] address allocation is performed on the online slave with the address information being empty;
[0026] The slave machines after address allocation calculate their respective communication sequences according to the first data information.
[0027] It can be ensured that the newly added slave machines with empty address information can communicate stably.
[0028] Further, in the present application, the step of allocating addresses to the online slave machines with empty address information comprises:
[0029] sending an address allocation instruction to the online slave machines with empty address information, so that the online slave machines with empty address information generate virtual addresses according to the address allocation instruction;
[0030] receiving feedback information sent by the slave machines after generating the virtual addresses;
[0031] generating a virtual address table according to the feedback information, and sending the virtual address table to the slave machines generating the virtual addresses, so that the slave machines generating the virtual addresses determine the virtual addresses;
[0032] receiving the determined virtual addresses;
[0033] allocating actual addresses to the slave machines generating the virtual addresses according to the determined virtual addresses.
[0034] Further, in the present application, it further comprises:
[0035] obtaining a preset range of the virtual addresses;
[0036] calculating a third time interval according to the preset range of the virtual addresses;
[0037] communicating according to the third time interval and the online slave machines with empty address information.
[0038] Further, in the present application, the step of allocating actual addresses to the slave machines generating the virtual addresses according to the determined virtual addresses comprises:
[0039] sequentially and individually accessing each of the slave machines generating the virtual addresses according to the determined virtual addresses, and allocating actual addresses to the slave machines generating the virtual addresses.
[0040] In a second aspect, the present application further provides a control device of a multi-split air conditioner, which is used for controlling indoor machines and outdoor machines of an air conditioning system. A controller in the air conditioning system is connected in series with the indoor machines and the outdoor machines through a bus, and the indoor machine or the outdoor machine directly connected with the controller is taken as a master machine, and the remaining indoor machines and outdoor machines are taken as slave machines. The device comprises:
[0041] The acquisition module is configured to acquire a preset indoor unit address range and an outdoor unit address range.
[0042] The first processing module is configured to calculate a first time interval according to the preset indoor unit address range and the outdoor unit address range, and communicate with the slave units and obtain first data information of all online slave units at the first time interval, wherein the first data information at least includes online status information of the slave units.
[0043] The second processing module is configured to calculate a second time interval according to the online status information in the first data information, and communicate with all online slave units at the second time interval.
[0044] In a third aspect, the present application further provides an electronic device, including a processor and a memory, wherein the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the steps in the above method are executed.
[0045] In a fourth aspect, the present application further provides a storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps in the above method are executed.
[0046] As can be seen from the above, the communication method, device, electronic device and storage medium of the multi-connected unit provided by the present application use one bus to connect the controller, the indoor unit and the outdoor unit in series, which avoids the problems of resource waste and complex wiring caused by excessive use of buses, and the indoor unit or the outdoor unit directly connected with the controller is taken as a master, and the remaining indoor units and outdoor units are taken as slave units, the controller sends instructions to the master, and then controls the indoor units and the outdoor units through communication between the master and the slave units. The first time interval can be calculated by acquiring the preset indoor unit address range and the outdoor unit address range, the master communicates with the slave units at the first time interval, wherein the indoor unit address range and the outdoor unit address range usually include all slave units, each address usually represents a slave unit, and each slave unit is usually preset with a communication time. Therefore, the first time interval calculated according to the indoor unit address range and the outdoor unit address range can include the communication time of all slave units, the master first communicates with the slave units at the first time interval, i.e., it is first assumed that all slave units in the indoor unit address range and the outdoor unit address range are online and communicate with the master, the master first communicates with the slave units at the first time interval to confirm the online status information of the slave units, the online status information of the slave units is confirmed according to the online status information, the second time interval is then calculated according to the online status information, the second time interval is the sum of the communication time of all online slave units and the master, and the master communicates with the slave units at the second time interval. In this way, the master can avoid waiting for unnecessary time due to the offline of part of the slave units, and therefore, the scheme provided by the present application has the beneficial effects of saving resources and stable communication. BRIEF DESCRIPTION OF DRAWINGS
[0047] Figure 1 A flow chart of a communication method of a multi-connected air conditioner provided in the present application.
[0048] Figure 2 A structural schematic diagram of a control device of a multi-connected air conditioner provided in the present application.
[0049] Figure 3 A structural schematic diagram of an electronic device provided in the present application.
[0050] In the drawings: 210, acquisition module; 220, first processing module; 230, second processing module; 310, processor; 320, memory. DETAILED DESCRIPTION
[0051] The technical solutions in the present application will be described clearly and completely below in conjunction with the drawings in the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0052] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0053] Please refer to Figure 1 A communication method of a multi-connected air conditioner for controlling indoor units and outdoor units of an air conditioning system, wherein a controller in the air conditioning system is connected in series with the indoor units and the outdoor units through a bus, and the indoor unit or the outdoor unit directly connected with the controller is taken as a master, and the remaining indoor units and outdoor units are taken as slaves, and the steps of the method include:
[0054] S110, acquiring a preset indoor unit address range and an outdoor unit address range;
[0055] S120, calculating a first time interval according to the preset indoor unit address range and the outdoor unit address range, communicating with the slaves in the first time interval and obtaining first data information of all online slaves, the first data information at least including online status information of the slaves;
[0056] S130, calculating a second time interval according to the online status information in the first data information, and communicating with all online slaves in the second time interval.
[0057] In the embodiment, the bus is an RS485 bus.
[0058] Generally, the range of the internal machine addresses can be greater than the number of the internal machines, or can correspond to the number of the internal machines, and the range of the external machine addresses can be greater than the number of the external machines, or can correspond to the number of the external machines.
[0059] The controller, the internal machines and the external machines are connected in series by using one bus, which avoids the problems of resource waste and complex wiring caused by using too many buses. The internal machine or the external machine directly connected with the controller is regarded as a master, and the remaining internal machines and external machines are regarded as slaves. The controller sends instructions to the master, and then controls the internal machines and the external machines through the communication between the master and the slaves. The first time interval can be calculated by obtaining the preset range of the internal machine addresses and the range of the external machine addresses. The master communicates with the slaves in the first time interval. Generally, the range of the internal machine addresses and the range of the external machine addresses include all the slaves. Each address represents a slave, and each slave is preset with a communication time. Therefore, the first time interval calculated according to the range of the internal machine addresses and the range of the external machine addresses can include the communication time of all the slaves. The master first communicates with the slaves in the first time interval, that is, it is assumed that all the slaves in the range of the internal machine addresses and the range of the external machine addresses are online and communicate with the master. In this case, the calculated first time interval will not be too short to cause communication failure, but it may be too long. Therefore, in the scheme of the present application, the first communication is performed in the first time interval. Specifically, the master first communicates with the slaves in the first time interval to confirm the online status information of the slaves, and then calculates a second time interval according to the online status information. The second time interval is the sum of the communication times of all the online slaves and the master. The master communicates with the slaves in the second time interval, which can avoid the situation that the master waits for unnecessary time because some slaves are offline. Therefore, the scheme provided by the present application has the beneficial effects of saving resources and stable communication.
[0060] Further, in some embodiments, the step of communicating with the slaves in the first time interval and obtaining the first data information of all the online slaves comprises:
[0061] sending data acquisition information to all the slaves, and receiving the first data information returned by the online slaves according to the data acquisition information in sequence;
[0062] after the first time interval, sending all the obtained first data information to each online slave.
[0063] The first data information further includes address information of the slave;
[0064] After the first time interval, the step of sending all the first data information to each online slave further includes:
[0065] The online slave calculates the communication sequence according to the online status information and the address information in all the first data information.
[0066] In the communication process, the master first confirms the online status of the slave, that is, the master sends data acquisition information to all the slaves, and the online slave sends the first data information to the master after receiving the data acquisition information sent by the master. The first data information at least includes the online status information of whether the slave is online, in addition, the first data information can also include model data, running information, etc. The master can obtain the online status of the slave according to the first data information, and can also determine the model, number, startup mode, capacity demand, running capacity, etc. of the entire system. After receiving the first data information sent by each slave, the master sends all the first data information to each slave, specifically, the online status information and the address information in the first data information are sent to each online slave, the purpose of which is to let each online slave calculate the time node of its own reply according to the address information and the online status information.
[0067] In the scheme recorded in the Chinese invention patent with the application number 201610235375.5, the address difference is only used to correct the reply time point of the slave, and the offline situation of the slave is not considered. If there is an offline slave between the address differences, the slave which does not send the reply information will wait for unnecessary time, and the slave which does not send the reply information needs to constantly obtain the current reply information and the address of the corresponding slave from the bus, which means that the more the slave is located at the rear of the address, the more times it needs to obtain the information on the bus.
[0068] The present application sends all the first data information to all the online slaves after obtaining all the first data information, so that the online slave can calculate the reply time node of itself according to the address information of itself and the address information of other online slaves. Each online slave can obtain the online status information and the address information of other online slaves, so as to calculate the sequence of the address information of itself in the address information of all the online slaves, determine the reply time node of itself, and skip the offline slave to avoid the master waiting for unnecessary time in the communication process.
[0069] Further, in some embodiments, the step of controlling each online slave to calculate its own communication sequence according to the online status information and the address information in the first data information comprises:
[0070] controlling each online slave with address information to calculate its own communication sequence according to the online status information and the address information in the first data information.
[0071] Generally, each slave is assigned an address in advance, i.e., each slave should have address information, and when each slave has address information, the above-mentioned solution can be applied, i.e., controlling each online slave with address information to calculate its own communication sequence according to the online status information and the address information in the first data information. However, in actual application, new slaves can be added to the existing multi-connected air conditioning system, and the situation can occur that a slave is not assigned an address, in which case the address information of the slave not assigned an address is empty.
[0072] Therefore, in some other embodiments, the preset indoor unit address range can be greater than the number of indoor units, or the preset outdoor unit address range can be greater than the number of outdoor units, so as to leave communication time for the slave not assigned an address and the host.
[0073] To this end, further in some embodiments, the method further comprises:
[0074] finding a slave online and with empty address information according to the first data information;
[0075] addressing the slave online and with empty address information;
[0076] controlling the slave addressed to calculate its own communication sequence according to the first data information.
[0077] Through the above technical solution, the slave online and with empty address information is addressed, so that it can calculate its own communication sequence.
[0078] Further, in some embodiments, the step of addressing the slave online and with empty address information comprises:
[0079] sending an address assignment instruction to the slave online and with empty address information, so that the slave online and with empty address information generates a virtual address according to the address assignment instruction;
[0080] receiving feedback information sent by the slave after generating the virtual address;
[0081] According to the feedback information, a virtual address table is generated and sent to the slave generating the virtual address, so that the slave generating the virtual address determines the virtual address;
[0082] The determined virtual address is received;
[0083] According to the determined virtual address, the slave generating the virtual address is allocated with an actual address.
[0084] In the process of communication between the master and the slave generating the virtual address, the master can first obtain a preset virtual address range, calculate a third time interval according to the preset virtual address range, and communicate with the online slave with empty address information according to the third time interval.
[0085] When the slave generates the virtual address, feedback information is sent to the master, and the master generates a virtual address table after receiving the feedback information, and sends an instruction to the master with the virtual address according to the virtual address table. Specifically, the virtual address table is sent to the slave with the virtual address. After receiving the virtual address table, if the virtual address of the slave itself has been identified by the master and exists in the virtual address table, the virtual address remains unchanged. If the virtual address of the slave itself has not been identified by the master and does not exist in the virtual address table, the virtual address is regenerated, and the empty address not in the virtual address table is confirmed, and the bus data is replied, which can be repeated multiple times.
[0086] The master determines the virtual address of the slave according to the above steps, and then individually accesses each virtual address and allocates an actual address. Specifically, the actual address table can be used to allocate from small to large, and then the actual address table and the preset internal master address range and external master address range are updated synchronously.
[0087] In the process of communication between the master and the slave generating the virtual address, the master can first obtain a preset virtual address range, calculate a third time interval according to the preset virtual address range, and communicate with the online slave with empty address information according to the third time interval.
[0088] Through the above scheme, when there are multiple slaves generating virtual addresses, the communication stability between the master and the slave can be ensured.
[0089] In addition, the controller and the timer in the multi-connected air conditioning system can also be used as the slave, and also have a preset address range.
[0090] In some specific embodiments, the preset external master address can be 240-244, and the external master with the address 240 is used as the master of the bus, and the external masters with the addresses 241-244 are used as the slaves.
[0091] The host is responsible for the starting point of the communication bus timing, controls the allocation of the whole communication timing, receives the model data and operation information of the slave (external machine), and is also used to determine the whole system capacity, the number of external machines, and the allocation of operation capacity. The model data and operation information of the slave (internal machine) are received, and the model, number, start mode, and capacity demand of the whole system internal machine are determined. The model information of the slave (controller, timer) can also be received, and special control (without receiving the control information of the controller to the internal machine) is determined. The number of online controllers in the whole system is determined.
[0092] During the first power-on communication, the host is used to find the devices on the bus, all slaves are first assumed to be online, the communication time of all slaves is reserved for communication, and then the real online slaves are confirmed. The reserved communication time is recalculated according to the real online slaves to ensure a short communication period and high bus utilization efficiency.
[0093] The external machine with the address of 241-244 as a slave confirms whether its address information is recognized by the host after receiving the communication signal of the host, calculates the time node of reply according to its own address information and the number and corresponding address information of other online slaves, and then sends its various operation data to the host.
[0094] The internal machine with the address of 0-99 as a slave confirms whether its address information is recognized by the host after receiving the communication signal of the host, calculates the time node of reply according to its own address information and the number and corresponding address information of other online slaves, and then sends its various operation data to the host. In addition, as a slave, it can also judge its own operation demand according to the instruction of the host, such as operation mode, defrosting, oil return, etc. In addition, it can also receive various control instructions, which can be identified by the address table information in the data frame whether to control itself. If so, the control data is received and changed, and if not, the received data is abandoned.
[0095] The controller, timer, WIFI board, etc. can also be used as a slave, and its preset address range can be 208-223. After receiving the communication signal of the host, it confirms whether its address is recognized by the host, calculates the time node of reply according to its own address information and the number and corresponding address information of other online slaves, and sends the information to be controlled to the bus. In addition, it can also receive host information for query display, and can receive slave information for control interface display and query display. If control operation is needed, the control command is sent to the bus, such as controlling start, shutdown, operation mode, wind speed, function output, timing, etc. If there is no control operation, it can report to the host that it is online.
[0096] In some specific embodiments, the external machine address table is:
[0097]
[0098] The internal machine address table is:
[0099]
[0100] The online address table of the controller, the timer, the WiFi control board, etc. is:
[0101]
[0102] The controller, the timer, the WiFi control board send control command address table example:
[0103] The control external machine address table is:
[0104]
[0105] The control internal machine address table is:
[0106]
[0107] Through the control of the above method, the communication data packet length can be saved, and online data interaction can be realized with very small data amount. One frame of data can realize single machine control, all control, and grouping control of the internal and external machines by user operation.
[0108] In a second aspect, referring to Figure 2 In the present application, a control device of a multi-connected machine is also provided, which is used for controlling internal and external machines of an air conditioning system. A controller in the air conditioning system is connected in series with the internal and external machines through a bus, and the internal or external machine directly connected with the controller is taken as a master machine, and the remaining internal and external machines are taken as slave machines. The device comprises:
[0109] The acquisition module 210 is used for acquiring a preset internal machine address range and an external machine address range.
[0110] The first processing module 220 is used for calculating a first time interval according to the preset internal machine address range and the external machine address range, communicating with the slave machines in the first time interval, and obtaining first data information of all online slave machines. The first data information at least comprises online status information of the slave machines.
[0111] The second processing module 230 is used for calculating a second time interval according to the online status information in the first data information, and communicating with all online slave machines in the second time interval.
[0112] The controller, the internal machine and the external machine are connected in series by using a bus, the problems of resource waste and complex wiring caused by excessive use of the bus are avoided, the internal machine or the external machine directly connected with the controller is taken as a master machine, the remaining internal machines and external machines are taken as slave machines, the controller sends a command to the master machine, and then the control of the internal machines and the external machines is realized through the communication between the master machine and the slave machines, the first time interval can be calculated by obtaining the preset internal machine address range and the external machine address range, the master machine communicates with the slave machines at the first time interval, the internal machine address range and the external machine address range usually include all the slave machines, each address usually represents a slave machine, and each slave machine is preset with a communication time, therefore, the first time interval calculated according to the internal machine address range and the external machine address range can include the communication time of all the slave machines, the master machine first communicates with the slave machines at the first time interval, that is, it is first assumed that all the slave machines in the internal machine address range and the external machine address range are online and communicate with the master machine, in this case, the first time interval calculated will not be too short to cause a communication failure, but the first time interval may be too long, therefore, in the scheme of the application, the first communication is performed at the first time interval, specifically, the master machine first communicates with the slave machines at the first time interval to confirm the online status information of the slave machines, the online status of the slave machines is confirmed according to the online status information, and then the second time interval is calculated according to the online status information, the second time interval is the sum of the communication time of all the online slave machines and the master machine, the master machine communicates with the slave machines at the second time interval, so that the master machine can avoid waiting for unnecessary time caused by the offline of part of the slave machines, therefore, the scheme provided by the application has the beneficial effects of saving resources and stable communication.
[0113] In some preferred embodiments, the control device of the multi-connected air conditioner can perform any step of the above method.
[0114] In a third aspect, referring to Figure 3 The application further provides an electronic device including a processor 310 and a memory 320, the memory 320 storing computer readable instructions, when the computer readable instructions are executed by the processor 310, the steps in any of the above methods are performed.
[0115] According to the technical solution, the processor 310 and the memory 320 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanism (not shown), and the memory 320 stores computer readable instructions executable by the processor 310. When the electronic device is running, the processor 310 executes the computer readable instructions to execute the method in any optional implementation manner of the above-mentioned embodiments to achieve the following functions: obtaining a preset internal machine address range and an external machine address range; calculating a first time interval according to the preset internal machine address range and the external machine address range, communicating with the slave machines in the first time interval and obtaining first data information of all online slave machines, the first data information at least including online status information of the slave machines; and calculating a second time interval according to the online status information in the first data information, and communicating with all online slave machines in the second time interval.
[0116] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to run the steps in any method of the above.
[0117] According to the technical solution, the computer program is executed by the processor to execute the method in any optional implementation manner of the above-mentioned embodiments to achieve the following functions: obtaining a preset internal machine address range and an external machine address range; calculating a first time interval according to the preset internal machine address range and the external machine address range, communicating with the slave machines in the first time interval and obtaining first data information of all online slave machines, the first data information at least including online status information of the slave machines; and calculating a second time interval according to the online status information in the first data information, and communicating with all online slave machines in the second time interval.
[0118] The computer readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0119] In the embodiments of the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. The embodiments described above are merely exemplary, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0120] In addition, the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, and can be located in one place or distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments of the present application.
[0121] In addition, the functional modules in each of the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0122] The above only describes the embodiments of the present application and is not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A communication method of a multi VRF, for controlling an indoor unit and an outdoor unit of an air conditioning system, characterized in that, The controller in the air conditioning system is connected in series with the indoor units and the outdoor units through a bus, and the indoor unit or the outdoor unit directly connected with the controller is taken as a master, and the rest of the indoor units and the outdoor units are taken as slaves, and the steps of the method comprise: acquiring a preset indoor unit address range and an outdoor unit address range; calculating a first time interval according to the preset indoor unit address range and the outdoor unit address range, sending data acquisition information to all the slaves, and receiving first data information returned by the slaves according to the data acquisition information in sequence, after the first time interval, sending all the first data information to each online slave, the first data information at least comprising online state information and address information of the slave, and then controlling each online slave to calculate a respective communication order according to the online state information and the address information in all the first data information; when there is no online slave with empty address information in the first data information, calculating a second time interval according to the online state information in the first data information, and communicating all the online slaves according to the respective communication orders with the second time interval; when there is an online slave with empty address information in the first data information, performing address allocation on the online slave with empty address information, so that the slave with empty address information calculates a third time interval and a respective communication order according to a preset virtual address range, and communicates with the online slave with empty address information according to the respective communication order with the third time interval.
2. The communication method of a multi-split system according to claim 1, wherein, The step of performing address allocation on the online slave with empty address information comprises: sending an address allocation instruction to the online slave with empty address information, so that the online slave with empty address information generates a virtual address according to the address allocation instruction; receiving feedback information sent by the slave after generating the virtual address; generating a virtual address table according to the feedback information, and sending the virtual address table to the slave generating the virtual address, so that the slave generating the virtual address determines the virtual address; receiving the determined virtual address; allocating an actual address to the slave generating the virtual address according to the determined virtual address.
3. The communication method of a multi-split system according to claim 2, wherein, The step of allocating an actual address to the slave generating the virtual address according to the determined virtual address comprises: sequentially and individually accessing each slave generating the virtual address according to the determined virtual address, and allocating an actual address to the slave generating the virtual address.
4. A control device of a multi VRF, which executes the communication method of the multi VRF according to any one of claims 1 to 3, for controlling an indoor unit and an outdoor unit of an air conditioning system, characterized by The controller in the air conditioning system is connected in series with the indoor units and the outdoor units through a bus, and the indoor unit or the outdoor unit directly connected with the controller is taken as a master, and the rest of the indoor units and the outdoor units are taken as slaves, and the steps of the method comprise: an acquisition module, configured to acquire a preset indoor unit address range and an outdoor unit address range; The first processing module is configured to calculate a first time interval according to the preset internal machine address range and the external machine address range, to communicate with the slaves at the first time interval, and to obtain first data information of all the online slaves, the first data information at least including online status information of the slaves; The second processing module is configured to calculate a second time interval according to the online status information in the first data information, and to communicate with all the online slaves at the second time interval.
5. An electronic device, comprising: A computer readable storage medium stores a computer readable instruction, and the computer readable instruction is executed by a processor to perform the steps in the method according to any one of claims 1 to 3.
6. A storage medium having stored thereon a computer program, characterized in that The computer program is executed by a processor to perform the steps in the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Multi-split air conditioning system and communication method thereof
CN105783194A
Fault diagnosis model training method and device
CN115095953A