Cascade air conditioner address allocation method and device, storage medium and cascade air conditioner

By sending reset flags to slave units in cascading air conditioners and generating random reply time in the cascading air conditioner, the problem of low address allocation efficiency is solved, and efficient address allocation is achieved.

CN119594545APending Publication Date: 2025-03-11TCL AIR CONDITIONER ZHONGSHAN CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411824633.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The existing cascading air conditioner address allocation method has the problem of low efficiency in internal unit address allocation.

Method used

By sending a request reset flag to the slave unit on the main unit, the slave unit is triggered to generate a random reply time based on the relevant parameters, and through multiple rounds of address query allocation mechanism, the slave unit with unassigned addresses is allowed to compete for the address request message according to the random reply time, and finally allocate the address to be allocated to the slave unit that replys first.

Benefits of technology

Without relying on the air conditioner external unit, the address allocation to the slave unit is allocated by the main internal unit based on random competition, which realizes simple and efficient address allocation, which significantly improves the internal unit address allocation efficiency when cascading air conditioner address allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119594545A_ABST
    Figure CN119594545A_ABST
Patent Text Reader

Abstract

The invention discloses a cascade air conditioner address allocation method and device, a storage medium and a cascade air conditioner, and relates to the technical field of air conditioners, the cascade air conditioner comprises a master indoor unit, an outdoor unit and a plurality of slave indoor units, the master indoor unit is an indoor unit connected with the outdoor unit, the slave indoor units are in cascade connection with the master indoor unit, and the method is applied to the master indoor unit. The master indoor unit can send a slave reset request mark to each slave indoor unit so as to trigger each slave indoor unit to generate random reply time corresponding to each slave indoor unit based on slave indoor unit related parameters; multiple rounds of address query and distribution are carried out on the multiple slave internal units, and each round is used for querying and distributing one to-be-distributed address; and in each round, receiving an address request message which is replied by the slave indoor unit which is not allocated with the address in a competition manner according to the corresponding random reply time, and allocating the address to be allocated to the slave indoor unit which firstly replies the address request message in each round. According to the invention, the indoor unit address allocation efficiency during cascade air conditioner address allocation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, storage medium and cascade air conditioner address allocation method for cascade air conditioners. Background Art

[0002] Cascade air conditioners are usually air conditioning units with one outdoor unit connected to multiple indoor units. By assigning corresponding addresses to each indoor unit in the cascade air conditioner, multiple indoor units can be turned on and off at the same time or controlled independently.

[0003] At present, in some technologies, the address allocation method of cascade air conditioners is that the outdoor unit allocates a virtual address to the indoor unit. In this method, the address allocation process requires data exchange between the indoor and outdoor units and the outdoor unit controls the status of the indoor unit before the indoor unit address can be confirmed. The control method algorithm is complex and is not conducive to rapid address allocation.

[0004] Therefore, the current address allocation method for cascade air conditioners has the problem of low efficiency in allocating addresses for indoor units. Summary of the invention

[0005] The embodiment of the present application provides a solution that can effectively improve the efficiency of allocating addresses to indoor units when allocating addresses to cascaded air conditioners.

[0006] The embodiments of the present application provide the following technical solutions:

[0007] According to one embodiment of the present application, a method for allocating addresses for cascaded air conditioners is provided, wherein the cascaded air conditioners include a main indoor unit, an outdoor unit, and a plurality of slave indoor units, wherein the main indoor unit is an indoor unit connected to the outdoor unit, and the plurality of slave indoor units are cascaded with the main indoor unit, and the method is applied to the main indoor unit, and the method includes: sending a flag requesting a slave reset to each of the slave indoor units to trigger each of the slave indoor units to generate a random response time corresponding to each of the slave indoor units based on relevant parameters of the slave indoor unit; performing multiple rounds of address query and allocation on the plurality of slave indoor units, wherein each round is used to query and allocate an address to be allocated; receiving in each round an address request message to which a slave indoor unit with an unallocated address competes for a response according to a corresponding random response time, and in each round, allocating the address to be allocated to the slave indoor unit that first responds to the address request message.

