A kind of method for assigning address to indoor unit, storage medium and multiple on-line system
Technical field
The present invention relates to air-conditioning technical field, more particularly to a kind of method for assigning address to indoor unit, storage medium and multi-joint
Machine system.
Background technology
It is two or more that multiple on-line system refers to that an outdoor host computer is connected by refrigerant tubing with order wire
Indoor set, exchanged heat in outside using air-cooled or water cooling, indoors the disposable cooling cycle system of the direct evaporation and heat-exchange in side.
Outdoor host computer needs to carry out each indoor set independent control and regulation, to meet the cooling load demand of different indoor sets.
Therefore, outdoor host computer needs to distribute different addresses to individual indoor set, so that outdoor host computer identifies and distinguishes between each indoor set.
At present, the distribution of multiple on-line system address of indoor unit relies primarily on manual operation realization, that is to say in multi-connected machine work
During journey installation and debugging, operating personnel set the address of every indoor set by the user interface of line control machine manually, or adjust manually
The combination form for saving indoor mainboard toggle switch distributes different addresses for every indoor set.So rely on manually-operated room
Interior machine address distribution method, not only complex operation, waste of manpower, and also easily error causes to operate repeatedly, and efficiency is low.
Thus prior art could be improved and improve.
The content of the invention
The technical problem to be solved in the present invention is, in view of the shortcomings of the prior art, there is provided a kind of address of indoor unit distribution
Method, storage medium and multiple on-line system, need to distribute address as indoor set by manual operation to solve prior art, exist
Complex operation and high cost of labor the problem of.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A kind of method for assigning address to indoor unit, applied to including outdoor unit and at least two indoor sets multiple on-line system, it is described
Method includes:
When electric in multiple on-line system, the first address whether is stored in the storage device of its configuration of outdoor machine testing;
If not storing the first address, distribution instruction is sent to each indoor set, and receive each indoor set according to
Distribute the physical address code of instruction feedback;
It is that each indoor set distributes the second address according to all physics address codes received.
The method for assigning address to indoor unit, it also includes:
If being stored with the first address, the physical address code that indoor set is sent is received;
If not receiving physical address code, the 3rd address that indoor set is sent is received, and judges the threeway received
Whether news address does not repeat mutually;
If the 3rd address has repetition, the operation that distribution instruction is sent to each indoor set is performed.
The method for assigning address to indoor unit, it also includes:
If the 3rd address does not repeat mutually, the 3rd address is compared with the first address;
If the first address is more than the 3rd address, the warning information of indoor set missing is sent.
The method for assigning address to indoor unit, wherein, methods described also includes:
If the first address is identical with the 3rd address, the zero-address alarm that indoor set is sent is monitored;
If listening to zero-address alarm, the warning information for checking connecting line is sent.
The method for assigning address to indoor unit, wherein, methods described also includes:
If the first address is less than the 3rd address or receives physical address code, performs and sent to each indoor set
Distribute the operation of instruction.
The method for assigning address to indoor unit, wherein, all physics address codes that the basis receives are each indoor
Machine also includes after distributing the second address:
The outdoor unit updates the first address in the storage device using the second address.
The method for assigning address to indoor unit, wherein, all physics address codes that the basis receives are each indoor
Machine distributes the second address:
All physics address codes received are ranked up according to preset order, and each interior is followed successively by according to clooating sequence
Machine distributes the second address.
The method for assigning address to indoor unit, wherein, all physics address codes that the basis receives are each indoor
Machine also includes after distributing the second address:
The operation that user changes address is received, and is changed according to the operation in the storage device of outdoor unit communicatively
Location;
Amended address is sent to indoor set, to cause the indoor set to update the storage device memory storage of its configuration
Address.
A kind of storage medium, it is stored with a plurality of instruction, and the instruction is suitable to be loaded by processor and performed as above any
Described method for assigning address to indoor unit.
A kind of multiple on-line system, it includes:Outdoor unit and at least two indoor sets;The outdoor unit includes:
Processor, it is adapted for carrying out each instruction;And
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded by processor and performed as above any described room
Interior machine address distribution method.
Beneficial effect:Compared with prior art, the invention provides a kind of method for assigning address to indoor unit, storage medium and
Multiple on-line system, methods described when outdoor unit does not store address of indoor unit, by each indoor set send distribution instruction with
The physical address code of each indoor set is obtained, and is that indoor set distributes address according to the physical address code, is solved by people
Work operation is the problem of indoor set distributes complex operation existing for the method for address, easily error and efficiency are low.
Brief description of the drawings
Fig. 1 is the flow chart of method for assigning address to indoor unit embodiment one provided by the invention.
Fig. 2 is the flow chart of method for assigning address to indoor unit embodiment two provided by the invention.
Fig. 3 is the structure principle chart of multiple on-line system preferred embodiment provided by the invention.
Fig. 4 is the structure principle chart of outdoor unit preferred embodiment provided by the invention.
Embodiment
The present invention provides a kind of method for assigning address to indoor unit, storage medium and multiple on-line system, to make the mesh of the present invention
, technical scheme and effect it is clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is individual ", " described " and "the" may also comprise plural form.It is to be further understood that what is used in the specification of the present invention arranges
Diction " comprising " refer to the feature, integer, step, operation, element and/or component be present, but it is not excluded that in the presence of or addition
One or more other features, integer, step, operation, element, component and/or their groups.It should be understood that when we claim member
Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange
Taking leave "and/or" includes whole or any cell and all combinations of one or more associated list items.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), there is the general understanding identical meaning with the those of ordinary skill in art of the present invention.Should also
Understand, those terms defined in such as general dictionary, it should be understood that have with the context of prior art
The consistent meaning of meaning, and unless by specific definitions as here, idealization or the implication of overly formal otherwise will not be used
To explain.
Below in conjunction with the accompanying drawings, by the description to embodiment, the content of the invention is described further.
Embodiment one
A kind of method for assigning address to indoor unit is present embodiments provided, methods described is applied to include outdoor unit and at least two rooms
The multiple on-line system of interior machine, as shown in figure 1, it includes:
S101, when electric in multiple on-line system, whether store the first address in the storage device of its configuration of outdoor machine testing.
Specifically, the outdoor unit and each indoor set are each equipped with storage device, and the storage device of the outdoor unit is used
In the address of each indoor set in storage multiple on-line system, the storage device of each indoor set is used to store its own
Address, and the indoor set passes through its own address for storing and communicated with outdoor unit.In the present embodiment, institute
It is memory chip to state storage device, and the memory chip may be contained within the control mainboard of indoor set and outdoor unit, i.e. room
The control mainboard of interior machine and the control mainboard of outdoor unit are to carry the control mainboard of memory chip.
If S102, not storing the first address, distribution instruction is sent to each indoor set, and receive each indoor set
According to the physical address code of the distribution instruction feedback.
Specifically, the physical address code is that the indoor set is self-contained, and the physical address of each indoor set
Code differs, i.e., the physical address code of each indoor set has uniqueness.The physical address code can be indoor set mainboard
The physical address of chip, or factory number of indoor set etc..In addition, when the non-memory communicating address of the indoor set,
The indoor set is communicated by the physical address code and outdoor unit.That is, when the non-memory communicating address of indoor set, institute
Stating indoor set can be communicated by the physical address code and outdoor unit, and the outdoor unit can obtain the physical address
Code, and indoor set distributes address according to corresponding to the physical address code.
All physics address codes that S103, basis receive distribute the second address for each indoor set.
Specifically, the basis receives all physics address codes can be for each indoor set the second address of distribution
It is ranked up according to physical address code, using the sequence number of the sequence as the second address code;Can also be according to physically
Location code generates corresponding second address, for example, choosing a part in each physical address code is used as the second address, and
And choose the second obtained address and differ.
Exemplary, all physics address codes that the basis receives are that each indoor set the second address of distribution is specific
For:
S103a, all physics address codes received are ranked up according to preset order, and are followed successively by often according to clooating sequence
Individual indoor set distributes the second address.
Specifically, the preset order can be to arrange from small to large or from big to small.All physics address codes are pressed
It can be that directly physical address code is ranked up to be ranked up according to preset order, can also be to the specified data of physical address code
Duan Jinhang is calculated and comparative sorting.After sequence obtain physical address code sequence number, and using the sequence number as second communicatively
Location, the relative complex physical address code of each indoor set is so simplified to simple sequence permutation, and embodies each interior machine
Uniqueness, it is easy to implement efficient data interaction between indoor set and outdoor unit.
Further, it is chaotic in order to avoid the address of outdoor unit memory storage, it can also include after the step S103:
S104, the outdoor unit update the address in the storage device of its configuration using second address.
Specifically, when not being stored with address in outdoor unit, directly second address is stored in described
In storage device;And when address be present in the storage device, the storage device is emptied, and described second is communicated
Address is stored in the storage device, is produced with only to be stored with the last distribution address function in the storage device
Raw address, avoid the confusion of address.Likewise, when each indoor set receives newly assigned second communicatively
During location, the storage device of its configuration is emptied, and second address is stored in storage device, described second is led to
Address is interrogated as its address with outdoor unit communication, can so ensure that each indoor set only stores an address.
A kind of method for assigning address to indoor unit is present embodiments provided, it does not store the address of indoor set in outdoor unit
When, the physical address code of each indoor set is obtained, and address is distributed for indoor set according to the physical address code, realize
Automatic distribution address.Meanwhile solve by manual operation be indoor set distribute address method existing for complex operation, easily
The problem of error and efficiency are low.
Embodiment two
The present embodiment provides a kind of method for assigning address to indoor unit, and methods described is applied to include outdoor unit and at least two interiors
The multiple on-line system of machine, as shown in Fig. 2 it includes:
S201, when electric in multiple on-line system, whether store the first address in the storage device of its configuration of outdoor machine testing.
Specifically, the indoor set and outdoor unit are identical with embodiment one, are not repeating here.
If S202, being stored with the first address, the physical address code that indoor set is sent is received.
Specifically, first address that is stored with refers to that the outdoor unit is stored with the address of indoor set.
If S203, not receiving physical address code, the 3rd address that indoor set is sent is received, and judges to receive
The 3rd address whether do not repeat mutually.
Specifically, the physical address code that do not receive illustrates that each indoor set internal memory contains its corresponding 3rd communicatively
Location, and communicated by the 3rd address with outdoor unit.So when indoor set and outdoor unit communicate, the outdoor
Machine can obtain the 3rd communication of each indoor set.Whether the 3rd address for judging to receive mutually does not repeat to refer to
Detect each indoor set whether storage address conflict, can so avoid due to address conflict and caused communication failure problem.
If S204, the 3rd address have repetition, the operation that distribution instruction is sent to each indoor set is performed, is thought every
Individual indoor set redistributes address.
Specifically, the 3rd communication has storage address conflict between each indoor set of repeat specification, so as to need to be each
Indoor set deallocation, the distribution address process is identical with the assigning process of embodiment one, is not just illustrating here.
Further, the method for assigning address to indoor unit that the present embodiment provides, it also includes:
If S205, the 3rd address do not repeat mutually, the 3rd address is compared with the first address.
Specifically, described 3rd address is compared with the first communication is referred to for receiving each indoor set
The 3rd address be compared with all first addresses of the storage device memory storage of outdoor unit, to judge all
Whether the address set that three addresses are formed and the address set that all first addresses are formed are consistent.
If S206, the first address are more than the 3rd address, the warning information of indoor set missing is sent.
Specifically, first address illustrates to exist the not interior with outdoor unit communication more than the 3rd address
Machine, the warning information now lacked in dispatcher's office.The warning information can be sent by indoor set, can also pass through outdoor unit
Send.The warning information can be voice reminder or be sent by network to default equipment or default contact
Text information etc..
If S207, the first address are identical with the 3rd address, the zero-address alarm that indoor set is sent is monitored, and
The warning information for checking connecting line is sent when listening to zero-address alarm.
Specifically, indoor set transmission zero-address alarm illustrates that indoor set does not receive the address of outdoor unit transmission, this
When illustrate between the outdoor unit and indoor set connecting line there may be problem, and then send the alarm signal for checking connecting line
Breath, to cause user can be with where quick positioning question.
If S208, the first address are less than the 3rd address or receive physical address code, perform to each
Indoor set sends the operation of distribution instruction.
Specifically, first address illustrates that outdoor unit does not store the logical of all indoor sets less than the 3rd address
Address is interrogated, receives the indoor set that physical address code illustrates to have unallocated address.It is required to again under both of these case
Address is distributed for indoor set, to cause the outdoor unit to preserve the address of all indoor sets communicated, ensures communication
Normally.
The method for assigning address to indoor unit that the present embodiment provides, its outdoor unit are stored with address of indoor unit, and indoor set
In the case of being communicated using the address of its storage with outdoor unit, outdoor unit is receiving the logical of all indoor set carryings
After interrogating address, judge the address of each indoor set with the presence or absence of conflict, and exist conflict when again for indoor set distributively
Location, avoid due to address conflict and caused communication failure and it is chaotic the problems such as.
Embodiment three
A kind of method for assigning address to indoor unit is present embodiments provided, it includes above-described embodiment step, and it also includes in addition:
S301, the operation that user changes address is received, and changed according to the operation in the storage device of outdoor unit
Address;
S302, amended address sent to indoor set, to cause the indoor set to update the storage device of its configuration
The address of memory storage.
The method for assigning address to indoor unit that the present embodiment provides, after its address of indoor unit is assigned, user can be with
By the inquiry of line control machine operation interface and the address of self-defined each indoor set of modification, outdoor host computer and room when changing address of indoor unit
Interior machine synchronized update address;It can also be manually booted by the button of outdoor host computer mainboard or the setting of line control machine operation interface
Address of indoor unit is redistributed, and meets the needs of various different situations.
For a further understanding of method for assigning address to indoor unit provided by the invention, with reference to actual use situation do into
One step explanation.
Example IV
A kind of method for assigning address to indoor unit is present embodiments provided, its application includes the more of outdoor unit and at least two indoor sets
On-line system, and the multiple on-line system is that normally the upper electricity of installation, methods described include brand-new unit engineering:
Electric on S401, multiple on-line system unit, outdoor host computer detects that the memory chip of its configuration does not store the communication of indoor set
Address;
S402, outdoor host computer send address distribution and instruct and require that each indoor set returns to physical address code;
S403, the physical address code that each indoor set returns is received, and physical address code is calculated to draw each indoor set
Address;
S404, remove the address in memory chip will store newly assigned address, and by it is newly assigned communicatively
Corresponding indoor set is issued in location, to cause indoor set to store newly assigned address and use the address and outdoor unit
Communication;
S405, monitoring, which whether there is indoor set, sends zero-address fault warning, and the normal operation when not hearing.
Embodiment five
A kind of method for assigning address to indoor unit is present embodiments provided, its its application includes outdoor unit and at least two indoor sets
Multiple on-line system, and the multiple on-line system is installed for brand-new unit engineering abnormal, wherein, an indoor set access failure be present
Line is interrogated, methods described includes:
S501, multiple on-line system unit on electricity, outdoor host computer detects that memory chip of its configuration does not store the logical of indoor set
Interrogate address;
S502, outdoor host computer send address distribution and instruct and require that each indoor set returns to physical address code;
S503, the physical address code that each indoor set returns is received, and physical address code is calculated to draw each indoor set
Address;
S504, remove the address in memory chip will store newly assigned address, and by it is newly assigned communicatively
Corresponding indoor set is issued in location, to cause indoor set to store newly assigned address and use the address and outdoor unit
Communication;
S505, monitoring whether there is indoor set transmission zero-address fault warning;
S506, an indoor set transmission zero-address fault warning is listened to, verified after power-off and do not connect and repair to a wiring;
S507, the unit of multiple on-line system re-power, and outdoor host computer detects that memory chip is stored with address of indoor unit, and connects
The physical address code that an indoor set is sent is received, address of indoor unit distribution is carried out into step S402.
After S508, address of indoor unit are assigned, monitoring, which whether there is indoor set, sends zero-address fault warning, and in unlisten
Then normal operation.
Embodiment six
A kind of method for assigning address to indoor unit is present embodiments provided, its application includes the more of outdoor unit and at least two indoor sets
On-line system, and normal upper electricity after the completion of the multiple on-line system installation and debugging, methods described include
Electric on S601, multiple on-line system unit, outdoor host computer detects that the memory chip of its configuration is stored with the communication of indoor set
Address, and the physical address code that indoor set is sent is not received.
S602, outdoor host computer receive the address of each indoor set and are compared with the address in memory chip;
S603, comparing result address are identical, and do not hear indoor set and send zero-address fault warning information, and unit is normally transported
OK.
Embodiment seven
A kind of method for assigning address to indoor unit is present embodiments provided, its application includes the more of outdoor unit and at least two indoor sets
On-line system, and the multiple on-line system normal operation, there is an indoor set connection in it or power line disconnects, described
Method includes:
Electric on S701, multiple on-line system unit, outdoor host computer detects that the memory chip of its configuration is stored with the communication of indoor set
Address, and the physical address code that indoor set is sent is not received.
S702, outdoor host computer receive the address of each indoor set and are compared with the address in memory chip;
S703, comparing result show that address of indoor unit quantity is less than the number of addresses stored in memory chip, the outdoor unit report
It has " interior machine missing " failure, power-off finds that an indoor set connection disconnects and repaired after verifying wiring;
S704, unit re-power, and outdoor host computer detects that the memory chip of its configuration is stored with the address of indoor set, and
The physical address code that indoor set is sent is not received;
S705, outdoor host computer receive the address of each indoor set and are compared with the address in memory chip;
S706, comparing result address are identical, and do not hear indoor set and send zero-address fault warning information, and unit is normally transported
OK.
Embodiment eight
A kind of method for assigning address to indoor unit is present embodiments provided, its application includes the more of outdoor unit and at least two indoor sets
On-line system, and the multiple on-line system normal operation, wherein, brand-new zero-address control is changed in an indoor set after-sales service
Plate, methods described include:
Electric on S801, multiple on-line system unit, outdoor host computer detects that the memory chip of its configuration is stored with the communication of indoor set
Address, and receive the physical address code that an indoor set is sent;
S802, outdoor host computer send address distribution and instruct and require that each indoor set returns to physical address code
S803, the physical address code that each indoor set returns is received, and physical address code is calculated to draw each indoor set
Address;
S804, remove the address in memory chip will store newly assigned address, and by it is newly assigned communicatively
Corresponding indoor set is issued in location, to cause indoor set to store newly assigned address and use the address and outdoor unit
Communication;
S805, monitoring, which whether there is indoor set, sends zero-address fault warning, and the normal operation when not hearing.
Embodiment nine,
A kind of method for assigning address to indoor unit is present embodiments provided, its application includes the more of outdoor unit and at least two indoor sets
On-line system, and the multiple on-line system normal operation, wherein, one piece of control for having address is changed in an indoor set after-sales service
Making sheet, methods described include:
Electric on S901, multiple on-line system unit, outdoor host computer detects that the memory chip of its configuration is stored with the communication of indoor set
Address, and the physical address code that indoor set is sent is not received.
S902, outdoor host computer receive the address of each indoor set and are compared with the address in memory chip;
S903, comparing result show the address of indoor unit being not belonging in memory chip, and outdoor host computer sends address distribution instruction
And require that each indoor set returns to physical address code;
S904, the physical address code that each indoor set returns is received, and physical address code is calculated to draw each indoor set
Address;
S905, remove the address in memory chip will store newly assigned address, and by it is newly assigned communicatively
Corresponding indoor set is issued in location, to cause indoor set to store newly assigned address and use the address and outdoor unit
Communication;
S906, monitoring, which whether there is indoor set, sends zero-address fault warning, and the normal operation when not hearing.
Present invention also offers a kind of storage medium, and it is stored with a plurality of instruction, and the instruction is suitable to be loaded by processor
And perform as above any described method for assigning address to indoor unit.
Present invention also offers a kind of multiple on-line system, as shown in Figures 3 and 4, outdoor unit 100 and at least two indoor sets
200;The outdoor unit 100 includes:
Processor 101, it is adapted for carrying out each instruction;And
Memory 102, suitable for storing a plurality of instruction, the instruction is suitable to be loaded by processor and performed as above any described room
Interior machine address distribution method.
In addition, the detailed process that a plurality of instruction processing unit in above-mentioned storage medium and mobile terminal is loaded and performed exists
It has been described in detail in the above method, has just no longer stated one by one herein.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.