Summary of the invention
The main purpose of the present invention is to provide a kind of address distribution method of air-conditioning equipment and devices, it is intended to solve existing
Air-conditioning equipment between when being communicated, need manually to be indoor unit setting address, lead to inconvenient problem.
To achieve the above object, the address distribution method of a kind of air-conditioning equipment provided by the invention, the air-conditioning equipment
Address distribution method the following steps are included:
Outdoor unit is called the roll at least one indoor unit broadcast address and is instructed, wherein the address in the address roll-call instruction
Default bit address in the physical address of corresponding indoor unit;
The outdoor unit receives the data that at least one described indoor unit is returned according to address roll-call instruction;
Whether the data that the outdoor unit judgement receives are correct;
If so, the outdoor unit distributes address to the indoor unit for returning to correct data, for the return correct data
Indoor unit according to the address of distribution be arranged Self address.
Optionally, after the outdoor unit judges the whether correct step of the received data, further includes:
If it is not, then the outdoor unit broadcasts the next stage in the physical address of indoor unit at least one described indoor unit
Address, which is called the roll, to be instructed, wherein the address in the address roll-call instruction of previous stage and the address in the address roll-call instruction of rear stage
Digit locating in the physical address of machine is different indoors.
Optionally, the outdoor unit determines that the received data are incorrect data specifically:
If the outdoor unit receive multiple indoor units according to the address call the roll instruction return data, determine described in
The received data of outdoor unit are incorrect.
Optionally, the outdoor unit receives the data that at least one described indoor unit is returned according to address roll-call instruction
The step of before, further includes:
If the outdoor unit do not receive indoor unit according to the address call the roll instruction return data, to it is described at least
The next address in default bit address in the physical address of one indoor unit broadcast indoor unit, which is called the roll, to be instructed, wherein previous
Address in a address roll-call instruction is different from the address in the roll-call instruction of the address of the latter.
Optionally, the address distribution method of air-conditioning equipment further include:
All addresses in default bit address in the physical address that the outdoor unit has broadcasted indoor unit, which are called the roll, to be instructed
Afterwards, the data of return are instructed if not receiving indoor unit yet and calling the roll according to the address, determines that all indoor units are successfully arranged
Self address.
In addition, to achieve the above object, the present invention also provides a kind of address distributing device of air-conditioning equipment, the air-conditioning is set
Standby address distributing device includes:
Broadcast module is instructed for calling the roll at least one indoor unit broadcast address, wherein is called the roll in instruction the address
Address correspond to the default bit address in the physical address of indoor unit;
Receiving module, the data returned for receiving at least one described indoor unit according to address roll-call instruction;
Whether judgment module, the data for judging to receive are correct;
Distribution module distributes address to the indoor unit for returning to correct data if the data for receiving are correct, for
Self address is arranged according to the address of distribution in the indoor unit for returning to correct data.
Optionally, the broadcast module, if the data for being also used to receive are incorrect, at least one described indoor unit
The address for broadcasting the next stage in the physical address of indoor unit, which is called the roll, to be instructed, wherein the ground in the address roll-call instruction of previous stage
Location is different from digit locating in the address in the roll-call instruction of the address of the rear stage indoors physical address of machine.
Optionally, if the judgment module, which is also used to receive multiple indoor units, calls the roll what instruction returned according to the address
Data then determine that the received data of the outdoor unit are incorrect.
Optionally, the broadcast module calls the roll what instruction returned according to the address if being also used to not receive indoor unit
Data then broadcast the next address point in the default bit address in the physical address of indoor unit at least one described indoor unit
Name instruction, wherein the address in previous address roll-call instruction is different from the address in the roll-call instruction of the address of the latter.
Optionally, the judgment module is also used in the default bit address in the physical address for having broadcasted indoor unit
All addresses are called the roll after instruction, instruct the data of return if not receiving indoor unit yet and calling the roll according to the address, are determined all
Self address is successfully arranged in indoor unit.
The present invention is called the roll at least one indoor unit broadcast address by outdoor unit and is instructed, if in the physical address of indoor unit
Including the address in the roll-call instruction of the address, then the indoor unit responds the address roll-call instruction, i.e., to the outdoor unit
Returned data, whether the data that the outdoor unit judgement receives are correct, if the data received are correct, the outdoor unit is given
The indoor unit for returning to correct data distributes address, so that Self address is arranged according to the address of distribution in it, to realize indoor unit
Address distribute automatically, efficiently solve the problems, such as caused inconvenient when manual allocation address.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Based on the above issues, the present invention provides a kind of address distribution method of air-conditioning equipment.
Referring to Fig.1, Fig. 1 is the flow diagram of the first embodiment of the address distribution method of air-conditioning equipment of the present invention.
In the present embodiment, the address distribution method of the air-conditioning equipment includes:
Step S10, outdoor unit are called the roll at least one indoor unit broadcast address and are instructed;
It is powered for the first time after air-conditioning equipment (including indoor unit and outdoor unit) is installed, will distribute and flow automatically into address
Journey, outdoor unit are called the roll at least one indoor unit broadcast address and are instructed, it is preferred that at least one described indoor unit is air-conditioning system
In all indoor units.Wherein, the address in instructing is called the roll with corresponding to the default position in the physical address of indoor unit in the address
Location.The physical address is the identifier of each indoor unit, is generally indicated using hexadecimal number, shares 6 bytes (Byte),
12 nibbles (Byte), it is assumed that respectively indicate 12 nibbles (Byte), indoor unit physical address using SEG0~SEG11
In each nibble (Byte) can be some in 0~F of hexadecimal number.In this embodiment, in the physical address
Default bit address be preferably the physical address the first address, i.e. SEG0, certainly, default position in the physical address
Location may be other bit address of the physical address, such as the 12nd bit address, i.e. SEG11.Due to different indoor equipments
Some physical address are different, i.e. the physical address of indoor unit is unique, and outdoor unit does not know each indoor unit in advance
Therefore physical address can call the roll instruction at least one indoor unit broadcast address to distinguish different interiors by outdoor unit
Machine, it is preferable that when carrying out broadcast address roll-call, the ground of the nybble in the physical address of indoor unit that can call the roll every time
Location, i.e. some nibble address in each roll-call SEG0~SEG11, such as the corresponding address roll-call SEG0.
Step S20, the outdoor unit receive the number that at least one described indoor unit is returned according to address roll-call instruction
According to;
If in the physical address of the prespecified indoor unit of the communication protocol of the air-conditioning equipment including the outdoor unit address
It the address called the roll in instructing can returned data after then the indoor unit calls the roll instruction in the address for receiving the outdoor unit broadcast
To the outdoor unit, which replied by data message, and the data specifically returned are determined by message protocol,
Herein without limitation.
If the address that will not respond the outdoor unit broadcast is called the roll it should be noted that indoor unit has had address
Instruction, i.e., indoor unit will not return data to the outdoor unit.
Whether step S30, the data that the outdoor unit judgement receives are correct;
Step S40, if so, the outdoor unit distributes address to the indoor unit for returning to correct data, for its basis point
The address setting Self address matched.
The outdoor unit judges whether the data received are correct after the data for receiving indoor unit return, specifically,
May determine that whether the data received are preset data, if the data received are preset data, it is determined that receive
Data it is correct.In the present embodiment, when only one indoor unit calls the roll instruction returned data according to the address, outdoor unit
The correct data that at least one described indoor unit returns can be just received, are called the roll when there are multiple indoor units according to the address
When instructing returned data, due to interfering with each other between the data of each return, so that the data that the outdoor unit receives are not
Correctly, and then lead to the outdoor unit not and can determine that the indoor unit of returned data.Therefore, the outdoor unit is only receiving just
When true returned data, just address can be distributed to the indoor unit for returning to correct data, so that the indoor unit is according to the address of distribution
The address of itself is set, that is, the address of the indoor unit is set.The address that outdoor unit is distributed to indoor unit can be the room
Outer machine is pre-stored in the address in address table, and often distributes an address, all needs to record the address, to avoid for other rooms
Interior machine distributes identical address.
The present embodiment is called the roll at least one indoor unit broadcast address by outdoor unit and is instructed, if the physical address of indoor unit
In include address that the address is called the roll in instruction, then the indoor unit responds the address and calls the roll instruction, i.e., to the outdoor
Machine returned data, whether the data that the outdoor unit judgement receives are correct, if the data received are correct, the outdoor unit
Address is distributed to the indoor unit for returning to correct data, so that Self address is arranged according to the address of distribution in it, to realize interior
The address of machine is distributed automatically, is efficiently solved the problems, such as caused inconvenient when manual allocation address.
Further, propose that the second of the address distribution method of air-conditioning equipment of the present invention implements based on above-mentioned first embodiment
Example, referring to Fig. 2, in the present embodiment, after the step S30, further includes:
Step S50, if it is not, then the outdoor unit is into the physical address of at least one described indoor unit broadcast indoor unit
The address of next stage, which is called the roll, to be instructed.
When the outdoor unit determines that the data received are incorrect data, i.e., the described outdoor unit receives multiple rooms
Interior machine is called the roll according to the address instructs the data of return, and the outdoor unit broadcasts indoor unit at least one described indoor unit
It the address of next stage in physical address calls the roll instruction, wherein the address of previous stage is called the roll address in instruction and rear stage
Address is called the roll, and digit locating in the physical address of machine is different indoors for the address in instruction.For example, referring to if last time address is called the roll
Address in order is the address of the first order, then the address in the address roll-call instruction of this time broadcast is then the physical address of indoor unit
In next stage address, i.e. the address of the second level, and so on, the address if last time address is called the roll in instruction is the tenth level-one
Address, then this time broadcast address be then the tenth second level address, it should be noted that the ground of each rank described above
Location corresponds to the address of each from low to high of the physical address of the indoor unit, and specifically, the address of the first order is corresponding
The first bit address of the indoor unit physical address, i.e. SEG0, the address of the second level correspond to the indoor unit physical address
The second bit address, i.e. SEG1, the address of the third level corresponds to the third bit address of the indoor unit physical address, i.e. SEG2,
The rest may be inferred, and dozenth address corresponds to the tenth two digit address of the indoor unit physical address, i.e. SEG11.Of the invention
One specific embodiment is as follows:
Assuming that the address of the address roll-call instruction of broadcast is the ground of the first order when outdoor unit receives incorrect data
5 in location, then it will broadcast the address of the second level outdoor unit next time, i.e. 0~F in SEG1 first calls the roll since address 0, if not having
There is indoor unit to respond the address 0, then will continue roll-call address 1, until calling the roll until the F of address, then returnes to the first order
Address is called the roll, i.e. 6 in the address of the roll-call first order, if having multiple indoor units to respond the address points when calling the roll some address
Name, then outdoor unit instructs the address roll-call for continuing to broadcast next stage, that is to say, that will continue to broadcast the address of the third level, together
Reason, is called the roll since address 0, until calling the roll until the F of address, if not going out during address F is arrived in roll-call address 0
The case where now receiving multiple indoor unit response addresses roll-call instructions, then after calling the roll to address F, back to the address of the first order
It calls the roll, i.e. 6 in the address of the roll-call first order, similarly, if still occurring receiving more during address F is arrived in roll-call address 0
The case where a indoor unit response address roll-call instruction, then outdoor unit will continue to broadcast the address roll-call instruction of next stage.
The present embodiment is by broadcasting when outdoor unit receives the data that multiple indoor units are returned according to address roll-call instruction
Instruction call the roll to distinguish different indoor units, so that be embodied as each indoor unit distributes address automatically in the address of next stage.
Further, propose that the third of the address distribution method of air-conditioning equipment of the present invention is implemented based on any of the above-described embodiment
Example, referring to Fig. 3, in the present embodiment, before the step S20, further includes:
Step S60, if the outdoor unit does not receive the data that indoor unit is returned according to address roll-call instruction, to
The next address in default bit address in the physical address of at least one indoor unit broadcast indoor unit, which is called the roll, to be instructed.
When outdoor unit is called the roll at least one described indoor unit broadcast address to be instructed, within the preset time, the room
Outer machine does not receive the data that indoor unit is returned according to address roll-call instruction, then shows the object of at least one indoor unit
It manages all there is no the address in the roll-call instruction of the address of current broadcast in address, then outdoor unit is wide at least one described indoor unit
Broadcast the next address roll-call instruction in the default bit address in the physical address of indoor unit, wherein call the roll previous address
Address in instruction is different from the address in the roll-call instruction of the address of the latter.For example, if previous address is called the roll in instruction
Address is in the default bit address in the physical address of indoor unit 0, then the address in the address roll-call instruction of the latter is then 1,
Address if previous address is called the roll in instruction is 1, and the address in the address roll-call instruction of the latter is then 2, and so on,
Address if previous address is called the roll in instruction is E, and the address in the address roll-call instruction of the latter is then F.In outdoor unit
The next address in default bit address into the physical address of at least one described indoor unit broadcast indoor unit, which is called the roll, to be instructed
Afterwards, if after preset time, indoor unit does not receive the data that indoor unit is returned according to address roll-call instruction yet, then repeats
Step S60, until outdoor unit receives the data of indoor unit return.
The present embodiment is by broadcasting next address when the address that outdoor unit is broadcasted calls the roll and instructs the response of no indoor unit
Instruction call the roll to distinguish different indoor units, distributes address automatically to each indoor unit to realize.
Further, the fourth embodiment of the address distribution method of air-conditioning equipment of the present invention is proposed based on first embodiment,
Referring to Fig. 4, in the present embodiment, the address distribution method of the air-conditioning equipment further include:
Step S70, all addresses in default bit address in the physical address that the outdoor unit has broadcasted indoor unit
It calls the roll after instruction, instructs the data of return if not receiving indoor unit yet and calling the roll according to the address, determined all indoor units
Self address is arranged in success.
All addresses in default bit address in the physical address that the outdoor unit has broadcasted indoor unit, i.e., the described room
The address that address of the outer machine in the default bit address in the physical address for having broadcasted indoor unit is F is called the roll after instruction, is not received yet
When calling the roll the data for instructing and returning according to the address to indoor unit, determine that Self address is successfully arranged in all indoor units,
Address allocation flow terminates, and into device talk mode, i.e. outdoor unit can be with each indoor unit normal communication.
The present invention further provides a kind of address distributing devices of air-conditioning equipment.
Referring to the functional module signal that Fig. 5, Fig. 5 are the first embodiment of the address distributing device of air-conditioning equipment of the present invention
Figure.
In the present embodiment, the address distributing device of the air-conditioning equipment includes: broadcast module 10, receiving module 20, sentences
Disconnected module 30 and distribution module 40.
The broadcast module 10 is instructed for calling the roll to all indoor unit broadcast addresses, wherein the address, which is called the roll, to be instructed
In address correspond to the default bit address in the physical address of indoor unit;
It is powered for the first time after air-conditioning equipment (including indoor unit and outdoor unit) is installed, will distribute and flow automatically into address
Journey, the broadcast module 10 are called the roll at least one indoor unit indoor unit broadcast address and are instructed, it is preferred that at least one described room
Interior machine is all indoor units in air-conditioning system.Wherein, the address in the address roll-call instruction corresponds to all indoor units
Physical address in default bit address.The physical address is the identifier of each indoor unit, generally uses hexadecimal number
It indicates, shares 6 bytes (Byte), 12 nibbles (Byte), it is assumed that respectively indicate 12 half-words using SEG0~SEG11
It saves (Byte), each nibble (Byte) in indoor unit physical address can be some in 0~F of hexadecimal number.?
In this implementation, the default bit address in the physical address is preferably the first address of the physical address, i.e. SEG0, certainly,
Default bit address in the physical address may be other bit address of the physical address, such as the 12nd bit address, i.e.,
SEG11.Since the physical address that different indoor units has is different, and the physical address of indoor unit is uniquely, however, room
Outer machine does not know the physical address of each indoor unit in advance, therefore, can be indoor at least one by the broadcast module 10
Machine indoor unit broadcast address calls the roll instruction to distinguish different indoor units, it is preferable that, can be with every when carrying out broadcast address roll-call
The address of nybble in the physical address of secondary roll-call indoor unit, i.e. in each roll-call SEG0~SEG11 some half
Byte address, such as the corresponding address roll-call SEG0.
The receiving module 20, the number returned for receiving at least one described indoor unit according to address roll-call instruction
According to;
If in the physical address of the prespecified indoor unit of the communication protocol of the air-conditioning equipment including the outdoor unit address
It the address called the roll in instructing can returned data after then the indoor unit calls the roll instruction in the address for receiving the outdoor unit broadcast
To the outdoor unit, which replied by data message, and the data specifically returned are determined by message protocol,
Herein without limitation.
If the address that will not respond the outdoor unit broadcast is called the roll it should be noted that indoor unit has had address
Instruction, i.e., indoor unit will not return data to the outdoor unit.
Whether the judgment module 30, the data for judging to receive are correct;
The distribution module 40, if the data for receiving are correct, to return correct data indoor unit distributively
Location, so that Self address is arranged according to the address of distribution in the indoor unit for returning to correct data.
For the receiving module 20 after the data for receiving indoor unit return, the judgment module 30 judges the number received
According to whether correctly, specifically, may determine that whether the data received are preset data, if the data received are default
Data, it is determined that the data received are correct.In the present embodiment, it is called the roll and is instructed according to the address when only one indoor unit
When returned data, receiving module 20 can just receive the correct data that at least one described indoor unit returns, when there are multiple
When indoor unit is according to address roll-call instruction returned data, due to interfering with each other between the data of each return, it can make
The data that the outdoor unit receives are incorrect, and then the receiving module 20 is caused not can determine that the indoor unit of returned data.
Therefore, only when receiving correct returned data, the distribution module 40 just can be to the indoor unit point for returning to correct data
With address, so that the address of itself is arranged according to the address of distribution in the indoor unit, that is, the address of the indoor unit is set.It is outdoor
The address that machine is distributed to indoor unit can be pre-stored in the address in address table for the outdoor unit, and often distribute a ground
Location all needs to record the address, distributes identical address to avoid for other indoor units.
Further, the broadcast module 10, if the data for being also used to receive are incorrect, at least one described room
The address of next stage in the physical address of interior machine broadcast indoor unit, which is called the roll, to be instructed.
When the judgment module 30 determines that the data received are incorrect data, i.e., the described receiving module 20 receives
It is called the roll the data that instruction returns to multiple indoor units according to the address, the broadcast module 10 is at least one described indoor unit
The address for broadcasting the next stage in the physical address of indoor unit, which is called the roll, to be instructed, wherein the ground in the address roll-call instruction of previous stage
Location is different from digit locating in the address in the roll-call instruction of the address of the rear stage indoors physical address of machine.For example, on if
Address in secondary address roll-call instruction is the address of the first order, then the address in address roll-call instruction of this time broadcast is then indoor
The address of next stage in the physical address of machine, the i.e. address of the second level, and so on, the ground if last time address is called the roll in instruction
Location is the address of the tenth level-one, then the address this time broadcasted then is the address of the tenth second level, it should be noted that described above
The address of each rank corresponds to the address of each from low to high of the physical address of the indoor unit, specifically, first
The address of grade corresponds to the first bit address of the indoor unit physical address, i.e. SEG0, the address of the second level corresponds to the room
Second bit address of interior machine physical address, i.e. SEG1, the address of the third level correspond to the third position of the indoor unit physical address
Address, i.e. SEG2, and so on, dozenth address corresponds to the tenth two digit address of the indoor unit physical address, i.e.,
SEG11.A specific embodiment of the invention is as follows:
Assuming that the address of the address roll-call instruction of broadcast is the first order when receiving module 20 receives incorrect data
Address in 5, then the broadcast module 10 will broadcast the address of the second level next time, i.e. 0~F in SEG1 is first opened from address 0
Initial point name will continue roll-call address 1 if responding the address 0 without indoor unit, until calling the roll until the F of address, then return
It calls the roll to the address of the first order, i.e. 6 in the address of the roll-call first order, if thering are multiple indoor units to ring when calling the roll some address
Should address call the roll, then the address that broadcast module 10 will continue to broadcast next stage is called the roll instruction, that is to say, that will continue broadcast the
The address of three-level is similarly called the roll since address 0, until calling the roll until the F of address, if in roll-call address 0 to address F
In the process, there is not the case where receiving multiple indoor unit response addresses roll-call instructions, then after calling the roll to address F, return
It calls the roll to the address of the first order, i.e. 6 in the address of the roll-call first order, similarly, if during address F is arrived in roll-call address 0,
Still there is the case where receiving multiple indoor unit response addresses roll-call instructions, then the broadcast module 10 will continue to broadcast next
The address of grade, which is called the roll, to be instructed.
Further, the broadcast module 10 instructs if being also used to not receive indoor unit and being called the roll according to the address
The data of return, then it is next in the default bit address into the physical address of at least one described indoor unit broadcast indoor unit
Address, which is called the roll, to be instructed.
When broadcast module 10 is called the roll at least one described indoor unit broadcast address to be instructed, within the preset time, institute
It states receiving module 20 and does not receive the data that indoor unit is returned according to address roll-call instruction, then show at least one described room
In the physical address of interior machine all there is no current broadcast address call the roll instruction in address, then broadcast module 10 to it is described at least
The next address in default bit address in the physical address of one indoor unit broadcast indoor unit, which is called the roll, to be instructed, wherein previous
Address in a address roll-call instruction is different from the address in the roll-call instruction of the address of the latter.For example, if previous address
The address called the roll in instructing is in the default bit address in the physical address of indoor unit 0, then in the address roll-call instruction of the latter
Address be then 1, the address if previous address is called the roll in instruction is 1, and the address in instruction is called the roll then in the address of the latter
It is 2, and so on, the address if previous address is called the roll in instruction is E, and the address in instructing is called the roll then in the address of the latter
For F.It is next in the default bit address into the physical address of at least one described indoor unit broadcast indoor unit in outdoor unit
Address is called the roll after instruction, if after preset time, indoor unit does not receive the number that indoor unit is returned according to address roll-call instruction yet
According to, then repeat step S60, until receiving module 20 receive indoor unit return data until.
The judgment module 30, be also used in the default bit address in the physical address for having broadcasted indoor unit allly
Location is called the roll after instruction, is instructed the data of return if not receiving indoor unit yet and calling the roll according to the address, is determined all indoor units
Self address is successfully set.
When broadcast module 10 is after having broadcasted the address roll-call instruction, i.e., the described broadcast module 10 is broadcasting indoor unit
Physical address in default bit address in address be F address call the roll instruction after, do not receive indoor unit yet according to describedly
When the data that location roll-call instruction returns, the judgment module 30 determines that Self address, address is successfully arranged in all indoor units
Allocation flow terminates, and into device talk mode, i.e. outdoor unit can be with each indoor unit normal communication.
The present embodiment is called the roll at least one indoor unit broadcast address by outdoor unit and is instructed, if the physical address of indoor unit
In include address that the address is called the roll in instruction, then the indoor unit responds the address and calls the roll instruction, i.e., to the outdoor
Machine returned data, whether the data that the outdoor unit judgement receives are correct, if the data received are correct, the outdoor unit
Address is distributed to the indoor unit for returning to correct data, so that Self address is arranged according to the address of distribution in it, to realize interior
The address of machine is distributed automatically, is efficiently solved the problems, such as caused inconvenient when manual allocation address.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.Pass through above embodiment party
The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software
The mode of hardware platform is realized, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.It is based on
Such understanding, substantially the part that contributes to existing technology can be with software product in other words for technical solution of the present invention
Form embody, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including
Some instructions are used so that a terminal device (can be mobile phone, computer, server, air conditioner or the network equipment etc.)
Execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.