[0008] In some embodiments of the present application, before sending a slave reset flag to each of the slave internal machines to trigger each of the slave internal machines to generate a random reply time corresponding to each of the slave internal machines based on slave internal machine-related parameters, the method also includes: receiving slave quantity information sent by a control device; determining the number of the multiple rounds and the address to be allocated corresponding to each of the rounds based on the slave quantity information.

[0009] In some embodiments of the present application, the method also includes: if an abnormal slave indoor unit is detected among the multiple slave indoor units, the cascade communication failure is reported together with the abnormal slave indoor unit; a new slave reset request flag is sent in the communication network to trigger the abnormal slave indoor unit or a replacement slave indoor unit of the abnormal slave indoor unit to re-reset the address.

[0010] In some embodiments of the present application, sending a slave reset request flag to each of the slave indoors to trigger each of the slave indoors to generate a random reply time corresponding to each of the slave indoors based on slave indoor related parameters, includes: sending a slave reset request flag and allocated time limit data to each of the slave indoors to trigger each of the slave indoors to generate a random reply time corresponding to each of the slave indoors based on slave indoor related parameters and the allocated time limit data.

[0011] According to another embodiment of the present application, a method for allocating addresses for cascaded air conditioners is provided, wherein the cascaded air conditioners include a master indoor unit, an outdoor unit, and multiple slave indoor units, wherein the master indoor unit is an indoor unit connected to the outdoor unit, and the multiple slave indoor units are cascaded with the master indoor unit, and the method is applied to each of the slave indoor units, and the method includes: if a flag requesting a slave reset is sent by the master indoor unit, a random reply time corresponding to the slave indoor unit is generated based on relevant parameters of the slave indoor unit; in response to multiple rounds of address query allocations performed by the master indoor unit, in rounds in which no address is allocated, competing for reply to address request messages according to the random reply time; and receiving the address to be allocated allocated by the master indoor unit, wherein the address to be allocated is allocated by the master indoor unit when the slave indoor unit first replies to the address request message.

[0012] In some embodiments of the present application, the random response time corresponding to the slave indoor unit is generated based on the relevant parameters of the slave indoor unit, including: obtaining the unique identification number of the electric control main chip of the slave indoor unit itself and the ambient temperature detection value; using a preset random number function to calculate a random number based on the unique identification number of the electric control main chip and the ambient temperature detection value as the random response time.

[0013] In some embodiments of the present application, the master indoor unit sends allocation time limit data while sending the flag requesting the slave unit to reset; the random response time corresponding to the slave indoor unit is generated based on the relevant parameters of the slave indoor unit, including: obtaining the unique identification number of the electric control main chip of the slave indoor unit itself and the ambient temperature detection value; using a preset random number function to calculate a random number based on the unique identification number of the electric control main chip and the ambient temperature detection value; adjusting the calculated random number according to the allocation time limit data to obtain the random response time.

[0014] According to one embodiment of the present application, a cascade air conditioner address allocation device includes: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.

[0015] According to another embodiment of the present application, a storage medium stores a computer program thereon, which, when the computer program is executed by a processor of a main indoor machine, enables the main indoor machine to execute the method described in the relevant embodiments of the present application; or, when the computer program is executed by a processor of a slave indoor machine, enables the slave indoor machine to execute the method described in the relevant embodiments of the present application.

[0016] According to another embodiment of the present application, a cascade air conditioner includes a main indoor unit, an outdoor unit and multiple slave indoor units, the main indoor unit is an indoor unit connected to the outdoor unit, the multiple slave indoor units are cascaded with the main indoor unit, the main indoor unit includes a cascade air conditioner address allocation device for executing the method described in the relevant embodiment executed by the main indoor unit, and each of the slave indoor units includes a cascade air conditioner address allocation device for executing the method described in the relevant embodiment executed by the slave indoor unit.

