The method of intelligent domestic system and user bound terminal and device end
Technical field
The present invention relates to Smart Home field, particularly relate to a kind of method of intelligent domestic system and user bound terminal and device end.
Background technology
Although last century, the nineties occurred latter stage Smart Home at home, be still acceptance level that is antitheft and these two functions of monitoring so far the highest, apply not general in other respects.At present market on, the main crowd of acceptance of Smart Home remains a part of high-end crowd, and main cause is price problem, and this key factor wherein having influence on price is exactly that the environment of equipment and Smart Home is set up the process contacted.Prior art is the main control chip of the device end of Smart Home and the required Wi-Fi module connected are separated mostly, and this will cause total system cost increase.Meanwhile, this mode also creates potential problem, and that is exactly divided by two assemblies meeting to cause the compatibility between assembly to be deteriorated.Whole system needs the main control chip of device end can obtain the transmission data of Wi-Fi module in time in operation process, divide meeting that the stability of a system and serious forgiveness are reduced in Wi-Fi module main control chip, once one of them assembly goes wrong, the message interrupts of whole system or equipment will certainly be caused to delay machine.
Summary of the invention
Technical problem to be solved by this invention is, provides a kind of method of intelligent domestic system and user bound terminal and device end, at the integrated Wi-Fi module of the main control chip of device end and bluetooth module, thus improves compatibility and the stability of system.The present invention is achieved in that
A kind of intelligent domestic system, comprises user terminal, device end and device server; Described device end comprises main control chip, described main control chip is integrated with Wi-Fi module and bluetooth module;
Described user terminal is used for SSID and the password of its current residing Wi-Fi environment of typing, and by the SSID of its current residing Wi-Fi environment and password, and the identifying information of described user terminal is sent to described device end by bluetooth;
Described device end is used for accessing described Wi-Fi environment according to the SSID received and password, and by this Wi-Fi environment search equipment server, and the identifying information of the identifying information of described user terminal and described device end is sent to described device server;
Described device server is used for described user terminal and described device end being bound according to the identifying information of described user terminal and the identifying information of described device end.
Further, this transmission result also for after the identifying information of the identifying information of described user terminal and described device end is sent to described device server, is sent to described user terminal by bluetooth by described device end.
Further, described intelligent domestic system also comprises message push server; Binding result also for after described user terminal and described device end being bound, is sent to message push server by described device server;
Described message push server is used for described binding result to send to described user terminal.
Further, the data sent between described user terminal, device end, device server are enciphered datas.
Further, described device end is alarm clock.
A method for intelligent domestic system user bound terminal and device end, described device end comprises main control chip, described main control chip is integrated with Wi-Fi module and bluetooth module; Described method comprises the steps:
The SSID of its current residing Wi-Fi environment of user terminal typing and password;
User terminal is by the SSID of its current residing Wi-Fi environment and password, and the identifying information of described user terminal is sent to device end by bluetooth;
Device end accesses described Wi-Fi environment according to the SSID received and password, and by this Wi-Fi environment search equipment server, and the identifying information of the identifying information of described user terminal and described device end is sent to described device server;
Described user terminal and described device end are bound according to the identifying information of the identifying information of described user terminal and described device end by device server.
Further, described method also comprises the steps:
This transmission result is sent to described user terminal by bluetooth after the identifying information of the identifying information of described user terminal and described device end is sent to described device server by described device end.
Further, described method also comprises the steps:
Binding result is sent to message push server after described user terminal and described device end being bound according to the identifying information of the identifying information of described user terminal and described device end by device server;
Described binding result is sent to described user terminal by described message push server.
Further, the data sent between described user terminal, device end, device server are enciphered datas.
Further, described device end is alarm clock.
Compared with prior art, the present invention is by integrated Wi-Fi module and bluetooth module in the main control chip of device end, significantly can improve compatibility and the stability of system, be conducive to main control chip in time fast and Wi-Fi module and bluetooth module carry out transfer of data.Meanwhile, because the main control chip of device end plays leading role in the entire system, its raising that is compatible and stability is conducive to the serious forgiveness improving whole system.Meanwhile, be conducive to by Wi-Fi module integrated in main control chip and bluetooth module the cost reducing whole system, be conducive to the universal of intelligent domestic system.
Accompanying drawing explanation
Fig. 1: the intelligent domestic system composition schematic diagram that the embodiment of the present invention provides;
Fig. 2: the intelligent domestic system user bound terminal that the embodiment of the present invention provides and the method flow schematic diagram of device end.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.
As shown in Figure 1, the intelligent domestic system that the embodiment of the present invention provides comprises user terminal 1, device end 2 and device server 3.Wherein, device end 2 comprises main control chip, main control chip is integrated with Wi-Fi module and bluetooth module.
User terminal 1 is for the SSID of its current residing Wi-Fi environment of typing and password, and by the SSID of its current residing Wi-Fi environment and password, and the identifying information of user terminal 1 is sent to device end 2 by bluetooth.Can installing terminal application program on user terminal 1, by SSID and the password of its current residing Wi-Fi environment of end application typing.Device end 2 for accessing Wi-Fi environment according to the SSID received and password, and passes through this Wi-Fi environment search equipment server 3, and the identifying information of the identifying information of user terminal 1 and device end 2 is sent to device server 3.After device end 2 accesses Wi-Fi environment, according to the IP address of device server 3 (can by this IP address annunciator terminal 2 in advance) search equipment server 3, after searching device server 3, the identifying information of the identifying information of user terminal 1 and device end 2 is sent to device server 3.So-called identifying information refers to the information for identity, device server 3 can determine the identity of user terminal 1 and device end 2 according to the identifying information of the identifying information of user terminal 1 and device end 2, thus for binding this user terminal 1 and device end 2 provides binding foundation.Identifying information can be identification code or sequence number etc., also can be the physical address etc. of Wi-Fi module or bluetooth module.After device server 3 receives the identifying information of user terminal 1 and the identifying information of device end 2, just according to the identifying information of the identifying information of user terminal 1 and device end 2, user terminal 1 and device end 2 can be bound.By Wi-Fi module integrated in the main control chip of device end 2 and bluetooth module, significantly can improve compatibility and the stability of system, be conducive to main control chip in time fast and Wi-Fi module and bluetooth module carry out transfer of data.Meanwhile, because the main control chip of device end 2 plays leading role in the entire system, its raising that is compatible and stability is conducive to the serious forgiveness improving whole system.Meanwhile, be conducive to by Wi-Fi module integrated in main control chip and bluetooth module the cost reducing whole system, be conducive to the universal of intelligent domestic system.
This transmission result, after the identifying information of the identifying information of user terminal 1 and device end 2 is sent to device server 3, also can be sent to user terminal 1 by bluetooth, thus notify that user sends result by device end 2.Intelligent domestic system also can comprise message push server, after user terminal 1 and device end 2 are bound by device server 3, binding result is sent to message push server, and binding result is sent to user terminal 1 by message push server again, thus notifies user's binding result.Binding result is pushed to user terminal 1 by Internet by message push server.For ensureing the fail safe of transfer of data, the data sent between user terminal 1, device end 2, device server 3 are all through the data of encryption.
Be below an application example of the present invention:
User terminal 1 is Android intelligent, and device end 2 is alarm clock, is integrated with Wi-Fi module and bluetooth module in the main control chip of this alarm clock.This Android intelligent, alarm clock, the device server 3 of adding router and being connected with this router, constitutes a basic intelligent domestic system.Router access Internet, smart mobile phone passes through SSID and the password of the Android application program typing router that it is installed, and by bluetooth SPP agreement, the SSID of router and password are sent to alarm clock, the identifying information also having this smart mobile phone of alarm clock is together sent to the SSID of router and password.The identifying information of this smart mobile phone can be the physical address of Wi-Fi module on this smart mobile phone or bluetooth module, or the sequence number etc. of this smart mobile phone may be used for the information that alarm clock identifies this smart mobile phone identity.The identifying information of the identifying information of this smart mobile phone and alarm clock self, again according to the SSID of router and the Wi-Fi of password couple in router, and according to the IP address searching of device server 3 to device server 3, and is together sent to device server 3 by alarm clock.This smart mobile phone and alarm clock are bound according to the identifying information of this smart mobile phone and the identifying information of alarm clock by device server 3 again, thus the binding relationship set up between smart mobile phone and alarm clock, smart mobile phone just can according to the Based Intelligent Control of this binding relationship realization to alarm clock.
As shown in Figure 2, based on above-mentioned intelligent domestic system, the embodiment of the present invention additionally provides a kind of method of intelligent domestic system user bound terminal 1 and device end 2, and device end 2 comprises main control chip, main control chip is integrated with Wi-Fi module and bluetooth module.Method comprises the steps:
Step S1: the SSID of its current residing Wi-Fi environment of user terminal 1 typing and password;
Step S2: user terminal 1 is by the SSID of its current residing Wi-Fi environment and password, and the identifying information of user terminal 1 is sent to device end 2 by bluetooth;
Step S3: device end 2 according to the SSID received and password access Wi-Fi environment, and passes through this Wi-Fi environment search equipment server 3, and the identifying information of the identifying information of user terminal 1 and device end 2 is sent to device server 3;
Step S4: user terminal 1 and device end 2 are bound according to the identifying information of the identifying information of user terminal 1 and device end 2 by device server 3.
The method also can comprise the steps:
This transmission result is sent to user terminal 1 by bluetooth after the identifying information of the identifying information of user terminal 1 and device end 2 is sent to device server 3 by device end 2.
The method also can comprise the steps:
Binding result is sent to message push server after user terminal 1 and device end 2 being bound according to the identifying information of the identifying information of user terminal 1 and device end 2 by device server 3;
Binding result is sent to user terminal 1 by message push server.
The data sent between user terminal 1, device end 2, device server 3 are enciphered datas.
Further, device end 2 is alarm clock.
The intelligent domestic system user bound terminal 1 that the embodiment of the present invention provides is corresponding with the operation principle of each several part in the intelligent domestic system that the embodiment of the present invention provides with the working method of each step in the method for device end 2, can refer to the description in above-mentioned intelligent domestic system, do not repeat them here.
On described, be only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.