Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides a kind of multi-gang air-conditioner wireless control method, optionally controlling one or more indoor sets of multi-gang air-conditioner, comprising the following steps: carrying out hardware initialization, setting wireless frequency range; Whether idlely detect described radio band; When described radio band is idle, described radio band sends the search signal for searching for target indoor set, and waits for that described target indoor set sends the first feedback signal; When described target indoor set sends described first feedback signal, described first feedback signal is verified; When described first feedback signal is by verification, determine that described first feedback signal is for confirming feedback signal, described target indoor set is labeled as and can connects indoor set and show, judge the distance of described target indoor set distance simultaneously according to the power of described confirmation feedback signal; Sort being labeled as the described target indoor set that can connect indoor set according to the distance of distance; Control being labeled as the described target indoor set that can connect indoor set.
Preferably, the method is further comprising the steps of: when described radio band is busy, judges that whether other radio bands are idle; When described target indoor set does not send the first feedback signal, described target indoor set being labeled as and can not connecting indoor set, sending the search signal for searching for other target indoor sets, and wait for that other target indoor sets described send the first feedback signal; When described first feedback signal is not by verification, described target indoor set is labeled as and can not connects indoor set, sending the search signal for searching for other target indoor sets, and wait for that other target indoor sets described send the first feedback signal.
Preferably, described search signal comprises: initial code, wireless controller numbering, target address of indoor unit and check code; Described first feedback signal comprises: initial code, wireless controller numbering, this address of indoor unit and check code.
Preferably, described search signal comprises: initial code, wireless controller numbering, target address of indoor unit and check code; Described first feedback signal comprises: initial code, wireless controller numbering, this address of indoor unit and check code.
Preferably, when the check code in described search signal is equal with the check code that described target indoor set carries, and when the target address of indoor unit in described search signal is equal with the address of described target indoor set itself, described target indoor set sends described first feedback signal; When the check code in described first feedback signal is equal with the check code in described search signal, and when the initial code in described first feedback signal is feedback data, described first feedback signal, by verification, determines that described first feedback signal is for confirming feedback signal.
Preferably, describedly to comprise being labeled as the step that the described target indoor set that can connect indoor set controls: send command signal to described target indoor set, and wait for that described target indoor set sends the second feedback signal; During the verification of described command signal by described target indoor set, described target indoor set performs the instruction of described command signal, and sends described second feedback signal; When described target indoor set sends described second feedback signal, described second feedback signal is verified; When described second feedback signal is by verification, determine that described second feedback signal is for performing feedback signal, confirms that described command signal sends successfully.
Preferably, the method is further comprising the steps of: during the verification of described command signal not by described target indoor set, described target indoor set does not perform instruction; When described second feedback signal is not by verification, described target indoor set is labeled as and can not connects indoor set.
Preferably, described command signal comprises: initial code, wireless controller numbering, target address of indoor unit, mode set command and check code; Described second feedback signal comprises: initial code, wireless controller numbering, this address of indoor unit, current state information and check code.
Preferably, when the check code in described command signal is equal with the check code that described target indoor set carries, and when the target address of indoor unit in described command signal is equal with the address of described target indoor set itself, perform the instruction of described command signal, and send described second feedback signal; When the check code in described second feedback signal is equal with the check code in described command signal, and when the initial code in described second feedback signal is feedback data, determine that described second feedback signal is for performing feedback signal.
Present invention also offers a kind of multi-gang air-conditioner wireless controller, be applicable to above-mentioned multi-gang air-conditioner wireless control method, for optionally controlling one or more indoor sets of multi-gang air-conditioner, comprise: temperature sensor, input unit, display unit, frequency communication devices, storage device, control device and power supply, wherein, described temperature sensor for detecting indoor temperature, and transmits indoor temperature information to described control device; Described input unit is used for for user to described control device input instruction; Described display unit is for receiving the instruction of described control device to show the current status information of multi-gang air-conditioner; Described frequency communication devices sends search signal and command signal for the instruction receiving described control device with the indoor set to multi-gang air-conditioner, and is verified to described control device for described control device by the feedback signal transmission received; Described storage device for storing the data from described control device, and supplies described control device called data; Described control device for controlling the work of each parts of described multi-gang air-conditioner wireless controller, and optionally controls one or more indoor sets of multi-gang air-conditioner by described frequency communication devices; Described power supply is used for providing electric power to described multi-gang air-conditioner wireless controller.
Preferably, described control device is single-chip microcomputer.
Preferably, described input unit is keyboard.
Preferably, described storage device is EEPROM.
Invention further provides a kind of multi-gang air-conditioner, described multi-gang air-conditioner has one or more indoor set and above-mentioned multi-gang air-conditioner wireless controller, and described multi-gang air-conditioner wireless controller is used for optionally controlling described one or more indoor set.
According to multi-gang air-conditioner wireless control method of the present invention, by the step that wireless automatic search and distance identify, neighbouring target indoor set can either be searched for, can also be far and near according to wireless signal strength decipherment distance, and in the display screen display of air-conditioner controller, the distance making user can be marked as the target indoor set that can connect indoor set according to each selectively controls these target indoor sets, thus the installation quantity of multi-gang air-conditioner wireless controller can be reduced, reduce cost, increase the versatility of multi-gang air-conditioner wireless controller simultaneously.
In summary of the invention part, introduce the concept of a series of reduced form, this will further describe in detailed description of the invention part.Content part of the present invention does not also mean that the key feature and essential features that will attempt to limit technical scheme required for protection, does not more mean that the protection domain attempting to determine technical scheme required for protection.
Below in conjunction with accompanying drawing, describe advantages and features of the invention in detail.
Detailed description of the invention
In the following description, a large amount of concrete details is given to provide more thorough understanding of the invention.But, it will be apparent to one skilled in the art that the present invention can be implemented without the need to these details one or more.In other example, in order to avoid obscuring with the present invention, technical characteristics more well known in the art are not described.
In order to thoroughly understand the present invention, by following description, detailed structure is proposed.Obviously, execution of the present invention is not limited to the specific details that those skilled in the art has the knack of.Preferred embodiment of the present invention is described in detail as follows, but except these are described in detail, the present invention can also have other embodiments.
The invention discloses a kind of multi-gang air-conditioner wireless control method, optionally to control one or more indoor sets of multi-gang air-conditioner.The step that the method mainly comprises can be found out from the flow chart shown in Fig. 1.
First the initialization of hardware is carried out, and setting wireless frequency range, such as can set radio frequency band.Then, whether the radio band set by detection is idle.When detecting that set radio band sends the search signal for searching for target indoor set immediately in this radio band time idle, and wait for that target indoor set sends the first feedback signal.When target indoor set sends the first feedback signal, the first feedback signal that target indoor set is beamed back is verified.First feedback signal is by after verification, first feedback signal is defined as confirm feedback signal, namely target indoor set confirms oneself can be connected, so be labeled as and can connect indoor set by this target indoor set, and it is carried out showing on the display apparatus controlling for user.Simultaneously, by judging to confirm that the power of feedback signal can judge the distance of target indoor set, concrete judgement can use this formula: negative 3 powers of distance=distance coefficient × confirmation feedback signal strength, wherein distance coefficient is the constant that those skilled in the art know, and it is relevant with application scenario environment with wireless chip.After drawing judged result, just can sort to being labeled as the target indoor set that can connect indoor set according to the distance of distance, such as, the distance of target indoor set according to distance be arranged from left to right.When performing the search to target indoor set, each only search target indoor set, along with the execution repeatedly of search step, all upgrades after having searched at every turn, which target indoor set shows currently has be attachable, and what upgrade also has target indoor set according to the sequence of distance simultaneously.Finally, user just can control being labeled as attachable indoor set.
According to multi-gang air-conditioner wireless control method of the present invention, by the step that wireless automatic search and distance identify, neighbouring target indoor set can either be searched for, can also be far and near according to wireless signal strength decipherment distance, and in the display screen display of air-conditioner controller, the distance making user can be marked as the target indoor set that can connect indoor set according to each selectively controls these target indoor sets, thus the installation quantity of multi-gang air-conditioner wireless controller can be reduced, reduce cost, increase the versatility of multi-gang air-conditioner wireless controller simultaneously.
Preferably, method provided by the invention also comprises further: if radio band is busy, then reset new radio band and judge that whether new radio band is busy.If target indoor set does not send the first feedback signal, then this target indoor set being labeled as and can not connecting indoor set, sending the search signal for searching for other target indoor sets subsequently, and wait for that new target indoor set sends the first feedback signal.And when the first feedback signal is not by verification, then target indoor set is labeled as and can not connects indoor set, sending the search signal for searching for other target indoor sets subsequently, and wait for that new target indoor set sends the first feedback signal.
Control 10 indoor sets to use multi-gang air-conditioner wireless controller to perform multi-gang air-conditioner wireless control method of the present invention below, illustrate multi-gang air-conditioner wireless controller and how to apply multi-gang air-conditioner wireless control method of the present invention indoor set is controlled.Below by multi-gang air-conditioner wireless controller referred to as " controller ", by multi-gang air-conditioner wireless control method referred to as " method ".
After the set radio band free time being detected, first controller can send search signal to No. 1 indoor set, judges whether No. 1 indoor set can connect.No. 1 indoor set verifies search signal, and after verification, No. 1 indoor set will send the first feedback signal to controller.First feedback signal is by after the verification of controller, controller can determine that the first feedback signal is for confirming feedback signal, No. 1 indoor set is labeled as simultaneously and can connects indoor set and show in the display unit of controller, and according to confirming that the power of feedback signal calculates No. 1 distance between indoor set and controller and stores in the storage device.Now owing to only searching an indoor set, so temporarily No. 1 indoor set to be presented at the leftmost side of display unit, represent that now No. 1 indoor set distance controller is nearest.Then, whether controller can detect No. 2 indoor set to 10 indoor sets in an identical manner and can connect, and calculates the distance between indoor set and controller that can connect in No. 2 indoor set to 10 indoor sets.When after the detection that controller completes once to 10 indoor sets, distance between those attachable indoor set and controllers can sort by controller, and according to from the close-by examples to those far off or the order drawn near show in a display device, understand every platform to make user and can connect the distance of indoor set apart from oneself.After completing above-mentioned work, controller again can detect all indoor sets from No. 1 indoor set, whether change to understand the situation that can connect indoor set, and after the detection completing second round to display unit in the content that shows upgrade can connect so that user understands which indoor set current in real time.
After controller sends search signal to No. 1 indoor set, No. 1 indoor set does not have transmission first feedback signal within the scheduled time (such as 2 seconds), controller can send search signal to No. 1 indoor set again, until No. 1 indoor set sends the first feedback signal or the transmission times of search signal reaches pre-determined number (such as sending 3 times).Now, No. 1 indoor set can be labeled as not attachable indoor set by controller, and starts to send search signal to No. 2 indoor sets, and whether detect No. 2 indoor sets according to above-mentioned mode is attachable indoor set.If the search signal that controller sends to No. 1 indoor set is received by other indoor sets (such as No. 2 or No. 3 indoor sets), then the actual indoor set receiving search signal can not send any feedback signal to controller, and controller can be considered as No. 1 indoor set and not send the first feedback signal.
For the scheduled time mentioned in above-mentioned explanation and pre-determined number, can set when dispatching from the factory.And the number of indoor set also can set according to the indoor set number of the actual outfit of multi-gang air-conditioner.
One of the present invention preferred embodiment in, in order to verify search signal and the first feedback signal more exactly, search signal comprises: initial code, wireless controller numbering, target address of indoor unit and check code.First feedback signal comprises: initial code, wireless controller numbering, this address of indoor unit and check code.This contain much information search signal and the first feedback signal can clearly illustrate that the source of signal, the side being conducive to Received signal strength identifies signal.
Further preferably, target indoor set is when verifying search signal, when the check code in search signal equal with the check code that target indoor set carries (data integrity of search signal is described), and when the target address of indoor unit in search signal is equal with the address of target indoor set itself, it oneself is exactly that controller will be found that target indoor set confirms, can send the first feedback signal immediately to controller.And controller is when verifying the first feedback signal, when the check code in the first feedback signal equal with the check code in search signal (data integrity of the first feedback signal is described), and when the initial code in the first feedback signal is feedback data, first feedback signal is by verification, and controller determines that the first feedback signal is for confirming feedback signal.Such method of calibration, by carrying out the comparison of two steps, ensure that the accuracy of verification, contributes to the search carried out exactly indoor set while confirming data integrity.
Illustrate how to control being labeled as the target indoor set that can connect indoor set below in conjunction with Fig. 2.
User can select one or more indoor set to control in connected indoor set shown display unit.First, user sends command signal by input unit indicating controller to selected target indoor set, and after command signal sends, controller waits for that target indoor set returns the second feedback signal.Can verify command signal after target indoor set receives command signal, when command signal is by verification, the instruction (such as start refrigeration, change wind speed etc.) of target indoor set instruction execution signal, and send the second feedback signal to controller.After controller receives the second feedback signal, just start to verify the second feedback signal.When the second feedback signal is by verification, controller determines that the second feedback signal is for performing feedback signal, confirms that command signal sends successfully.
In addition, the control that can connect indoor set is also comprised: when command signal does not pass through the verification of target indoor set, target indoor set does not perform instruction.When the second feedback signal does not pass through the verification of controller, target indoor set is labeled as and can not connects indoor set.
Particularly, such as controller sends command signal to No. 1 indoor set, if command signal is by the verification of No. 1 indoor set, then and No. 1 indoor set instruction not in instruction execution signal.And the second feedback signal is not by the verification of controller, both can be because No. 1 indoor set does not send the second feedback signal to controller, also can be because the second feedback signal is carrying out not passing through in the process of proofreading.As long as the second feedback signal is not confirmed as execution feedback signal by controller think that command signal sends successfully, controller can send command signal to No. 1 indoor set again, until No. 1 indoor set sends the second feedback signal and reaches pre-determined number (such as sending 3 times) by verification or the transmission times of command signal.Now, No. 1 indoor set can be labeled as not attachable indoor set by controller.
One of the present invention preferred embodiment in, in order to verify command signal and the second feedback signal more exactly, command signal comprises: initial code, wireless controller numbering, target address of indoor unit, mode set command and check code.Second feedback signal comprises: initial code, wireless controller numbering, this address of indoor unit, current state information and check code.
Further preferably, target indoor set is when verifying command signal, when the check code in command signal equal with the check code that target indoor set carries (data integrity of declarative instruction signal), and when the target address of indoor unit in command signal is equal with the address of target indoor set itself, the instruction of instruction execution signal, and send the second feedback signal.And controller is when verifying the second feedback signal, when the check code in the check code and instruction signal in the second feedback signal equal (data integrity of the second feedback signal is described), and when the initial code in the second feedback signal is feedback data, determine that the second feedback signal is for performing feedback signal.Such method of calibration, by carrying out the comparison of two steps, ensure that the accuracy of verification, contributes to the control carried out exactly indoor set while confirming data integrity.
The invention also discloses a kind of multi-gang air-conditioner wireless controller, this multi-gang air-conditioner wireless controller is applicable to above-mentioned multi-gang air-conditioner wireless control method, for optionally controlling one or more indoor set from the indoor set of multi-gang air-conditioner, as can be seen from Figure 3, multi-gang air-conditioner wireless controller provided by the invention comprises temperature sensor 10, input unit 20, display unit 30, frequency communication devices 40, storage device 50, control device 60 and power supply 70.Wherein, temperature sensor 10 for being arranged on indoor, such as, is arranged on indoor set, with the temperature in sensing chamber.Input unit 20 is used for inputting instruction for user to control device 60.Display unit 30 for the instruction of receiving control device 60, and shows the current state of multi-gang air-conditioner according to the instruction of control device 60.The such as status information such as wind speed, operation mode.Radio frequency signaling devices 40 sends search signal and command signal for the instruction of receiving control device, search signal is used for search which indoor set current and can be controlled, and command signal is then to can instruction of certain operation of the execution that sends of controlled indoor set.In addition, radio frequency signaling devices 40 is also responsible for receiving the feedback signal from indoor set, and by feedback signal transmission to control device 60, is verified by control device 60 pairs of feedback signals.Storage device 50 for storing the data carrying out self-control device 60, and supplies control device 60 called data in running.Control device 60 is for controlling the work of each parts of multi-gang air-conditioner wireless controller, and search and the control of control device 60 pairs of indoor sets are all optionally carried out by frequency communication devices 40.Power supply 70 is for providing the electric power needed for operation for multi-gang air-conditioner wireless controller.Because the control device 60 of multi-gang air-conditioner wireless controller is all connected with miscellaneous part, so power supply 70 can only be connected with control device 60, by control device 60, electric power is flowed to all parts, electric wire also can be used to be connected with all parts respectively by power supply 70.
According to multi-gang air-conditioner wireless controller of the present invention, control frequency communication devices transmission search signal by control device and neighbouring indoor set is searched for, determine which indoor set can connect.Frequency communication devices also sends command signal to the indoor set that can connect under control of the control means and controls indoor set.Like this, use a set of multi-gang air-conditioner wireless controller just can complete the search to indoor set and the selective control to indoor set, decrease cost, user-friendly.
Preferably, control device 60 can adopt single-chip microcomputer, both can ensure to control accurately, can also reduce the cost.Input unit 20 can use keyboard, and operation is directly perceived, is convenient to user and inputs.
Equally preferably, storage device 50 can adopt EEPROM (EEPROM), like this, also can preserve the data stored in the event of a power failure.
In addition, shell can also be provided for multi-gang air-conditioner wireless controller, all parts of controller is contained in shell be assembled into can be hand-held remote controller so that user carries with.Certainly, also multi-gang air-conditioner wireless controller of the present invention and other parts can be combined and with other forms for user.
Mention input unit 20 above and can adopt keyboard, the keyboard mentioned here can be key board also can be membrane keyboard keyboard.Display unit 30 can adopt various types of display screen such as such as chromatic liquid crystal screen, color plasma display etc.In addition, also display unit 30 and input unit 20 can be combined, such as, use touch-screen, both achieved the display to multi-gang air-conditioner current state, also achieve the control to indoor set.
The present invention again discloses a kind of multi-gang air-conditioner, this multi-gang air-conditioner has one or more indoor set and above-mentioned multi-gang air-conditioner wireless controller, wherein, this multi-gang air-conditioner wireless controller is for optionally controlling the one or more indoor sets in multi-gang air-conditioner.Like this, each indoor set by a set of multi-gang air-conditioner wireless controller unified search and control, can significantly reduce the cost of multi-gang air-conditioner, improves the uniformity of each parts of multi-gang air-conditioner, user-friendly.
The present invention is illustrated by above-described embodiment, but should be understood that, above-described embodiment just for the object of illustrating and illustrate, and is not intended to the present invention to be limited in described scope of embodiments.In addition it will be appreciated by persons skilled in the art that the present invention is not limited to above-described embodiment, more kinds of variants and modifications can also be made according to instruction of the present invention, within these variants and modifications all drop on the present invention's scope required for protection.Protection scope of the present invention defined by the appended claims and equivalent scope thereof.