[0017] According to another embodiment of the present application, a computer program product or computer program includes computer instructions, which are stored in a computer-readable storage medium. The processor of the master internal machine reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the master internal machine executes the method provided in the various optional implementations described in the embodiments of the present application; or, the processor of the slave internal machine reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the slave internal machine executes the method provided in the various optional implementations described in the embodiments of the present application.

[0018] In an embodiment of the present application, a cascade air conditioner includes a main indoor unit, an outdoor unit and multiple slave indoor units, the main indoor unit is an indoor unit connected to the outdoor unit, the multiple slave indoor units are cascaded with the main indoor unit, and the method is applied to the main indoor unit. The master indoor unit can: send a slave reset request flag to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on relevant parameters of the slave indoor unit; perform multiple rounds of address query and allocation for the multiple slave indoor units, wherein each round is used to query and allocate an address to be allocated; receive address request messages in each round in which slave indoor units with unallocated addresses compete for replies according to the corresponding random reply time, and allocate the address to be allocated to the slave indoor unit that first replies to the address request message in each round.

[0019] By using the cascaded air conditioner address allocation method in the embodiment of the present application, the cascaded air conditioner can allocate addresses to the slave indoor units based on random competition by configuring the master indoor unit without relying on the outdoor air conditioner, and the allocation can be completed simply and efficiently, thereby effectively improving the efficiency of indoor unit address allocation when allocating addresses for cascaded air conditioners. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A block diagram of a cascade air conditioner according to an embodiment of the present application is shown.

[0022] Figure 2 A flow chart of a method for allocating addresses for cascaded air conditioners according to an embodiment of the present application is shown.

[0023] Figure 3 A flowchart showing a method for allocating addresses for cascaded air conditioners according to another embodiment of the present application is shown.

[0024] Figure 4 A block diagram of a cascade air conditioner address allocation device according to an embodiment of the present application is shown.

[0025] Figure 5 A block diagram of a cascade air conditioner according to another embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0027] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0028] For example, the cascade air conditioner address allocation method provided in the embodiment of the present disclosure includes a series of steps, but the cascade air conditioner address allocation method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the cascade air conditioner address allocation device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on information.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0030] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0031] Figure 1 The schematic diagram shows the architecture of a cascade air conditioner according to an embodiment of the present application. Figure 1 As shown, the cascade air conditioner includes an outdoor unit 101, a main indoor unit 102, and a plurality of slave indoor units 103. The main indoor unit 102 is an indoor unit of the cascade air conditioner connected to the outdoor unit 101, and the plurality of slave indoor units 103 are cascaded with the main indoor unit 102. The outdoor unit 101 can interact with the main indoor unit 102, and the plurality of slave indoor units 103 can interact with the main indoor unit 102.

[0032] Figure 2 The flowchart of the method for allocating addresses of cascaded air conditioners according to an embodiment of the present application is schematically shown. Figure 2 The execution subject of the cascade air conditioner address allocation method shown in the figure can be a master indoor unit in the cascade air conditioner (for example Figure 1 102 shown in the main indoor unit). Figure 2As shown, the cascade air conditioner address allocation method may include steps S210 to S230.

[0033] Step S210, sending a slave reset request flag to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on the slave indoor unit related parameters;

[0034] Step S220, performing multiple rounds of address query and allocation on the multiple slave machines, wherein each round is used to query and allocate an address to be allocated;

[0035] Step S230, receiving address request messages replied by slave machines without assigned addresses in each round according to corresponding random reply time competition, and assigning the address to be assigned to the slave machine that replies to the address request message first in each round.

[0036] After the cascade air conditioner is powered on, one indoor unit connected to the outdoor unit can be automatically assigned as the master indoor unit. The master indoor unit is connected to multiple slave indoor units. After the cascade air conditioner is powered on, all indoor units (including the master indoor unit and the slave indoor units) can be automatically assigned the same default address (for example, the default address is 1) by default.

[0037] The master indoor unit can send a request slave reset flag to each slave indoor unit. For example, the master indoor unit and multiple slave indoor units are cascaded and connected to the BMS terminal and 485 bus. The master indoor unit can send a request slave reset flag to the 485 bus, and all slave indoor units will monitor the request slave reset flag sent by the master indoor unit.

