Disclosure of Invention
The invention provides an indoor unit address allocation method, a storage medium and a multi-online system, aiming at overcoming the defects of the prior art, and solving the problems that the prior art needs to allocate addresses to indoor units by manual operation, the operation is complex and the labor cost is high.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
an indoor unit address allocation method is applied to a multi-online system comprising an outdoor unit and at least two indoor units, and comprises the following steps:
when the multi-split system is powered on, the outdoor unit detects whether a first communication address is stored in the configured storage equipment;
if the first communication address is not stored, sending a distribution instruction to each indoor unit, and receiving a physical address code fed back by each indoor unit according to the distribution instruction;
and allocating a second communication address to each indoor unit according to all the received physical address codes.
The indoor unit address allocation method further comprises the following steps:
if the first communication address is stored, receiving a physical address code sent by the indoor unit;
if the physical address code is not received, receiving a third communication address sent by the indoor unit, and judging whether the received third communication address is not repeated;
and if the third communication address is repeated, executing the operation of sending the distribution instruction to each indoor unit.
The indoor unit address allocation method further comprises the following steps:
if the third communication address is not repeated, comparing the third communication address with the first communication address;
and if the first communication address is more than the third communication address, sending alarm information missing from the indoor unit.
The indoor unit address allocation method comprises the following steps:
if the first communication address is the same as the third communication address, monitoring an address-free alarm sent by the indoor unit;
and if no address alarm is monitored, sending alarm information for checking the connecting line.
The indoor unit address allocation method comprises the following steps:
and if the first communication address is less than the third communication address or the physical address code is received, executing the operation of sending an allocation instruction to each indoor unit.
The indoor unit address allocation method further includes, after allocating a second communication address to each indoor unit according to all received physical address codes:
and the outdoor unit updates the first communication address in the storage device by adopting the second communication address.
The indoor unit address allocation method, wherein the allocating a second communication address to each indoor unit according to all received physical address codes specifically includes:
and sequencing all the received physical address codes according to a preset sequence, and sequentially distributing a second communication address to each indoor unit according to the sequencing sequence.
The indoor unit address allocation method further includes, after allocating a second communication address to each indoor unit according to all received physical address codes:
receiving the operation of a user for modifying the communication address, and modifying the communication address in the storage equipment of the outdoor unit according to the operation;
and sending the modified communication address to the indoor unit so that the indoor unit updates the communication address stored in the configured storage device.
A storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the indoor unit address allocation method as described in any one of the above.
A multiple on-line system, comprising: the indoor unit comprises an outdoor unit and at least two indoor units; the outdoor unit includes:
a processor adapted to implement instructions; and
the storage device is suitable for storing a plurality of instructions, and the instructions are suitable for being loaded by the processor and executing the indoor unit address allocation method.
Has the advantages that: compared with the prior art, the invention provides an indoor unit address allocation method, a storage medium and a multi-online system.
Detailed Description
The invention provides an indoor unit address allocation method, a storage medium and a multi-online system, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Example one
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split system including an outdoor unit and at least two indoor units, as shown in fig. 1, and includes:
s101, when the multi-split system is powered on, the outdoor unit detects whether a first communication address is stored in the configured storage equipment.
Specifically, the outdoor unit and each indoor unit are respectively provided with a storage device, the storage device of the outdoor unit is used for storing a communication address of each indoor unit in the multi-split system, the storage device of each indoor unit is used for storing a communication address of each indoor unit, and the indoor units communicate with the outdoor unit through the communication addresses stored by the indoor units. In this embodiment, the storage device is a memory chip, and the memory chips are both disposed on the control main boards of the indoor unit and the outdoor unit, that is, the control main boards of the indoor unit and the outdoor unit are both control main boards carrying the memory chips.
And S102, if the first communication address is not stored, sending an allocation instruction to each indoor unit, and receiving a physical address code fed back by each indoor unit according to the allocation instruction.
Specifically, the physical address codes are carried by the indoor units, and the physical address codes of the indoor units are different, that is, the physical address code of each indoor unit has uniqueness. The physical address code can be a physical address of an indoor unit mainboard chip, and can also be a factory number of the indoor unit. In addition, when the communication address is not stored in the indoor unit, the indoor unit communicates with the outdoor unit through the physical address code. That is to say, when the communication address is not stored in the indoor unit, the indoor unit communicates with the outdoor unit through the physical address code, and the outdoor unit can acquire the physical address code and allocate the communication address according to the indoor unit corresponding to the physical address code.
And S103, distributing a second communication address to each indoor unit according to all the received physical address codes.
Specifically, the allocating the second communication address to each indoor unit according to the received all physical address codes may be sorting according to the physical address codes, and using the sorted serial number as the second communication address code; or generating the corresponding second communication address according to the physical address code, for example, selecting a part of each physical address code as the second communication address, and selecting different second communication addresses.
For example, the allocating a second communication address to each indoor unit according to all received physical address codes specifically includes:
s103a, sequencing all the received physical address codes according to a preset sequence, and sequentially distributing a second communication address to each indoor unit according to the sequencing sequence.
Specifically, the preset sequence may be arranged from small to large or from large to small. The sorting of all the physical address codes according to the preset sequence can be directly sorting the physical address codes, and can also be calculated, compared and sorted on the appointed data segments of the physical address codes. And after sequencing, acquiring the serial number of the physical address code, and taking the serial number as a second communication address, thereby simplifying the relatively complex physical address code of each indoor unit into simple sequence sequencing, embodying the uniqueness of each indoor unit, and facilitating the realization of efficient data interaction between the indoor unit and the outdoor unit.
Further, to avoid confusion of the communication address stored in the outdoor unit, step S103 may further include:
and S104, the outdoor unit updates the communication address in the configured storage equipment by adopting the second communication address.
Specifically, when a communication address is not stored in the outdoor unit, the second communication address is directly stored in the storage device; and when the communication address exists in the storage equipment, the storage equipment is emptied, and the second communication address is stored in the storage equipment, so that the communication address generated by the latest address allocation operation is only stored in the storage equipment, and the disorder of the communication address is avoided. Similarly, when each indoor unit receives the newly allocated second communication address, the storage device configured for the indoor unit is emptied, and the second communication address is stored in the storage device, so that the second communication address is used as the communication address for the indoor unit to communicate with the outdoor unit, and each indoor unit can be guaranteed to store only one communication address.
The embodiment provides an indoor unit address allocation method, which is used for acquiring a physical address code of each indoor unit when an outdoor unit does not store a communication address of the indoor unit, and allocating the communication address to the indoor unit according to the physical address code, so that the address is automatically allocated. Meanwhile, the problems of complex operation, easy error and low efficiency existing in the method for distributing the address to the indoor unit by manual operation are solved.
Example two
The present embodiment provides a method for allocating an address of an indoor unit, where the method is applied to a multi-split system including an outdoor unit and at least two indoor units, as shown in fig. 2, the method includes:
s201, when the multi-split system is powered on, the outdoor unit detects whether a first communication address is stored in the configured storage device.
Specifically, the indoor unit and the outdoor unit are the same as those in the first embodiment, and are not described herein.
And S202, if the first communication address is stored, receiving a physical address code sent by the indoor unit.
Specifically, the storing of the first communication address refers to that the outdoor unit stores a communication address of an indoor unit.
S203, if the physical address code is not received, receiving a third communication address sent by the indoor unit, and judging whether the received third communication address is not repeated.
Specifically, the non-reception of the physical address code indicates that a third communication address corresponding to the physical address code is stored in each indoor unit, and the communication with the outdoor unit is performed through the third communication address. Thus, when the indoor units communicate with the outdoor unit, the outdoor unit can acquire the third communication of each indoor unit. The judgment of whether the received third communication addresses are not repeated refers to the detection of whether each indoor unit stores address conflicts, so that the problem of communication faults caused by address conflicts can be avoided.
And S204, if the third communication address is repeated, executing the operation of sending the distribution instruction to each indoor unit so as to redistribute the communication address to each indoor unit.
Specifically, the third communication repeatedly indicates that the addresses stored in the indoor units conflict, so that the addresses need to be reassigned to each indoor unit, and the process of assigning addresses is the same as the assignment process in the first embodiment, and is not described here.
Further, the address allocation method for the indoor unit provided in this embodiment further includes:
s205, if the third communication address is not repeated, comparing the third communication address with the first communication address.
Specifically, the comparing the third communication address with the first communication refers to comparing the received third communication address of each indoor unit with all the first communication addresses stored in the storage device of the outdoor unit, so as to determine whether a communication address set formed by all the third communication addresses is consistent with a communication address set formed by all the first communication addresses.
And S206, if the first communication address is more than the third communication address, sending alarm information of missing indoor units.
Specifically, the first communication address is larger than the third communication address, which indicates that an indoor unit which is not in communication with the outdoor unit exists, and at this time, alarm information of indoor missing is sent. The alarm information may be transmitted through an indoor unit or an outdoor unit. The alarm information can be voice prompt, or text information sent to a preset device or a preset contact through a network.
And S207, if the first communication address is the same as the third communication address, monitoring an address-free alarm sent by the indoor unit, and sending alarm information for checking the connecting line when the address-free alarm is monitored.
Specifically, the indoor unit sends an address-free alarm to indicate that the indoor unit does not receive the communication address sent by the outdoor unit, which indicates that a problem may exist in the connection line between the outdoor unit and the indoor unit, and then sends alarm information for checking the connection line, so that a user can quickly locate the problem.
And S208, if the first communication address is less than the third communication address or the physical address code is received, executing the operation of sending an allocation instruction to each indoor unit.
Specifically, the first communication address is less than the third communication address, which indicates that the outdoor unit does not store the communication addresses of all the indoor units, and the received physical address code indicates that the indoor unit with the unallocated communication address exists. In both cases, addresses need to be allocated to the indoor units again, so that the outdoor unit stores the communication addresses of all the indoor units communicated with the outdoor unit, and normal communication is ensured.
In the method for allocating addresses to indoor units according to this embodiment, when the outdoor unit stores addresses of the indoor units, and the indoor units all communicate with the outdoor unit using the stored communication addresses, the outdoor unit determines whether the communication addresses of the indoor units conflict with each other after receiving the communication addresses carried by all the indoor units, and allocates addresses to the indoor units again when conflicts exist, thereby avoiding problems such as communication failure and confusion caused by communication address conflicts.
EXAMPLE III
The embodiment provides an indoor unit address allocation method, which includes the steps of the above embodiment, and in addition, the method further includes:
s301, receiving an operation of a user for modifying a communication address, and modifying the communication address in the storage equipment of the outdoor unit according to the operation;
and S302, sending the modified communication address to the indoor unit so that the indoor unit can update the communication address stored in the configured storage device.
In the method for allocating addresses to indoor units provided by this embodiment, after the allocation of addresses to indoor units is completed, a user can also query and modify the addresses of the indoor units by self-definition through the operation interface of the line controller, and the addresses of the outdoor host and the indoor units are updated synchronously when the addresses of the indoor units are modified; the address of the indoor unit can be manually re-allocated by setting the keys of the main board of the outdoor host machine or the operation interface of the wire controller, so that the requirements of various different conditions are met.
In order to further understand the address allocation method of the indoor unit provided by the present invention, the following description is further made in conjunction with the actual use case.
Example four
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split system comprising an outdoor unit and at least two indoor units, wherein the multi-split system is normally installed and powered on in a brand-new unit project, and the method comprises the following steps of:
s401, powering on the multi-split system unit, and detecting that the communication address of the indoor unit is not stored in a memory chip configured by the outdoor host;
s402, the outdoor host sends an address allocation instruction and requires each indoor unit to return a physical address code;
s403, receiving the physical address code returned by each indoor unit, and calculating the physical address code to obtain the communication address of each indoor unit;
s404, clearing the communication address in the memory chip to store the newly allocated communication address, and sending the newly allocated communication address to the corresponding indoor unit, so that the indoor unit stores the newly allocated communication address and adopts the communication address to communicate with the outdoor unit;
s405, monitoring whether the indoor unit sends an address-free fault alarm or not, and normally operating when the indoor unit is not monitored.
EXAMPLE five
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split system comprising an outdoor unit and at least two indoor units, wherein the multi-split system is a brand-new unit engineering abnormal installation machine, one indoor unit is not connected with a communication line, and the method comprises the following steps:
s501, powering on a unit of the multi-split system, and detecting that a memory chip configured by the outdoor host does not store the communication address of the indoor unit by the outdoor host;
s502, the outdoor host sends an address allocation instruction and requires each indoor unit to return a physical address code;
s503, receiving the physical address code returned by each indoor unit, and calculating the physical address code to obtain the communication address of each indoor unit;
s504, clearing the communication address in the memory chip to store the newly allocated communication address, and sending the newly allocated communication address to the corresponding indoor unit, so that the indoor unit stores the newly allocated communication address and adopts the communication address to communicate with the outdoor unit;
s505, monitoring whether an indoor unit sends an address-free fault alarm or not;
s506, monitoring that an indoor unit sends an address-free fault alarm, and checking that a connection wire is not connected and repaired after power failure;
and S507, the unit of the multi-split system is electrified again, the outdoor host detects that the memory chip stores the address of the indoor unit, receives a physical address code sent by the indoor unit, and enters the step S402 to distribute the address of the indoor unit.
And S508, after the address allocation of the indoor unit is finished, monitoring whether the indoor unit sends a fault alarm without address, and normally operating when the indoor unit is not monitored.
EXAMPLE six
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split air conditioner system comprising an outdoor unit and at least two indoor units, and the multi-split air conditioner system is normally powered on after installation and debugging are finished, and the method comprises the following steps of
S601, powering on the multi-split air conditioner system unit, and detecting that the communication address of the indoor unit is stored in the memory chip configured by the outdoor host and the physical address code sent by the indoor unit is not received.
S602, the outdoor host receives the addresses of the indoor units and compares the addresses with the addresses in the memory chip;
and S603, comparing the same result address, and normally operating the unit if no address fault alarm information is sent by the indoor unit.
EXAMPLE seven
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split system comprising an outdoor unit and at least two indoor units, wherein the multi-split system normally operates and has one indoor unit communication line or one power line disconnected, and the method comprises the following steps:
and S701, powering on the multi-split air conditioner system unit, and detecting that the communication address of the indoor unit is stored in the memory chip configured by the outdoor host and the physical address code sent by the indoor unit is not received.
S702, the outdoor host receives the addresses of the indoor units and compares the addresses with the addresses in the memory chip;
s703, comparing results to display that the number of the addresses of the indoor units is less than that of the addresses stored in the memory chip, reporting an 'indoor unit missing' fault by the outdoor unit, and finding that one indoor unit communication line is disconnected and repaired after power-off checking connection;
s704, the unit is powered on again, and the outdoor host detects that the communication address of the indoor unit is stored in the memory chip configured by the outdoor host and does not receive the physical address code sent by the indoor unit;
s705, the outdoor host receives the address of each indoor unit and compares the address with the address in the memory chip;
and S706, comparing the same result address, and if no address fault alarm information is sent by the indoor unit, the unit operates normally.
Example eight
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split system comprising an outdoor unit and at least two indoor units, wherein the multi-split system normally operates, a brand new unaddressed control panel is replaced for after-sale maintenance of one indoor unit, and the method comprises the following steps:
s801, powering on a multi-split system unit, detecting that a memory chip configured by an outdoor host computer stores a communication address of an indoor unit, and receiving a physical address code sent by one indoor unit;
s802, the outdoor host sends an address allocation instruction and requires each indoor unit to return a physical address code
S803, receiving the physical address code returned by each indoor unit, and calculating the physical address code to obtain the communication address of each indoor unit;
s804, clearing the communication address in the memory chip to store the newly allocated communication address, and sending the newly allocated communication address to the corresponding indoor unit, so that the indoor unit stores the newly allocated communication address and adopts the communication address to communicate with the outdoor unit;
and S805, monitoring whether the indoor unit sends an address-free fault alarm or not, and normally operating when the indoor unit is not monitored.
Examples nine,
The embodiment provides an indoor unit address allocation method, which is applied to a multi-split system comprising an outdoor unit and at least two indoor units, wherein the multi-split system normally operates, one indoor unit is maintained and replaced with a control panel with an address after sale, and the method comprises the following steps:
s901, the multi-split air conditioner system unit is powered on, and the outdoor host detects that the communication address of the indoor unit is stored in the memory chip configured by the outdoor host and does not receive the physical address code sent by the indoor unit.
S902, the outdoor host receives the addresses of the indoor units and compares the addresses with the addresses in the memory chip;
s903, the comparison result shows that the address of the indoor unit does not belong to the memory chip, and the outdoor host sends an address allocation instruction and requires each indoor unit to return a physical address code;
s904, receiving the physical address code returned by each indoor unit, and calculating the physical address code to obtain the communication address of each indoor unit;
s905, clearing the communication address in the memory chip to store the newly allocated communication address, and sending the newly allocated communication address to the corresponding indoor unit, so that the indoor unit stores the newly allocated communication address and adopts the communication address to communicate with the outdoor unit;
and S906, monitoring whether the indoor unit sends an address-free fault alarm or not, and normally operating when the indoor unit is not monitored.
The invention also provides a storage medium, which stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the indoor unit address allocation method.
The present invention also provides a multi-split system, as shown in fig. 3 and 4, an outdoor unit 100 and at least two indoor units 200; the outdoor unit 100 includes:
a processor 101 adapted to implement instructions; and
the memory 102 is suitable for storing a plurality of instructions, and the instructions are suitable for being loaded by the processor and executing the indoor unit address allocation method.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the mobile terminal are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.