The content of the invention
The technical problem to be solved in the present invention is that the drawbacks described above for prior art is whole based on movement there is provided one kindMethod, system and the mobile terminal of end control intelligent air condition, it is intended to by calculating mobile terminal and air-conditioning equipment distance, obtain and work asThe information such as preceding environment temperature, weather, humidity, and the configuration strategy set with user contrasted, and is set if meeting userThe policy condition put, will send corresponding control command to intelligent air condition, and realization be automatically controlled to intelligent air condition, can be withControlled, can be visited automatically between the long transmission distance supported by WiFi Aware technologies, equipment manually by interfaceSurvey connection, so can more facilitate user than the technology such as bluetooth, infrared, user need not go for remote control again, and terminal can be beaten automaticallyTurn on the aircondition equipment, provide the user convenience.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of method that intelligent air condition is controlled based on mobile terminal, wherein, comprise the following steps:
Step A:Mobile terminal is communicatively coupled by communication with intelligent air condition;
Step B:The mobile terminal is received after the control instruction of user by APP applications, and the data of control instruction are sent toThe intelligent air condition;
Step C:The intelligent air condition is received after the data that mobile terminal is sent, and parses the data of control instruction, judges currentThe type of control instruction and execution;
Step D:The mobile terminal is sent after control instruction, waits the intelligent air condition feedback information, when intelligent air condition is receivedExecution result information is simultaneously fed back to mobile terminal by control instruction.
The described method that intelligent air condition is controlled based on mobile terminal, wherein, the communication in the step A isWiFi Aware。
The described method that intelligent air condition is controlled based on mobile terminal, wherein, the step B is specifically included:
Step B1:The APP applications of mobile terminal are opened, and according to UI interface prompt configuration strategies;The configuration strategy includes:SeasonSection is set, temperature threshold is set, thermostatic is set, wind speed is set, pattern is set, switch is set, distance threshold is set, weatherTranslative mode is set;
Step B2:The APP applications of the mobile terminal start subscription service, specify the intelligent air condition device service title, useTo receive the service data that intelligent air condition is sent by WiFi Aware, service name is preset by mobile terminal, with intelligenceThe broadcast service title of air-conditioning is consistent;
Step B3:The mobile terminal judge the broadcast service equipment of intelligent air condition MAC Address whether be intelligent air condition MACAddress, if it is, calculating the relative distance of the mobile terminal and intelligent air condition;If it is not, then terminating flow;
Step B4:After the relative distance of the mobile terminal and intelligent air condition is calculated, by WiFi Aware interface toIntelligent air condition sends control instruction, for obtaining the current status information of intelligent air condition and setting the parameter of intelligent air condition.
The described method that intelligent air condition is controlled based on mobile terminal, wherein, the step C is specifically included:
Step C1:After the intelligent air condition receives the control instruction of user, by the current air-conditioning state information of intelligent air conditionFeed back to the mobile terminal;The current air-conditioning state information includes:On off state, current environment temperature, air conditioning mode,Temperature, the air conditioner wind speed information of air-conditioning setting;
Step C2:The intelligent air condition receives the data that control instruction is parsed after the data that mobile terminal is sent, and judges currentThe type of control instruction;
Step C3:The control instruction of user is matched with the configuration strategy of user, intelligent air condition not done if matchingAny operation;
Step C4:If in the matching process, run into it is a certain be unsatisfactory for control strategy condition, then return mismatch result, thenOrder and execution of the mobile terminal into air-conditioning send configuration strategy.
The described method that intelligent air condition is controlled based on mobile terminal, wherein, the step D is specifically included:
Step D1:The mobile terminal is sent after control instruction, waits the intelligent air condition feedback information, when intelligent air condition is receivedControl instruction and when running succeeded, successful information is fed back to mobile terminal;
Step D2:The mobile terminal is sent after control instruction, waits the intelligent air condition feedback information, when intelligent air condition is receivedControl instruction but when performing failure, to mobile terminal feeding back unsuccessful information, and points out on UI error message.
The described method that intelligent air condition is controlled based on mobile terminal, wherein, it is described by the control instruction of user and userSpecifically including of being matched of configuration strategy:
Step C31:Mobile terminal reads the current air-conditioning state information stored in internal memory and corresponding user configuring strategy;
Step C32:Mobile terminal judges whether current air-conditioner switch state meets the switching requirements in user configuring strategy;IfMeet and perform step C34, if being unsatisfactory for performing step C33;
Step C33:Judge whether current weather humidity conditions meet the humidity in configuration strategy, weather value, if day air humidityDegree condition mismatches control strategy, then mismatch result is directly returned to, if it is satisfied, then into step C34;
Step C34:Judge whether the pattern of current air-conditioning is consistent with the allocating default required in configuration strategy;If be unsatisfactory for,Then return and mismatch result, if it is satisfied, then into step C35;
Step C35:Judge whether intelligent air condition Current Temperatures meet the air-conditioner temperature required in configuration strategy, if be unsatisfactory for,Then return and mismatch result, if it is satisfied, then returning to matching normal outcome.
A kind of system that intelligent air condition is controlled based on mobile terminal, wherein, the system includes:
Communication connection module, is communicatively coupled for mobile terminal by communication with intelligent air condition;
Instruction sending module, is received after the control instruction of user for the mobile terminal by APP applications, by control instructionData are sent to the intelligent air condition;
Performing module is instructed, is received for the intelligent air condition after the data that mobile terminal is sent, the number of control instruction is parsedAccording to judging type and the execution of current control instruction;
As a result feedback module, sends after control instruction for the mobile terminal, waits the intelligent air condition feedback information, works as intelligenceEnergy air-conditioning receives control instruction and execution result information is fed back into mobile terminal.
The described system that intelligent air condition is controlled based on mobile terminal, wherein, the communication is WiFiAware。
The described system that intelligent air condition is controlled based on mobile terminal, wherein, the instruction sending module is specifically included:
Configuration strategy setting unit, the APP for opening mobile terminal is applied, and according to UI interface prompt configuration strategies;It is describedConfiguration strategy includes:Season set, temperature threshold set, thermostatic set, wind speed set, pattern set, switch set, away fromSet from threshold value, weather translative mode is set;
Start unit is serviced, the APP applications for the mobile terminal start subscription service, specify the intelligent air condition equipment clothesBusiness title, for receiving the service data that intelligent air condition is sent by WiFi Aware, service name is set in advance by mobile terminalIt is fixed, it is consistent with the broadcast service title of intelligent air condition;
Address judgement and metrics calculation unit, the MAC for the broadcast service equipment for passing through intelligent air condition for the mobile terminalWhether location is the MAC Address of intelligent air condition, if it is, calculating the relative distance of the mobile terminal and intelligent air condition;IfIt is not then to terminate flow;
Acquisition of information and parameter set unit, for after the relative distance of the mobile terminal and intelligent air condition is calculated, leading toThe interface for crossing WiFi Aware sends control instruction to intelligent air condition, for obtaining the current status information of intelligent air condition and settingPut the parameter of intelligent air condition.
The described system that intelligent air condition is controlled based on mobile terminal, wherein, the instruction performing module is specifically included:
After current information feedback unit, control instruction for receiving user when the intelligent air condition, by working as intelligent air conditionPreceding air-conditioning state feedback of the information is to the mobile terminal;The current air-conditioning state information includes:On off state, current environmentTemperature, air conditioning mode, temperature, the air conditioner wind speed information of air-conditioning setting;
Instruction type judging unit, receives for the intelligent air condition and control instruction is parsed after the data that mobile terminal is sentData, judge the type of current control instruction;
Instructions match unit, it is not right if matching for the control instruction of user to be matched with the configuration strategy of userIntelligent air condition does any operation;
Instruction send and execution unit, if in the matching process, run into it is a certain be unsatisfactory for control strategy condition, then returnMismatch result, then order and execution of the mobile terminal into air-conditioning send configuration strategy.
The described system that intelligent air condition is controlled based on mobile terminal, wherein, the result feedback module is specifically included:
First result feedback unit, sends after control instruction for the mobile terminal, waits the intelligent air condition feedback information,When intelligent air condition receives control instruction and runs succeeded, successful information is fed back to mobile terminal;
Second result is fed back and Tip element, is sent for the mobile terminal after control instruction, waits the intelligent air condition anti-Feedforward information, when intelligent air condition receives control instruction but performs failure, is pointed out to mobile terminal feeding back unsuccessful information, and on UIError message.
A kind of mobile terminal, including computer-readable recording medium, are stored thereon with computer program, wherein, the meterThe method that intelligent air condition is controlled based on mobile terminal is realized when calculation machine program is executed by processor.
It is mobile whole the invention discloses a kind of method, system and mobile terminal based on mobile terminal control intelligent air conditionEnd is communicatively coupled by communication with intelligent air condition;The mobile terminal receives the control of user by APP applicationsAfter system instruction, the data of control instruction are sent to the intelligent air condition;The intelligent air condition receives what mobile terminal was sentAfter data, the data of control instruction are parsed, type and the execution of current control instruction is judged;The mobile terminal sends control and referred toAfter order, the intelligent air condition feedback information is waited, when intelligent air condition receives control instruction and execution result information is fed back into shiftingDynamic terminal.
The present invention obtains the letter such as current environment temperature, weather, humidity by calculating mobile terminal and air-conditioning equipment distanceBreath, and the configuration strategy set with user contrasted, will to intelligent air condition if meeting the policy condition of user's settingCorresponding control command is sent, realization is automatically controlled to intelligent air condition, can also manually controlled by interface, due toConnection can be detected automatically between long transmission distance that WiFi Aware technologies are supported, equipment, so than the skill such as bluetooth, infraredArt can more facilitate user, and user need not go for remote control again, and terminal can automatically open up air-conditioning equipment, provide the user facilityProperty.
Embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawingsThe present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and withoutIt is of the invention in limiting.
A kind of method that intelligent air condition is controlled based on mobile terminal described in present pre-ferred embodiments, as shown in figure 1, baseThe method for controlling intelligent air condition in mobile terminal, comprises the following steps:
Step S100, mobile terminal is communicatively coupled by communication with intelligent air condition.
It is preferred that the communication is WiFi Aware, specifically, WiFi Aware can help WiFi to setThe service on the standby sensed in advance periphery before foundation, further meets user for point-to-point(Peer to Peer, P2P)Message,Functional requirement in terms of game and media are shared.WiFi Aware are a kind of WiFi authentication services, and this technology is based on usThe WiFi equipments such as daily essential smart mobile phone and tablet personal computer, can allow these equipment mutual by WiFi Aware technologiesMutual presence is mutually perceived, is subsequently connected together.For in terms of some, WiFi Aware technologies are conventional similar to usBluetooth function, when WiFi equipment is adjacent to each other, can mutually transfer the documents such as information, picture, the video of smart mobile phone.It is blueBefore tooth transmission can be traced back to for a long time, and it is transmitted by WiFi, is a brand-new technology.
WiFi Aware technologies can allow the use of user more to be enriched, and can be instant, dynamic for user's displayingSurrounding environment, according to the introduction of WiFi alliances, this technology is identical with normal WiFi mode of operation, will not increase work(Consumption.
Step S200, the mobile terminal is received after the control instruction of user by APP applications, by the data of control instructionIt is sent to the intelligent air condition.
It is preferred that the step S200 specifically includes following steps:
Step S201, opens the APP applications of mobile terminal, and according to UI interface prompt configuration strategies;The configuration strategy includes:Season is set, temperature threshold is set, thermostatic is set, wind speed is set, pattern is set, switch is set, distance threshold is set, dayGas shift pattern is set;
Step S202, the APP applications of the mobile terminal start subscription service, specify the intelligent air condition device service title,For receiving the service data that intelligent air condition is sent by WiFi Aware, service name is preset by mobile terminal, with intelligenceThe broadcast service title of energy air-conditioning is consistent;
Step S203, the mobile terminal judges whether the MAC Address of the broadcast service equipment of intelligent air condition is intelligent air conditionMAC Address, if it is, calculating the relative distance of the mobile terminal and intelligent air condition;If it is not, then terminating flow;
Step S204, after the relative distance of the mobile terminal and intelligent air condition is calculated, passes through WiFi Aware interfaceControl instruction is sent to intelligent air condition, for obtaining the current status information of intelligent air condition and setting the parameter of intelligent air condition.
Specifically, corresponding configuration strategy mainly includes season setting:Such as summer, winter;Temperature threshold:Such as arriveAt 40 degree, air-conditioning is automatically opened up, air-conditioning is closed automatically at 20 degree;Temperature setting:Air-conditioner temperature is set to how many degree;Wind speed is setPut:Air conditioner wind speed is set to how many;Pattern is set:Air-conditioning is set to a certain pattern, such as automatic mode, refrigeration mode,Heating mode, dehumidification mode, circulation air air supply pattern etc.;Switch is set:Open or close air-conditioning;Distance threshold:TerminalWith air-conditioning it is how far when realize air-conditioning is automatically controlled;Weather condition:Mould is set according to the moist degree of weather, rainy etc.Formula.
The APP applications of mobile terminal start subscription service, the intelligent air condition device service title specified are subscribed to, for receivingThe service data that intelligent air condition is sent by WiFi Aware, service name is pre-set by mobile terminal, with WiFiThe broadcast service title of Aware air-conditioning equipments is consistent.If mobile terminal receives WiFi, Aware air-conditioning equipments are broadcastedService data, then data are parsed first, the RTT of 802.11mc agreements are mainly parsed from service data((Round-Trip Time:Round-trip delay, it is an important performance indications in a computer network, is represented from transmitting terminalSend data to start, the confirmation from receiving terminal is received to transmitting terminal(Receiving terminal, which receives soon to send after data, to be confirmed), alwaysThe time delay undergone altogether)Time value, the RSSI of WiFi Aware equipment(Received Signal Strength IndicationThe signal intensity of reception is indicated, is transmitted wirelessly the optional part of layer, for judging link quality, and whether is increased broadcast transmissionIntensity)Signal strength values, the device mac address of broadcast service, judgement is resolved to whether device mac address is intelligent air condition equipmentMAC Address, if it is, continue subsequent step, if it is not, then terminate flow.
Judge the RTT time values in 802.11mc agreements whether are included in information on services, if comprising directly basis shouldValue calculates distance.If not comprising RTT time values, distance is calculated by the RSSI value of access control equipment.
According to WiFi mode, the RSSI value received by mobile terminal calculate with opposite equip. it is relative away fromFrom.Open model formation d=10^ ((Abs (RSSI)-A)/(10*n)) that the calculation is mainly transmitted using WiFi.Wherein,Abs is used for the function for representing to seek absolute value, A and n parameters need to be learnt according to sampling calculating, mobile terminal storage different platform coreThe empirical value of piece, such as high pass, Botong, MTK chips.The chip type of mobile terminal in itself is read, is taken with different platform chipDifferent parameter values, if the parameter value with mobile terminal device type matching can not be found out in application memory, uses acquiescenceEmpirical parameter value.When calculating corresponding value, a calculated value is not taken, many sub-values can be taken according to actual conditions, removed firstPeak and minimum that the model is obtained, are then averagely obtained respective value again, improve the accuracy calculated.
Step S300, the intelligent air condition is received after the data that mobile terminal is sent, and is parsed the data of control instruction, is sentencedThe type for current control instruction of breaking and execution.
It is preferred that the step S300 specifically includes following steps:
Step S301, after the intelligent air condition receives the control instruction of user, the current air-conditioning state of intelligent air condition is believedBreath feeds back to the mobile terminal;The current air-conditioning state information includes:On off state, current environment temperature, air-conditioning mouldFormula, temperature, the air conditioner wind speed information of air-conditioning setting;
Step S302, the intelligent air condition receives the data that control instruction is parsed after the data that mobile terminal is sent, and judges to work asThe type of preceding control instruction;
Step S303, the control instruction of user is matched with the configuration strategy of user, not to intelligent air condition if matchingDo any operation;
Step S304, if in the matching process, run into it is a certain be unsatisfactory for control strategy condition, then return mismatch result, soOrder and execution of the mobile terminal into air-conditioning send configuration strategy afterwards.
Specifically, calculate after distance, query messages sent to intelligent air condition by WiFi Aware Follow up interfaces,For obtaining the status information that intelligent air condition is current, intelligent air condition is received after Query Information, can be fed back relevant information,The information such as temperature, the air conditioner wind speed that the main on off state including air-conditioning, current environment temperature, air conditioning mode, air-conditioning are set.
The current longitude and latitude positional information of user is read by system interface, present bit is then got from weather web siteThe Weather information including temperature put, demeanour, humidity, whether rain etc., and the season for judging to be presently according to current dateSection.
After current season is drawn, configuration strategy information of the user to the season is read, and is stored into internal memory, ifThe configuration strategy in season is not corresponded to, then is directly terminated.Air-conditioning is opened when such as summer is higher than some temperature.
Judge whether the distance value calculated meets acquisition configuration strategy distance value, if be unsatisfactory for, directly terminate,If it is satisfied, into next step;When requiring to be more than 20m in such as configuration strategy, triggering closes air-conditioning, such as mobile terminal such asFruit judges that terminal, from being more than 20 with a distance from air-conditioning, will trigger closing air-conditioning always within certain a period of time.Judge current environmentWhether temperature matches with the environment temperature threshold value in configuration strategy, if it does, then the air-conditioning accessed by comparison terminal is currentInformation and user configuring policy information, judge whether weather/humidity of current environment meets setting threshold if it does not match, enteringValue;The environment temperature obtained such as at air-conditioning is 40 degree, to go to open air-conditioning when being more than 35 degree in configuration strategy, then result is justIt is matching.It is to mismatch if environment temperature is 25 degree.
Judge whether weather/humidity of current environment meets setting threshold value, if it is satisfied, then accessed by comparison terminalAir-conditioning current information and user configuring policy information, directly terminate if being unsatisfactory for.Such as current environment humidity is value A, dayGas is moderate rain, and it is moderate rain that configuration strategy, which is weather, when humidity is more than B values, opens dehumidification mode.
Air-conditioning current information and user configuring policy information accessed by comparison terminal, detailed process is referring to comparison strategyFlow chart, as shown in Figure 2:
The detailed process that the control instruction by user is matched with the configuration strategy of user includes:
Step S1:Mobile terminal reads the current air-conditioning state information stored in internal memory and corresponding user configuring strategy;
Step S2:Mobile terminal judges whether current air-conditioner switch state meets the switching requirements in user configuring strategy;IfMeet and perform step S4, if being unsatisfactory for performing step S3;
Step S3:Judge whether current weather humidity conditions meet the humidity in configuration strategy, weather value, if weather humidityCondition mismatches control strategy, then mismatch result is directly returned to, if it is satisfied, then into step S4;
Step S4:Judge whether the pattern of current air-conditioning is consistent with the allocating default required in configuration strategy;If be unsatisfactory for,Return and mismatch result, if it is satisfied, then into step S5;
Step S5:Judge whether intelligent air condition Current Temperatures meet the air-conditioner temperature required in configuration strategy, if be unsatisfactory for,Return and mismatch result, if it is satisfied, then returning to matching normal outcome.
Judge whether the on off state of current air-conditioning meets the switching requirements in configuration strategy, if it is satisfied, then continuing to sentenceWhether the Setting pattern of disconnected current air-conditioning meets the Setting pattern in configuration strategy, continues to judge current setting temperature if meetingWhether degree meets the temperature value in configuration strategy, if all meet, any operation is not done, if a certain condition is unsatisfactory for,Then need to send new configuration strategy information to intelligent air condition.
If matching meets configuration strategy information, any operation is not done to air-conditioning, if in the matching process, there is chancePolicy condition is unsatisfactory for a certain, then returns and mismatches result, then mobile terminal is into intelligent air condition send configuration strategyOrder.For different command types, when sending, different flag bits can be used, such as switch command flag bit is 1, ifIt is 2 to put temperature flag bit.
Step S400, the mobile terminal is sent after control instruction, is waited the intelligent air condition feedback information, is worked as Intelligent airAdjust and receive control instruction and execution result information is fed back into mobile terminal.
It is preferred that the step S400 specifically includes following steps:
Step S401, the mobile terminal is sent after control instruction, the intelligent air condition feedback information is waited, when intelligent air condition connectsWhen receiving control instruction and running succeeded, successful information is fed back to mobile terminal;
Step S402, the mobile terminal is sent after control instruction, the intelligent air condition feedback information is waited, when intelligent air condition connectsWhen receiving control instruction but performing failure, to mobile terminal feeding back unsuccessful information, and error message is pointed out on UI.
Specifically, send after order, mobile terminal waits air-conditioning feedback information, order and successfully set if air-conditioning is receivedPut, then feed back successful information to mobile terminal;If air-conditioning receives order but setup failed, believe to mobile terminal feeding back unsuccessfulBreath, and in UI(User interface)Upper prompting error message.Feedback information success with failure difference with message flag(Programming refers toOrder), successfully represented with 0, unsuccessfully use -1 is represented.
In the present invention, if user is dissatisfied to current air-conditioning equipment, can also manually it be controlled by interface, such asShown in Fig. 3, flow is as follows:
S10, the application initialization operation UI of mobile terminal, provides the user operation entry;
S11, mobile terminal receives the control instruction that user issues by UI, and user, can be right by the different UI in operation interfaceThat answers issues different control instructions, and the control instruction that user issues can carry out packing encapsulation according to different instruction types, thanInstruction flag of such as turning on the aircondition is 1;
S12, mobile terminal sends control instruction by WiFi Aware and gives intelligent air condition equipment;
S13, judges whether air-conditioning feeds back success message and come, if fed back successfully, performs S14, if feedback command fails,Then perform S15;
S14, flow terminates;
S15, points out error message in UI, for pointing out user.
In the present invention, intelligent air condition can be waited by WiFi Aware to external broadcasting own services information after the power-upMobile terminal is attached, after the control instruction that mobile terminal is sent is received, and parsing data are carried out first, present instruction is judgedInformation is a control, or multiple control, such as user individually sends temperature control instruction by interface, then the of command frameOne field can be 1, be followed by instruction type information;The multiple control instruction that user sends, includes switch control, temperature controlSystem, then the first character section of command frame is 2, is followed by individual event instruction specifying information.If individual event is instructed, then directly issueControl, if multinomial instruction, then parses the individual event instruction included, is then handed down to airconditioning control.If instruction is controlled intoWork(, then send to terminal and successfully feed back, unsuccessfully fed back if it fails, then sending.Feedback information success with failure difference withMessage flag, successfully represents, unsuccessfully use -1 is represented with 0.
Present invention also offers a kind of system that intelligent air condition is controlled based on mobile terminal, as shown in figure 4, the system bagInclude:
Communication connection module 210, is communicatively coupled for mobile terminal by communication with intelligent air condition;Specifically such asIt is upper described.
Instruction sending module 220, is received after the control instruction of user by APP applications for the mobile terminal, will controlledThe data of system instruction are sent to the intelligent air condition;As detailed above.
Performing module 230 is instructed, is received for the intelligent air condition after the data that mobile terminal is sent, parsing control refers toThe data of order, judge type and the execution of current control instruction;As detailed above.
As a result feedback module 240, send after control instruction for the mobile terminal, wait the intelligent air condition feedback letterBreath, when intelligent air condition receives control instruction and execution result information is fed back into mobile terminal;As detailed above.
Further, the system that intelligent air condition is controlled based on mobile terminal, wherein, the communication isWiFi Aware;As detailed above.
Further, the system that intelligent air condition is controlled based on mobile terminal, wherein, the instruction sending module toolBody includes:
Configuration strategy setting unit, the APP for opening mobile terminal is applied, and according to UI interface prompt configuration strategies;It is describedConfiguration strategy includes:Season set, temperature threshold set, thermostatic set, wind speed set, pattern set, switch set, away fromSet from threshold value, weather translative mode is set;As detailed above.
Start unit is serviced, the APP applications for the mobile terminal start subscription service, specify the intelligent air condition to setStandby service name, for receiving the service data that intelligent air condition is sent by WiFi Aware, service name is pre- by mobile terminalFirst set, it is consistent with the broadcast service title of intelligent air condition;As detailed above.
Address judgement and metrics calculation unit, the broadcast service equipment for passing through intelligent air condition for the mobile terminalWhether MAC Address is the MAC Address of intelligent air condition, if it is, calculating the relative distance of the mobile terminal and intelligent air condition;If it is not, then terminating flow;As detailed above.
Acquisition of information and parameter set unit, for when the relative distance for calculating the mobile terminal and intelligent air conditionAfterwards, control instruction is sent to intelligent air condition by WiFi Aware interface, for obtaining the status information that intelligent air condition is currentAnd the parameter of intelligent air condition is set;As detailed above.
Further, the system that intelligent air condition is controlled based on mobile terminal, wherein, the instruction performing module toolBody includes:
After current information feedback unit, control instruction for receiving user when the intelligent air condition, by working as intelligent air conditionPreceding air-conditioning state feedback of the information is to the mobile terminal;The current air-conditioning state information includes:On off state, current environmentTemperature, air conditioning mode, temperature, the air conditioner wind speed information of air-conditioning setting;As detailed above.
Instruction type judging unit, receives parsing control after the data that mobile terminal is sent for the intelligent air condition and refers toThe data of order, judge the type of current control instruction;As detailed above.
Instructions match unit, for the control instruction of user to be matched with the configuration strategy of user, if matchingAny operation is not done to intelligent air condition;As detailed above.
Instruction send and execution unit, if in the matching process, run into it is a certain be unsatisfactory for control strategy condition, thenReturn and mismatch result, then order and execution of the mobile terminal into air-conditioning send configuration strategy;As detailed above.
Further, the system that intelligent air condition is controlled based on mobile terminal, wherein, the result feedback module toolBody includes:
First result feedback unit, sends after control instruction for the mobile terminal, waits the intelligent air condition feedback information,When intelligent air condition receives control instruction and runs succeeded, successful information is fed back to mobile terminal;As detailed above.
Second result is fed back and Tip element, is sent for the mobile terminal after control instruction, waits the Intelligent airFeedback information is adjusted, when intelligent air condition receives control instruction but performs failure, to mobile terminal feeding back unsuccessful information, and on UIPoint out error message;As detailed above.
The present invention also provides a kind of mobile terminal, including computer-readable recording medium, is stored thereon with computer program,Wherein, the method that intelligent air condition is controlled based on mobile terminal is realized when the computer program is executed by processor.
In summary, the invention provides a kind of method based on mobile terminal control intelligent air condition, system and movement eventuallyEnd, mobile terminal is communicatively coupled by communication with intelligent air condition;The mobile terminal is received by APP applicationsAfter the control instruction of user, the data of control instruction are sent to the intelligent air condition;The intelligent air condition receives mobile wholeHold after the data sent, parse the data of control instruction, judge type and the execution of current control instruction;The mobile terminal hairSend after control instruction, wait the intelligent air condition feedback information, when intelligent air condition receives control instruction and by execution result informationFeed back to mobile terminal.The present invention by calculating mobile terminal and air-conditioning equipment distance, the current environment temperature of acquisition, weather,The information such as humidity, and the configuration strategy set with user contrasted, if meeting the policy condition of user's setting, Jiu HuixiangIntelligent air condition sends corresponding control command, and realization is automatically controlled to intelligent air condition, can also manually controlled by interfaceSystem, can be detected automatically between the long transmission distance supported by WiFi Aware technologies, equipment connection, so than bluetooth,The technology such as infrared can more facilitate user, and user need not go for remote control again, and terminal can automatically open up air-conditioning equipment, be that user carriesFor convenience.
Certainly, one of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method,Computer program is can be by instruct related hardware(Such as processor, controller etc.)To complete, described program can be storedIn the storage medium of an embodied on computer readable, the program may include such as the flow of above-mentioned each method embodiment upon execution.ItsDescribed in storage medium can be for memory, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, canTo be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present inventionProtect scope.