[0038] The slave reset flag may trigger each slave indoor unit to generate a random response time corresponding to each slave indoor unit based on its own slave indoor unit related parameters. For example, slave indoor unit 1 randomly generates a random response time T1, and slave indoor unit n randomly generates a random response time Tn.

[0039] Then, the master indoor machine performs multiple rounds of address query and allocation for the multiple slave indoor machines, wherein each round is used to query and allocate an address to be allocated. For example, the first round is used to query and allocate an address 2 to be allocated to a slave indoor machine among the multiple slave indoor machines, and the second round is used to query and allocate an address 3 to be allocated to a slave indoor machine among the remaining unallocated addresses, and so on.

[0040] In each round, the address request message that the slave indoor machine that has not been assigned an address replies to in accordance with the corresponding random reply time is received, and in each round, the address to be assigned is assigned to the slave indoor machine that replies to the address request message first. For example, in the first round, each slave indoor machine first configures the temporary address as the address to be assigned 2, and each slave indoor machine counts down according to its corresponding random reply time, and replies to the master indoor machine with the address request message for the address to be assigned 2 at the end of the countdown, and the master indoor machine eventually assigns the address to be assigned 2 to a certain slave indoor machine that replies to the address request message first; in the second round, each slave indoor machine that has not been assigned an address first configures the temporary address as the address to be assigned 3, and each slave indoor machine that has not been assigned an address counts down according to its corresponding random reply time, and replies to the master indoor machine with the address request message for the address to be assigned 3 at the end of the countdown, and the master indoor machine then assigns the address to be assigned 3 to a certain slave indoor machine that replies to the address request message first; and so on, each slave indoor machine is assigned its unique address. Among them, the address of the master indoor machine is the aforementioned default address.

[0041] By using the cascaded air conditioner address allocation method in the embodiment of the present application, the cascaded air conditioner can allocate addresses to the slave indoor units based on random competition by configuring the master indoor unit without relying on the outdoor air conditioner, and the allocation can be completed simply and efficiently, thereby effectively improving the efficiency of indoor unit address allocation when allocating addresses for cascaded air conditioners.

[0042] Further, the following describes Figure 2 When allocating addresses of cascade air conditioners under the embodiment, further optional specific embodiments are provided for each step performed by the master indoor unit.

[0043] In one embodiment, before sending a slave reset flag to each of the slave internal machines to trigger each of the slave internal machines to generate a random reply time corresponding to each of the slave internal machines based on slave internal machine-related parameters, the method also includes: receiving slave quantity information sent by a control device; determining the number of the multiple rounds and the address to be allocated corresponding to each of the rounds based on the slave quantity information.

[0044] The control device can be a mobile phone or a remote control. The slave number information is used to describe the number of slave indoor units connected to the main indoor unit. For example, the user can send "one to N" information to the main indoor unit through the remote control, where N is the number of slave indoor units.

[0045] The master indoor unit can determine the number of multiple rounds and the addresses to be allocated corresponding to each round according to the number of slave units. For example, if the number of slave units is 6, the number of multiple rounds is 6, and accordingly, the addresses to be allocated corresponding to each round can be 2, 3, 4, 5, 6 and 7. Furthermore, the master indoor unit can allocate addresses to the slave indoor units accurately and effectively under the instruction of the user.

[0046] Furthermore, in one embodiment, the method may also include: if an abnormal slave indoor unit is detected among the multiple slave indoor units, reporting the cascade communication failure together with the abnormal slave indoor unit; sending a new slave machine reset request flag in the communication network to trigger the abnormal slave indoor unit or a replacement slave indoor unit of the abnormal slave indoor unit to re-reset the address.

[0047] If the master indoor unit detects an abnormal slave indoor unit among multiple slave indoor units, both the master indoor unit and the abnormal slave indoor unit will report a cascade communication failure, so that maintenance personnel can more accurately locate the abnormal slave indoor unit for processing.

[0048] Furthermore, the master indoor unit resends a new request for slave reset flag in the communication network (such as 485 bus) with the slave indoor units, triggering the abnormal slave indoor unit or the replacement slave indoor unit of the abnormal slave indoor unit to re-reset the address, thereby further enabling the abnormal slave indoor unit or the replacement slave indoor unit of the abnormal slave indoor unit to be effectively controlled. After the new request for slave reset flag is resent, the slave indoor units with confirmed addresses among the multiple slave indoor units (i.e., other slave indoor units except the abnormal slave indoor unit) will no longer reset the address.

[0049] In one embodiment, a flag requesting a slave reset is sent to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based only on relevant parameters of the slave indoor units.

[0050] Further, in one embodiment, sending a flag requesting a slave machine reset to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on slave indoor unit-related parameters, includes: sending a flag requesting a slave machine reset and allocated time limit data to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on slave indoor unit-related parameters and the allocated time limit data.

[0051] The master internal machine sends a flag requesting the slave machine to reset to each slave internal machine and also sends allocation time limit data. The allocation time limit data can be an upper limit time TX. Furthermore, each slave internal machine can generate a random reply time corresponding to each slave internal machine that is less than the upper limit time TX based on the relevant parameters of the slave internal machine and the allocation time limit data, thereby further ensuring the efficiency of address allocation.

[0052] Figure 3 The following schematically shows a flow chart of a method for allocating addresses of cascaded air conditioners according to another embodiment of the present application. Figure 3 The execution subject of the cascade air conditioner address allocation method shown in the figure can be specifically a slave indoor unit in the cascade air conditioner (for example Figure 1 As shown in the slave indoor unit 103). Figure 3As shown, the cascade air conditioner address allocation method may include steps S310 to S330. The meanings of the terms are the same as those mentioned above. Figure 2 The same is true in the cascade air conditioner address allocation method shown, and specific implementation details can refer to the description in the method embodiment.

[0053] Step S310, if a flag for requesting the slave to reset is detected, a random reply time corresponding to the slave is generated based on the relevant parameters of the slave;

[0054] Step S320, in response to multiple rounds of address query allocation performed by the host indoor machine, replying to the address request message according to the random reply time competition in the rounds where the address is not allocated;

[0055] Step S330, receiving the address to be allocated allocated by the master indoor unit, wherein the address to be allocated is allocated by the master indoor unit when the slave indoor unit first replies to the address request message.

[0056] With this processing method for slave indoor units, in cascade air conditioners, addresses can be allocated to slave indoor units based on random competition by configuring the master indoor unit without relying on the outdoor unit of the air conditioner. The allocation can be completed simply and efficiently, effectively improving the efficiency of indoor unit address allocation when allocating addresses for cascade air conditioners.

[0057] Furthermore, in one embodiment, the generation of a random response time corresponding to the slave indoor unit based on relevant parameters of the slave indoor unit may include: obtaining a unique identification number of an electric control main chip of the slave indoor unit itself and an ambient temperature detection value; and using a preset random number function to calculate a random number based on the unique identification number of the electric control main chip and the ambient temperature detection value as the random response time.

[0058] Under this embodiment, after each slave indoor machine monitors the slave machine reset request flag sent by the master indoor machine, it obtains the slave indoor machine's own electronic control main chip unique identification number (i.e., the number that uniquely identifies the electronic control main chip) and the ambient temperature detection value (i.e., the sensed value of the ambient temperature), and then, a preset random number function is used to calculate a random number based on the electronic control main chip unique identification number and the ambient temperature detection value. The random number is used as the random response time. Since the electronic control main chip unique identification numbers and ambient temperature detection values ​​of multiple slave indoor machines are usually different, the calculated random response times of the multiple slave indoor machines will be different, which can effectively ensure the reliability of address allocation.

