CN108628178A - A kind of control method and device - Google Patents

A kind of control method and device Download PDF

Info

Publication number
CN108628178A
CN108628178A CN201710160513.2A CN201710160513A CN108628178A CN 108628178 A CN108628178 A CN 108628178A CN 201710160513 A CN201710160513 A CN 201710160513A CN 108628178 A CN108628178 A CN 108628178A
Authority
CN
China
Prior art keywords
communication pattern
household appliance
communication
home controller
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710160513.2A
Other languages
Chinese (zh)
Inventor
杜放
佘艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201710160513.2A priority Critical patent/CN108628178A/en
Publication of CN108628178A publication Critical patent/CN108628178A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a kind of control method and device, wherein the method applied to home controller includes:Receive by mobile terminal send for household appliance control instruction when, determine with the household appliance into row data communication the first communication pattern;The control instruction is sent to the household appliance by the first communication pattern, and detects whether receive the response data that the household appliance is sent in preset time threshold;If receiving the response data in preset time threshold, the first communication pattern and the household appliance are continued through into row data communication;If not receiving the response data in preset time threshold, the first communication pattern is then switched into the second communication pattern, the control instruction is sent to the household appliance by the second communication pattern, and continues through the second communication pattern and the household appliance into row data communication.Using technical solution of the present invention, the stability of appliance data transmission can be improved.

Description

A kind of control method and device
Technical field
The present invention relates to home wiring control technical fields, and in particular to a kind of control method and device.
Background technology
It can be seen that light wireless communication be also known as " light fidelity technology " (LIFI, Light Fidelity) be it is a kind of utilize visible light wave The completely new Radio Transmission Technology that spectrum (light that such as light bulb is sent out) carries out data transmission.LIFI technologies are realized wirelessly with visible light Communication, that is, the height being invisible to the naked eye for utilizing electric signal control light emitting diode (LED, Light EmittingDiode) to send out Fast flash signal transmits information, not against radio wave, not will produce electromagnetic interference.
Current household appliance can only by Wireless Fidelity (WIFI, Wireless Fidelity) either ZigBee or The wireless technologys such as infrared carry out control connection, still, under some scenes, because household appliance is limited by the factors such as space or distance, The data interchange between mobile terminal and household appliance can not be realized well by above-mentioned technology.Since household appliance uses The influence of the signal barrier and routing radiation scope of metope can be limited by when above-mentioned wireless technology such as WiFi technology, therefore, how A kind of method based on LIFI and above-mentioned wireless technology Collaborative Control household appliance is designed, to improve household appliance data transmission Stability is current urgent problem to be solved.
Invention content
In view of this, present invention contemplates that provide a kind of control method and device, home controller and the household electrical appliances can be improved Stability of the equipment into row data communication.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of control method, it is applied to home controller, the method packet It includes:
Receive by mobile terminal send for household appliance control instruction when, determine with the household appliance carry out First communication pattern of data communication;
The control instruction is sent to the household appliance by the first communication pattern, and is detected in preset time threshold Whether response data that the household appliance send is received;
If receiving the response data in preset time threshold, the first communication pattern and the household electrical appliances are continued through Equipment is into row data communication;If not receiving the response data in preset time threshold, the first communication pattern is switched To the second communication pattern, the control instruction is sent to the household appliance by the second communication pattern, and continue through second Communication pattern and the household appliance are into row data communication.
In said program, optionally, before the control instruction to household appliance transmission, the method is also wrapped It includes:
Communication protocol corresponding to communication pattern used by determining for sending the control instruction;
The control instruction is encoded according to the communication protocol, the data after being encoded;
It is described to send the control instruction to the household appliance, including:
Data after sending from the coding to the household appliance.
In said program, optionally, the determination, into the first communication pattern of row data communication, is wrapped with the household appliance It includes:
Obtain the data-transmission mode selection strategy that household appliance is configured in networking;
Transmission mode selection strategy determines the first communication pattern based on the data.
In said program, optionally, the data-transmission mode selection strategy includes at least one of following strategies:
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, using described First communication pattern;If signal strength values corresponding with first communication pattern are less than the preset strength threshold value, use Second communication pattern;Or
The first communication pattern is first selected, when can not be with home controller into row data communication using first communication pattern When, the second communication pattern of reselection;Or
The second communication pattern is first selected, when can not be with home controller into row data communication using second communication pattern When, the first communication pattern of reselection.
In said program, optionally, first communication pattern be wireless communications mode or optical transport communication pattern, it is described Second communication pattern is optical transport communication pattern or wireless communications mode;
When first communication pattern is wireless communications mode, and second communication pattern is optical transport communication pattern, It is described that first communication pattern is switched into the second communication pattern, including:
It controls the corresponding LIFI nodes of the household appliance and is in enabled state.
Second aspect, an embodiment of the present invention provides a kind of control methods, are applied to household appliance, the method includes:
Receive the control instruction that home controller is sent;
Determine that the home controller sends communication pattern used by the control instruction;
Response data is sent to the home controller based on the communication pattern, it is pre- to be judged by the home controller If time threshold in whether receive the response data that the household appliance is sent.
In said program, optionally, the method further includes:
The detectable signal about the first communication pattern is periodically sent to home controller;
The response detected signal returned according to the home controller whether is received in preset time, determine with it is described Communication pattern of the home controller into row data communication;
It will determine to notify the home controller into the communication pattern of row data communication with the home controller.
In said program, optionally, the method further includes:
Obtain home controller about the corresponding signal strength values of the first communication pattern;
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, determine and use First communication pattern and the home controller are into row data communication;If signal corresponding with first communication pattern is strong When angle value is less than the preset strength threshold value, determine logical using second communication pattern and home controller progress data Letter.
The third aspect, an embodiment of the present invention provides a kind of control devices, are applied to home controller, the control device Including:
First determination unit, for receive by mobile terminal send for household appliance control instruction when, determine With the household appliance into the first communication pattern of row data communication;
First transmission unit, for sending the control instruction to the household appliance by the first communication pattern;
First detection unit, for detecting the number of responses for whether receiving the household appliance in preset time threshold and sending According to;
Control unit receives the number of responses if being detected for the first detection unit in preset time threshold According to then continuing through the first communication pattern and the household appliance into row data communication;If the first detection unit detects It does not receive the response data in preset time threshold, then the first communication pattern is switched into the second communication pattern, passed through Second communication pattern sends the control instruction to the household appliance, and continues through the second communication pattern and set with the household electrical appliances It is standby into row data communication.
In said program, optionally, the control device further includes:
Coding unit is used for before first transmission unit sends the control instruction to the household appliance, really Communication protocol corresponding to communication pattern used by determining for sending the control instruction;According to the communication protocol to described Control instruction is encoded, the data after being encoded;
Correspondingly, first transmission unit, be additionally operable to the household appliance send the coding after data.
In said program, optionally, first determination unit is additionally operable to:
Obtain the data-transmission mode selection strategy that household appliance is configured in networking;
Transmission mode selection strategy determines the first communication pattern based on the data.
In said program, optionally, the data-transmission mode selection strategy includes at least one of following strategies:
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, using described First communication pattern;If signal strength values corresponding with first communication pattern are less than the preset strength threshold value, use Second communication pattern;Or
The first communication pattern is first selected, when can not be with home controller into row data communication using first communication pattern When, the second communication pattern of reselection;Or
The second communication pattern is first selected, when can not be with home controller into row data communication using second communication pattern When, the first communication pattern of reselection.
In said program, optionally, first communication pattern be wireless communications mode or optical transport communication pattern, it is described Second communication pattern is optical transport communication pattern or wireless communications mode;
When first communication pattern is wireless communications mode, and second communication pattern is optical transport communication pattern, Described control unit is additionally operable to:
It controls the corresponding LIFI nodes of the household appliance and is in enabled state.
Fourth aspect, an embodiment of the present invention provides a kind of control devices, are applied to household appliance, the control device packet It includes:
Receiving unit, the control instruction for receiving home controller transmission;
Second determination unit, for determining that the home controller sends communication pattern used by the control instruction;
Second transmission unit, for sending response data to the home controller based on the communication pattern, with by institute It states home controller and judges whether receive the response data that the household appliance is sent in preset time threshold.
In said program, optionally, the control device further includes:
Second detection unit, for periodically sending the detectable signal about the first communication pattern to home controller;
Third determination unit, for being answered according to the detection for whether receiving the home controller return in preset time Answer communication pattern of the signal determination with the home controller into row data communication;
Notification unit, for that will determine described in the communication pattern notice with the home controller into row data communication Home controller.
In said program, optionally, the control device further includes:
Acquiring unit, for obtain home controller about the corresponding signal strength values of the first communication pattern;
4th determination unit, for being preset by force when signal strength values corresponding with first communication pattern are greater than or equal to When spending threshold value, determines and use first communication pattern and the home controller into row data communication;Lead to when with described first When the corresponding signal strength values of letter pattern are less than the preset strength threshold value, determine using second communication pattern and the family Front yard controller is into row data communication.
Control method and device provided in an embodiment of the present invention, home controller is received to be directed to by what mobile terminal was sent When the control instruction of household appliance, the first communication pattern into row data communication with the household appliance is determined;It is logical by first Letter pattern sends the control instruction to the household appliance, and detects and whether receive the household electrical appliances in preset time threshold and set The response data that preparation is sent;If receiving the response data in preset time threshold, the first communication pattern is continued through With the household appliance into row data communication;If not receiving the response data in preset time threshold, first is led to Letter pattern switching is to the second communication pattern, by the second communication pattern to the household appliance transmission control instruction, and after Continuous the second communication pattern and the household appliance of passing through is into row data communication.In this way, when home controller can not be logical by first When letter pattern carries out data transmission with household appliance, the second communication pattern also can be used and carry out data transmission with household appliance;Such as This can not only increase for home controller and household appliance are only capable of carrying out data transmission by single communication pattern The diversity of adoptable communication pattern when carrying out data transmission, moreover it is possible to ensure the accessibility of data transmission.Due to different communication The applicable scene of pattern is different, and the stability of data transmission is stronger under its applicable scene, thus home controller with It, can be under different scenes using different in the case that household appliance can support the first communication pattern and the second communication pattern Communication pattern improves stability of the home controller with household appliance into row data communication.
Description of the drawings
Fig. 1 is the implementation process schematic diagram of the control method provided in an embodiment of the present invention applied to home controller;
Fig. 2 is the implementation process schematic diagram of the control method provided in an embodiment of the present invention applied to household appliance;
Fig. 3 is that the first control flow that home controller provided in an embodiment of the present invention is communicated with household appliance shows It is intended to;
Fig. 4 is that second of control flow that home controller provided in an embodiment of the present invention is communicated with household appliance shows It is intended to;
Fig. 5 is that the third control flow that home controller provided in an embodiment of the present invention is communicated with household appliance shows It is intended to;
Fig. 6 is a kind of data transmission schematic diagram between each equipment in control system provided in an embodiment of the present invention;
Fig. 7 is another data transmission schematic diagram between each equipment in control system provided in an embodiment of the present invention;
Fig. 8 is the composed structure schematic diagram of the control device provided in an embodiment of the present invention applied to home controller;
Fig. 9 is the composed structure schematic diagram of the control device provided in an embodiment of the present invention applied to household appliance;
Figure 10 is the structural schematic diagram of control system provided in an embodiment of the present invention.
Specific implementation mode
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to the reality of the present invention It is now described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the present invention.
Embodiment one
An embodiment of the present invention provides a kind of control method, the control method in this example is applied to home controller, such as Shown in Fig. 1, the control method mainly includes the following steps that:
Step 101:Home controller receive by mobile terminal send for household appliance control instruction when, determine With the household appliance into the first communication pattern of row data communication.
Wherein, first communication pattern is one kind in the supported plurality of communication schemes of home controller.
Optionally, first communication pattern is selected from the plurality of communication schemes that it is supported by home controller The communication pattern used in advance.
As an example it is assumed that home controller can support four kinds of communication patterns, it is denoted as respectively:A communication patterns, B communicate mould Formula, C communication patterns, D communication patterns;So, if home controller determines that A communication patterns are the communication pattern used in advance, Using A communication patterns as the first communication pattern;If home controller determines that C communication patterns are the communication pattern used in advance, Using C communication patterns as the first communication pattern.
As the first optional method of determination, home controller is according to the shape of each communication pattern of the home controller State information, to determine the first communication pattern with the household appliance into row data communication.
That is, home controller when selecting the first communication pattern, can only consider that its own currently supports it is each logical Whether the status information of letter pattern supports the first communication pattern without regard to household appliance.
As second of optional method of determination, each communication pattern that home controller is currently supported according to household appliance Status information, to determine the first communication pattern with the household appliance into row data communication.
That is, home controller when selecting the first communication pattern, can only consider each logical of household appliance support The status information of letter pattern, to determine the first communication pattern with the household appliance into row data communication, without regard to family The current stability for the first communication pattern that front yard controller is supported.
As the third optional method of determination, home controller is according to the shape of each communication pattern of the home controller The status information for each communication pattern that state information and household appliance are currently supported, to determine with the household appliance into line number According to the first communication pattern of communication.
That is, home controller when selecting the first communication pattern, both considered that its own currently supports it is each logical The status information of letter pattern, it is further contemplated that the status information for each communication pattern that household appliance is supported.In such manner, it is possible to so that selection The property taken into account of the first communication pattern gone out is strong, can more improve the success carried out data transmission between home controller and household appliance Rate.
Wherein, the status information of communication pattern includes but not limited to:Signal strength, communication pattern whether open (or communication Whether pattern is in enabled state).
In general, if a certain communication pattern is in enabled state, and the signal strength of the communication pattern meets the communication The corresponding signal strength requirement of pattern, then the communication pattern can be used as the first communication pattern to be selected.
In practical application, optionally, home controller can also be selected according to the preconfigured data-transmission mode of household appliance Strategy is selected to determine the first communication pattern.
For different household appliances, preconfigured data-transmission mode selection strategy may not Equally.For example, being limited by the household appliance of the signal barrier and routing radiation scope of metope being affected, selection is passed using light Defeated communication pattern is as preferred data-transmission mode, and in this case, optical transport communication pattern is determined the by home controller One communication pattern.For another example being limited by the signal barrier of metope and routeing the smaller household appliance that influences of radiation scope, selection Using wireless communications mode such as WIFI communication modes as preferred data-transmission mode, in this case, home controller will Wireless communications mode determines the first communication pattern.
As a kind of specific implementation mode, the determination communicates mould with the household appliance into the first of row data communication Formula, including:
Home controller obtains the data-transmission mode selection strategy that household appliance is configured in networking;
Transmission mode selection strategy determines the first communication pattern to home controller based on the data.
Wherein, the data-transmission mode selection strategy includes at least one of following strategies:
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, using described First communication pattern;If signal strength values corresponding with first communication pattern are less than the preset strength threshold value, use Second communication pattern;Or
The first communication pattern is first selected, when can not be with home controller into row data communication using first communication pattern When, the second communication pattern of reselection;Or
The second communication pattern is first selected, when can not be with home controller into row data communication using second communication pattern When, the first communication pattern of reselection.
In an optional embodiment, the preconfigured of each household appliance is being locally stored in the home controller Data-transmission mode selection strategy.When the home controller receives the control instruction for certain household appliance, from local Inquiry data-transmission mode selection strategy corresponding with the household appliance.
In another optional embodiment, in the first equipment being connect with the home controller, it is stored with each family The preconfigured data-transmission mode selection strategy of electric equipment.When the home controller is received for certain household appliance When control instruction, from first equipment query data-transmission mode selection strategy corresponding with the household appliance.Here, described First equipment can be memory or server or other-end.
In the present embodiment, the mobile terminal can be long-range mobile terminal.
It should be noted that above-mentioned mobile terminal is associated with above-mentioned household appliance or matches.Namely Say, only receive match with household appliance or associated mobile terminal send control instruction, the household appliance just meeting Execute the control instruction.Household appliance actively sends request message to mobile terminal or when instruction message, and to its phase Pairing or associated mobile terminal send the request message;Wherein, the request message is for asking mobile terminal to provide Control instruction.Wherein, the instruction message is used to send the control instruction that household appliance is made to mobile terminal.
As an implementation, the acquisition for mobile terminal control information input by user for household appliance is based on institute It states control information and generates control instruction, the control instruction is sent to home controller by mobile data network.
In the present embodiment, the household appliance includes at least life kind household appliance, amusement class household appliance;For example, institute It includes but not limited to electric cooker, electric pressure cooker, refrigerator, water heater, air purifier etc. to state life kind household appliance;The joy Happy class household appliance includes but not limited to TV, speaker, high definition player etc..
Step 102:Home controller sends the control instruction by the first communication pattern to the household appliance, and examines It surveys in preset time threshold and whether receives the response data that the household appliance is sent.
Here, the preset time threshold can be set by home controller according to itself actual needs, may be used also To be adjusted to the already present time threshold according to the status information of currently employed communication pattern by home controller.Example Such as, preset time threshold can be set as in 1~60 second any one second.
In a specific embodiment, home controller is determined and household appliance carries out data transmission first communicates mould After formula, control instruction is sent to the household appliance by the first communication pattern, detects in preset time threshold and whether receives The response data that the household appliance is sent, according to the response for whether receiving the household appliance transmission in preset time threshold Data are to determine whether carry out the data transmission about this control instruction by the first communication pattern and household appliance.
If that is, not receiving the response data that the household appliance is sent in preset time threshold, judgement passes through First communication pattern cannot be sent to the control instruction to household appliance.
It so, it is possible to be made whether to need the judgement of switch communication mode according to testing result convenient for home controller, Subsequently to use which kind of communication pattern and household appliance completion data to communicate and provide basis for estimation.
Step 103:If home controller receives the response data in preset time threshold, first is continued through Communication pattern and the household appliance are into row data communication;If home controller does not receive the sound in preset time threshold Data are answered, then the first communication pattern are switched into the second communication pattern, are sent to the household appliance by the second communication pattern The control instruction, and the second communication pattern and the household appliance are continued through into row data communication.
Illustratively, first communication pattern is wireless communications mode or optical transport communication pattern, second communication Pattern is optical transport communication pattern or wireless communications mode.
In a specific embodiment, when first communication pattern is wireless communications mode, second communication pattern For optical transport communication pattern when, it is described that first communication pattern is switched into the second communication pattern, including:
It controls the corresponding LIFI nodes of the household appliance (AP, Access Point) and is in enabled state.
Here, when LIFI nodes are in enabled state,
LIFI nodes be responsible for receive home controller send control instruction, based on the control instruction control with it is described The light emitting devices formation of LIFI node matchings is used for transmission to the first optical signal of household appliance, and is sent out to the household appliance First optical signal is sent, so that the household appliance is based on first optical signal and obtains the control instruction, and described in execution Control instruction;
LIFI nodes are also responsible for receiving the second optical signal that household appliance is sent, the second optical signals household appliance root The response data determined according to the control instruction is formed;The response data of household appliance is obtained based on second optical signal;And The response data is forwarded to home controller.
Here, the LIFI nodes can send and receive data.
Preferably, the home controller is connected with the LIFI nodes by solid data line.
In this way, without requiring LIFI AP that there is network communicating function, the home controller to pass through with the LIFI nodes Solid data line is connected, and first data transmission that home controller is rapidly determined can be ensured to LIFI nodes In, also ensure that LIFI nodes receive first data;Relative to the first data otherwise such as network data transmission Form is transmitted to for the data transfer mode of LIFI nodes, additionally it is possible to avoid the first data by illegality equipment intercept and capture or decode or The problems such as distorting improves the safety of data transmission.
Wherein, the light emitting devices is the light emitting devices that can emit visible light or black light.
In general, it is seen that light emitting devices needs light source (such as needing to open LED light), and black light emitter is not required to Want light source (need not such as open LED light).
Preferably, when LIFI AP receive the first data, light source is judged whether there is, if there is light source, is based on described first Data are controlled forms the first optical signal with the VISIBLE LIGHT EMISSION device of the LIFI node matchings;If not locating without light source or light source In working condition, then first is formed based on first data control and the black light emitter of the LIFI node matchings Optical signal.It, can not be timely caused by there is currently no light source when so, it is possible that LIFI nodes is avoided to receive the first data The problem of the first data being transmitted to household appliance;In addition, when LIFI nodes can be avoided to receive the first data, because of current light source The embarrassing question caused by light source is voluntarily opened in the case of being not in working condition.
Illustratively, the light source can be LED light, and the black light emitter can be understood as special light hair Injection device, the black light emitter can be transmitted data using black light.
Preferably, the home controller is connected with the LIFI nodes by solid data line.
Wherein, corresponding first light frequency of first optical signal follows the variation of the first data and changes.
That is, first optical signal is the signal for changing the first light frequency according to the first data.
Optionally, the wave-length coverage of first optical signal is 480nm to 780nm.
For example, home controller receive by mobile terminal send for household appliance control instruction when, really Fixed the first communication pattern with the household appliance into row data communication is WIFI communication patterns.Home controller is logical by WIFI Letter pattern sends the control instruction to the household appliance, if home controller receives the sound in preset time threshold Data are answered, then continue through WIFI communication patterns and the household appliance into row data communication;If home controller is preset The response data is not received in time threshold, then WIFI communication patterns is switched into optical transport communication pattern, passes through optical transport Communication pattern sends the control instruction to the household appliance, and continues through optical transport communication pattern and the household appliance Into row data communication.
Control method provided in an embodiment of the present invention, when home controller can not pass through the first communication pattern and household appliance When carrying out data transmission, the second communication pattern also can be used and carry out data transmission with household appliance;In this way, relative to home control Device is only capable of with household appliance for carrying out data transmission by single communication pattern, and can not only increase can adopt when carrying out data transmission The diversity of communication pattern, moreover it is possible to ensure the accessibility of data transmission.Since the scene that different communication modes are applicable in is different, And the stability of data transmission is stronger under its applicable scene, so can support first in home controller and household appliance In the case of communication pattern and the second communication pattern, it can select, using different communication patterns, to improve under different scenes The stability of home controller and household appliance into row data communication.
Embodiment two
An embodiment of the present invention provides a kind of control method, the control method in this example is applied to household appliance, such as Fig. 2 Shown, the control method mainly includes the following steps that:
Step 201:Household appliance receives the control instruction that home controller is sent.
As an optional embodiment, household appliance receives the control instruction that home controller is sent by wireless technology.
As another optional embodiment, household appliance receives the control that home controller is sent by optical transport technology and refers to It enables.Specifically, control instruction is sent to LIFI nodes by home controller, and LIFI nodes are believed according to the first light of control instruction stroke Number, and the first optical signal is sent to household appliance.
Step 202:Household appliance determines that the home controller sends communication pattern used by the control instruction.
Usually, home controller with certain communication pattern to household appliance send control instruction, and household appliance with This kind of communication pattern receives the control instruction, shows that home controller can be carried out just with household appliance by this kind of communication pattern Normal data transmission, then, household appliance will send response data by this kind of communication pattern to home controller.
Step 203:Household appliance is based on the communication pattern and sends response data to the home controller, with by described Home controller judges the response data that the household appliance is sent whether is received in preset time threshold.
It so, it is possible to be made whether to need the judgement of switch communication mode according to testing result convenient for home controller, Basis for estimation is provided subsequently to communicate the communication pattern that should be used with household appliance completion data.
In said program, the method further includes:
Household appliance periodically sends the detectable signal about the first communication pattern to home controller;
The response detected signal that household appliance is returned according to the home controller whether is received in preset time, really Communication pattern of the fixed and home controller into row data communication;
Household appliance will be determined to notify the family into the communication pattern of row data communication with the home controller Controller.
In this way, household appliance will be described in the communication pattern notice with the home controller into row data communication that determined Home controller can help home controller accurately to select the communication pattern communicated with household appliance.
For example, when first communication pattern is wireless communications mode, the detectable signal can be letter of shaking hands Number, household appliance periodically sends handshake to home controller;Whether household appliance in preset time according to receiving institute The handshake for stating home controller feedback, if receiving, it is determined that with the home controller into the communication of row data communication Pattern is wireless communications mode, and wireless communications mode is notified the home controller by household appliance, and then is convenient for home control Device determines that the first communication pattern is wireless communications mode according to notice result.
In said program, the method further includes:
Household appliance obtain home controller about the corresponding signal strength values of the first communication pattern;
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, household appliance It determines and uses first communication pattern and the home controller into row data communication;If corresponding with first communication pattern Signal strength values when being less than the preset strength threshold value, household appliance is determined using second communication pattern and the family Controller is into row data communication.
The signal strength of the first communication pattern according to home controller is so, it is possible, to determine whether logical by first Letter pattern is communicated with home controller.
It should be noted that household appliance determination is using the first communication pattern or the second communication pattern and home control The judgement flow that device carries out data transmission, can carry out before step 201, in this way, more home controller can be helped accurate Select the communication pattern communicated with household appliance.
Certainly, which can also carry out after step 201, will determine with the home controller into line number The home controller is notified according to the wireless communications mode of communication, and the adjustment that communication pattern whether is made for home controller provides Reference frame.
For example, household appliance detects the signal strength values of the WIFI of home controller every a set time;If When the signal strength values of WIFI are greater than or equal to default WIFI signal intensity threshold, household appliance is determined to be communicated using the WIFI Pattern and the home controller are into row data communication;If the signal strength values of WIFI are less than the default WIFI signal intensity threshold When value, household appliance, which determines, uses the optical transport communication pattern and the home controller into row data communication.
Control method described in the present embodiment, household appliance receive the control instruction that home controller is sent, determine the family Front yard controller sends communication pattern used by the control instruction, is sent to the home controller based on the communication pattern Response data.In this way, household appliance is based on the communication pattern sends response data to the home controller, institute can be convenient for It states home controller and judges whether receive the response data that the household appliance is sent in preset time threshold, be family Controller carries out data transmission providing basis for estimation with the household appliance using which kind of communication pattern, so that home controller The communication pattern adapted to home controller and the current state of household appliance can be selected, improve home controller with Stability of the household appliance into row data communication.
Embodiment three
Fig. 3 is the first specific control stream that home controller provided in an embodiment of the present invention is communicated with household appliance Journey schematic diagram, as shown in figure 3, the flow includes mainly:
Step 301:After home controller, which receives user, to be needed to control the control instruction of household appliance, according to predetermined association View encodes the control instruction, forms the data after coding, then executes step 302;
Here, the predetermined protocol is the agreement that home controller is supported with household appliance, in the home controller It, can be according to the reservation after household appliance receives the control instruction after encoding after being encoded to the control instruction Agreement parses the control instruction after the coding, to obtain the control instruction.
Step 302:Home controller sends the data after coding by WIFI patterns, and waits for the sound at household appliance end It answers.
Step 303:If not receiving the response data of household appliance transmission, home control in preset time threshold Device opens the corresponding LIFI nodes of the household appliance to carry out the transmission of data;If receiving response in preset time threshold Data, then home controller continue through WIFI patterns and household appliance into row data communication.
Here, home controller opens the transmission that the corresponding LIFI nodes of the household appliance carry out data, including:
Home controller opens the corresponding LIFI nodes of the household appliance;
Home controller sends the first data to the LIFI nodes;First data are by the home controller root The control command code for household appliance sent according to the mobile terminal of reception forms;
The LIFI nodes receive the first data that home controller is sent;
Light emitting devices of the LIFI nodes based on first data control and the LIFI node matchings, which is formed, to be used First optical signal is sent in the first optical signal for being transmitted to household appliance, and to the household appliance, the household electrical appliances is made to set It is standby that the control instruction is obtained based on first optical signal, and execute the control instruction.
In this way, control instruction can be sent to household appliance by home controller by LIFI nodes, can not pass through WIFI patterns and household appliance are logical into the case of row data communication, still ensureing to carry out data with household appliance using other manner Letter is improved to home wiring control in intelligent and hommization.
Example IV
Fig. 4 is second of the specific control stream that home controller provided in an embodiment of the present invention is communicated with household appliance Journey schematic diagram, as shown in figure 4, the flow includes mainly:
Step 401:Home controller obtains the data-transmission mode selection strategy that household appliance is configured in networking, so Step 402 is executed afterwards;
In the present embodiment, when household appliance networking, if directly passing through LIFI or WiFi technology provided with this household appliance It is controlled, then home controller when sending data, should be carried out data transmission by corresponding technology.
Step 402:After home controller, which receives user, to be needed to control the instruction of household electrical appliances, home controller is according to predetermined Agreement encodes instruction, forms the data after coding, then executes step 403;
Step 403:Home controller sends control instruction according to preset transmission mode.
Here, the preset transmission mode is the determination according to data-transmission mode selection strategy in step 401.
For example, when household appliance networking, if directly being controlled by LIFI technologies provided with this household appliance, Home controller when sending data, should be carried out data transmission by optical transport communication pattern corresponding with LIFI technologies.
For example, when household appliance networking, if directly being controlled by WiFi technology provided with this household appliance, Home controller when sending data, should be carried out data transmission by WIFI communication patterns corresponding with WiFi technology.
It is preset in this way, home controller is determined according to the data-transmission mode selection strategy that household appliance is configured in networking Transmission mode, can follow the data-transmission mode selection strategy that household appliance configures in networking implement to household appliance into Row control.
Embodiment five
Fig. 5 is the third specific control stream that home controller provided in an embodiment of the present invention is communicated with household appliance Journey schematic diagram, as shown in figure 5, the flow includes mainly:
Step 501:When household appliance is networked with networking, home controller address, home controller are carried out to household appliance The pairing of title, the information such as password of communication pattern.
Step 502:Household appliance detects the signal strength of the first communication pattern of home controller in a certain fixed intervals, And periodically detectable signal about the first communication pattern is sent to home controller;According to whether receiving institute in preset time State home controller return response detected signal, it is determined whether using the first communication pattern as with the home controller into The preset transmission mode of row data communication.
Here, if household appliance is believed according to the response detected that the home controller returns is not received in preset time Number, then using the second communication pattern as the preset transmission mode with the home controller into row data communication.
For example, when close to household electrical appliances progress home controller address, title, WIFI when household electrical appliances network with networking The information pairing of code etc., household appliance then can detect the signal strength of home controller WIFI in a certain fixed intervals, and pass through WIFI carries out handshake communication with home controller, and when not receiving the handshake of home controller feedback, household appliance is certainly Oneself can not be attached by WIFI and home controller in judgement, and inform the home controller judgement knot by LIFI technologies Fruit, later in the control of household appliance, home controller just directly uses LIFI into row data communication.
Step 503:The preset transmission mode determined is notified home controller by household appliance.
Step 504:After home controller, which receives user, to be needed to control the instruction of household electrical appliances, then according to predetermined protocol to referring to Order is encoded, and the data after coding are formed, and then executes step 505;
Step 505:Home controller sends control instruction according to preset transmission mode.
Here, the preset transmission mode is the preset transmission sent by household appliance received in step 503 Pattern.
In this way, since household appliance has sent preset transmission mode to home controller in advance, home controller Control instruction is sent to household appliance by the preset transmission mode, success of the control instruction up to household appliance can be improved Rate.
Embodiment six
Fig. 6 shows a kind of data transmission schematic diagram between each equipment in control system, as shown in fig. 6, long-range shifting Dynamic terminal sends control instruction by network to home controller, and home controller encodes the control instruction, generates the One data;Home controller also determines preset transmission mode, specifically, when preset transmission mode is WIFI communication patterns When, by WIFI communication patterns by first data transmission to household appliance;, when preset transmission mode is optical transport communication pattern When, for home controller by first data transmission to LIFI nodes, LIFI nodes are based on first data control and the LIFI The light emitting devices of node matching forms the first optical signal, by first optical signal transmission to household appliance, household appliance root The control instruction is obtained according to first optical signal, and executes the control instruction.In this way, home controller is selective The control to household appliance is realized by preset transmission mode.
Fig. 7 shows another data transmission schematic diagram between each equipment in control system, as shown in fig. 7, household electrical appliances are set It is standby to obtain the second data;Second data include the feedback letter that control instruction of the household appliance based on mobile terminal is formed Breath, and/or, the solicited message that the household appliance is actively sent to the mobile terminal, and/or, the household appliance determines The preset transmission mode gone out;Specifically, when preset transmission mode is WIFI communication patterns, it will by WIFI communication patterns Second data transmission is to home controller;When preset transmission mode is optical transport communication pattern, home controller is based on institute It states the control of the second data and forms the second optical signal with the matched light emitting devices of the home controller, by second optical signal LIFI nodes are transmitted to, LIFI nodes obtain second data according to second optical signal, and are returned to home controller Second data.It is selectively reported to home controller by preset transmission mode in this way, realizing household appliance Information.
Embodiment seven
An embodiment of the present invention provides a kind of control devices, are applied to home controller, and Fig. 8 provides for the embodiment of the present invention Control device composed structure schematic diagram, as shown in figure 8, the control device includes:First determination unit 81, first is sent Unit 82, first detection unit 83, control unit 84;Wherein,
First determination unit 81, for receiving the control instruction for household appliance sent by mobile terminal When, determine the first communication pattern into row data communication with the household appliance;
First transmission unit 82 refers to for passing through the first communication pattern to the household appliance transmission control It enables;
The first detection unit 83, for detecting whether receive what the household appliance was sent in preset time threshold Response data;
Described control unit 84 receives institute if being detected for the first detection unit 83 in preset time threshold Response data is stated, then continues through the first communication pattern and the household appliance into row data communication;If first detection is single Member 83 is detected does not receive the response data in preset time threshold, then the first communication pattern is switched to the second communication Pattern sends the control instruction by the second communication pattern to the household appliance, and continue through the second communication pattern with The household appliance is into row data communication.
Further, the control device further includes:
Coding unit 85 is used for before first transmission unit sends the control instruction to the household appliance, Communication protocol corresponding to communication pattern used by determining for sending the control instruction;According to the communication protocol to institute It states control instruction to be encoded, the data after being encoded;
Correspondingly, first transmission unit 82, be additionally operable to the household appliance send the coding after data.
As a kind of optional embodiment, first determination unit 81 is additionally operable to:
Obtain the data-transmission mode selection strategy that household appliance is configured in networking;
Transmission mode selection strategy determines the first communication pattern based on the data.
Optionally, the data-transmission mode selection strategy includes at least one of following strategies:
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, using described First communication pattern;If signal strength values corresponding with first communication pattern are less than the preset strength threshold value, use Second communication pattern;Or
The first communication pattern is first selected, when can not be with home controller into row data communication using first communication pattern When, the second communication pattern of reselection;Or
The second communication pattern is first selected, when can not be with home controller into row data communication using second communication pattern When, the first communication pattern of reselection.
Optionally, first communication pattern is wireless communications mode or optical transport communication pattern, the second communication mould Formula is optical transport communication pattern or wireless communications mode;
Illustratively, when first communication pattern is wireless communications mode, second communication pattern is logical for optical transport When letter pattern, described control unit 84 is additionally operable to:It controls the corresponding LIFI nodes of the household appliance and is in enabled state.
It will be appreciated by those skilled in the art that in the home controller of the present embodiment each unit function, can refer to aforementioned Understand applied to the associated description of the control method in home controller.
In practical application, above-mentioned first determination unit 81, the first transmission unit 82, first detection unit 83, control unit 84, the concrete structure of coding unit 85 may both correspond to processor.The specific structure of processor can be central processing unit At (CPU, Central Processing Unit), microprocessor (MCU, Micro Controller Unit), digital signal Manage device (DSP, Digital Signal Processing) or programmable logic device (PLC, Programmable Logic The set of electronic component with processing function or electronic component such as Controller).Wherein, the processor include can Code is executed, the executable code is stored in a storage medium, and the processor can pass through the communication interfaces such as bus and institute It states in storage medium and is connected, when executing the corresponding function of specific each unit, read from the storage medium and run institute State executable code.The storage medium is preferably non-moment storage medium for storing the part of the executable code.Its In, the executable code is used to execute the control method described in embodiment of the above application in home controller.
Wherein, first determination unit 81 can realize that the coding unit 85 can pass through encoder by receiver It realizes, first transmission unit 82 can be realized by transmitter.
Home controller described in the present embodiment can realize the data interchange between mobile terminal and household appliance, not only It can solve the problems, such as by electromagnetic wave not carrying out data transmission under special screne, moreover it is possible to improve the safety of data transmission.
Embodiment eight
An embodiment of the present invention provides a kind of control devices, are applied to household appliance, and Fig. 9 is provided in an embodiment of the present invention The composed structure schematic diagram of control device, as shown in figure 9, the control device includes:Receiving unit 91, the second determination unit 92, the second transmission unit 93;Wherein,
The receiving unit 91, the control instruction for receiving home controller transmission;
Second determination unit 92 is communicated for determining used by the home controller sends the control instruction Pattern;
Second transmission unit 93, for sending response data to the home controller based on the communication pattern, To judge whether receive the response data of the household appliance transmission in preset time threshold by the home controller.
Further, the control device may also include:
Second detection unit 94, for periodically sending the detectable signal about the first communication pattern to home controller;
Third determination unit 95, the detection for being returned according to the home controller whether is received in preset time Answer signal determines the communication pattern into row data communication with the home controller;
Notification unit 96 notifies institute with the home controller for that will determine into the communication pattern of row data communication State home controller.
Further, the control device may also include:
Acquiring unit 97, for obtain home controller about the corresponding signal strength values of the first communication pattern;
4th determination unit 98, for being preset when signal strength values corresponding with first communication pattern are greater than or equal to When intensity threshold, determines and use first communication pattern and the home controller into row data communication;When with described first The corresponding signal strength values of communication pattern be less than the preset strength threshold value when, determine using second communication pattern with it is described Home controller is into row data communication.
It will be appreciated by those skilled in the art that in the household appliance of the present embodiment each unit function, can refer to aforementioned answer Understand for the associated description of the control method in household appliance.
In practical application, above-mentioned receiving unit 91, the second determination unit 92, the second transmission unit 93, second detection unit 94, third determination unit 95, notification unit 96, acquiring unit 97, the 4th determination unit 98 concrete structure may both correspond to locate Manage device.The specific structure of processor can be the electronic component or electronics member with processing function such as CPU, DSP or PLC The set of device.Wherein, the processor includes executable code, and the executable code is stored in a storage medium, described Processor can be connected by communication interfaces such as buses with the storage medium, in the corresponding function for executing specific each unit When, it is read from the storage medium and runs the executable code.The storage medium is for storing the executable generation The part of code is preferably non-moment storage medium.Wherein, the executable code is for executing above application in household appliance Embodiment described in control method.
Illustratively, when preset transmission mode is wireless communications mode, above-mentioned second determination unit 92, second detects Unit 94, third determination unit 95, acquiring unit 97, the 4th determination unit can be realized by the processor in household appliance.On Stating receiving unit 91 can be realized by receiver, and above-mentioned second transmission unit 93, notification unit 96 can be by transmitters come real It is existing.
It should be noted that the household appliance is needed to configure there are one LIFI chips, for LIFI nodes into line number According to intercommunication.LIFI chips are also configured in LIFI nodes.
Wherein, the LIFI chips include optical detector and optical receiver.The optical detector is for detecting whether there is light Signal inputs;The optical receiver is for receiving optical signal.The household appliance and the LIFI nodes further include:Light emitting Device (or optical transmitting set), for emitting optical signal.
Illustratively, when preset transmission mode is optical transport communication pattern, above-mentioned second determination unit 92, second is examined Surveying unit 94, third determination unit 95, acquiring unit 97, the 4th determination unit 98 can be by the processor in household appliance Lai real It is existing.Above-mentioned receiving unit 91 can realize that above-mentioned second transmission unit 93, can pass through light at notification unit 96 by optical receiver Transmitter or light emitting devices are realized.
Household appliance described in the present embodiment can rely on the data interchange between optic communication realization and mobile terminal, not only It can solve the problems, such as by electromagnetic wave not carrying out data transmission under special screne, moreover it is possible to improve the safety of data transmission.
Embodiment nine
An embodiment of the present invention provides a kind of control system, Figure 10 is the structure of control system provided in an embodiment of the present invention Schematic diagram, as shown in Figure 10, the control system include home controller 10, LIFI nodes 20, household appliance 30;Wherein:
Home controller 10, for receiving the control instruction for household appliance sent by mobile terminal;According to default Communications protocol format encodes the control instruction, obtains the first data, and the first data transmission to LIFI is saved Point 20;
LIFI nodes 20, the first data for receiving the transmission of home controller 10;Based on first data control with The formation of 20 matched light emitting devices of the LIFI nodes is used for transmission to the first optical signal of household appliance 30, and to the family Electric equipment 30 sends first optical signal;
Household appliance 30, the first optical signal for receiving the transmission of LIFI nodes 20;It is obtained based on first optical signal The control instruction, and execute the control instruction.
In an optional embodiment, the household appliance 30 is additionally operable to obtain the second data;Second data include institute The feedback information that control instruction of the household appliance 30 based on mobile terminal is formed is stated, and/or, 30 active of the household appliance is to institute The solicited message of mobile terminal transmission is stated, and/or, the preset transmission mode that household appliance is determined;Based on second number According to forming the second optical signal;Second optical signal is sent to LIFI nodes 20;The LIFI nodes 20 are additionally operable to based on described Second optical signal obtains the feedback information or the solicited message that household appliance 30 is sent to the mobile terminal, will be described Feedback information or the solicited message are sent to home controller 10;The home controller 10 is additionally operable to corresponding mobile whole End forwards the feedback information or the solicited message.
In practical application, each LIFI AP are connected thereto there are one home controller, by home controller to LIFI AP is controlled, and each LIFI AP are required for the mobile terminal intercommunication in internet through corresponding home controller Transfer or processing.
Each household appliance is also required to configuration, and there are one LIFI chips, for carrying out data interchange with LIFI AP.
Before carrying out data transmission.First, LIFI nodes will carry out pairing with household appliance and connect, this matching technology can adopt With the matching technology of current existing household electrical appliances and router etc., it can also pass through existing ipv4 (Internet Protocol Version) or ipv6 carries out the transmission based on address, no longer repeats one by one herein.
After pairing, LIFI nodes can then carry out data transmission with household appliance.
The transmission process of LIFI nodes and household appliance includes:
Home controller receives control instruction of the user to household appliance;
This instruction is carried out data encoding by home controller, and coding mode is preset LIFI communications protocol formats, finally It is binary data by the data of coding, the LIFI chips this data being transmitted to by solid data line in light bulb;
After LIFI chips receive the data of coding, control LED light forms optical signal, institute based on the data after the coding It is the signal for changing light frequency according to the data of coding to state optical signal, and the light frequency human eye is invisible;
After the LIFI chips of household appliance receive optical signal, acquisition and the decoding operate of data are carried out, finger is assemblied into Data are enabled, the parsing that the MCU of household appliance instructs it is then forwarded to, complete the control to household appliance.
Control system described in the present embodiment can solve electromagnetic wave can not be used to carry out data transmission under special scene Problem, moreover it is possible to which household appliance is controlled by optic communication.It, can only be by light since LIFI technologies rely on optic communication Data are obtained in the range of the irradiation of source, so Information Security is improved so that illegality equipment will not easily pass through electromagnetic wave Data-signal is received to be decoded.
In addition, when the light emitting devices is black light emitter, LIFI AP can be based on the first data control System forms the first optical signal with the matched black light emitters of the LIFI AP.It so, it is possible that LIFI AP is avoided to receive When to the first data, when LIFI AP can be avoided to receive the first data, in the case of being not in working condition because of current light source And voluntarily open the embarrassing question caused by light source.As nobody or current environment do not allow the field of a bright light source in family Under scape, LIFI AP form the first optical signal using black light emitter, can more promote the usage experience of user.
Control program uses LIFI technical communications described in the above-mentioned each embodiment of the present invention, can be applied to electric cooker, refrigerator, The household appliances such as water heater, applying also for nuclear power station etc. does not allow electronic equipment in the region of electromagnetic communication.
It, in the absence of conflict, can be in any combination between technical solution recorded in the embodiment of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong Other modes are crossed to realize.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as:Multiple units or component can be tied It closes, or is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each group At the mutual coupling in part or direct-coupling or communication connection can be by some interfaces, equipment or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be and be physically separated, aobvious as unit The component shown can be or may not be physical unit, you can be located at a place, may be distributed over multiple network lists In member;Some or all of wherein unit can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing unit, Can also be each unit individually as a unit, it can also be during two or more units be integrated in one unit; The form that hardware had both may be used in above-mentioned integrated unit is realized, the form that hardware adds SFU software functional unit can also be used real It is existing.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The matched hardware of program instruction is completed, and program above-mentioned can be stored in computer read/write memory medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:Movable storage device read-only is deposited Reservoir (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or The various media that can store program code such as CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product Sale in use, can also be stored in a computer read/write memory medium.Based on this understanding, the present invention is implemented Substantially the part that contributes to existing technology can be expressed in the form of software products the technical solution of example in other words, The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention. And storage medium above-mentioned includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can to store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (16)

1. a kind of control method is applied to home controller, which is characterized in that the method includes:
Receive by mobile terminal send for household appliance control instruction when, determine with the household appliance carry out data First communication pattern of communication;
Send the control instruction to the household appliance by the first communication pattern, and detect in preset time threshold whether Receive the response data that the household appliance is sent;
If receiving the response data in preset time threshold, the first communication pattern and the household appliance are continued through Into row data communication;If not receiving the response data in preset time threshold, the first communication pattern is switched to Two communication patterns send the control instruction to the household appliance by the second communication pattern, and continue through the second communication Pattern and the household appliance are into row data communication.
2. according to the method described in claim 1, it is characterized in that, it is described to the household appliance send the control instruction it Before, the method further includes:
Communication protocol corresponding to communication pattern used by determining for sending the control instruction;
The control instruction is encoded according to the communication protocol, the data after being encoded;
It is described to send the control instruction to the household appliance, including:
Data after sending from the coding to the household appliance.
3. according to the method described in claim 1, it is characterized in that, the determination and the household appliance are into row data communication First communication pattern, including:
Obtain the data-transmission mode selection strategy that household appliance is configured in networking;
Transmission mode selection strategy determines the first communication pattern based on the data.
4. according to the method described in claim 3, it is characterized in that, the data-transmission mode selection strategy, includes at least down State one of strategy:
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, described first is used Communication pattern;If signal strength values corresponding with first communication pattern are less than the preset strength threshold value, using described Second communication pattern;Or
First select the first communication pattern, when using first communication pattern can not with home controller into row data communication when, The second communication pattern of reselection;Or
First select the second communication pattern, when using second communication pattern can not with home controller into row data communication when, The first communication pattern of reselection.
5. according to the method described in claim 1, it is characterized in that, first communication pattern is wireless communications mode or light biography Defeated communication pattern, second communication pattern are optical transport communication pattern or wireless communications mode;
It is described when first communication pattern is wireless communications mode, and second communication pattern is optical transport communication pattern First communication pattern is switched into the second communication pattern, including:
It controls the corresponding visible light wireless communication LIFI nodes of the household appliance and is in enabled state.
6. a kind of control method is applied to household appliance, which is characterized in that the method includes:
Receive the control instruction that home controller is sent;
Determine that the home controller sends communication pattern used by the control instruction;
Response data is sent to the home controller based on the communication pattern, it is preset to be judged by the home controller Whether the response data that the household appliance send is received in time threshold.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
The detectable signal about the first communication pattern is periodically sent to home controller;
The response detected signal returned according to the home controller whether is received in preset time determines and the family Communication pattern of the controller into row data communication;
It will determine to notify the home controller into the communication pattern of row data communication with the home controller.
8. the method described according to claim 6 or 7, which is characterized in that the method further includes:
Obtain home controller about the corresponding signal strength values of the first communication pattern;
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, determine described in using First communication pattern and the home controller are into row data communication;If signal strength values corresponding with first communication pattern When less than the preset strength threshold value, determines and use second communication pattern and the home controller into row data communication.
9. a kind of control device, it is applied to home controller, which is characterized in that the control device includes:First determination unit, For receive by mobile terminal send for household appliance control instruction when, determine with the household appliance carry out data First communication pattern of communication;
First transmission unit, for sending the control instruction to the household appliance by the first communication pattern;
First detection unit, for detecting the response data for whether receiving the household appliance in preset time threshold and sending;
Control unit receives the response data if being detected for the first detection unit in preset time threshold, The first communication pattern and the household appliance are then continued through into row data communication;If the first detection unit is detected pre- If time threshold in do not receive the response data, then the first communication pattern is switched into the second communication pattern, passes through second Communication pattern sends the control instruction to the household appliance, and continue through the second communication pattern and the household appliance into Row data communication.
10. control device according to claim 9, which is characterized in that the control device further includes:
Coding unit, for before first transmission unit sends the control instruction to the household appliance, determining and using Communication protocol corresponding to the communication pattern used by sending the control instruction;According to the communication protocol to the control Instruction is encoded, the data after being encoded;
Correspondingly, first transmission unit, be additionally operable to the household appliance send the coding after data.
11. control device according to claim 9, which is characterized in that first determination unit is additionally operable to:
Obtain the data-transmission mode selection strategy that household appliance is configured in networking;
Transmission mode selection strategy determines the first communication pattern based on the data.
12. control device according to claim 11, which is characterized in that the data-transmission mode selection strategy, at least Including one of following strategies:
If signal strength values corresponding with first communication pattern are greater than or equal to preset strength threshold value, described first is used Communication pattern;If signal strength values corresponding with first communication pattern are less than the preset strength threshold value, using described Second communication pattern;Or
First select the first communication pattern, when using first communication pattern can not with home controller into row data communication when, The second communication pattern of reselection;Or
First select the second communication pattern, when using second communication pattern can not with home controller into row data communication when, The first communication pattern of reselection.
13. control device according to claim 9, which is characterized in that first communication pattern is wireless communications mode Or optical transport communication pattern, second communication pattern are optical transport communication pattern or wireless communications mode;
It is described when first communication pattern is wireless communications mode, and second communication pattern is optical transport communication pattern Control unit is additionally operable to:
It controls the corresponding LIFI nodes of the household appliance and is in enabled state.
14. a kind of control device, it is applied to household appliance, which is characterized in that the control device includes:
Receiving unit, the control instruction for receiving home controller transmission;
Second determination unit, for determining that the home controller sends communication pattern used by the control instruction;
Second transmission unit, for sending response data to the home controller based on the communication pattern, with by the family Front yard controller judges the response data that the household appliance is sent whether is received in preset time threshold.
15. control device according to claim 14, which is characterized in that the control device further includes:
Second detection unit, for periodically sending the detectable signal about the first communication pattern to home controller;
Third determination unit, the response detected letter for being returned according to the home controller whether is received in preset time Number determine with the home controller into row data communication communication pattern;
Notification unit notifies the family with the home controller for will determine into the communication pattern of row data communication Controller.
16. the control device according to claims 14 or 15, which is characterized in that the control device further includes:
Acquiring unit, for obtain home controller about the corresponding signal strength values of the first communication pattern;
4th determination unit, for being greater than or equal to preset strength threshold when signal strength values corresponding with first communication pattern When value, determines and use first communication pattern and the home controller into row data communication;When communicating mould with described first When the corresponding signal strength values of formula are less than the preset strength threshold value, determine and controlled using second communication pattern and the family Device processed is into row data communication.
CN201710160513.2A 2017-03-17 2017-03-17 A kind of control method and device Pending CN108628178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710160513.2A CN108628178A (en) 2017-03-17 2017-03-17 A kind of control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710160513.2A CN108628178A (en) 2017-03-17 2017-03-17 A kind of control method and device

Publications (1)

Publication Number Publication Date
CN108628178A true CN108628178A (en) 2018-10-09

Family

ID=63686776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710160513.2A Pending CN108628178A (en) 2017-03-17 2017-03-17 A kind of control method and device

Country Status (1)

Country Link
CN (1) CN108628178A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814402A (en) * 2019-03-18 2019-05-28 广东超讯通信技术股份有限公司 A kind of intelligent household management system
CN112583483A (en) * 2019-09-30 2021-03-30 Oppo广东移动通信有限公司 Method and device for establishing communication connection between devices, storage medium and electronic device
CN112821947A (en) * 2019-11-18 2021-05-18 Oppo广东移动通信有限公司 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment
CN113038511A (en) * 2021-03-12 2021-06-25 广东博智林机器人有限公司 Control method and control device of communication system and communication system
CN116567753A (en) * 2023-07-06 2023-08-08 深圳智慧光迅信息技术有限公司 Wireless roaming method, system, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060104736A (en) * 2005-03-31 2006-10-09 주식회사 팬택 Mobile terminal provided with alarming function of electronic apparatus connected with home network and method thereof
CN102711201A (en) * 2012-06-06 2012-10-03 中兴通讯股份有限公司 Multi-mode RAT switching method and device thereof
CN102984039A (en) * 2012-11-06 2013-03-20 鸿富锦精密工业(深圳)有限公司 Intelligent gateway system and intelligent housing system and intelligent control method of household appliances
CN104158993A (en) * 2014-07-31 2014-11-19 广东美的集团芜湖制冷设备有限公司 Communication mode confirmation device, system and method as well as household appliance
CN105527848A (en) * 2015-12-03 2016-04-27 珠海格力电器股份有限公司 Communication device and method for controlling communication device
CN105577427A (en) * 2015-12-08 2016-05-11 美的集团股份有限公司 Detection method and device for communication connection between household appliance and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060104736A (en) * 2005-03-31 2006-10-09 주식회사 팬택 Mobile terminal provided with alarming function of electronic apparatus connected with home network and method thereof
CN102711201A (en) * 2012-06-06 2012-10-03 中兴通讯股份有限公司 Multi-mode RAT switching method and device thereof
CN102984039A (en) * 2012-11-06 2013-03-20 鸿富锦精密工业(深圳)有限公司 Intelligent gateway system and intelligent housing system and intelligent control method of household appliances
CN104158993A (en) * 2014-07-31 2014-11-19 广东美的集团芜湖制冷设备有限公司 Communication mode confirmation device, system and method as well as household appliance
CN105527848A (en) * 2015-12-03 2016-04-27 珠海格力电器股份有限公司 Communication device and method for controlling communication device
CN105577427A (en) * 2015-12-08 2016-05-11 美的集团股份有限公司 Detection method and device for communication connection between household appliance and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵建光: "《物联网技术研究综述》", 31 December 2016 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814402A (en) * 2019-03-18 2019-05-28 广东超讯通信技术股份有限公司 A kind of intelligent household management system
CN112583483A (en) * 2019-09-30 2021-03-30 Oppo广东移动通信有限公司 Method and device for establishing communication connection between devices, storage medium and electronic device
CN112583483B (en) * 2019-09-30 2022-09-30 Oppo广东移动通信有限公司 Method and device for establishing communication connection between devices, storage medium and electronic device
CN112821947A (en) * 2019-11-18 2021-05-18 Oppo广东移动通信有限公司 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment
CN113038511A (en) * 2021-03-12 2021-06-25 广东博智林机器人有限公司 Control method and control device of communication system and communication system
CN113038511B (en) * 2021-03-12 2022-12-13 广东博智林机器人有限公司 Control method and control device of communication system and communication system
CN116567753A (en) * 2023-07-06 2023-08-08 深圳智慧光迅信息技术有限公司 Wireless roaming method, system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108628178A (en) A kind of control method and device
US11324074B2 (en) Mesh network system comprising a plurality of interconnected individual mesh networks
Boucouvalas et al. Standards for indoor optical wireless communications
KR102599055B1 (en) Codebook-based uplink signal transmission method and device for the same in a wireless communication system
US10278099B2 (en) Electronic device and operating method thereof
CN104898449B (en) Smart home system and its control method
CA2871466C (en) Scalable protocol for large wsns having low duty cycle end nodes
CN111096029B (en) Method for configuring reference point independent of common resource block grid and apparatus for the same
CN103713608A (en) Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof
CN110235456A (en) Smart machine method of network entry, mobile terminal, Cloud Server, equipment and system
CN108632117A (en) A kind of control method, equipment and system
KR20220018509A (en) Method and apparatus for transmitting and receiving uplink signals in wireless communication system
CN105959921A (en) Network controller, node equipment and grid network system with network controller and node equipment
CN105554754A (en) Method and system for accessing WIFI module of the internet of things to network
CN111176130B (en) Equipment control method, equipment control method and equipment control system
CN103313487A (en) Illumination control system, lighting device and wifi controller
CN113746505B (en) Backscatter communication system, method and readable medium
EP3679693A1 (en) Commissioning in multi-hop networks by using a single-hop connection
CN109890065A (en) A kind of network-building method and system of household appliance
CN105636159A (en) Configuration method and apparatus for connection between electrical appliance and wireless router and mobile communication terminal
KR20210135620A (en) A method for reporting beam information in a wireless communication system and an apparatus therefor
CN103544823B (en) The matching method of RF remote, device and household electrical appliance
CN111083654A (en) Method for realizing control of wireless passive switch, wireless passive switch and proxy node
KR101529471B1 (en) Wireless personal area network
CN107798835A (en) A kind of household electric appliance control method and device, system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination