Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of smart machine scenery control method and system based on wireless router, lack flexibly for solving multiple smart machine in prior art, the problem of scene coordinated signals efficiently, to realize more efficiently, Consumer's Experience easily.
For achieving the above object and other relevant objects, the invention provides a kind of smart machine scenery control method based on wireless router, comprise the following steps:
Identify the smart machine of access wireless router, register essential information and the service interface of described smart machine;
Control terminal access or the event of leaving described wireless router to be operated with the service interface of registered smart machine as trigger condition and associates, configure scene strategy;
Monitor the connection status of described control terminal and described wireless router, the event message generating the access of described control terminal or leave;
The event message accessed according to described control terminal or leave and pre-configured scene strategy, operate the service interface of corresponding smart machine, perform scene action.
Preferably, register essential information and the service interface of described smart machine, comprise register described smart machine title, identify, the descriptor of the service describing provided, the service interface provided and interface parameters and described service interface and interface parameters.
Preferably, described control terminal is using MAC Address as mark.
Preferably, described configuration scene strategy comprises and arranges MAC Address group and carry out mass configuration to multiple control terminal.
Preferably, described configuration scene strategy comprises, by the access of multiple control terminal or the event of leaving described wireless router according to or, non-, first or last logical relation be configured to trigger condition.
Preferably, the event message that described control terminal accesses or leaves comprises: event type, the MAC Address of described control terminal, event generation time.Further preferably, described event type comprises: access network, leave network, access arrives setting duration, leaves and exceed setting duration.
Based on above-mentioned purpose, the present invention also provides a kind of smart machine scenery control system based on wireless router, comprising:
Centralized control module, for identifying the smart machine of access wireless router, registers essential information and the service interface of described smart machine;
Scene strategy configuration module, associating for control terminal access or the event of leaving described wireless router being operated with the service interface of registered smart machine as trigger condition, configuring scene strategy;
Terminal affair trigger module, for monitoring the connection status of described control terminal and described wireless router, generates and the event message sending the access of described control terminal or leave;
Described centralized control module also for the event message receiving the access of described control terminal or leave, and calls the service interface of corresponding smart machine according to pre-configured scene strategy in described scene strategy configuration module, performs scene action.
Preferably, register essential information and the service interface of described smart machine, comprise register described smart machine title, identify, the descriptor of the service describing provided, the service interface provided and interface parameters and described service interface and interface parameters.
Preferably, described control terminal is using MAC Address as mark.
Preferably, described configuration scene strategy comprises and arranges MAC Address group and carry out mass configuration to multiple control terminal.
Preferably, described configuration scene strategy comprises, by the access of multiple control terminal or the event of leaving described wireless router according to or, non-, first or last logical relation be configured to trigger condition.
Preferably, the event message that described control terminal accesses or leaves comprises: event type, the MAC Address of described control terminal, event generation time.Further preferably, described event type comprises: access network, leave network, access arrives setting duration, leaves and exceed setting duration.
As mentioned above, the smart machine scenery control method and system based on wireless router of the present invention, have following beneficial effect:
Smart machine scenery control system and method for the present invention, based on wireless router, be that core controls with routing gateway, take customer mobile terminal as user ID, trigger reciprocal process and the agreement of the periphery smart machine configuration of different scene, without the need to specific identity, access in router side according to the different MAC of user terminal and leave event, produce corresponding Smart Home peripheral hardware to control, thus achieve the scene interlock of multiple smart machine and automatically control, control mode is efficient, easy, flexibly, control system safety, reliably, drastically increase the Consumer's Experience of intelligent domestic system.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, the present embodiment provides a kind of smart machine scenery control method based on wireless router, comprising:
Step S1 identifies the smart machine of access wireless router, registers essential information and the service interface of described smart machine;
Control terminal access or the event of leaving described wireless router to operate with the service interface of registered smart machine as trigger condition and associate by step S2, configure scene strategy;
Step S3 monitors the connection status of described control terminal and described wireless router, the event message generating the access of described control terminal or leave;
The event message that step S4 accesses according to described control terminal or leaves and pre-configured scene strategy, operate the service interface of corresponding smart machine, perform scene action.
In step sl, register essential information and the service interface of described smart machine, preferably, comprise register described smart machine title, identify, the descriptor of the service describing provided, the service interface provided and interface parameters and described service interface and interface parameters.
Described control terminal, preferably, using MAC Address as mark.
In step s 2, configuration scene strategy, preferably, can arrange MAC Address group and carry out mass configuration to multiple control terminal.Further preferably, when configuring scene strategy also can by the access of multiple control terminal or the event leaving described wireless router according to or, non-, first or last logical relation be configured to trigger condition.
In this control method, preferably, described control terminal access or the event message left, can include but not limited to: event type, the MAC Address of described control terminal, event generation time.Further preferably, described event type can comprise: access network, leave network, access arrives setting duration, leaves and exceed setting duration.
The protection range of the smart machine scenery control method based on wireless router of the present invention is not limited to the step execution sequence that the present embodiment is enumerated, and every alternative such as easy steps increase and decrease, order adjustment utilizing principle of the present invention to do all is included in protection scope of the present invention.
The present embodiment also provides a kind of smart machine scenery control system based on wireless router, this system can realize the smart machine scenery control method based on wireless router described in the present embodiment, but the implement device of the smart machine scenery control method based on wireless router described in the present embodiment includes but not limited to the structure of the smart machine scenery control system based on wireless router that the present embodiment is enumerated.
As shown in Figure 2, the smart machine scenery control system 1 based on wireless router that the present embodiment provides, comprising: centralized control module 101, scene strategy configuration module 102 and terminal affair trigger module 103.
Centralized control module 101, for identifying the smart machine 3 of access wireless router, registers essential information and the service interface of described smart machine 3;
Scene strategy configuration module 102, to operate with the service interface of registered smart machine 3 as trigger condition for the event that control terminal 2 accessed or left described wireless router and associates, configuration scene strategy;
Terminal affair trigger module 103, for monitoring the connection status of described control terminal 2 and described wireless router, generating and sending the event message that described control terminal 2 accesses or leave;
Described centralized control module 101 also for receiving the event message that described control terminal 2 accesses or leaves, and calls the service interface of corresponding smart machine 3 according to pre-configured scene strategy in described scene strategy configuration module 102, performs scene action.
Native system insertion type is integrated in family expenses WIFI wireless router, adopts existing similar UPNP/DLNA/MQTT service agreement specification, realizes supporting that the service of the smart machine 3 of this specification automatically identifies, registers and controls.Each smart machine 3 in local area network, as the service of UPNP/DLNA, is integrated with one group of control inerface, by UPNP/DLNA agreement, exposes title, function, service interface and the interface parameters of self to wireless router.Wireless router, by UPNP/DLNA/MQTT agreement, finds to can be used as the service interface that each smart machine 3 and smart machine 3 are supported things-internet gateway, check and call information device and the service interface of above-mentioned smart machine 3.
Centralized control module 101 identifies these smart machines 3, and register essential information and the service interface of these smart machines 3, preferably, the title of registration smart machine 3 can be comprised, identify, the particular content such as the descriptor that can artificially identify of the service describing provided, the service interface provided and interface parameters and described service interface and interface parameters.Such as, when described in gate inhibition's lock control equipment access during wireless router, device registration name is called gate inhibition, be designated Lock-1, the service describing that provides is lock control, the descriptor that can artificially identify of the service interface that provides and interface parameters and described service interface and interface parameters is that interface a arranges locking, interface b arranges unlatching, interface c checks current state etc.
Described control terminal 2 can be various mobile radio terminal, as mobile phone, flat board etc.In this control system, these control terminals 2, preferably, using MAC Address as mark.
In scene strategy configuration module 102, user can configure scene strategy voluntarily by configuration interface.Realize in the mobile phone A pp that configuration interface can in the embedded browser of wireless router, also can connect at wireless router.Preferably, MAC Address group can be set mass configuration is carried out to multiple control terminal 2.Such as, the single control terminal 2 of certain MAC Address to access both can be set and carry out strategyization configuration separately, and MAC Address group also can be set the configuration of batch strategyization is carried out to certain group control terminal 2.Further preferably, in scene strategy configuration module 102 also can by the access of multiple control terminal 2 or the event leaving described wireless router according to or, non-, first or last logical relation be configured to trigger condition, thus realize more complicated displaying that smart machine 3 is operated and automation.
Such as: in intelligent domestic system, in scene strategy configuration module 102, the conventional mobile phone MAC Address of kinsfolk can be added kinsfolk's group, and configure scene strategy as:
Policy name: household safety-protection.Trigger condition: in kinsfolk's group, all (with relation) control terminal (mobile phone) all to leave after wireless router 5 minutes.Trigger smart machine service interface: gate inhibition: locking is set; Safety monitoring: unlatching is set.
Policy name: member at home.Trigger condition: in kinsfolk's group, arbitrary (or relation) member control terminal access wireless router; Trigger smart machine service interface: corridor light source: open; Safety monitoring: closedown is set.
The event message that the control terminal 2 generated in terminal affair trigger module 103 accesses or leaves, preferably, comprising: event type, the MAC Address of described control terminal 2, event generation time, but be not limited only to this, according to actual conditions and needs, other information can also be comprised.Further preferably, described event type can comprise: access network, leave network, access arrives setting duration, leaves and exceed setting duration.Such as:
Can information format be comprised as follows in event message:
Name type describes
The MAC Address mark of MACString control terminal
The device name of TNAMEString control terminal, can obtain from the DHCP table of wireless router
The above-mentioned event type of ETYPEEnum, as access network, leave network, access arrives setting duration, leaves and exceed setting duration
The SSID network name of SSIDString control terminal access
TimeDatetime event generation time
LabelString user, to special MAC, can carry out identifying at scene configuration module and define and give user discernible information
Wherein above-mentioned Label information can be arranged by different control terminal 2 in scene strategy configuration module, and for the recognition user information of close friend, or assisted user produces particular event.
Control system in the present embodiment, with control terminal MAC for controlling mark, adopt terminal wireless access, event of leaving as trigger condition, integrated from registration type centerized fusion service module with wireless router, and the scene-type action of controlled smart machine is triggered by pre-configured scene strategy.Such as, when the user carrying certain special handset near and access the SSID of certain home network, utilize the control system of the present embodiment, wireless router can be used as intelligent control center, according to specific user access and other conditions as information such as times, automatically trigger intelligent home device, as user enters access network behind room, automatic unlatching light, air-conditioning, cancel security protection and monitor and control facility; When this mobile phone leaves this router one default time, automatically close electrical equipment and open security protection or gate; When accessing terminal MAC not in the identifiable scope preset, as visitor, some equipment can be opened or prohibits the use certain class intelligent home device.
In sum, smart machine scenery control method and system based on wireless router of the present invention, achieve the scene interlock of multiple smart machine and automatically control, control mode is efficient, easy, flexible, control system is safe, reliable, drastically increases the Consumer's Experience of intelligent domestic system.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.