[0059] Furthermore, in one embodiment, the master indoor unit sends allocation time limit data while sending the flag requesting the slave machine to reset; the random response time corresponding to the slave indoor unit is generated based on the relevant parameters of the slave indoor unit, including: obtaining the unique identification number of the electric control main chip of the slave indoor unit itself and the ambient temperature detection value; using a preset random number function to calculate a random number based on the unique identification number of the electric control main chip and the ambient temperature detection value; adjusting the calculated random number according to the allocation time limit data to obtain the random response time.

[0060] Under this embodiment, each slave indoor unit will receive the allocation time limit data sent by the master indoor unit when it detects the slave machine reset request flag sent by the master indoor unit. The allocation time limit data can be the upper limit time TX. Furthermore, each slave indoor unit can calculate a random number based on the relevant parameters of the slave indoor unit, and can adjust the random number to be less than the upper limit time TX as the random reply time, thereby further ensuring the efficiency of address allocation on the basis of ensuring the reliability of address allocation.

[0061] In order to facilitate better implementation of the cascade air conditioner address allocation method provided in the embodiment of the present application, the embodiment of the present application also provides a cascade air conditioner address allocation device based on the above cascade air conditioner address allocation method. The meanings of the terms are the same as those in the above cascade air conditioner address allocation method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of a cascade air conditioner address allocation device according to an embodiment of the present application is shown.

[0062] like Figure 4 As shown, the cascade air conditioner address allocation device 400 may include: a memory 401 storing a computer program; a processor 402 reading the computer program stored in the memory to execute the method described in the embodiment of the present application. For example, when the cascade air conditioner address allocation device 400 is applied to the master indoor unit, the method described in the related embodiment executed by the master indoor unit in the embodiment of the present application may be executed. For example, when the cascade air conditioner address allocation device 400 is applied to the slave indoor unit, the method described in the related embodiment executed by the slave indoor unit in the embodiment of the present application may be executed.

[0063] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0064] See also Figure 5According to another embodiment of the present application, a cascade air conditioner 500 is provided, the cascade air conditioner comprising an outdoor unit 101, a master indoor unit 102 and a plurality of slave indoor units 103, the master indoor unit 102 being an indoor unit of the cascade air conditioner connected to the outdoor unit 101, and the plurality of slave indoor units 103 being cascaded with the master indoor unit 102. The master indoor unit 102 may include a cascade air conditioner address allocation device 501 for executing the method described in the relevant embodiment executed by the master indoor unit, and each of the slave indoor units 103 includes a cascade air conditioner address allocation device 502 for executing the method described in the relevant embodiment executed by the slave indoor unit.

[0065] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0066] To this end, an embodiment of the present application also provides a storage medium having a computer program stored thereon. When the storage medium is applied to a master indoor machine, the computer program is executed by the processor of the master indoor machine, causing the master indoor machine to execute the steps of the method described in the relevant embodiments of the present application; or, when the storage medium is applied to a slave indoor machine, the computer program is executed by the processor of the slave indoor machine, causing the slave indoor machine to execute the steps of the method described in the relevant embodiments of the present application.

[0067] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0068] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0069] The present application also provides a computer program product or a computer program, which includes a computer instruction, which is stored in a computer-readable storage medium. The processor of the master internal machine reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the master internal machine executes the method provided in the various optional implementations described in the embodiments of the present application; or, the processor of the slave internal machine reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the slave internal machine executes the method provided in the various optional implementations described in the embodiments of the present application.

[0070] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0071] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. A method for allocating addresses for cascaded air conditioners, characterized in that: The cascade air conditioner comprises a main indoor unit, an outdoor unit and a plurality of slave indoor units, wherein the main indoor unit is an indoor unit connected to the outdoor unit, and the plurality of slave indoor units are cascaded with the main indoor unit. The method is applied to the main indoor unit, and the method comprises: Sending a slave reset request flag to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on the slave indoor unit related parameters; Performing multiple rounds of address query and allocation for the multiple slave internal machines, wherein each round is used to query and allocate an address to be allocated; In each round, the address request message is received from the slave internal machine that has not been assigned an address according to the corresponding random reply time, and in each round, the address to be assigned is assigned to the slave internal machine that first replies to the address request message.

