CN105785929B - A kind of household electric appliance control method and system based on wechat - Google Patents
A kind of household electric appliance control method and system based on wechat Download PDFInfo
- Publication number
- CN105785929B CN105785929B CN201410800826.6A CN201410800826A CN105785929B CN 105785929 B CN105785929 B CN 105785929B CN 201410800826 A CN201410800826 A CN 201410800826A CN 105785929 B CN105785929 B CN 105785929B
- Authority
- CN
- China
- Prior art keywords
- home appliance
- account
- proxy server
- value
- 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.)
- Active
Links
Landscapes
- Selective Calling Equipment (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of household electric appliance control method and system based on wechat, by advance to Quick Response Code of each home appliance distribution with corresponding scene value;The scene value that the Quick Response Code obtains the Quick Response Code and carry is scanned by the wechat installed on mobile terminal, is associated the corresponding wechat account of wechat home appliance corresponding with the scene value according to the scene value;Control command of the user to the home appliance is received by the wechat, according to the wechat account and the corresponding incidence relation of the home appliance, the control command is sent to corresponding home appliance, it is corresponding to control the home appliance, it is achieved thereby that user controls multiple home appliances by wechat, bring to user and greatly facilitate.
Description
Technical field
The present invention relates to home appliance control technology field more particularly to a kind of household electric appliance control methods based on wechat
And system.
Background technology
As the product based on technology of Internet of things continues to develop and popularizes, more and more Internet of product appear in life
In, the home appliance that can be remotely controlled is more and more universal, and demand of the people to Internet of Things quality of the life is no longer only energy
Enough remote controls, but can simply, easily and efficiently use.
Wechat has broken through 400,000,000 as a instantly most popular mobile terminal social platform, any active ues amount, wechat user
Ubiquitous, wechat has become a part indispensable during everybody lives.Home wiring control is that a kind of requirement of real-time is very high
Application, have been disclosed for user in the prior art by wechat, carry out energy remote control domestic electrical equipment with voice hair control instruction;Pass through
Voice control generally requires a semantic interface, in order to the different voices of user are converted into control command, and
As long as user uses fixed rule(Such as verb+noun), the expression meaning is substantially close, and semantic interface can be identified as equally
Control command.Household electrical appliances remote control receives the voice or literal order of user, Ran Houfa generally by network communication module
Control command is sent to device controller, by result backtracking after device controller completion processing.Due to network communication module and
Device controller belongs to embedded device all in equipment, and in performance and treatment effeciency tends not to very high, and completes one
The link that secondary control order is passed through is very long, and wherein exception, which occurs, in any one link can all cause message delay, error in data
Situations such as, it does not conform to the actual conditions so as to cause slow in reacting, the state of user interface.And wechat user in wechat public platform
It is 1 pair 1 with public platform dialogue, can not realizes that a wechat user wants to inscribe with multiple equipment interaction, and can not help
You establish the binding relationship between wechat user and distinct device, that is to say, that can not realize a wechat user and multiple household electrical appliances
Equipment establishes binding relationship and multiple household electrical appliances can be quickly controlled by voice.
Therefore, the prior art has yet to be improved and developed.
Invention content
The technical problem to be solved in the present invention is, provides a kind of household electric appliance control method and system based on wechat, it is intended to
It solves the problems, such as not realizing that a wechat controls multiple home appliances in the prior art.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of household electric appliance control method based on wechat, wherein, include the following steps:
A, in advance to Quick Response Code of each home appliance distribution with corresponding scene value;
B, the scene value that the Quick Response Code obtains the Quick Response Code and carry, root are scanned by the wechat installed on mobile terminal
The corresponding wechat account of wechat home appliance corresponding with the scene value is associated according to the scene value;
C, user is received to the control command of the home appliance by the wechat, according to the wechat account with it is described
The control command is sent to corresponding home appliance by the correspondence incidence relation of home appliance, corresponding that the household electrical appliances is controlled to set
It is standby.
The household electric appliance control method based on wechat, wherein, the step A is specifically included:
A11, application wechat public's account, multiple two dimensions with different scenes value are generated according to the wechat public account
Code;
A12, multiple scene values are associated with binding with multiple home appliances one-to-one correspondence.
The household electric appliance control method based on wechat, wherein, the step A is further included:
A20, the proxy server for being stored with home appliance related information corresponding with scene value is pre-set, by the agency
Server keeps long connection with multiple home appliances, and the wechat that the proxy server is also connected with installing on mobile terminal is corresponding
Wechat server.
The household electric appliance control method based on wechat, wherein, the step B is specifically included:
B11, pass through the wechat account for the wechat login user installed on mobile terminal;
B12, the scene value that the Quick Response Code obtains the Quick Response Code and carried is scanned by the wechat, by the wechat
Account and scene value are sent to proxy server by wechat server;
B13, according to the home appliance stored in proxy server and the corresponding related information of scene value, by the wechat pair
The wechat account answered home appliance corresponding with the scene value is associated.
The household electric appliance control method based on wechat, wherein, the step A20 is further included:
A21, the proxy server are whether a predetermined time judging the connection status of each home appliance normally.
The household electric appliance control method based on wechat, wherein, the step C is specifically included:
C10, user is received to the control command of the home appliance by the wechat, the control command is passed through micro-
Telecommunications services device is sent to proxy server;
C20, judge whether the connection status of proxy server and the home appliance is normal, step is performed if normal
C30;Step C40 is performed if abnormal;
C30, according to the wechat account and the corresponding incidence relation of the home appliance, proxy server is by the control
Order is sent to corresponding home appliance, the corresponding working condition for controlling the home appliance;
C40, according to the wechat account and the corresponding incidence relation of the home appliance, proxy server is by the control
Order is sent to corresponding home appliance, corresponding to control the working condition of the home appliance, and receives the home appliance
The feedback result is sent to the wechat by feedback result.
The household electric appliance control method based on wechat, wherein, the step C20 is specifically included:
C21, proxy server are whether a predetermined time judging the connection status of each home appliance normally, if connection
State is normally then denoted as 1, and 0 is denoted as if connection status is abnormal;Remember that the connection status of nearest first pre-determined number N is suitable in the time
It is followed successively by from back to front in sequence、、......;Wherein, N is positive integer;
C22, calculate the home appliance connection status probability of stability valueFor:,
Wherein, M is positive integer, and M<N;n=1,2,3…N;
C23, when the probability of stability valueDuring more than preset threshold value, then the connection status of the home appliance is steady
It is fixed, perform step C30;When the probability of stability valueWhen being not above preset threshold value, then the company of the home appliance
State labile is connect, performs step C40.
A kind of appliance control system based on wechat, wherein, including:
Module is pre-set, in advance to Quick Response Code of each home appliance distribution with corresponding scene value;
Wechat account and home appliance relating module scan the Quick Response Code for passing through the wechat installed on mobile terminal
The scene value that the Quick Response Code carries is obtained, according to the scene value by the corresponding wechat account of the wechat and the scene value
Corresponding home appliance is associated;
Home appliance control module, for receiving user to the control command of the home appliance, root by the wechat
According to the wechat account and the corresponding incidence relation of the home appliance, the control command is sent to corresponding household electrical appliances and is set
It is standby, it is corresponding to control the home appliance.
The appliance control system based on wechat, wherein, the module that pre-sets includes:
For applying for wechat public's account, multiple bands are generated not according to the wechat public account for Quick Response Code generation unit
With the Quick Response Code of scene value;
Scene value and home appliance associative cell are tied up for multiple scene values to be associated with multiple home appliances one-to-one correspondence
It is fixed.
The appliance control system based on wechat, wherein, the module that pre-sets includes:
Proxy server for storing corresponding related information of the home appliance with scene value, is kept with multiple home appliances
Long connection, is also connected with the corresponding wechat server of the wechat installed on mobile terminal.
A kind of household electric appliance control method and system based on wechat provided by the present invention, efficiently solve in the prior art
It can not realize a problem of wechat controls multiple home appliances, provide a kind of wechat control home appliance with feasibility
Implementation method, by advance to Quick Response Code of each home appliance distribution with corresponding scene value;By on mobile terminal
The wechat of installation scans the Quick Response Code and obtains the scene value that the Quick Response Code carries, according to the scene value by the wechat pair
The wechat account answered home appliance corresponding with the scene value is associated;User is received by the wechat to set the household electrical appliances
According to the wechat account and the corresponding incidence relation of the home appliance, the control command is sent for standby control command
It is corresponding to control the home appliance to corresponding home appliance, it is achieved thereby that user controls multiple home appliances by wechat,
It brings to user and greatly facilitates.
Description of the drawings
Fig. 1 is the flow chart of the household electric appliance control method preferred embodiment provided by the invention based on wechat.
Fig. 2 is the structure diagram of the appliance control system preferred embodiment provided by the invention based on wechat.
Specific embodiment
The present invention provides a kind of household electric appliance control method and system based on wechat, to make the purpose of the present invention, technical solution
And advantage is clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.It should be appreciated that this
Locate described specific embodiment to be only used to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is the flow chart of the household electric appliance control method preferred embodiment provided by the invention based on wechat,
As shown in the figure, it the described method comprises the following steps:
Step S100, in advance to Quick Response Code of each home appliance distribution with corresponding scene value;
Step S200, the field that the Quick Response Code obtains the Quick Response Code and carry is scanned by the wechat installed on mobile terminal
The corresponding wechat account of wechat home appliance corresponding with the scene value is associated by scape value according to the scene value;
Step S300, control command of the user to the home appliance is received by the wechat, according to the wechat account
The control command is sent to corresponding home appliance, corresponding control institute by the corresponding incidence relation number with the home appliance
State home appliance.
Above-mentioned steps are described in detail with reference to specific embodiment.
In the step s 100, in advance to Quick Response Code of each home appliance distribution with corresponding scene value.Specifically,
Currently the majority user used wechat in daily life, wechat public's account was also all more or less paid close attention to, about such as
What concern wechat public's account, user can be swept by the wechat that the wechat installed on mobile terminal has sweeps functionality scan two dimension
Code if sweeping for the first time, can leap to wechat public account concern interface, be directly entered if scanned in the past
Wechat public's account.Talk in wechat public's account with other people or chat is 1 pair 1.
Wechat public's account is wechat to meet the needs of user's channel promotion analysis, and public platform provides generation band
The interface of parameter Quick Response Code.Multiple Quick Response Codes with different scenes value, the scanning input wechat public can be obtained using the interface
After account, event push can be received.About wechat public's account, there is the Quick Response Code of 2 types at present, be interim two respectively
Tie up code and permanent Quick Response Code, the former has expired time, is up to 1800 seconds, but can generate a greater number, the latter without it is expired when
Between, negligible amounts(Parameter only supports 1 ~ 100000 at present).Two kinds of Quick Response Codes are respectively suitable for account binding, user sources statistics
Etc. scenes.During scanning input band scene value Quick Response Code, following two events may be pushed:If user does not pay close attention to public platform also,
Then user can pay close attention to public platform, and wechat can will pay close attention to event with scene value and be pushed to developer after concern.If user is
Public platform is paid close attention to, can be automatically into session after scanning input, wechat also can will be pushed to developer with scene value scan event.
It is illustrated below:The Quick Response Code of wechat public platform is can be with scene value (1 ~ 100000 positive integer), field
Scape value, which is intended that, obtains different popularization approach:For example there are one TCL household electrical appliances public platforms, in day, the Quick Response Code scene value of cat is
1000, the Quick Response Code scene value in TCL stores is 1001, and after scanning input Quick Response Code, backstage wechat server can receive user
With the information of scene value, then just energy counting user is from day cat or TCL stores concern public's account.
Further, the step S100 is specifically included:
S111, application wechat public's account, multiple two dimensions with different scenes value are generated according to the wechat public account
Code;
S112, multiple scene values are associated with binding with multiple home appliances one-to-one correspondence.
Specifically, the present invention applies for wechat public's account according to the principle of above-mentioned wechat public account(Such as:
TCL household electrical appliances), the different Quick Response Code of multiple scene values is generated for public's account, each scene value is allowed to be associated with different equipment,
Namely multiple scene values are corresponded with multiple home appliances.Further, the correspondence incidence relation of scene value and equipment can
Corresponding related information table info_device is established to store, is storable in proxy server set in addition, association letter
There must be 2 fields in breath table:device_code(Equipment bar code, for indicating home appliance)And qcode(Scene value).Family
Electric equipment bar code i.e. identifier of household appliance code, for identifying the home appliance.It therefore can be by wechat public account to every
A Quick Response Code of the home appliance distribution comprising the identifier of household appliance code and scene value, so that user is scanned by wechat.The band
The Quick Response Code for having scene value can be separately positioned on each home appliance, can also be centrally stored.
Further, the step S200 includes:The Quick Response Code is scanned by the wechat installed on mobile terminal to obtain
The scene value that the Quick Response Code carries, it is according to the scene value that the corresponding wechat account of the wechat is corresponding with the scene value
Home appliance be associated.Specifically, user scans the Quick Response Code by the wechat installed on mobile terminal, can obtain
Corresponding scene value, then can be corresponding with scene value by the corresponding wechat account of the wechat according to the scene value
Home appliance is associated.
Specifically, when user is scanned the two-dimensional code by wechat, wechat server can obtain qcode(Scene value)And wx_
user(Wechat user, that is, wechat account)Information, according to the correspondence related information of scene value and equipment, can know
device_code(Equipment bar code)And wx_user(Wechat user)Correspondence, and this relationship is stored in wechat account
With in device relationships table user_device, passing through Quick Response Code scene value in this way, it is possible to establish user and multiple home appliances
Correspondence.
In step S300, control command of the user to the home appliance is received by the wechat, according to described micro-
Believe corresponding incidence relation of the account with the home appliance, the control command is sent to corresponding home appliance, corresponding control
Make the home appliance.Specifically, user inputs the control command or word of home appliance by wechat phonetic entry
To the control command of home appliance, then according to wechat account and the corresponding incidence relation of the home appliance, by the control
Order is wirelessly transmitted to corresponding home appliance, the corresponding working condition for controlling the home appliance.It for example can be in home appliance
Control command to receive the control command of wechat server wireless transmission, is sent to household electrical appliances and set by upper setting wireless receiving module
It is standby to pass through the modes such as infrared, bluetooth, WIFI.
In practical application, user generally has multiple home appliances, then user is scanned by the wechat on mobile terminal
The corresponding Quick Response Code with scene value of multiple home appliances, can be by the wechat account of user pass corresponding with multiple home appliances
Join, then user can select certain home appliance and corresponding control by voice or word, it is achieved thereby that household electrical appliance
One-to-many control.Voice control generally requires a semantic interface, in order to which the different voices of user are converted into control
System order, as long as and user use fixed rule(Such as verb+noun), the expression meaning is substantially close, and semantic interface is all
It can be identified as same control command.About speech recognition and Text region, this is the prior art, does not do excessive description herein.
In practical application, if user does not know oneself there is which home appliance, then can be by wechat to correspondence
Wechat public account send voice " control device ", obtain user-association multiple home appliances form home appliance row
Table.When use for the first time due to user, it is unclear that should be gone to choose with which kind of mode/order and think device to be controlled, can adopted
It is named with the mode of " default name+user can name the pet name " to every home appliance, to improve certain use guided bone, example
Such as the form of " X air-conditionings (pet name) ", the list of devices of return is after sequence, is illustrated below:
" you can control following equipment:Online, No. 2 air-conditionings (parlor air-conditioning) are not online for No. 1 air-conditioning (master bedroom air-conditioning), and 3
Number air-conditioning is not online, and No. 4 air-conditionings are not online, and No. 1 washing machine is not online, and No. 2 washing machines are not online, and No. 3 washing machines do not exist
Line, No. 4 washing machines are not online "
Sequence about home appliance can be realized by following ranking functions:
Sort(registerTime,deviceName,status){
$this->db->query(registerTime,deviceName,status);
return $this->List;
}
According to registion time registerTime, device name deviceName, online whether status, to home appliance
Multiple home appliances in list are ranked up, returning equipment list List, and list of devices is so that " x equipment (pet name) is online
The form of state " returns to the information of every equipment, what x equipment can be named according to the sequencing of user's bound device, such as
User's family has 2 air-conditionings, and first scanning binding is No. 1 air-conditioning, and rear scanning binding is No. 2 air-conditionings;If user is equipment
Taken the pet name that can then show the pet name, if will not be shown without if, user can use voice " the modification pet name " order setting or
Change the pet name.It, can " equipment be close by voice " certain number equipment " or voice after user determines that oneself wants to control which platform equipment
Claim " come tell wechat server backstage be now to that any platform equipment controlled.After being chosen when backstage, it can reply that " you have succeeded
Connect x air-conditionings/x refrigerators/equipment pet name ", confirm selected equipment success, then user can send various controls to the equipment
The order of system or the modification pet name.If certain user thinks switching equipment, list of devices can not be obtained, directly using voice " certain
Number equipment " or voice " the equipment pet name " tell wechat server backstage is now to which platform equipment controlled, and thus switch to correspondence
Home appliance.
Since existing household electrical appliances remote control is received user instructions generally by network communication module, control is then sent
It orders to device controller, by result backtracking after device controller completion processing.Due to network communication module and equipment control
Device processed belongs to embedded device all in equipment, and in performance and treatment effeciency tends not to very high, and completes a secondary control
The passed through link of order is very long, and wherein abnormal situations such as all causing message delay, error in data occurs in any one link,
It does not conform to the actual conditions so as to cause slow in reacting, the state of user interface.Traditional way is one acquisition equipment state of hair
Order->Equipment WFI plates->Device controller, then backtracking, it is long to do so link, is asked no matter which link has gone out
The message that topic can all cause user to receive equipment feedback is excessively slow, and it is pretty troublesome to debug Wrong localization.
Further, in order to quickly controlling multiple and different home appliances, the operation energy for user by voice
It is fed back rapidly, in order to which user is smooth quick by wechat and the interactive process of home appliance, the step S100 is further included:
S120, the proxy server for being stored with home appliance related information corresponding with scene value is pre-set, by the generation
It manages server and keeps long connection with multiple home appliances, the proxy server is also connected with the wechat installed on mobile terminal correspondence
Wechat server.
Specifically, it is exactly between wechat server and home appliance, a proxy server is set, wechat server is led to
It crosses the proxy server and connects each home appliance.The proxy server is stored with home appliance association letter corresponding with scene value
Breath, and proxy server keeps long connection, for example TCP long connections with each home appliance.The control that user is sent by wechat
Order can be sent to proxy server so as to be sent to home appliance by wechat server.
The present invention is concentrated to keep growing with the data of multiple home appliances by proxy server and be connected, and initiates to control in user
Before order, proxy server is connected with home appliance, keeps the synchronization of data, so that user can be fast by voice
Speed controls multiple and different household electrical appliances, and the operation of user will be fed back rapidly, and user interaction process is smooth quick, brings use
The good remote control experience in family.
Further, the step S200 is specifically included:
S211, pass through the wechat account for the wechat login user installed on mobile terminal;
S212, the scene value that the Quick Response Code obtains the Quick Response Code and carried is scanned by the wechat, it will be described micro-
Letter account and scene value are sent to proxy server by wechat server;
S213, according to the home appliance stored in proxy server and the corresponding related information of scene value, by the wechat
Corresponding wechat account home appliance corresponding with the scene value is associated.
Specifically, memory module is set to correspond to storage home appliance and pair of scene value exactly on proxy server
Related information is answered, after corresponding related information of the wechat account with home appliance is obtained, also is stored in proxy server.
Further, the step S120 is further included:
S121, the proxy server are whether a predetermined time judging the connection status of each home appliance normally.
Specifically, a data processing module is exactly set in proxy server at regular intervals(For example 2 minutes)It obtains primary
The connection status of proxy server and home appliance, so as to play an overall management to all home appliances.
Further, the step S300 is specifically included:
S310, user is received to the control command of the home appliance by the wechat, the control command is passed through
Wechat server is sent to proxy server;
S320, judge whether the connection status of proxy server and the home appliance is normal, step is performed if normal
S330;Step S340 is performed if abnormal;
S330, according to the wechat account and the corresponding incidence relation of the home appliance, proxy server is by the control
System order is sent to corresponding home appliance, the corresponding working condition for controlling the home appliance;
S340, according to the wechat account and the corresponding incidence relation of the home appliance, proxy server is by the control
System order is sent to corresponding home appliance, corresponding to control the working condition of the home appliance, and receives the home appliance
Feedback result, the feedback result is sent to the wechat.
Specifically, user selects to want the home appliance of control, and send control command by wechat, then leads to successively
It crosses wechat server and is sent to proxy server.Then whether just to judge the connection status of proxy server and the home appliance
Often.Whether normally judge that there are many realization methods about long connection.If normal, according to the wechat account and the family
The control command is sent to corresponding home appliance, corresponding control institute by the correspondence incidence relation of electric equipment, proxy server
State the working condition of home appliance;The control command data that user sends in this way will be accurate, after directly feeding back intended result,
Control command is sent into corresponding home appliance by proxy server again, it is logical so as to substantially reduce without waiting for feedback result
Believe link, improve user experience;If abnormal, closed according to wechat account association corresponding with the home appliance
The control command is sent to corresponding home appliance, the corresponding work shape for controlling the home appliance by system, proxy server
State, and the feedback result of the home appliance is received, the feedback result is sent to the wechat;Due to connecting the micro- of user
It is had been established before letter operation, therefore response speed is also than existing way speed faster.
If whether the connection status due to only judging proxy server and the home appliance in step s 320 is normal,
Error can be caused larger, since the connection of proxy server and home appliance is long connection, whether certain primary connection is normal simultaneously
The stability of proxy server and home appliance cannot be embodied.And due to network environment and bad, as long as being related to network friendship
Mutually, then be needed to be considered to whether network is stablized, therefore present invention adds to the steady of proxy server and home appliance
Qualitative the step of being judged, further, the step S320, specifically include:
S321, proxy server are whether a predetermined time judging the connection status of each home appliance normally, if even
It connects state and is normally then denoted as 1,0 is denoted as if connection status is abnormal;Remember the connection status of nearest first pre-determined number N in the time
Sequentially it is followed successively by from back to front、、......;Wherein, N is positive integer;
S322, calculate the home appliance connection status probability of stability valueFor:
, wherein, M is positive integer, and M<N;n=1,2,3…N;
S323, when the probability of stability valueDuring more than preset threshold value, then the connection status of the home appliance
Stablize, perform step S330;When the probability of stability valueWhen being not above preset threshold value, then the home appliance
Connection status is unstable, performs step S340.
Specifically, proxy server is exactly allowed at predetermined time intervals(For example 2 minutes)Obtain the connection shape of 1 secondary device
State is 1 if normal, abnormal then be 0;And these data are recorded in the data cache module of proxy server.
About probability of stability valueFor square after the quadratic sum of N number of connection status value sequentially in time from back to front
Root, multiplied by with the continued product of M connection status value sequentially in time from back to front, then divided by N square root.Herein
It is that 10 pairs of above-mentioned steps are described as follows using N as 100, M:Connection status Value Data using the detection of nearest 100 times is as adopting
Sampling point, and be denoted as successively from back to front sequentially in time、、......, probability of stability value at this timeFor:, n is positive integer, value range 1,2,3 ... N.
Can use preset threshold value is 0.94, that is to say, that when the probability of stability valueIt is during more than 0.94, then described
The connection status of home appliance is stablized, and performs step S330;When the probability of stability valueWhen being not above 0.94, then the family
The connection status of electric equipment is unstable, performs step S340.
Please continue to refer to probability of stability valueFormula, when it is 10 that N, which is 100, M, that is to say, that when nearest 100 times connection
There are 90 next states normal in state value and the state of nearest 10 times is all normal, then judge reliably steady during data in connection pool at this time
Fixed, then be complete stability according to the probability value judgement equipment calculated, i.e., 0.94≤≤ 1, then judge home appliance at this time
It is reliable and stable with the data connection of proxy server, it can use, the data that user sends will be accurate, and directly feedback is estimated
As a result after, then it will be ordered by connection pool and send equipment, substantially reduced communication link without waiting, improve user experience
Sense.If reliable, control result is returned directly to wechat user, control command is then issued by equipment by connection pool, without
Result is waited for return.
Conversely, then unstable, that is, it is unreliable to connect, then after control command being issued home appliance by proxy server,
The feedback result of home appliance is waited for again, and result is then fed back into wechat user, due to being had been established before connection user's operation,
Therefore response speed is also faster than existing way.
Household electric appliance control method provided by the invention based on wechat using wechat public's account, is established user and is set with more
Standby binding relationship, and wechat phonetic function is utilized, it conveniently finds, switch and control more household electrical appliances in family
Equipment, the information of each pole love single device is collected during control using proxy server, and is passed through judgement of stability algorithm and calculated number
According to long connection whether in effective range, so as to judge control result rapidly, wechat user is fed back to.The present invention can be effectively right
As a result it carries out, it is expected that effectively judging user's operation, rationally processing, rapid feedback are substantially increased using wechat sound remote control
The fluency of control equipment interaction, obtains good user experience, hence it is evident that promote the quality and image of product.
Based on the above-mentioned household electric appliance control method based on wechat, the embodiment of the present invention additionally provides a kind of household electrical appliances based on wechat
Control system, as shown in Fig. 2, the system comprises:
Module 10 is pre-set, in advance to Quick Response Code of each home appliance distribution with corresponding scene value;Tool
Body is as described in step S100;
Wechat account and home appliance relating module 20 scan the two dimension for passing through the wechat installed on mobile terminal
Code obtains the scene value that the Quick Response Code carries, according to the scene value by the corresponding wechat account of the wechat and the scene
Being worth corresponding home appliance is associated, specifically as described in step S200;
Home appliance control module 30, for receiving control command of the user to the home appliance by the wechat,
According to the wechat account and the corresponding incidence relation of the home appliance, the control command is sent to corresponding household electrical appliances and is set
It is standby, it is corresponding to control the home appliance, specifically as described in step S300.
Further, the module 10 that pre-sets includes:
For applying for wechat public's account, multiple bands are generated not according to the wechat public account for Quick Response Code generation unit
With the Quick Response Code of scene value;
Scene value and home appliance associative cell are tied up for multiple scene values to be associated with multiple home appliances one-to-one correspondence
It is fixed.
Further, the module 10 that pre-sets includes:
Proxy server for storing corresponding related information of the home appliance with scene value, is kept with multiple home appliances
Long connection, is also connected with the corresponding wechat server of the wechat installed on mobile terminal.
Mobile terminal of the present invention refers to that the mobile terminals such as mobile phone or the tablet computer of wechat can be installed.
In conclusion a kind of household electric appliance control method and system based on wechat provided by the invention, by advance to each
A Quick Response Code of the home appliance distribution with corresponding scene value;The Quick Response Code is scanned by the wechat installed on mobile terminal to obtain
The scene value carried to the Quick Response Code, according to the scene value by the corresponding wechat account of the wechat and the scene value pair
The home appliance answered is associated;Control command of the user to the home appliance is received by the wechat, according to the wechat
Account and the corresponding incidence relation of the home appliance, corresponding home appliance, corresponding control are sent to by the control command
The home appliance it is achieved thereby that crossing wechat controls multiple home appliances, brings to user and greatly facilitates.
It should be understood that the application of the present invention is not limited to the above, it for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect range.
Claims (6)
1. a kind of household electric appliance control method based on wechat, which is characterized in that include the following steps:
A, in advance to Quick Response Code of each home appliance distribution with corresponding scene value;
B, the scene value that the Quick Response Code obtains the Quick Response Code and carry is scanned by the wechat installed on mobile terminal, according to institute
Stating scene value is associated the corresponding wechat account of wechat home appliance corresponding with the scene value;
C, control command of the user to the home appliance is received by the wechat, according to the wechat account and the household electrical appliances
The control command is sent to corresponding home appliance by the correspondence incidence relation of equipment, corresponding to control the home appliance;
The step A is further included:
A20, the proxy server for being stored with home appliance related information corresponding with scene value is pre-set, by the agency service
Device keeps long connection with multiple home appliances, and the proxy server is also connected with the corresponding wechat of the wechat installed on mobile terminal
Server;
The step A20 is further included:
A21, the proxy server are whether a predetermined time judging the connection status of each home appliance normally;
The step C is specifically included:
C10, user is received to the control command of the home appliance by the wechat, the control command is taken by wechat
Business device is sent to proxy server;
C20, judge whether the connection status of proxy server and the home appliance is normal, step C30 is performed if normal;If
It is abnormal, perform step C40;
C30, according to the wechat account and the corresponding incidence relation of the home appliance, proxy server is by the control command
It is sent to corresponding home appliance, the corresponding working condition for controlling the home appliance;
C40, according to the wechat account and the corresponding incidence relation of the home appliance, proxy server is by the control command
Corresponding home appliance is sent to, it is corresponding to control the working condition of the home appliance, and receive the feedback of the home appliance
As a result, the feedback result is sent to the wechat.
2. the household electric appliance control method according to claim 1 based on wechat, which is characterized in that the step A is specifically included:
A11, application wechat public's account, multiple Quick Response Codes with different scenes value are generated according to the wechat public account;
A12, multiple scene values are associated with binding with multiple home appliances one-to-one correspondence.
3. the household electric appliance control method according to claim 1 based on wechat, which is characterized in that the step B is specifically included:
B11, pass through the wechat account for the wechat login user installed on mobile terminal;
B12, the scene value that the Quick Response Code obtains the Quick Response Code and carried is scanned by the wechat, by the wechat account
Proxy server is sent to by wechat server with scene value;
B13, according to the home appliance stored in proxy server and the corresponding related information of scene value, the wechat is corresponding
Wechat account home appliance corresponding with the scene value is associated.
4. the household electric appliance control method according to claim 1 based on wechat, which is characterized in that the step C20 is specifically wrapped
It includes:
C21, proxy server are whether a predetermined time judging the connection status of each home appliance normally, if connection status
It is normal then be denoted as 1, it is denoted as 0 if connection status is abnormal;Remember the connection status of nearest first pre-determined number N in time sequencing
It is followed successively by from back to front、、......;Wherein, N is positive integer;
C22, calculate the home appliance connection status probability of stability valueFor:,
Wherein, M is positive integer, and M<N;n=1,2,3…N;
C23, when the probability of stability valueDuring more than preset threshold value, then the connection status of the home appliance is stablized, and holds
Row step C30;When the probability of stability valueWhen being not above preset threshold value, then the connection status of the home appliance
It is unstable, perform step C40.
5. a kind of appliance control system based on wechat, which is characterized in that including:
Module is pre-set, in advance to Quick Response Code of each home appliance distribution with corresponding scene value;
Wechat account and home appliance relating module obtain for passing through the wechat installed on the mobile terminal scanning Quick Response Code
The scene value that the Quick Response Code carries, it is according to the scene value that the corresponding wechat account of the wechat is corresponding with the scene value
Home appliance be associated;
Home appliance control module, for receiving control command of the user to the home appliance by the wechat, according to institute
Corresponding incidence relation of the wechat account with the home appliance is stated, the control command is sent to corresponding home appliance, it is right
The home appliance should be controlled;
The module that pre-sets includes:
Proxy server for storing corresponding related information of the home appliance with scene value, keeps long with multiple home appliances and connects
It connects, is also connected with the corresponding wechat server of the wechat installed on mobile terminal;
The proxy server performs following steps:Every a predetermined time judge the connection status of each home appliance normally with
It is no;User is received to the control command of the home appliance by the wechat, the control command is passed through into wechat server
It is sent to proxy server;Judge whether the connection status of proxy server and the home appliance is normal, the basis if normal
The wechat account and the corresponding incidence relation of the home appliance, the control command is sent to corresponding by proxy server
Home appliance, the corresponding working condition for controlling the home appliance, according to the wechat account and the household electrical appliances if abnormal
The control command is sent to corresponding home appliance by the correspondence incidence relation of equipment, proxy server, is corresponded to described in control
The working condition of home appliance, and the feedback result of the home appliance is received, the feedback result is sent to the wechat.
6. the appliance control system according to claim 5 based on wechat, which is characterized in that described to pre-set module packet
It includes:
For applying for wechat public's account, multiple band difference fields are generated according to the wechat public account for Quick Response Code generation unit
The Quick Response Code of scape value;
Scene value and home appliance associative cell, for multiple scene values to be associated with binding with multiple home appliances one-to-one correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410800826.6A CN105785929B (en) | 2014-12-22 | 2014-12-22 | A kind of household electric appliance control method and system based on wechat |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410800826.6A CN105785929B (en) | 2014-12-22 | 2014-12-22 | A kind of household electric appliance control method and system based on wechat |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105785929A CN105785929A (en) | 2016-07-20 |
CN105785929B true CN105785929B (en) | 2018-06-19 |
Family
ID=56385894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410800826.6A Active CN105785929B (en) | 2014-12-22 | 2014-12-22 | A kind of household electric appliance control method and system based on wechat |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105785929B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331813A (en) * | 2016-09-23 | 2017-01-11 | 四川长虹电器股份有限公司 | Method enabling smart phone to control smart television through public network |
CN107465597B (en) * | 2017-08-07 | 2020-07-28 | 成都市共维科技有限公司 | Internet access control method and system |
CN107454195A (en) * | 2017-09-14 | 2017-12-08 | 王静芳 | A kind of Internet of Things high in the clouds intelligent control method for mobile terminal |
CN108134722A (en) * | 2017-12-27 | 2018-06-08 | 惠州Tcl家电集团有限公司 | Control method for washing machine, mobile terminal, system and readable storage medium storing program for executing |
CN111512365B (en) * | 2017-12-31 | 2023-06-13 | 美的集团股份有限公司 | Method and system for controlling multiple home devices |
CN108462619B (en) * | 2018-03-08 | 2020-09-25 | 广东美的制冷设备有限公司 | Method, device and storage medium for controlling household appliances through instant messaging software |
CN110750056A (en) * | 2018-07-23 | 2020-02-04 | 青岛海尔空调器有限总公司 | Control method for household appliance system, household appliance system and control terminal |
CN110377364A (en) * | 2019-07-18 | 2019-10-25 | 百度在线网络技术(北京)有限公司 | Voice interactive method and device, voice interactive system, electronic equipment |
CN111030919A (en) * | 2019-12-06 | 2020-04-17 | 漳州市金龙锋信息科技有限公司 | Equipment binding method based on WeChat public number with parameter two-dimensional code |
CN110967978B (en) * | 2019-12-10 | 2021-02-12 | 珠海格力电器股份有限公司 | Control method of intelligent device in chat mode, storage medium and network side device |
CN112190952A (en) * | 2020-10-16 | 2021-01-08 | 衡阳携创信息服务有限公司 | Game management system based on WeChat applet |
CN115132189A (en) * | 2022-06-10 | 2022-09-30 | 中国第一汽车股份有限公司 | Long connection communication connection pool management method based on self-adaptive control strategy |
CN115296949A (en) * | 2022-06-28 | 2022-11-04 | 青岛海尔科技有限公司 | Remote control method, device and system for intelligent household electrical appliance |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102692881A (en) * | 2012-05-16 | 2012-09-26 | 中国海洋大学 | Household appliance control method and control system based on two-dimension code |
CN103607341A (en) * | 2013-10-29 | 2014-02-26 | 福州瑞芯微电子有限公司 | Instant-messaging-method-based terminal control method and system |
CN103616860A (en) * | 2013-11-08 | 2014-03-05 | 海信集团有限公司 | Method and device for remote control of household appliances |
CN103985242A (en) * | 2014-06-11 | 2014-08-13 | 珠海格力电器股份有限公司 | Control method, control device and control system for air conditioner |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004107708A1 (en) * | 2003-05-30 | 2004-12-09 | Lg Electronics, Inc. | Home network system |
US20110298581A1 (en) * | 2010-06-08 | 2011-12-08 | Wei Hsu | Universal remote controller |
-
2014
- 2014-12-22 CN CN201410800826.6A patent/CN105785929B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102692881A (en) * | 2012-05-16 | 2012-09-26 | 中国海洋大学 | Household appliance control method and control system based on two-dimension code |
CN103607341A (en) * | 2013-10-29 | 2014-02-26 | 福州瑞芯微电子有限公司 | Instant-messaging-method-based terminal control method and system |
CN103616860A (en) * | 2013-11-08 | 2014-03-05 | 海信集团有限公司 | Method and device for remote control of household appliances |
CN103985242A (en) * | 2014-06-11 | 2014-08-13 | 珠海格力电器股份有限公司 | Control method, control device and control system for air conditioner |
Also Published As
Publication number | Publication date |
---|---|
CN105785929A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105785929B (en) | A kind of household electric appliance control method and system based on wechat | |
US10389880B1 (en) | Short message service (SMS) response and interpretation application | |
CN107920103B (en) | Information pushing method and system, client and server | |
CN105808070A (en) | Method and device for setting commenting showing effect | |
CN103326929B (en) | Method and device for transmitting messages | |
CN107800791B (en) | Debugging method and device | |
CN104967557A (en) | Communication message sending method and apparatus | |
CN106413037A (en) | Network access method and device for interment-of-things equipment, equipment and mobile terminal | |
CN109446031B (en) | Control method of terminal equipment, terminal and readable storage medium | |
WO2013131477A1 (en) | Remote monitoring device and method | |
CN108737570A (en) | A kind of information-pushing method, apparatus and system | |
CN111970188B (en) | Capability forwarding method and device | |
CN104635543A (en) | Method and device for carrying out management operation | |
CN102147660B (en) | A kind of method and apparatus of the input based on multiple user collaborative editor | |
US9369536B1 (en) | Event-based user behavior timeline, predictions, and recommendations | |
CN106550251A (en) | A kind of intelligent television message subscribing processing method and system based on public number | |
CN114697282B (en) | Message processing method and system, storage medium and electronic device | |
JP5676750B2 (en) | Information processing system, information processing method, and storage medium | |
CN108184131A (en) | Start broadcasting based reminding method, device and readable storage medium storing program for executing | |
WO2015154379A1 (en) | Remote help method, controlling mobile intelligent terminal and controlled mobile intelligent terminal | |
CN108989404A (en) | A kind of barrage message issuing method, server, system and storage medium | |
CN110087281A (en) | The method, apparatus and system of network insertion | |
CN110493120A (en) | A kind of method and apparatus for sending device operational order | |
CN105978853B (en) | Session scheduling method, scheduling server and terminal | |
CN109964459B (en) | Method for organizing multiple messages exchanged with a session proxy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |