CN105323127B - The method and device of control function module work, functional module integrating device - Google Patents

The method and device of control function module work, functional module integrating device Download PDF

Info

Publication number
CN105323127B
CN105323127B CN201510005014.7A CN201510005014A CN105323127B CN 105323127 B CN105323127 B CN 105323127B CN 201510005014 A CN201510005014 A CN 201510005014A CN 105323127 B CN105323127 B CN 105323127B
Authority
CN
China
Prior art keywords
functional module
module
router
functional
server
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
Application number
CN201510005014.7A
Other languages
Chinese (zh)
Other versions
CN105323127A (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510005014.7A priority Critical patent/CN105323127B/en
Publication of CN105323127A publication Critical patent/CN105323127A/en
Application granted granted Critical
Publication of CN105323127B publication Critical patent/CN105323127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses the method and devices of control function module work, functional module integrating device.Wherein, the method of control function module work includes: after terminal device issues search request, the response of first kind router in local area network where being connected to, after confirmation user account information and the binding of first kind Router Distinguisher, terminal device and first kind router establish connection;Terminal device is after sending the first search request to the first kind router that connection has been established, from first kind router receiving module list;Terminal device is after reception includes the first enabling control request of functional module title and address, the functional module that control request is directed to is enabled to described first and sends the first work order, and control described first enables the functional module that control request is directed to and works.This method can be used family after finding need functional module to be used, conveniently by the work of terminal device direct control function module.

Description

The method and device of control function module work, functional module integrating device
Technical field
The present invention relates to Smart Home technical fields, in particular to method and device, the function of control function module work Module integrating device.
Background technique
As science and technology continues to develop, various types of functional modules for home intelligence are emerged in multitude, these functions Function achieved by module is including but not limited to temperature detection, Humidity Detection, gas concentration detection etc..These functional modules Occur, meet the demand of acquisition of the user in house and house peripheral information, and meet user in house with And the demand that the equipment around house is controlled.
Currently, a kind of control method of common functional module, be user terminal device (such as mobile phone, tablet computer, PC etc.) in, program of the installation for the work of control function module;In addition, also the functional module for needing to control work is connected Onto the bus of gateway.When user needs using some functional module, user need from be mounted with the terminal device of program to Gateway issues instruction, and instruction is transmitted to the functional module that the needs being connected in bus control by gateway, and will be from by gateway The data back that functional module receives is to terminal device.Therefore, under such framework, terminal device is wanted to send to function Module sends control instruction, and the data of passback are received from control module, requires by gateway passes instruction and data, therefore net Pass is indispensable.When the functional module in a certain regional scope can not connect gateway, user will be caused not to be available end The work of end equipment control function module.
Summary of the invention
A kind of method and device for being designed to provide control function module work of the embodiment of the present invention, functional module collection At device, make user that terminal device can be used and directly control the work of smart home functional module, and keeps terminal device direct The data of receiving module passback.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of method of control function module work, it is applied to use The terminal device of family side, which comprises
The first kind router connection request that user issues is received, according to the first kind router connection request, to office Each router sends router search request in the net of domain, the first kind router in local area network where searching, wherein described the A kind of router is the router that the Router Distinguisher of itself is registered in server;
Clothes after receiving the response that first kind router is returned according to the router search request, into internet Business device sends the user account information of user's input;
It is tied up in the Router Distinguisher for receiving confirmation user account information and first kind router that the server returns After fixed message, connection is established with first kind router;Wherein, the Router Distinguisher of first kind router is by first kind router It is sent to server in advance, and is stored in server;
The first functional module search request is sent to the first kind router that connection has been established, obtains the first kind routing The functional module list that device is sent;Wherein, the functional module list is functional module when enabling to the first kind road of connection The information registered by device, address and functional information including functional module;
The functional module list is exported by display and/or loudspeaking mode, receive user's sending includes function mould First enabling control request of block title and address;
The functional module that control request is directed to is enabled to described first and sends the first work order, is controlled described first and is enabled The functional module that control request is directed to works, and receives described first and enable the functional module passback for controlling that request is directed to Data.
Optionally, described that functional module the first work order of transmission that control request is directed to, control are enabled to described first Described first, which enables the functional module that control request is directed to, works, and receives described first and enable the function that control request is directed to The step of data of energy module passback, comprising:
Judge whether terminal device enables the functional module that control request is directed to first and be in same local area network, if It is then to enable the functional module that control request is directed to described first and send the first work order, control described first and enable control The functional module that system request is directed to works, and receives the described first number for enabling the functional module passback that control request is directed to According to.
Optionally, router search request is sent in router each into local area network, the in local area network where searching After a kind of router, the method also includes:
If it is determined that the response for the first kind router that can not be received, then send for the function in the local area network where searching The functional module search request of energy module;
If receiving the response of functional module, the server into the internet sends the user account letter Breath;
After confirming the mark binding of the user account information and the functional module, establishes and connect with the functional module It connects;
The second search request is sent to the functional module that connection has been established, receives registration from the functional module that connection has been established The address of online functional module and functional information;
Address and the functional information of the functional module are exported by display and/or loudspeaking mode, reception includes function Second enabling control request of energy module title and address;
The functional module that control request is directed to is enabled to described second and sends the second work order, is controlled described second and is enabled The functional module that control request is directed to works, and receives described second and enable the functional module passback for controlling that request is directed to Data.
Optionally, after sending the functional module search request for the functional module in the local area network where searching, institute State method further include:
If terminal device can not receive the response of functional module, the is sent to the server that connects in internet Three search requests, to search and the address of the functional module of user account binding and functional information;
The address for the functional module bound from received server-side and user account and functional information, and pass through display Address and functional information of the loudspeaking mode to user's output function module and/or;
Receive user's input includes that the third of functional module title and address enables control request, sends the to server Three work orders, control are registered in the functional module work of the server, and receive the data of the server passback;Its In, third work order is used to indicate third and enables the corresponding functional module in address for including in control request, makes corresponding function Energy module executes operation.
Optionally, further includes:
After receiving the needs of user's input and the functional module mark of user account binding in terminal device, by function mould The mark of block is sent to server, so that server determines whether user account is bound with the mark of functional module, and will determine Result return to terminal device;
If terminal device receives the module and the unbound information of user account of server transmission, issue where searching Local area network in first kind router request;
If terminal device receives the response of first kind router, first is sent to the first kind router of connection and is tied up Fixed instruction makes first kind router receive and save the user account information of the address of module, functional information and binding;And make Server sending module from first kind router to connection mark, address, functional information and the user account information of binding.
Optionally, further includes:
After the functional module mark that terminal device receives needs and user account binding, functional module is identified and is sent To server, so that server determines whether user account is bound with the mark of functional module, and the result of judgement is returned to Terminal device;
If terminal device receives the functional module and the unbound information of user account of server transmission, issues and search The request of first kind router in the local area network at place;
If terminal device receives the response of first kind router, the first binding instruction is sent to server, makes to take Business device receives and saves mark, address, functional information and the user account of the binding letter of functional module from first kind router Breath.
A kind of device of control function module work, applied to the terminal device of user side, described device includes: the first via By device searching unit, the first account information transmission unit, the first router connection unit, the first module searching unit, first row Table output unit and the first module control unit,
The first router searching unit, for receiving the first kind router connection request of user's sending, according to institute First kind router connection request is stated, each router sends router search request into local area network, the local area network where searching In first kind router, wherein the first kind router is the routing that the Router Distinguisher of itself is registered in server Device;
The first account information transmission unit, for receive first kind router according to the router lookup ask After the response for asking return, the server into internet sends the user account information of user's input;
The first router connection unit, for receive confirmation user account information that the server returns with After the message of the Router Distinguisher binding of first kind router, connection is established with first kind router;Wherein, first kind router Router Distinguisher server is sent to by first kind router in advance, and be stored in server;
The first module searching unit is looked into for sending the first functional module to the first kind router that connection has been established Request is looked for, the functional module list that the first kind router is sent is obtained;Wherein, the functional module list is functional module When enabling to the information of the first kind router registration of connection, address and functional information including functional module;
The first list output unit connects for exporting the functional module list by display and/or loudspeaking mode Receive user's sending includes the first enabling control request of functional module title and address;
First module control unit sends first for enabling the functional module that control request is directed to described first Work order controls the functional module that the first enabling control request is directed to and works, and receives described first and enable control The data for the functional module passback that system request is directed to.
Optionally, first module control unit, comprising: local area network judgment sub-unit and module communication subelement,
The local area network judgment sub-unit requests the function being directed to for judging whether terminal device enables control with first Module is in same local area network, if it is, triggering the module communication subelement;
The module communication subelement sends the first work for enabling the functional module that control request is directed to described first It instructs, controls the functional module that the first enabling control request is directed to and work, and receive described first and enable control Request the data of the functional module being directed to passback.
Optionally, further includes: the second module searching unit, the second account information transmission unit, the first module connection unit, Third module searching unit, second list output unit and the second module control unit,
The second module searching unit, for each router to be sent out into local area network in the first router searching unit Router search request is sent, after the first kind router in local area network where searching, if it is determined that the first kind that can not be received The response of router then sends the functional module search request for the functional module in the local area network where searching;
The second account information transmission unit, in the response for receiving functional module, into the internet Server send the user account information;
The first module connection unit, for being tied up in the mark of the confirmation user account information and the functional module After fixed, connection is established with the functional module;
The third module searching unit, for sending the second search request to the functional module that connection has been established, from The functional module for establishing connection receives the address for registering online functional module and functional information;
The second list output unit, for exporting the address of the functional module by display and/or loudspeaking mode And functional information, reception include the second enabling control request of functional module title and address;
Second module control unit sends second for enabling the functional module that control request is directed to described second Work order controls the functional module that the second enabling control request is directed to and works, and receives described second and enable control The data for the functional module passback that system request is directed to.
Optionally, further includes: the 4th module searching unit, module information output unit and third module control unit,
The 4th module searching unit, for sending in the second module searching unit for the local where searching After the functional module search request of functional module in net, if terminal device can not receive the response of functional module, to The server that connects in internet sends third search request, with search with the address of the functional module of user account binding with And functional information;
The module information output unit, the address of the functional module for being bound from received server-side and user account And functional information, and address from loudspeaking mode to user's output function module and functional information by display and/or;
The third module control unit, the third including functional module title and address for receiving user's input open It is requested with control, sends third work order to server, control is registered in the functional module work of the server, and receives The data of the server passback;Wherein, third work order is used to indicate third and enables the address pair for including in control request The functional module answered makes corresponding functional module execute operation.
Optionally, further includes: first identifier transmission unit, the second router searching unit and the first binding unit,
The first identifier transmission unit, for receiving needs and the user account binding of user's input in terminal device Functional module mark after, the mark of functional module is sent to server so that server determine user account whether with function The mark binding of energy module, and the result of judgement is returned into terminal device;
The second router searching unit, for receiving the module and user account of server transmission in terminal device When unbound information, the request of the first kind router in the local area network where searching is issued;
First binding unit, when for receiving the response of first kind router in terminal device, to the of connection A kind of router sends the first binding instruction, and first kind router is made to receive and save the address of module, functional information and tie up Fixed user account information;And make first kind router to the mark of the server sending module of connection, address, functional information with And the user account information of binding.
Optionally, further includes: second identifier transmission unit, third router searching unit and the second binding unit,
The second identifier transmission unit, for receiving the functional module of needs and user account binding in terminal device After mark, by functional module mark be sent to server so that server determine user account whether the mark with functional module Binding, and the result of judgement is returned into terminal device;
The third router searching unit, for receiving functional module and the user of server transmission in terminal device When the unbound information of account, the request of the first kind router in the local area network where searching is issued;
Second binding unit when for receiving the response of first kind router in terminal device, is sent out to server Send the first binding to instruct, make server received and saved from the first kind router mark of functional module, address, functional information with And the user account information of binding.
A kind of method of control function module work, the method are applied to router, which comprises
Institute's terminal device in a local network is received to send after the first kind router connection request for receiving user's sending Router search request, to terminal device send search request response so that server from terminal device to internet hair The user account information for sending user to input, wherein the router is the road that the Router Distinguisher of itself is registered in server By device;
The server connected from internet receive the mark binding of user account information and router message it Afterwards, connection is established with terminal device, wherein the Router Distinguisher of router is sent to server by router in advance, and saves In server;
After receiving the first search request that the terminal device that connection has been established is sent, to terminal device sending function Module list, by make the terminal device by display and/or loudspeaking in a manner of export the functional module list and receive user What is issued includes the first of functional module title and address enabling control request, further such that terminal device is to described first It enables the functional module that control request is directed to and sends the first work order, control described first and enable the function that control request is directed to Module works, and receives the described first data for enabling the functional module passback that control request is directed to;Wherein, the function Module list is functional module when enabling to the information of the router registration of connection, address and function including functional module Information.
Optionally, further includes:
After the functional module address and functional information that router is received and saved from functional module, by functional module Address and functional information be sent to server.
A kind of functional module integrating device, the functional module integrating device include console module, data transmission module with And control module;Wherein,
The console module connects the control module, and connects the more than one functional module, the platform mould Block receives the address of the functional module, and the instruction for being used to indicate functional module and working is sent to the functional module;
The control module is connect with the console module, and the control module and the data transmission module connect It connects, embedded OS is installed in the control module;
The data transmission module is connect with the control module, and the data transmission module is connect with server, After the mark binding of functional module integrating device confirmation user account information and the functional module integrating device, institute Data transmission module is stated also to connect with terminal device;
Functional module integrating device from after terminal device in a local network receives integrating device search request, institute It states data transmission module and sends search request response to terminal device;
Confirmation user account information and functional module integrating device are received from server in functional module integrating device After the message for identifying binding, functional module integrating device connects terminal device;Wherein, user account information from terminal device to The server connected in internet is sent, and the mark of functional module integrating device is transmitted by the data in functional module integrating device Module sends in advance and is stored in server;
After the 4th search request is sent to control module by data transmission module, functional module integrating device is to terminal Equipment sending function module list;Wherein, functional module list is received by functional module integrating device from the functional module of connection And the information saved, address and functional information including functional module, the 4th search request is by functional module integrating device Data transmission module is received from the terminal device that connection has been established;Wherein, the 4th search request can be for locating function mould The address of block and the request of functional information, the functional module that the 4th search request is directed to are all connected to the integrated dress of functional module It sets;
When functional module integrating device receives four work orders from terminal device, in functional module integrating device The functional module that console module is directed to the 4th work order issues the 4th and executes operational order, and the 4th execution operational order is directed to Functional module according to the 4th execution operational order include operation information work;Wherein, the 4th execution operational order is for referring to Show that the address corresponding function module for including in the 4th work order executes operation.
Technical solution of the present invention is first kind road in the local area network where being connected to after terminal device issues search request By the response of device, after user account information and the binding of first kind Router Distinguisher, terminal device and first kind router are established Connection;Terminal device connects after sending the first search request to the first kind router that connection has been established from first kind router Receive functional module list;Terminal device receive include the first of functional module title and address enable control request after, The functional module that control request is directed to, which is enabled, to first sends the first work order.User can select previously according to the demand of itself The functional module powered on is selected, when needing to realize a certain function, it is online to obtain registration from the first kind router in local area network The list of devices of functional module, so that it may selection needs the functional module controlled, and the work of direct control function module, and The data for directly obtaining functional module passback reduce terminal module in the work of control function module, the first kind are routed The dependence of device.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the method for control function module work that present invention implementation provides;
Fig. 2 is that functional module list display provided in an embodiment of the present invention exports schematic diagram;
Fig. 3 is the flow chart of the method for another control function module work that present invention implementation provides;
Fig. 4 is the flow chart of the method for another control function module work that present invention implementation provides;
Fig. 5 is a kind of structural schematic diagram of the device for control function module work that present invention implementation provides;
Fig. 6 is the flow chart of the method for another control function module work that present invention implementation provides;
Fig. 7 is a kind of flow chart of the method for functional module work that present invention implementation provides;
Fig. 8 is a kind of structural schematic diagram of functional module integrating device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to FIG. 1, the present invention implements a kind of method of the control function module provided work, the end applied to user side End equipment, this method may include:
S100, the first kind router connection request that user issues is received, according to the first kind router connection request, Into local area network, each router sends router search request, the first kind router in local area network where searching, wherein institute Stating first kind router is the router that the Router Distinguisher of itself is registered in server;
Refer to specifically, the terminal device in the embodiment of the present invention can be the receivable user such as mobile phone, tablet computer, PC machine It enables, and to the equipment of field feedback.These equipment can pass through with first kind router, functional module and server The wireless communication modes such as WIFI, bluetooth, infrared ray or wire communication mode networking.
Specifically, first kind router refers to for linkage function module, and the equipment for connecting internet and local area network; Each first kind router has unique mark, and first kind router can register the Router Distinguisher of itself In server.By the way that Router Distinguisher is registered in server, server can know the service condition of each router, and root Each router is identified according to Router Distinguisher, and then is communicated with each router.
Specifically, Router Distinguisher, can be device identification, or the digital generation of scheduled one section of encryption in advance Code.
Specifically, terminal device can be equipped with client part of the invention, which can build with server end Vertical communication.The client can help the server in terminal device and first kind router, internet to establish connection and communication. It is communicated in addition, client can also directly be established with first kind router.
S200, after receiving the response that first kind router is returned according to the router search request, terminal device Server into internet sends the user account information of user's input;
Specifically, the account information of user, can be username and password.User account information can be user and voluntarily set It sets, can be mobile device identification information, be also possible to be specified by server.User can be in server registration user's account Family, due to the registered routing that can be used the account of user and the user in server, server of Router Distinguisher Device mark is bound, to identify to user, router.Such as: after the router connection server of user, server According to the binding relationship of Router Distinguisher and user account information, so that it may know that the router of which user is connected to service Device.Equally, for user using after Account Logon server, server is equally known that the user will use which router and clothes Business device connection.
S300, the confirmation user account information and the router mark of first kind router that the server returns are being received After the message for knowing binding, terminal device and first kind router establish connection;Wherein, the Router Distinguisher of first kind router by First kind router is sent to server in advance, and is stored in server;
S400, terminal device send the first functional module search request to the first kind router that connection has been established, and obtain The functional module list that the first kind router is sent;Wherein, the functional module list be functional module when enabling to The information of the first kind router registration of connection, address and functional information including functional module;
Specifically, these functional modules can include but is not limited to air quality sensor for detecting air quality, For detecting the gas content sensor of special gas content in air, the air temperature sensor for detecting temperature, being used for Detect air humidity sensor, the catalytic combustion type sensor and metal-oxide semiconductor (MOS) for monitoring gas leakage of humidity Sensor, the sound transducer for monitoring sound and sonic sensor, the passive infrared (PIR) for being detected to movement Motion sensor, the far infrared flame sensor for being detected to flame and ultraviolet flame sensor etc..
Specifically, functional information may include: the information for showing function achieved by functional module;For example, corresponding to Temperature detecting module above-mentioned, the functional information that temperature detecting module is transmitted to first kind router include showing that the module has The information of temperature detecting function.
S500, the terminal device export the functional module list by display and/or loudspeaking mode, receive user's hair Out include the first of functional module title and address enabling control request;
Address specifically, due to outputing functional module list, and in functional module list including functional module and Functional information, therefore user can be opened by the function of certain functional module in selection selection function module list to issue first It is requested with control.Such as: by display mode, export address corresponding with functional module title and functional information, wherein function The functional information of energy module is embodied by the control item of functional module.In this way, user clicks in functional module list After certain control item of certain functional module, title and the address of the corresponding functional module of the instruction can be determined, therefore the click refers to Enabling is the first enabling control request.
Referring to FIG. 2, including functional module 1 and 2 liang of functional module in the functional module list shown in mobile phone screen A functional module, the address of functional module 1 are address 1, and the address of functional module 2 is address 2, the control item packet of functional module 1 Control item 1 to 4 is included, the control item of functional module 2 includes control item 5 to 8.User can click function module 1 or functional module 2 Control item is with control function module 1 or functional module 2.
Certainly, since user does not need to know that the address of functional module may be used also in other embodiments of the present invention With the address of not display function module.
S600, the functional module that is directed to of control request is enabled to described first send the first work order, control described the One, which enables the functional module that control request is directed to, works, and receives described first and enable the functional module that control request is directed to The data of passback.
Since terminal device obtains the address of functional module, and terminal device, first kind router, each functional module In same local area network, therefore terminal device directly can send the first enabling control to functional module by local area network and ask It asks, the data that can also be directly returned by local area network receiving module.
Specifically, first enables control request, the control function module work that user inputs to the terminal device may is that The request of work.User can be issued the first enabling control to the terminal device and be asked by keyboard, mouse and touch screen etc. It asks.
Specifically, the first work order, may is that is issued from terminal device to functional module is used for control function module Request, contain in the first work order and need to be needed according to the address of the functional module of the request work and functional module The job information to be executed.
For example, in the embodiment for controlling temperature detecting module work at one, a kind of control provided in an embodiment of the present invention The method of functional module work may comprise steps of:
User issues first kind router connection request to terminal device, request by terminal device and first kind router into Row data connection, terminal device issue the request of the first kind router in the local area network where searching;Terminal device is receiving To after the response of first kind router, server of the terminal device into internet sends user's input that terminal device receives User account information, server to terminal device return confirmation user account information and first kind Router Distinguisher bind Afterwards, terminal device and first kind router establish connection;Wherein, the mark of first kind router is sent out in advance by first kind router It send and is stored in server;
Terminal device is after sending the first search request to the first kind router that connection has been established, from first kind router Receiving module list;Wherein, functional module list is functional module when enabling to the first kind router registration of connection Information, include address and the functional information of temperature detecting module of temperature detecting module;
Terminal device by way of display and/or loudspeaking to after user's output function module list, terminal device root According to it is received by user issue first enable control request, wherein first enable control request in include user selection need The temperature detecting module that control request is directed to is enabled to first and is sent the first work by the functional module of control work, terminal device It instructs;Wherein, in the first work order include title and the address of temperature detecting module, and hold temperature detecting module The information of row operation.
Terminal device can obtain functional module column from first kind router after connecting with first kind router as a result, Table, to know and choose available functional module;Terminal device is directly connected to need functional module to be used, such terminal again Equipment can be with the work of direct control function module, and directly obtains the data of functional module passback, reduces terminal module The work of control function module of dependence in to(for) first kind router.
In other embodiments of the present invention, the first work order that S600 is sent, can be terminal device and receives first The functional module that control requested and determined that terminal device and the first enabling control request are directed to is enabled to be in after same local area network, It is sent from terminal device to functional module.
Namely: in other embodiments of the present invention, S600 may include:
Judge whether terminal device enables the functional module that control request is directed to first and be in same local area network, if It is then to enable the functional module that control request is directed to described first and send the first work order, control described first and enable control The functional module that system request is directed to works, and receives the described first number for enabling the functional module passback that control request is directed to According to.
Thus, it is possible to reaffirm terminal device and functional module be in the first work of same local area network and then sending It instructs, if avoiding terminal device and when functional module can not connect in same local area network, terminal device is to local area network In functional module issue the first work order, which offers a saving terminal device because be unable to complete send the first work order And the time searching first kind router or functional module repeatedly and wasting, it is beneficial to effective transmission of the first work order.
A kind of method of control function module work provided in an embodiment of the present invention, is that terminal device issues search request Afterwards, the response of first kind router in the local area network where being connected to is bound in user account information and first kind Router Distinguisher Afterwards, terminal device and first kind router establish connection;Terminal device is sending the to the first kind router that connection has been established After one search request, from first kind router receiving module list;Terminal device includes functional module title in reception And after the first of address enables control request, the functional module being directed to the first enabling control request sends the first work and refers to It enables.User can select the functional module powered on previously according to the demand of itself, when needing to realize a certain function, from local First kind router in net obtains the list of devices for registering online functional module, so that it may which selection needs the function mould controlled Block, and the work of direct control function module, and the data of functional module passback are directly obtained, reduce terminal module and is controlling When functional module processed works, the dependence for first kind router.
On the basis of embodiment shown in Fig. 1, as shown in figure 3, another kind control function module provided in an embodiment of the present invention The method of work can also include: after S100
S200 ', if it is determined that the first kind router that can not be received response, then terminal device send for search where Local area network in functional module functional module search request;
Specifically, terminal device can pass through the second class router sending function module search request in local area network.
S300 ' if, receive the response of functional module, server hair of the terminal device into the internet Send the user account information;
Wherein, the functional module in local area network can be connect with the second class router, the service in terminal device, internet Device is connect with the second class router.Second class router refers to for linkage function module, and connects internet and local The equipment of net, the second class router do not have the device identification that can be registered in server.
Therefore, terminal device can send user's account by server of the second class router into the internet Family information.
S400 ', after confirming the mark binding of the user account information and the functional module, the terminal device with The functional module establishes connection;
S500 ', the terminal device send the second search request to the functional module that connection has been established, and connect from having been established Functional module receive the address for registering online functional module and functional information;
Wherein, it registers online functional module to connect with the second class router, the mark of functional module is pre-saved in clothes Business device;Wherein, the second search request is the request that terminal device is issued to the functional module that connection has been established, the second search request Online functional module is connect with the second class router for searching in local area network.
S600 ', the terminal device export address and the function of the functional module by display and/or loudspeaking mode Information, reception include the second enabling control request of functional module title and address;
S700 ', the terminal device enable the functional module that control request is directed to and send second and work to described second to be referred to Order controls the functional module that the second enabling control request is directed to and works, and receives the second enabling control and request For functional module passback data.
For the sake of convenient, do not show that S200 to S600 in Fig. 3.
Wherein, the second work order can serve to indicate that the corresponding function mould in address for including in the control request of the second enabling Block makes corresponding functional module execute operation.
As a result, terminal device can from the second class router of non-first kind router, obtain the address of functional module with And functional information, and functional module is controlled accordingly.
When functional module can not connect first kind router, and functional module can only connect the second class router, function The address of functional module and functional information can be sent to the second class router by module, and the second class router is by functional module Address and functional information be sent to server.
Wherein, the second work order can be terminal device and receive the second enabling control request and determine that terminal is set It is standby to be enabled after the functional module that is directed to of control request is in same local area network with described second, from terminal device to functional module It sends.Namely: S700 ' can be specifically included: in the function of determining that terminal device and the second enabling control request are directed to Module is in after same local area network, and the terminal device enables the functional module that is directed to of control request to described second and sends the Two work orders control the functional module that the second enabling control request is directed to and work, and receive described second and enable The data for the functional module passback that control request is directed to.
Thus, it is possible to reaffirm terminal device and functional module be in the second work of same local area network and then sending It instructs, if avoiding terminal device and when functional module can not connect in same local area network, terminal device is to local area network In functional module issue the second work order, which offers a saving terminal device because be unable to complete transmission second work refers to It enables, repeatedly locating function module and time for wasting, is beneficial to effective transmission of the second work order.
As shown in figure 4, on the basis of embodiment shown in Fig. 3, another kind control function mould provided in an embodiment of the present invention Block work method can also include: after S200 '
If S300 ", terminal device can not receive the response of functional module, terminal device is connected in internet Server send third search request, with search with user account binding functional module address and functional information;
S400 ", the address for the functional module bound from received server-side and user account and functional information, and pass through The address and functional information of display and/or loudspeaking mode to user's output function module;
Wherein, S400 " can be specifically included:
If the functional module is registered in the server, the received function mould of the server of terminal device from connection In block response, address and the functional information of the functional module bound with user account are obtained, and passes through display and/or loudspeaking side Address and functional information of the formula to user's output function module;Wherein, the address of functional module and functional information are functions Module connects functional module address and the functional information that the second class router is registered in server later.
If server is connect with first kind router, the received functional module of the server of terminal device from connection is rung Ying Zhong obtains the functional module list of devices saved in first kind router, wherein first kind router registration is online in service Device, address and functional information in functional module list of devices comprising functional module.
Terminal device can obtain the functional module connecting with first kind server when connecting with server as a result, Address and functional information, or the address of functional module being connect with the second class server and functional information, so that Terminal device can contain address and the third work order of functional information of functional module, control function mould by sending The work of block.
S500 ", the third including functional module title and address for receiving user's input enable control request, to server Third work order is sent, control is registered in the functional module work of the server, and receives the number of the server passback According to;Wherein, third work order is used to indicate third and enables the corresponding functional module in address for including in control request, makes to correspond to Functional module execute operation.
For the sake of convenient, do not show that S200 to S600 and S300 ' to S700 ' in Fig. 4.
Wherein, third work order can be terminal device and receive the third enabling control request of user's input, and sentences Determine terminal device and be registered in the first kind router of the server and/or functional module is not in after same local area network, It is sent from terminal device to server.
Namely: S500 " can be specifically included:
What terminal device received user's input includes the third enabling control request of functional module title and address, and determines Terminal device and it is registered in the first kind router of the server and/or functional module is not in after same local area network, to Server sends third work order, and control is registered in the functional module work of the server, and receives the server and return The data of biography;Wherein, third work order is used to indicate third and enables the corresponding functional module in address for including in control request, Corresponding functional module is set to execute operation.
On the basis of embodiment shown in Fig. 1, the method for another kind control function module work provided in an embodiment of the present invention, Can also include:
After receiving the needs of user's input and the functional module mark of user account binding in terminal device, terminal device The mark of functional module is sent to server, so that server determines whether user account is bound with the mark of functional module, And the result of judgement is returned into terminal device;
If terminal device receives the module and the unbound information of user account of server transmission, terminal device is issued The request of the first kind router in local area network where searching;
If terminal device receives the response of first kind router, terminal device is sent out to the first kind router of connection It send the first binding to instruct, first kind router is made to receive and save the user account of the address of module, functional information and binding Information;And make first kind router to the mark of the server sending module of connection, address, functional information and the user of binding Account information.
Thus, it is possible to which network where realizing the functional module for needing to control according to terminal device, makes terminal device connection should First kind router in network, to make to bind the mark of user account information and functional module in first kind router.
On the basis of embodiment shown in Fig. 1, the method for another kind control function module work provided in an embodiment of the present invention, Can also include:
After the functional module mark that terminal device receives needs and user account binding, terminal device is by functional module Mark is sent to server, so that server determines whether user account is bound with the mark of functional module, and by the knot of judgement Fruit returns to terminal device;
If terminal device receives the functional module and the unbound information of user account of server transmission, terminal device Issue the request of the first kind router in the local area network where searching;
If terminal device receives the response of first kind router, terminal device sends the first binding to server and refers to It enables, server is made to receive and save mark, address, functional information and the user of binding of functional module from first kind router Account information.
Thus, it is possible to which network where realizing the functional module for needing to control according to terminal device, connects terminal device Server binds the mark of user account information and functional module.
Thus, it is possible to be after the mark of functional module is bound with user account, to be associated with functional module with user account, this Sample, in the future in use, control can be facilitated in the case where increasing first kind router and functional module uses safe The work of functional module.
On the basis of embodiment shown in Fig. 1, the method for another kind control function module work provided in an embodiment of the present invention, Can also include:
Before terminal device connects server, terminal device sends received user account information input by user To server, and from server receive comparison result, wherein comparison result be by terminal device send user account information with What the user account information that server saves relatively obtained;If comparison result is identical, it is determined that received use input by user Family account information can be connect by certification, terminal device with server.
Thus, it is possible to verify user account information before the work of control function module, increase in control function module work The safety of work.
Wherein, in the various embodiments described above, functional module and first kind router can use the power line carrier communication side PLC Formula connection.
Thus, it is possible to make functional module by way of the existing power outlet of grafting, in a certain range be plugged on The first kind router of power outlet connects, and enhances the plug and play characteristic of functional module;When in use, it does not need to be laid with line Cable is not needed using the wireless communication mode for being easy to cause signal to decay, so that it may so that first kind router and functional module yet Connection, facilitates the use of functional module, expands the scope of application of functional module, improve the service efficiency of user.
Corresponding with above method embodiment, the present invention also provides a kind of devices of control function module work.
As shown in figure 5, a kind of device of control function module work provided in an embodiment of the present invention, applied to user side Terminal device, the apparatus may include: the first router searching unit 100, the first account information transmission unit 200, the first via By device connection unit 300, the first module searching unit 400, first list output unit 500 and the first module control unit 600,
The first router searching unit 100, for receiving the first kind router connection request of user's sending, according to The first kind router connection request, into local area network, each router sends router search request, the local where searching First kind router in net, wherein the first kind router is the road that the Router Distinguisher of itself is registered in server By device;
The first account information transmission unit 200, for being looked into according to the router receiving first kind router After the response for looking for request to return, the server into internet sends the user account information of user's input;
The first router connection unit 300, in the confirmation user account letter for receiving the server return After the message that the Router Distinguisher of breath and first kind router is bound, connection is established with first kind router;Wherein, first kind road By the Router Distinguisher of device server is sent to by first kind router in advance, and is stored in server;
The first module searching unit 400, for sending the first function mould to the first kind router that connection has been established Block search request obtains the functional module list that the first kind router is sent;Wherein, the functional module list is function Module enable when to connection first kind router registration information, address and functional information including functional module;
The first list output unit 500 is arranged for exporting the functional module by display and/or loudspeaking mode Table, receive user's sending includes the first enabling control request of functional module title and address;
Address specifically, due to outputing functional module list, and in functional module list including functional module and Functional information, therefore user can be opened by the function of certain functional module in selection selection function module list to issue first It is requested with control.Such as: by display mode, export address corresponding with functional module title and functional information, wherein function The functional information of energy module is embodied by the control item of functional module.In this way, user clicks in functional module list After certain control item of certain functional module, title and the address of the corresponding functional module of the instruction can be determined, therefore the click refers to Enabling is the first enabling control request.
First module control unit 600 is sent for enabling the functional module that control request is directed to described first First work order controls the functional module that the first enabling control request is directed to and works, and receives described first and open With the data for the functional module passback that control request is directed to.
Specifically, first enables control request, the control function module work that user inputs to the terminal device may is that The request of work.User can be issued the first enabling control to the terminal device and be asked by keyboard, mouse and touch screen etc. It asks.
Specifically, the first work order, may is that is issued from terminal device to functional module is used for control function module Request, contain in the first work order and need to be needed according to the address of the functional module of the request work and functional module The job information to be executed.
A kind of device of control function module work provided in an embodiment of the present invention, is that terminal device issues search request Afterwards, the response of first kind router in the local area network where being connected to is bound in user account information and first kind Router Distinguisher Afterwards, terminal device and first kind router establish connection;Terminal device is sending the to the first kind router that connection has been established After one search request, from first kind router receiving module list;Terminal device includes functional module title in reception And after the first of address enables control request, the functional module being directed to the first enabling control request sends the first work and refers to It enables.User can select the functional module powered on previously according to the demand of itself, when needing to realize a certain function, from local First kind router in net obtains the list of devices for registering online functional module, so that it may which selection needs the function mould controlled Block, and the work of direct control function module, and the data of functional module passback are directly obtained, reduce terminal module and is controlling When functional module processed works, the dependence for first kind router.
Wherein, first module control unit 600 may include: that local area network judgment sub-unit and module communication are single Member,
The local area network judgment sub-unit requests the function being directed to for judging whether terminal device enables control with first Module is in same local area network, if it is, triggering the module communication subelement;
The module communication subelement sends the first work for enabling the functional module that control request is directed to described first It instructs, controls the functional module that the first enabling control request is directed to and work, and receive described first and enable control Request the data of the functional module being directed to passback.
Thus, it is possible to reaffirm terminal device and functional module be in the first work of same local area network and then sending It instructs, if avoiding terminal device and when functional module can not connect in same local area network, terminal device is to local area network In functional module issue the first work order, which offers a saving terminal device because be unable to complete send the first work order And the time searching first kind router or functional module repeatedly and wasting, it is beneficial to effective transmission of the first work order.
In other embodiments of the present invention, Fig. 5 shown device can also include: the second module searching unit, the second account Information transmitting unit, the first module connection unit, third module searching unit, second list output unit and the control of the second module Unit,
The second module searching unit, for each router to be sent out into local area network in the first router searching unit Router search request is sent, after the first kind router in local area network where searching, if it is determined that the first kind that can not be received The response of router then sends the functional module search request for the functional module in the local area network where searching;
Specifically, terminal device can pass through the second class router sending function module search request in local area network.
The second account information transmission unit, in the response for receiving functional module, into the internet Server send the user account information;
Wherein, the functional module in local area network can be connect with the second class router, the service in terminal device, internet Device is connect with the second class router.Second class router refers to for linkage function module, and connects internet and local The equipment of net, the second class router do not have the device identification that can be registered in server.
Therefore, terminal device can send user's account by server of the second class router into the internet Family information.
The first module connection unit, for being tied up in the mark of the confirmation user account information and the functional module After fixed, connection is established with the functional module;
The third module searching unit, for sending the second search request to the functional module that connection has been established, from The functional module for establishing connection receives the address for registering online functional module and functional information;
Wherein, it registers online functional module to connect with the second class router, the mark of functional module is pre-saved in clothes Business device;Wherein, the second search request is the request that terminal device is issued to the functional module that connection has been established, the second search request Online functional module is connect with the second class router for searching in local area network.
The second list output unit, for exporting the address of the functional module by display and/or loudspeaking mode And functional information, reception include the second enabling control request of functional module title and address;
Second module control unit sends second for enabling the functional module that control request is directed to described second Work order controls the functional module that the second enabling control request is directed to and works, and receives described second and enable control The data for the functional module passback that system request is directed to.
Wherein, the second work order can serve to indicate that the corresponding function mould in address for including in the control request of the second enabling Block makes corresponding functional module execute operation.
As a result, terminal device can from the second class router of non-first kind router, obtain the address of functional module with And functional information, and functional module is controlled accordingly.
When functional module can not connect first kind router, and functional module can only connect the second class router, function The address of functional module and functional information can be sent to the second class router by module, and the second class router is by functional module Address and functional information be sent to server.
Wherein, the second work order can be terminal device and receive the second enabling control request and determine that terminal is set It is standby to be enabled after the functional module that is directed to of control request is in same local area network with described second, from terminal device to functional module It sends.
Thus, it is possible to reaffirm terminal device and functional module be in the second work of same local area network and then sending It instructs, if avoiding terminal device and when functional module can not connect in same local area network, terminal device is to local area network In functional module issue the second work order, which offers a saving terminal device because be unable to complete transmission second work refers to It enables, repeatedly locating function module and time for wasting, is beneficial to effective transmission of the second work order.
Device shown in Fig. 5 includes: the second module searching unit, the second account information transmission unit, the connection of the first module When unit, third module searching unit, second list output unit and the second module control unit, further, Fig. 5 shown device It can also include: the 4th module searching unit, module information output unit and third module control unit,
The 4th module searching unit, for sending in the second module searching unit for the local where searching After the functional module search request of functional module in net, if terminal device can not receive the response of functional module, to The server that connects in internet sends third search request, with search with the address of the functional module of user account binding with And functional information;
The module information output unit, the address of the functional module for being bound from received server-side and user account And functional information, and address from loudspeaking mode to user's output function module and functional information by display and/or;
If the functional module is registered in the server, the received function mould of the server of terminal device from connection In block response, address and the functional information of the functional module bound with user account are obtained, and passes through display and/or loudspeaking side Address and functional information of the formula to user's output function module;Wherein, the address of functional module and functional information are functions Module connects functional module address and the functional information that the second class router is registered in server later.
If server is connect with first kind router, the received functional module of the server of terminal device from connection is rung Ying Zhong obtains the functional module list of devices saved in first kind router, wherein first kind router registration is online in service Device, address and functional information in functional module list of devices comprising functional module.
Terminal device can obtain the functional module connecting with first kind server when connecting with server as a result, Address and functional information, or the address of functional module being connect with the second class server and functional information, so that Terminal device can contain address and the third work order of functional information of functional module, control function mould by sending The work of block.
The third module control unit, the third including functional module title and address for receiving user's input open It is requested with control, sends third work order to server, control is registered in the functional module work of the server, and receives The data of the server passback;Wherein, third work order is used to indicate third and enables the address pair for including in control request The functional module answered makes corresponding functional module execute operation.
Wherein, third work order can be terminal device and receive the third enabling control request of user's input, and sentences Determine terminal device and be registered in the first kind router of the server and/or functional module is not in after same local area network, It is sent from terminal device to server.
In other embodiments of the present invention, Fig. 5 shown device can also include: first identifier transmission unit, secondary route Device searching unit and the first binding unit,
The first identifier transmission unit, for receiving needs and the user account binding of user's input in terminal device Functional module mark after, the mark of functional module is sent to server so that server determine user account whether with function The mark binding of energy module, and the result of judgement is returned into terminal device;
The second router searching unit, for receiving the module and user account of server transmission in terminal device When unbound information, the request of the first kind router in the local area network where searching is issued;
First binding unit, when for receiving the response of first kind router in terminal device, to the of connection A kind of router sends the first binding instruction, and first kind router is made to receive and save the address of module, functional information and tie up Fixed user account information;And make first kind router to the mark of the server sending module of connection, address, functional information with And the user account information of binding.
Thus, it is possible to which network where realizing the functional module for needing to control according to terminal device, makes terminal device connection should First kind router in network, to make to bind the mark of user account information and functional module in first kind router.
In other embodiments of the present invention, Fig. 5 shown device can also include: second identifier transmission unit, third routing Device searching unit and the second binding unit,
The second identifier transmission unit, for receiving the functional module of needs and user account binding in terminal device After mark, by functional module mark be sent to server so that server determine user account whether the mark with functional module Binding, and the result of judgement is returned into terminal device;
The third router searching unit, for receiving functional module and the user of server transmission in terminal device When the unbound information of account, the request of the first kind router in the local area network where searching is issued;
Second binding unit when for receiving the response of first kind router in terminal device, is sent out to server Send the first binding to instruct, make server received and saved from the first kind router mark of functional module, address, functional information with And the user account information of binding.
Thus, it is possible to which network where realizing the functional module for needing to control according to terminal device, connects terminal device Server binds the mark of user account information and functional module.
Thus, it is possible to be after the mark of functional module is bound with user account, to be associated with functional module with user account, this Sample, in the future in use, control can be facilitated in the case where increasing first kind router and functional module uses safe The work of functional module.
Wherein, in the various embodiments described above, functional module and first kind router can use the power line carrier communication side PLC Formula connection.
Thus, it is possible to make functional module by way of the existing power outlet of grafting, in a certain range be plugged on The first kind router of power outlet connects, and enhances the plug and play characteristic of functional module;When in use, it does not need to be laid with line Cable is not needed using the wireless communication mode for being easy to cause signal to decay, so that it may so that first kind router and functional module yet Connection, facilitates the use of functional module, expands the scope of application of functional module, improve the service efficiency of user.
As shown in fig. 6, a kind of method of control function module work provided in an embodiment of the present invention, this method are applied to road By device, this method may include:
S201, router receive institute's terminal device in a local network and connect receiving the first kind router that user issues The router search request sent after request, router sends search request response to terminal device, so that terminal device is to mutual Server in networking sends the user account information of user's input, wherein the router is by the Router Distinguisher of itself It is registered in the router of server;
Specifically, the router search request is the request issued by terminal device, router search request is for looking into It looks for special characteristic router.The special characteristic router is the road that the Router Distinguisher of itself can be registered in server By device.
S202, router are tied up in the mark that the server connected from internet receives user account information and router After fixed message, router and terminal device establish connection, wherein the Router Distinguisher of router is sent in advance by router To server, and it is stored in server;
Wherein, the received user account information of server is terminal device in the user account information for receiving user's input Afterwards, it is sent from the server that terminal device is connected into internet.
Wherein, the mark of router is sent in advance by router by router when connecting with server and is stored in clothes Business device.
S203, router are after receiving the first search request that the terminal device that connection has been established is sent, to terminal Equipment sending function module list, by make the terminal device by display and/or loudspeaking in a manner of export the functional module and arrange Table and receive user's sending includes the first of functional module title and address enabling control request, further such that terminal is set The standby functional module being directed to the first enabling control request sends the first work order, controls the first enabling control and asks It asks the functional module being directed to work, and receives the described first data for enabling the functional module passback that control request is directed to; Wherein, the functional module list is functional module when enabling to the information of the router registration of connection, including functional module Address and functional information.
Wherein, functional module list is the received registration information of functional module of router from connection, including functional module Address and functional information;
Wherein, the first search request is the request issued from terminal device to router, is connect for inquiring with router Functional module.
Router can issue functional module list to terminal device after connecting with terminal device as a result, so that using The user of terminal device, which is known and chosen, can use the functional module for needing to control work;Therefore, find with can be convenient can by user It with the functional module of control, and controls it, simplifies the operation of user, improve the operating efficiency of user, reduce The operating time of user.
On the basis of embodiment shown in Fig. 6, the side of another kind control function module work provided in an embodiment of the present invention Method can also include:
After the functional module address and functional information that router is received and saved from functional module, router is by function The address of energy module and functional information are sent to server.
Router can be after address and the functional information for obtaining functional module in real time, by functional module as a result, Address and functional information are sent to server in real time.
Wherein, in the various embodiments described above, router can be connected with functional module using PLC electric line carrier communication mode It connects.
Thus, it is possible to make functional module by way of the existing power outlet of grafting, in a certain range be plugged on The first kind router of power outlet connects, and enhances the plug and play characteristic of functional module;When in use, it does not need to be laid with line Cable is not needed using the wireless communication mode for being easy to cause signal to decay, so that it may so that first kind router and functional module yet Connection, facilitates the use of functional module, expands the scope of application of functional module, improve the service efficiency of user.
In addition, the invention also discloses a kind of router, for executing the above-mentioned control function module applied to router The method of work.
In addition, being applied to functional module, such as Fig. 7 institute the embodiment of the invention also provides a kind of functional module working method Show, this method may include:
S301, functional module are sending the module's address for needing to register to the first kind router connected in a local network And functional information;
S302, functional module receive the first work order that first kind router is sent;
S303, functional module work according to the first work order.
Wherein, first kind router linkage function module, and can connect server and terminal device;First kind road There is unique mark by device, first kind router can be by the identifier register of itself in server, and first kind road After being exported the address of received functional module and functional information in the form of functional module list by device, terminal is received The instruction for the work of control function module that equipment or server issue, and mould is issued to functional module involved in instruction Block executes operational order.
Wherein, functional module is to execute corresponding operation after having received the first work order.It should be noted that should The concrete type of functional module includes but is not limited to gas concentration detection function module, temperature detecting function module, humidity inspection Brake module, sound detection functional module, pir motion detection function module and functions of flame detection module.
Functional module can be such that the first kind routes to first kind router sending module address and functional information as a result, Device is able to save block address and functional information to functional module list;And functional module refers to according to the first of acquisition the work It enables and executes work.
On the basis of embodiment shown in Fig. 7, another kind functional module working method provided in an embodiment of the present invention can be with Include:
If it is determined that functional module cannot connect first kind router in the local area network at place, then functional module is to local The second class router for being connected in net send the instruction for functional module address and functional information to be registered in server it Afterwards, functional module works according to from received second work order of terminal device.
Wherein, the second class router linkage function module, and can connect router and terminal device;Second class road Do not have the mark of first kind router by device, does not need to be registered in server.
Functional module can be to the second class router sending module address and functional information as a result,;And institute's function mould Root tuber executes work according to the second work order of acquisition.
Wherein, functional module can be connect with first kind router using PLC electric line carrier communication mode.
Thus, it is possible to make functional module by way of the existing power outlet of grafting, in a certain range be plugged on The first kind router of power outlet connects, and enhances the plug and play characteristic of functional module;When in use, it does not need to be laid with line Cable is not needed using the wireless communication mode for being easy to cause signal to decay, so that it may so that first kind router and functional module yet Connection, facilitates the use of functional module, expands the scope of application of functional module, improve the service efficiency of user.
In addition, the embodiment of the invention also discloses a kind of functional module integrating devices to realize and improve above-mentioned purpose 400, referring to FIG. 8, functional module integrating device 400 includes console module 401, data transmission module 402 and control module 403, wherein the mountable more than one functional module 500 of console module 401.Server in integrating device 400 and internet 700 connections.
Wherein, console module 401 is used for link control module 403, and connects more than one functional module 500, platform The address of 401 receiving module 500 of module, and the finger for being used to indicate functional module 500 and working is sent to functional module 500 It enables;
Control module 403 is connect with console module 401, and control module 403 is connect with data transmission module 402, control Embedded OS is installed in molding block 403;
Data transmission module 402 is connect for connecting with control module 403 with server 700, in integrating device 400 After the mark binding for confirming user account information and integrating device 400, data transmission module 402 also connects with terminal device 600 It connects.
Data transmission module 402 can be by including but is not limited to wifi, and cable network, USB, low-power consumption bluetooth is infrared, The communication modes of 3G, 4G are connect with server 700 and/or terminal device 600.
Wherein, server 700 can be connect with functional module integrating device 400, and integrated for receiving module The server of device 400;The server can receive control function module integrating device 400 work instruction after, to Functional module integrating device 400 issues the instruction to work for control function module 500, wherein functional module 500 is connected to flat Platform module 401.
Functional module integrating device 400 from terminal device 600 in a local network receive integrating device search request Later, the data transmission module 402 in functional module integrating device 400 sends search request response to terminal device 600;
Confirmation user account information and integrating device 400 are received from server 700 in functional module integrating device 400 After the message for identifying binding, functional module integrating device 400 connects terminal device 600;Wherein, user account information is by terminal The server 700 that equipment 600 is connected into internet is sent, and the mark of functional module integrating device 400 is integrated by functional module Data transmission module 402 in device 400 sends in advance and is stored in server 700;
After the 4th search request is sent to control module 403 by data transmission module 402, functional module integrating device 400 to 600 sending function module list of terminal device;Wherein, functional module list is by functional module integrating device 400 from connection The information that receives and saves of functional module 500, address and functional information including functional module 500, the 4th search request It is received by the data transmission module of functional module integrating device 400 from the terminal device 600 that connection has been established;Wherein, it the 4th looks into Request is looked for can be the address for locating function module 500 and the request of functional information, the function that the 4th search request is directed to Energy module 500 is all connected to functional module integrating device 400.
When functional module integrating device 400 receives four work orders from terminal device 600, the integrated dress of functional module It sets the functional module 500 that the console module 401 in 400 is directed to the 4th work order and issues the 4th and execute operational order, the 4th The functional module 500 that operational order is directed to is executed to be worked according to the operation information that the 4th execution operational order includes;Wherein, the 4th Execution operational order is used to indicate the address corresponding function module 500 in the 4th work order included and executes operation.
In addition, as a kind of supplement, after receiving the 5th work order from server 700, functional module integrating device The functional module 500 that console module 401 in 400 is directed to the 5th work order issues the 5th and executes operational order.
Wherein, the 5th work order is in determining the local area network where terminal device 600, and terminal device 600 can not be with When functional module integrating device 400 connects, terminal device 600 connects server 700, and server 700 is received from terminal device 600 To after the instruction to work for control function module 500, instruction that server 700 is issued to functional module integrating device 400;? This, functional module 500 is connect with functional module integrating device 400.
In addition, as a kind of supplement, functional module integrating device 400 further include: the operation connecting with control module 403 refers to Input module 404 is enabled, operational order input module 404 is used to received operation instruction information being transferred to control module 403.Its In, operational order input module includes but is not limited to speech reception module and camera module.User can be from operational order Input module 404 inputs the 6th work order, and the 6th work order is used to control the functional module 500 of the connection of integrating device 400 Work.Therefore, user can not use terminal device 600 to connect integrating device when closing on functional module integrating device 400 400 mode, also not in such a way that terminal device 600 connects server 700, user only needs directly to integrating device 400 The 6th work order is inputted, the functional module 500 that can control the connection of integrating device 400 works.
In addition, as a kind of supplement, functional module integrating device 400 further include: the output mould being connect with control module 403 Block 405, output module 405 are used to receive output order from control module 403, and according to output order output signal.Wherein, defeated Module 405 includes but is not limited to display module, projection module, infrared data output module and sound output module out.As a result, User can make 400 image output of functional module integrating device, image, sound and other kinds of signal and data.
In addition, as a kind of supplement, functional module integrating device 400 further include: the movement control being connect with control module 403 Molding block 406, action control module 406 are used for according to from the received action command of control module 403, and control function module is integrated The movement of device 400, functional module integrating device 400 execute movement include but is not limited to move horizontally, vertical shift with And rotation.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (15)

1. a kind of method of control function module work, the terminal device applied to user side, which is characterized in that the method packet It includes:
The first kind router connection request that user issues is received, according to the first kind router connection request, to local area network In each router send router search request, the first kind router in local area network where searching, wherein the first kind Router is the router that the Router Distinguisher of itself is registered in server;
Server after receiving the response that first kind router is returned according to the router search request, into internet Send the user account information of user's input;
It is bound in the Router Distinguisher for receiving confirmation user account information and first kind router that the server returns After message, connection is established with first kind router;Wherein, the Router Distinguisher of first kind router is preparatory by first kind router It is sent to server, and is stored in server;
The first functional module search request is sent to the first kind router that connection has been established, obtains the first kind router hair The functional module list sent;Wherein, the functional module list is functional module when enabling to the first kind router of connection The information of registration, address and functional information including functional module;
The functional module list is exported by display and/or loudspeaking mode, receive user's sending includes functional module name Claim and the first enabling control of address is requested;
The functional module that control request is directed to is enabled to described first and sends the first work order, is controlled described first and is enabled control It requests the functional module being directed to work, and receives the described first number for enabling the functional module passback that control request is directed to According to.
2. the method according to claim 1, wherein described enable the function that control request is directed to described first Module sends the first work order, controls the functional module that the first enabling control request is directed to and works, and receives institute The step of stating the data for the functional module passback that the control request of the first enabling is directed to, comprising:
Judge whether terminal device enables the functional module that control request is directed to first and be in same local area network, if it is, The functional module that control request is directed to is enabled to described first and sends the first work order, is controlled described first and is enabled control request For functional module work, and receive it is described first enable control request be directed to functional module passback data.
3. being asked the method according to claim 1, wherein sending router lookup in router each into local area network It asks, after the first kind router in local area network where searching, the method also includes:
If it is determined that the response for the first kind router that can not be received, then send for the function mould in the local area network where searching The functional module search request of block;
If receiving the response of functional module, the server into the internet sends the user account information;
After confirming the mark binding of the user account information and the functional module, connection is established with the functional module;
The second search request is sent to the functional module that connection has been established, it is online to receive registration from the functional module that connection has been established Functional module address and functional information;
Address and the functional information of the functional module are exported by display and/or loudspeaking mode, reception includes function mould Second enabling control request of block title and address;
The functional module that control request is directed to is enabled to described second and sends the second work order, is controlled described second and is enabled control It requests the functional module being directed to work, and receives the described second number for enabling the functional module passback that control request is directed to According to.
4. according to the method described in claim 3, it is characterized in that, sending for the function mould in the local area network where searching After the functional module search request of block, the method also includes:
If terminal device can not receive the response of functional module, third is sent to the server connected in internet and is looked into Request is looked for, to search and the address of the functional module of user account binding and functional information;
The address for the functional module bound from received server-side and user account and functional information, and by display and/or Address and functional information of the loudspeaking mode to user's output function module;
Receive user's input includes the third enabling control request of functional module title and address, sends third work to server It instructs, control is registered in the functional module work of the server, and receives the data of the server passback;Wherein, Three work orders are used to indicate third and enable the corresponding functional module in address for including in control request, make corresponding functional module Execute operation.
5. the method according to claim 1, wherein further include:
After receiving the needs of user's input and the functional module mark of user account binding in terminal device, by functional module Mark is sent to server, so that server determines whether user account is bound with the mark of functional module, and by the knot of judgement Fruit returns to terminal device;
If terminal device receives the module and the unbound information of user account of server transmission, the office where searching is issued The request of first kind router in the net of domain;
If terminal device receives the response of first kind router, the first binding is sent to the first kind router of connection and is referred to It enables, first kind router is made to receive and save the user account information of the address of module, functional information and binding;And make first Server sending module from class router to connection mark, address, functional information and the user account information of binding.
6. the method according to claim 1, wherein further include:
After the functional module mark that terminal device receives needs and user account binding, functional module mark is sent to clothes It is engaged in device, so that server determines whether user account is bound with the mark of functional module, and the result of judgement is returned into terminal Equipment;
If terminal device receives the functional module and the unbound information of user account of server transmission, issue where searching Local area network in first kind router request;
If terminal device receives the response of first kind router, the first binding instruction is sent to server, makes server Mark, address, functional information and the user account information of binding of functional module are received and saved from first kind router.
7. a kind of device of control function module work, the terminal device applied to user side, which is characterized in that described device packet Include: the first router searching unit, the first account information transmission unit, the first router connection unit, the first module are searched single Member, first list output unit and the first module control unit,
The first router searching unit, for receiving the first kind router connection request of user's sending, according to described the A kind of router connection request, into local area network, each router sends router search request, in the local area network where searching First kind router, wherein the first kind router is the router that the Router Distinguisher of itself is registered in server;
The first account information transmission unit, for being returned according to the router search request receiving first kind router After the response returned, the server into internet sends the user account information of user's input;
The first router connection unit, in the confirmation user account information and first for receiving the server return After the message of the Router Distinguisher binding of class router, connection is established with first kind router;Wherein, the road of first kind router It is identified by device and server is sent to by first kind router in advance, and be stored in server;
The first module searching unit is asked for sending the lookup of the first functional module to the first kind router that connection has been established It asks, obtains the functional module list that the first kind router is sent;Wherein, the functional module list is that functional module is opening First kind router registration from used time to connection information, address and functional information including functional module;
The first list output unit is received and is used for exporting the functional module list by display and/or loudspeaking mode What family issued includes the first enabling control request of functional module title and address;
First module control unit sends the first work for enabling the functional module that control request is directed to described first It instructs, controls the functional module that the first enabling control request is directed to and work, and receive the first enabling control and ask The data for asking the functional module being directed to return.
8. device according to claim 7, which is characterized in that first module control unit, comprising: local area network judgement Subelement and module communication subelement,
The local area network judgment sub-unit requests the functional module being directed to for judging whether terminal device enables control with first In same local area network, if it is, triggering the module communication subelement;
The module communication subelement refers to for enabling the functional module that control request is directed to described first and sending first and work Order controls the functional module that the first enabling control request is directed to and works, and receives the first enabling control and request For functional module passback data.
9. device according to claim 7, which is characterized in that further include: the second module searching unit, the second account information Transmission unit, the first module connection unit, third module searching unit, second list output unit and the control of the second module are single Member,
The second module searching unit, for each router to send road into local area network in the first router searching unit By device search request, after the first kind router in local area network where searching, if it is determined that the first kind routing that can not be received The response of device then sends the functional module search request for the functional module in the local area network where searching;
The second account information transmission unit, for the clothes in the response for receiving functional module, into the internet Business device sends the user account information;
The first module connection unit, for being bound in the mark for confirming the user account information and the functional module Afterwards, connection is established with the functional module;
The third module searching unit, for sending the second search request to the functional module that connection has been established, from having been established The functional module of connection receives the address for registering online functional module and functional information;
The second list output unit, for by display and/or loudspeaking mode export the functional module address and Functional information, reception include the second enabling control request of functional module title and address;
Second module control unit sends the second work for enabling the functional module that control request is directed to described second It instructs, controls the functional module that the second enabling control request is directed to and work, and receive the second enabling control and ask The data for asking the functional module being directed to return.
10. device according to claim 9, which is characterized in that further include: the 4th module searching unit, module information are defeated Unit and third module control unit out,
The 4th module searching unit, for sending in the second module searching unit in the local area network where searching Functional module functional module search request after, if terminal device can not receive the response of functional module, to mutual The server connected in networking sends third search request, to search and the address of the functional module of user account binding and function It can information;
The module information output unit, the address of the functional module for being bound from received server-side and user account and Functional information, and address from loudspeaking mode to user's output function module and functional information by display and/or;
The third module control unit, the third including functional module title and address for receiving user's input enable control Request is made, sends third work order to server, control is registered in the functional module work of the server, and described in reception The data of server passback;Wherein, it is corresponding to be used to indicate the address in third enabling control request included for third work order Functional module makes corresponding functional module execute operation.
11. device according to claim 7, which is characterized in that further include: first identifier transmission unit, the second router Searching unit and the first binding unit,
The first identifier transmission unit, for receiving the needs of user's input and the function of user account binding in terminal device The mark of functional module can be sent to server after module id so that server determine user account whether with function mould The mark of block is bound, and the result of judgement is returned to terminal device;
The second router searching unit, the module for receiving server transmission in terminal device are not tied up with user account When fixed information, the request of the first kind router in the local area network where searching is issued;
First binding unit, when for receiving the response of first kind router in terminal device, to the first kind of connection Router sends the first binding instruction, and first kind router is made to receive and save the address of module, functional information and binding User account information;And makes first kind router to the mark of the server sending module of connection, address, functional information and tie up Fixed user account information.
12. device according to claim 7, which is characterized in that further include: second identifier transmission unit, third router Searching unit and the second binding unit,
The second identifier transmission unit, the functional module for receiving needs and user account binding in terminal device identify Afterwards, functional module mark is sent to server, so that server determines whether user account is bound with the mark of functional module, And the result of judgement is returned into terminal device;
The third router searching unit, for receiving the functional module and user account of server transmission in terminal device When unbound information, the request of the first kind router in the local area network where searching is issued;
Second binding unit when for receiving the response of first kind router in terminal device, sends the to server One binding instruction, makes server receive and save the mark of functional module, address, functional information from first kind router and tie up Fixed user account information.
13. a kind of method of control function module work, the method are applied to router, which is characterized in that the method packet It includes:
Receive the road that institute's terminal device in a local network is sent after the first kind router connection request for receiving user's sending By device search request, search request response is sent to terminal device, so that server of the terminal device into internet sends and use The user account information of family input, wherein the router is the router that the Router Distinguisher of itself is registered in server;
After receiving the message of mark binding of user account information and router from the server connected in internet, with Terminal device establishes connection, wherein the Router Distinguisher of router is sent to server by router in advance, and is stored in service In device;
After receiving the first search request that the terminal device that connection has been established is sent, to terminal device sending function module List, by make the terminal device by display and/or loudspeaking in a manner of export the functional module list and receive user issue Include the first of functional module title and address enabling control request, further such that terminal device is enabled to described first The functional module that control request is directed to sends the first work order, controls described first and enables the functional module that control request is directed to It works, and receives the described first data for enabling the functional module passback that control request is directed to;Wherein, the functional module List is functional module when enabling to the information of the router registration of connection, address and function letter including functional module Breath.
14. according to the method for claim 13, which is characterized in that further include:
After the functional module address and functional information that router is received and saved from functional module, by the ground of functional module Location and functional information are sent to server.
15. a kind of functional module integrating device, which is characterized in that the functional module integrating device includes console module, data Transmission module and control module;Wherein,
The console module connects the control module, and connects the more than one functional module, and the console module connects The address of the functional module is received, and sends the instruction for being used to indicate functional module and working to the functional module;
The control module is connect with the console module, and the control module is connect with the data transmission module, institute It states and embedded OS is installed in control module;
The data transmission module is connect with the control module, and the data transmission module is connect with server, in institute After the mark binding for stating functional module integrating device confirmation user account information and the functional module integrating device, the number It is also connect with terminal device according to transmission module;
Functional module integrating device from after terminal device in a local network receives integrating device search request, the number Search request response is sent to terminal device according to transmission module;
The mark of confirmation user account information and functional module integrating device is received from server in functional module integrating device After the message of binding, functional module integrating device connects terminal device;Wherein, user account information is from terminal device to interconnection The server connected in net is sent, and the mark of functional module integrating device is by the data transmission module in functional module integrating device It sends in advance and is stored in server;
After the 4th search request is sent to control module by data transmission module, functional module integrating device is to terminal device Sending function module list;Wherein, functional module list is received and is protected from the functional module of connection by functional module integrating device The information deposited, address and functional information including functional module, the 4th search request by functional module integrating device data Transmission module is received from the terminal device that connection has been established;Wherein, the 4th search request for locating function module address with And the request of functional information, the functional module that the 4th search request is directed to are all connected to functional module integrating device;
Platform when functional module integrating device receives four work orders from terminal device, in functional module integrating device The functional module that module is directed to the 4th work order issues the 4th and executes operational order, the function that the 4th execution operational order is directed to Energy module works according to the operation information that the 4th execution operational order includes;Wherein, the 4th execution operational order is used to indicate the The address corresponding function module for including in four work orders executes operation.
CN201510005014.7A 2014-07-14 2015-01-06 The method and device of control function module work, functional module integrating device Active CN105323127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510005014.7A CN105323127B (en) 2014-07-14 2015-01-06 The method and device of control function module work, functional module integrating device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201410334697 2014-07-14
CN2014103346976 2014-07-14
CN201510005014.7A CN105323127B (en) 2014-07-14 2015-01-06 The method and device of control function module work, functional module integrating device

Publications (2)

Publication Number Publication Date
CN105323127A CN105323127A (en) 2016-02-10
CN105323127B true CN105323127B (en) 2018-12-11

Family

ID=55249765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510005014.7A Active CN105323127B (en) 2014-07-14 2015-01-06 The method and device of control function module work, functional module integrating device

Country Status (1)

Country Link
CN (1) CN105323127B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787342B (en) * 2016-02-26 2018-09-04 北京小米移动软件有限公司 A kind of method and apparatus of performance objective function
CN105722089B (en) * 2016-03-24 2019-05-03 浙江风向标科技有限公司 A kind of equipment authentication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012093300A1 (en) * 2011-01-03 2012-07-12 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and method for providing on-demand multicast of live media streams
CN102938729A (en) * 2012-10-30 2013-02-20 鸿富锦精密工业(深圳)有限公司 Remote control method for intelligent gateway, intelligent home system and appliances
CN102945029A (en) * 2012-10-31 2013-02-27 鸿富锦精密工业(深圳)有限公司 Intelligent gateway, smart home system and intelligent control method for home appliance equipment
CN102984039A (en) * 2012-11-06 2013-03-20 鸿富锦精密工业(深圳)有限公司 Intelligent gateway system and intelligent housing system and intelligent control method of household appliances

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012093300A1 (en) * 2011-01-03 2012-07-12 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and method for providing on-demand multicast of live media streams
CN102938729A (en) * 2012-10-30 2013-02-20 鸿富锦精密工业(深圳)有限公司 Remote control method for intelligent gateway, intelligent home system and appliances
CN102945029A (en) * 2012-10-31 2013-02-27 鸿富锦精密工业(深圳)有限公司 Intelligent gateway, smart home system and intelligent control method for home appliance equipment
CN102984039A (en) * 2012-11-06 2013-03-20 鸿富锦精密工业(深圳)有限公司 Intelligent gateway system and intelligent housing system and intelligent control method of household appliances

Also Published As

Publication number Publication date
CN105323127A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
CN102945029B (en) Intelligent gateway, smart home system and intelligent control method for home appliance equipment
CN103019197B (en) Method and system for conducting long-range control on intelligent terminal device
CN103051693B (en) Apparatus control method and mobile communication terminal
US20140129006A1 (en) Smart gateway, smart home system and smart controlling method thereof
CN103780577B (en) Implementation method, device and the terminal of Internet of Things application
US20140121786A1 (en) Smart gateway, smart home system and smart remote control method thereof
CN105371426A (en) Intelligent air purifying system and use method thereof
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN103324406B (en) A kind of control method and a kind of controlled plant
CN103581161A (en) Zero setting system and method for network device
CN105704226A (en) Intelligent terminal and network configuration method thereof
CN103201689B (en) There is field panel and the access method thereof of embedded web server
CN103929746A (en) Internet-surfing configuration method for equipment of Internet of things, equipment of Internet of things and user equipment
KR20080036606A (en) Network system
CN104200644B (en) Equipment remote-control method, function terminal and intelligent terminal
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN108055182B (en) Open type intelligent home system
CN104181913A (en) Testing system used for intelligent household system
CN104702683A (en) Remote-control method of display terminal based on network
CN104869123A (en) Network access control method and server
CN105323127B (en) The method and device of control function module work, functional module integrating device
CN106161500A (en) The communication module of a kind of remote wireless control electric equipment and control method
CN106209423B (en) Virtual desktop distribution method and device
KR20070109076A (en) Control method and home network control system of long distance computer power supply using home gateway
CN104967572A (en) Network access method, apparatus and equipment

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