2. The method according to claim 1, characterized in that Before sending a slave reset request flag to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on slave indoor unit related parameters, the method further includes: Receive the slave quantity information sent by the control device; The number of the multiple rounds and the address to be allocated corresponding to each round are determined according to the slave number information.

3. The method according to claim 1, characterized in that The method further comprises: If an abnormal slave indoor unit is detected among the multiple slave indoor units, the abnormal slave indoor unit and the abnormal slave indoor unit will report a cascade communication failure; A new slave reset request flag is sent in the communication network to trigger the abnormal slave indoor unit or a replacement slave indoor unit of the abnormal slave indoor unit to re-reset the address.

4. The method according to claim 1, characterized in that: The sending of a slave reset request flag to each slave indoor unit to trigger each slave indoor unit to generate a random reply time corresponding to each slave indoor unit based on slave indoor unit related parameters, includes: A slave reset request flag and allocated time limit data are sent to each of the slave indoor units to trigger each of the slave indoor units to generate a random reply time corresponding to each of the slave indoor units based on slave indoor unit related parameters and the allocated time limit data.

5. A method for allocating addresses for cascaded air conditioners, characterized in that: The cascade air conditioner comprises a main indoor unit, an outdoor unit and a plurality of slave indoor units, wherein the main indoor unit is an indoor unit connected to the outdoor unit, and the plurality of slave indoor units are cascaded with the main indoor unit, and the method is applied to each of the slave indoor units, and the method comprises: If a flag for requesting the slave to reset is detected, a random response time corresponding to the slave is generated based on the relevant parameters of the slave; In response to multiple rounds of address query allocations performed by the host internal machine, replying to address request messages in rounds where no address is allocated according to random reply time competition; The address to be allocated allocated by the master indoor unit is received, wherein the address to be allocated is allocated by the master indoor unit when the slave indoor unit first replies to the address request message.

6. The method according to claim 5, characterized in that The generating of a random reply time corresponding to the slave indoor unit based on the slave indoor unit related parameters includes: Obtain the unique identification number of the electronic control main chip of the slave indoor unit and the ambient temperature detection value; A preset random number function is used to calculate a random number based on the unique identification number of the electric control main chip and the ambient temperature detection value, which is used as the random response time.

7. The method according to claim 5, characterized in that The master indoor unit sends the allocation time limit data while sending the slave reset request flag; the generating of the random reply time corresponding to the slave indoor unit based on the slave indoor unit related parameters includes: Obtain the unique identification number of the electronic control main chip of the slave indoor unit and the ambient temperature detection value; A preset random number function is used to calculate a random number based on the unique identification number of the electronic control main chip and the ambient temperature detection value; The calculated random number is adjusted according to the allocation time limit data to obtain the random reply time.

8. A cascade air conditioner address allocation device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 4 or 5 to 7.

9. A storage medium, characterized in that: A computer program is stored thereon, which, when executed by the processor of the main indoor machine, enables the main indoor machine to execute the method described in any one of claims 1 to 4, or, when executed by the processor of the slave indoor machine, enables the slave indoor machine to execute the method described in any one of claims 5 to 6.

10. A cascade air conditioner, characterized in that: The cascade air conditioner includes a main indoor unit, an outdoor unit and multiple slave indoor units, the main indoor unit is an indoor unit connected to the outdoor unit, the multiple slave indoor units are cascaded with the main indoor unit, the main indoor unit includes a cascade air conditioner address allocation device for executing the method described in any one of claims 1 to 4, and each of the slave indoor units includes a cascade air conditioner address allocation device for executing the method described in any one of claims 5 to 7.

Citation Information

Patent Citations

  • 485 multi-host communication method and device

    CN105591857A

  • Multi connection air conditioning units, networking method thereof and device

    CN105846858A

  • Communication address allocation method, equipment and system for air conditioning system

    CN107071077A

  • Address code allocation method, host and slave

    CN112104760A

  • Equipment ad hoc network method and device and air conditioning system

    CN113114792A