CN105323127A - Method and device for controlling functional module to work, and functional module integrated device - Google Patents

Method and device for controlling functional module to work, and functional module integrated device Download PDF

Info

Publication number
CN105323127A
CN105323127A CN201510005014.7A CN201510005014A CN105323127A CN 105323127 A CN105323127 A CN 105323127A CN 201510005014 A CN201510005014 A CN 201510005014A CN 105323127 A CN105323127 A CN 105323127A
Authority
CN
China
Prior art keywords
module
router
function module
function
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.)
Granted
Application number
CN201510005014.7A
Other languages
Chinese (zh)
Other versions
CN105323127B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method and device for controlling a functional module to work, and a functional module integrated device, wherein the method for controlling the functional module to work comprises the following steps that: after sending a searching request, terminal equipment receives a response of the first kind of router in a local area network, where the first kind of router is; connection between the terminal equipment and the first kind of router is established after confirming that user account information is bound to the identifier of the first kind of router; after sending a first searching request to the connected first kind of router, the terminal equipment receives a functional module list from the first kind of router; and, after receiving a first start control request including the name and the address of the functional module, the terminal equipment sends a first working instruction to the functional module aiming at the first start control request and controls the functional module aiming at the first start control request to work. By means of the method disclosed by the invention, users can directly control the functional module to work conveniently through the terminal equipment after finding out the functional module in need of being used.

Description

Method and device for controlling function module to work and function module integration device
Technical Field
The invention relates to the technical field of intelligent home furnishing, in particular to a method and a device for controlling the working of a functional module and a functional module integration device.
Background
With the continuous development of science and technology, various types of functional modules for household intelligence emerge in large numbers, and the functions that can be realized by the functional modules include but are not limited to temperature detection, humidity detection, gas concentration detection and the like. The functional modules meet the requirements of users on obtaining information in and around the house and the requirements of users on controlling equipment in and around the house.
At present, a common method for controlling a function module is to install a program for controlling the function module to work in a terminal device (such as a mobile phone, a tablet computer, a PC, etc.) of a user; furthermore, the functional modules that need to control the operation are connected to the bus of the gateway. When a user needs to use a certain function module, the user needs to send an instruction to the gateway from the terminal device installed with the program, the gateway forwards the instruction to the function module connected to the bus and needing to be controlled, and the gateway returns data received from the function module to the terminal device. Therefore, under such a framework, the gateway is indispensable because the terminal device needs to transmit the control command to the function module and receive the returned data from the control module, and the command and the data need to be transmitted by the gateway. When the functional module in a certain area range cannot be connected with the gateway, the user cannot use the terminal device to control the functional module.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for controlling the work of a functional module and a functional module integration device, so that a user can directly control the work of the intelligent home functional module by using terminal equipment and the terminal equipment can directly receive data returned by the functional module.
In order to achieve the above object, an embodiment of the present invention discloses a method for controlling the operation of a functional module, which is applied to a terminal device on a user side, and the method includes:
receiving a first-class router connection request sent by a user, sending a router search request to each router in a local area network according to the first-class router connection request, and searching a first-class router in the local area network, wherein the first-class router is a router which registers the router identification of the first-class router in a server;
after receiving a response returned by the first type of router according to the router searching request, sending user account information input by a user to a server in the Internet;
after receiving a message returned by the server and confirming that the user account information is bound with the router identification of the first type of router, establishing connection with the first type of router; the router identification of the first type router is sent to the server by the first type router in advance and is stored in the server;
sending a first function module searching request to a first type router which has established connection, and obtaining a function module list sent by the first type router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the function module and function information;
outputting the function module list in a display and/or loudspeaking mode, and receiving a first starting control request which is sent by a user and comprises a function module name and an address;
and sending a first working instruction to the function module to which the first start control request is directed, controlling the function module to which the first start control request is directed to work, and receiving data returned by the function module to which the first start control request is directed.
Optionally, the step of sending a first work instruction to the function module to which the first start control request is directed, controlling the function module to which the first start control request is directed to work, and receiving data returned by the function module to which the first start control request is directed includes:
and judging whether the terminal equipment and the function module aimed at by the first starting control request are in the same local area network, if so, sending a first working instruction to the function module aimed at by the first starting control request, controlling the function module aimed at by the first starting control request to work, and receiving data returned by the function module aimed at by the first starting control request.
Optionally, after sending a router search request to each router in the local area network and searching for the first type of router in the local area network, the method further includes:
if the response of the first type router cannot be received, sending a function module searching request for searching the function module in the local area network;
if the response of the function module is received, the user account information is sent to a server in the Internet;
after confirming that the user account information is bound with the identifier of the functional module, establishing connection with the functional module;
sending a second search request to the function module with the established connection, and receiving the address and the function information of the function module which is registered on line from the function module with the established connection;
outputting the address and the function information of the function module in a display and/or loudspeaking mode, and receiving a second starting control request comprising the name and the address of the function module;
and sending a second working instruction to the function module to which the second start control request is directed, controlling the function module to which the second start control request is directed to work, and receiving data returned by the function module to which the second start control request is directed.
Optionally, after sending a function module search request for searching a function module in the local area network, the method further includes:
if the terminal equipment cannot receive the response of the function module, sending a third searching request to a server connected in the Internet to search the address and the function information of the function module bound with the user account;
receiving the address and the function information of the function module bound with the user account from the server side, and outputting the address and the function information of the function module to the user in a display and/or loudspeaking mode;
receiving a third starting control request which is input by a user and comprises a function module name and an address, sending a third working instruction to the server, controlling the function module registered in the server to work, and receiving data returned by the server; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
Optionally, the method further includes:
after the terminal equipment receives a functional module identifier which is input by a user and needs to be bound with a user account, the functional module identifier is sent to the server, so that the server judges whether the user account is bound with the functional module identifier or not, and returns a judgment result to the terminal equipment;
if the terminal equipment receives the information that the module and the user account sent by the server are not bound, sending a request for searching a first type of router in the local area network;
if the terminal equipment receives the response of the first-class router, a first binding instruction is sent to the connected first-class router, so that the first-class router receives and stores the address, the function information and the bound user account information of the module; and the first type router is enabled to send the identification, address, function information and bound user account information of the module to the connected server.
Optionally, the method further includes:
after the terminal equipment receives the function module identification needing to be bound with the user account, the function module identification is sent to the server, so that the server judges whether the user account is bound with the identification of the function module or not, and returns the judged result to the terminal equipment;
if the terminal equipment receives the information that the functional module and the user account sent by the server are not bound, sending a request for searching a first type of router in the local area network;
and if the terminal equipment receives the response of the first type of router, sending a first binding instruction to the server, so that the server receives and stores the identification, the address, the function information and the bound user account information of the function module from the first type of router.
An apparatus for controlling the operation of a functional module, which is applied to a terminal device on a user side, the apparatus comprising: a first router searching unit, a first account information sending unit, a first router connecting unit, a first module searching unit, a first list output unit and a first module control unit,
the first router searching unit is used for receiving a first type of router connection request sent by a user, sending a router searching request to each router in a local area network according to the first type of router connection request, and searching a first type of router in the local area network, wherein the first type of router is a router which registers the router identification of the first type of router in a server;
the first account information sending unit is used for sending user account information input by a user to a server in the Internet after receiving a response returned by the first type of router according to the router searching request;
the first router connection unit is used for establishing connection with the first type of router after receiving a message returned by the server and confirming that the user account information is bound with the router identifier of the first type of router; the router identification of the first type router is sent to the server by the first type router in advance and is stored in the server;
the first module searching unit is used for sending a first function module searching request to a first type of router which has established connection, and obtaining a function module list sent by the first type of router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the function module and function information;
the first list output unit is used for outputting the function module list in a display and/or loudspeaking mode and receiving a first starting control request which is sent by a user and comprises a function module name and an address;
the first module control unit is configured to send a first working instruction to the function module to which the first start control request is directed, control the function module to which the first start control request is directed to work, and receive data returned by the function module to which the first start control request is directed.
Optionally, the first module control unit includes: a local area network judging subunit and a module communication subunit,
the local area network judging subunit is used for judging whether the terminal equipment and the function module aimed at by the first starting control request are in the same local area network, and if so, the module communication subunit is triggered;
the module communication subunit is configured to send a first working instruction to the function module targeted by the first start control request, control the function module targeted by the first start control request to work, and receive data returned by the function module targeted by the first start control request.
Optionally, the method further includes: a second module searching unit, a second account information sending unit, a first module connecting unit, a third module searching unit, a second list output unit and a second module control unit,
the second module searching unit is configured to send a router searching request to each router in the local area network by the first router searching unit, and after searching for the first type of router in the local area network, send a function module searching request for searching for a function module in the local area network if it is determined that a response of the first type of router cannot be received;
the second account information sending unit is used for sending the user account information to a server in the Internet when receiving the response of the functional module;
the first module connecting unit is used for establishing connection with the functional module after confirming that the user account information is bound with the identifier of the functional module;
the third module searching unit is used for sending a second searching request to the function module with the established connection, and receiving the address and the function information of the function module which is registered on line from the function module with the established connection;
the second list output unit is used for outputting the address and the function information of the function module in a display and/or loudspeaking mode and receiving a second starting control request comprising the name and the address of the function module;
and the second module control unit is configured to send a second working instruction to the function module to which the second start control request is directed, control the function module to which the second start control request is directed to work, and receive data returned by the function module to which the second start control request is directed.
Optionally, the method further includes: a fourth module searching unit, a module information output unit and a third module control unit,
the fourth module searching unit is configured to, after the second module searching unit sends a function module searching request for searching for a function module in the local area network, send a third searching request to a server connected to the internet if the terminal device cannot receive a response from the function module, so as to search for an address and function information of the function module bound to the user account;
the module information output unit is used for receiving the address and the function information of the function module bound with the user account from the server side and outputting the address and the function information of the function module to the user in a display and/or loudspeaking mode;
the third module control unit is used for receiving a third starting control request which is input by a user and comprises a function module name and an address, sending a third working instruction to the server, controlling the function module registered in the server to work, and receiving data returned by the server; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
Optionally, the method further includes: a first identifier sending unit, a second router searching unit and a first binding unit,
the first identification sending unit is used for sending the identification of the functional module to the server after the terminal equipment receives the identification of the functional module which is input by the user and needs to be bound with the user account, so that the server judges whether the user account is bound with the identification of the functional module or not and returns the judged result to the terminal equipment;
the second router searching unit is used for sending a request for searching the first type of router in the local area network when the terminal equipment receives the information that the module sent by the server is not bound with the user account;
the first binding unit is used for sending a first binding instruction to the connected first-class router when the terminal equipment receives the response of the first-class router, so that the first-class router receives and stores the address, the function information and the bound user account information of the module; and the first type router is enabled to send the identification, address, function information and bound user account information of the module to the connected server.
Optionally, the method further includes: a second identifier sending unit, a third router search unit and a second binding unit,
the second identifier sending unit is used for sending the function module identifier to the server after the terminal equipment receives the function module identifier needing to be bound with the user account, so that the server judges whether the user account is bound with the identifier of the function module or not and returns the judged result to the terminal equipment;
the third router searching unit is used for sending a request for searching the first type of router in the local area network when the terminal equipment receives the information that the functional module and the user account which are sent by the server are not bound;
and the second binding unit is used for sending a first binding instruction to the server when the terminal equipment receives the response of the first type of router, so that the server receives and stores the identification, the address, the function information and the bound user account information of the function module from the first type of router.
A method for controlling the operation of a functional module, the method being applied to a router, the method comprising:
receiving a router searching request sent by terminal equipment in a local area network after receiving a first-class router connection request sent by a user, and sending a searching request response to the terminal equipment so that the terminal equipment sends user account information input by the user to a server in the Internet, wherein the router is a router which registers a router identification of the router in the server;
after receiving a message that user account information is bound with an identifier of a router from a server connected in the Internet, establishing connection with a terminal device, wherein the router identifier of the router is sent to the server by the router in advance and is stored in the server;
after receiving a first search request sent by a terminal device with an established connection, sending a function module list to the terminal device, so that the terminal device outputs the function module list in a display and/or loudspeaking manner and receives a first enabling control request which is sent by a user and includes a function module name and an address, further enabling the terminal device to send a first working instruction to a function module to which the first starting control request is directed, control the function module to which the first starting control request is directed to work, and receive data returned by the function module to which the first starting control request is directed; the function module list is information registered with a connected router when the function module is enabled, and comprises an address of the function module and function information.
Optionally, the method further includes:
after the router receives and stores the function module address and the function information from the function module, the router transmits the function module address and the function information to the server.
A functional module integrated device comprises a platform module, a data transmission module and a control module; wherein,
the platform module is connected with the control module and more than one functional module, receives the address of the functional module and sends an instruction for indicating the functional module to work to the functional module;
the control module is connected with the platform module, is connected with the data transmission module and is internally provided with an embedded operating system;
the data transmission module is connected with the control module, is connected with a server, and is also connected with terminal equipment after the functional module integration device confirms that the user account information is bound with the identifier of the functional module integration device;
after the function module integration device receives an integration device search request from the terminal equipment in the local area network, the data transmission module sends a search request response to the terminal equipment;
after the function module integration device receives a message for confirming that the user account information is bound with the identifier of the function module integration device from the server, the function module integration device is connected with the terminal equipment; the user account information is sent to a server connected in the Internet by terminal equipment, and the identification of the function module integrated device is sent in advance by a data transmission module in the function module integrated device and is stored in the server;
after the data transmission module sends the fourth search request to the control module, the functional module integration device sends a functional module list to the terminal equipment; the function module list is information which is received and stored by the function module integration device from the connected function modules, and comprises the addresses of the function modules and function information, and the fourth search request is received by the data transmission module of the function module integration device from the terminal equipment which has established the connection; the fourth search request may be a request for searching for an address and function information of the function module, and the function modules targeted by the fourth search request are all connected to the function module integration device;
when the functional module integration device receives a fourth operating instruction from the terminal device, a platform module in the functional module integration device sends a fourth execution operating instruction to a functional module targeted by the fourth operating instruction, and the functional module targeted by the fourth execution operating instruction works according to operating information included in the fourth execution operating instruction; and the fourth execution operation instruction is used for indicating the functional module corresponding to the address included in the fourth working instruction to execute the operation.
The technical scheme of the invention is that after a terminal device sends a search request, the terminal device receives a response of a first type router in a local area network, and after user account information is bound with a first type router identifier, the terminal device establishes connection with the first type router; the method comprises the steps that after a terminal device sends a first search request to a first type router which is connected with the terminal device, a functional module list is received from the first type router; after receiving a first enabling control request comprising the name and the address of the function module, the terminal equipment sends a first work instruction to the function module to which the first enabling control request aims. The user can select the powered-on functional module in advance according to the own requirement, when a certain function needs to be realized, the device list of the registered online functional module is obtained from the first-class router in the local area network, the functional module needing to be controlled can be selected, the work of the functional module is directly controlled, the data returned by the functional module is directly obtained, and the dependence on the first-class router when the terminal module controls the working of the functional module is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for controlling the operation of a functional module in accordance with an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a list display output of functional modules according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for controlling the operation of a function block provided in the practice of the present invention;
FIG. 4 is a flow chart of another method for controlling the operation of a function block provided in the practice of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for controlling the operation of a functional module according to an embodiment of the present invention;
FIG. 6 is a flow chart of another method for controlling the operation of a function block in accordance with the present invention;
FIG. 7 is a flow chart of a method for operating a function module in accordance with an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a functional module integrated device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for controlling a function module to work according to an embodiment of the present invention is applied to a terminal device on a user side, and the method may include:
s100, receiving a first-class router connection request sent by a user, sending a router search request to each router in a local area network according to the first-class router connection request, and searching a first-class router in the local area network, wherein the first-class router is a router which registers a router identifier of the first-class router in a server;
specifically, the terminal device in the embodiment of the present invention may be a device that can receive a user instruction and feed back information to a user, such as a mobile phone, a tablet computer, and a PC. The devices can be networked with the first type of router, the functional module and the server in a wireless communication mode or a wired communication mode such as WIFI, Bluetooth and infrared rays.
Specifically, the first type of router is a device for connecting the functional module and connecting the internet and the local area network; each router of the first type has a unique identity and the router of the first type may register its own router identity with the server. By registering the router identification with the server, the server can know the use condition of each router, and identify each router according to the router identification, so as to communicate with each router.
Specifically, the router identifier may be a device identifier or a predetermined encrypted digital code.
Specifically, the terminal device may be equipped with a client portion of the present invention, and the client may establish communication with the server. The client can help the terminal device establish connection and communication with the first type router and the server in the internet. In addition, the client can also establish communication directly with the first type of router.
S200, after receiving a response returned by the first type of router according to the router searching request, the terminal equipment sends user account information input by a user to a server in the Internet;
specifically, the account information of the user may be a user name and a password. The user account information may be set by the user, may be mobile device identification information, or may be specified by the server. The user can register the user account in the server, and the router identifier is registered in the server, so that the server can bind the user account and the router identifier used by the user, and the user and the router can be identified. For example: after the router of the user is connected with the server, the server can know which router of the user is connected with the server according to the binding relationship between the router identification and the user account information. Similarly, after a user logs in to the server by using an account, the server can also know which router the user wants to use to connect with the server.
S300, after receiving a message which is returned by the server and confirms that the user account information is bound with the router identification of the first type of router, the terminal equipment establishes connection with the first type of router; the router identification of the first type router is sent to the server by the first type router in advance and is stored in the server;
s400, the terminal equipment sends a first function module searching request to the first type of router which has established connection, and obtains a function module list sent by the first type of router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the function module and function information;
specifically, the functional modules may include, but are not limited to, an air quality sensor for detecting air quality, a gas content sensor for detecting a specific gas content in the air, an air temperature sensor for detecting temperature, an air humidity sensor for detecting humidity, a catalytic combustion type sensor and a metal oxide semiconductor sensor for monitoring gas leakage, a sound sensor and a sound wave sensor for monitoring sound, a Passive Infrared (PIR) motion sensor for detecting motion, a far infrared flame sensor and an ultraviolet flame sensor for detecting flame, and the like.
Specifically, the function information may include: information indicating functions that the functional module can implement; for example, corresponding to the aforementioned temperature detection module, the function information transmitted by the temperature detection module to the first type of router includes information indicating that the module has a temperature detection function.
S500, the terminal equipment outputs the function module list in a display and/or loudspeaking mode, and receives a first starting control request which is sent by a user and comprises the name and the address of the function module;
specifically, since the function module list is output and includes the address of the function module and the function information, the user can issue the first enabling control request by selecting a function of a function module in the function module list. For example: and outputting the address corresponding to the name of the functional module and the functional information in a display mode, wherein the functional information of the functional module is embodied by the control item of the functional module. In this way, after the user clicks a certain control item for a certain functional module in the functional module list, the name and address of the functional module corresponding to the instruction can be determined, and thus the click instruction is the first enabling control request.
Referring to fig. 2, a function module list displayed in a mobile phone screen includes two function modules, namely, a function module 1 and a function module 2, an address of the function module 1 is an address 1, an address of the function module 2 is an address 2, a control item of the function module 1 includes control items 1 to 4, and a control item of the function module 2 includes control items 5 to 8. The user may click on a control item of the function module 1 or the function module 2 to control the function module 1 or the function module 2.
Of course, since the user does not need to know the address of the function module, the address of the function module may not be displayed in other embodiments of the present invention.
S600, sending a first working instruction to the function module to which the first start control request is directed, controlling the function module to which the first start control request is directed to work, and receiving data returned by the function module to which the first start control request is directed.
Because the terminal device obtains the address of the function module, and the terminal device, the first type router and each function module are all in the same local area network, the terminal device can directly send the first starting control request to the function module through the local area network, and can also directly receive the data returned by the function module through the local area network.
Specifically, the first start control request may be: and the user inputs a request for controlling the function module to work to the terminal equipment. The user can send a first starting control request to the terminal equipment through a keyboard, a mouse, a touch screen and the like.
Specifically, the first work instruction may be: the terminal device sends a request for controlling the functional module to the functional module, and the first work instruction includes an address of the functional module which needs to work according to the request and work information which needs to be executed by the functional module.
For example, in an embodiment of controlling the operation of the temperature detection module, a method for controlling the operation of the functional module according to an embodiment of the present invention may include the following steps:
a user sends a first-class router connection request to a terminal device, the terminal device is requested to be in data connection with a first-class router, and the terminal device sends a request for searching the first-class router in a local area network; after the terminal equipment receives the response of the first type of router, the terminal equipment sends user account information input by a user and received by the terminal equipment to a server in the Internet, and after the server returns a confirmation that the user account information is bound with the first type of router identifier to the terminal equipment, the terminal equipment is connected with the first type of router; the identification of the first type router is sent by the first type router in advance and stored in the server;
the method comprises the steps that after a terminal device sends a first search request to a first type router which is connected with the terminal device, a functional module list is received from the first type router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the temperature detection module and the function information of the temperature detection module;
after the terminal equipment outputs a function module list to a user in a display and/or loudspeaking mode, the terminal equipment sends a first starting control request according to the received first starting control request sent by the user, wherein the first starting control request comprises a function module which is selected by the user and needs to be controlled to work, and the terminal equipment sends a first working instruction to a temperature detection module aiming at the first starting control request; the first work order comprises the name and address of the temperature detection module and information enabling the temperature detection module to execute operation.
Therefore, the terminal equipment can acquire the function module list from the first type router after being connected with the first type router, so as to acquire and select the available function modules; the terminal equipment is directly connected with the functional module to be used, so that the terminal equipment can directly control the work of the functional module and directly obtain the data returned by the functional module, and the dependence of the terminal module on the first type of router when the functional module is controlled to work is reduced.
In other embodiments of the present invention, the first work instruction sent in S600 may be sent to the function module by the terminal device after the terminal device receives the first enabling control request and determines that the terminal device and the function module to which the first enabling control request is directed are in the same local area network.
Namely: in other embodiments of the present invention, S600 may include:
and judging whether the terminal equipment and the function module aimed at by the first starting control request are in the same local area network, if so, sending a first working instruction to the function module aimed at by the first starting control request, controlling the function module aimed at by the first starting control request to work, and receiving data returned by the function module aimed at by the first starting control request.
Therefore, the first working instruction can be sent out after the terminal equipment and the function module are confirmed to be in the same local area network again, the situation that the terminal equipment sends the first working instruction to the function module in the local area network if the terminal equipment and the function module cannot be connected in the same local area network is avoided, the time consumed by repeatedly searching the first type of router or the function module due to the fact that the terminal equipment cannot send the first working instruction is saved, and effective transmission of the first working instruction is facilitated.
The method for controlling the function module to work provided by the embodiment of the invention is characterized in that after a terminal device sends a search request, the terminal device receives a response of a first type router in a local area network where the terminal device is located, and after user account information is bound with a first type router identifier, the terminal device is connected with the first type router; the method comprises the steps that after a terminal device sends a first search request to a first type router which is connected with the terminal device, a functional module list is received from the first type router; after receiving a first enabling control request comprising the name and the address of the function module, the terminal equipment sends a first work instruction to the function module to which the first enabling control request aims. The user can select the powered-on functional module in advance according to the own requirement, when a certain function needs to be realized, the device list of the registered online functional module is obtained from the first-class router in the local area network, the functional module needing to be controlled can be selected, the work of the functional module is directly controlled, the data returned by the functional module is directly obtained, and the dependence on the first-class router when the terminal module controls the working of the functional module is reduced.
On the basis of the embodiment shown in fig. 1, as shown in fig. 3, another method for controlling the operation of a functional module according to the embodiment of the present invention may further include, after S100:
s200', if the response of the first type of router cannot be received is judged, the terminal equipment sends a function module searching request for searching the function module in the local area network;
specifically, the terminal device may send the function module search request through a second type of router in the local area network.
S300', if a response of the functional module is received, the terminal equipment sends the user account information to a server in the Internet;
the function module in the local area network can be connected with the second type of router, and the terminal device and the server in the internet are connected with the second type of router. The second type of router is a device for connecting the function module and connecting the internet and the local area network, and the second type of router does not have a device identifier that can be registered in the server.
Therefore, the terminal device can send the user account information to the server in the internet through the second type router.
S400', after the user account information is confirmed to be bound with the identification of the functional module, the terminal equipment is connected with the functional module;
s500', the terminal device sends a second search request to the function module which has established connection, and receives the address and the function information of the function module which is registered on line from the function module which has established connection;
the function module which is registered on line is connected with the second type router, and the identification of the function module is stored in the server in advance; the second search request is a request sent by the terminal device to the function module with the established connection, and the second search request is used for searching the function module connected with the second type of router in the local area network.
S600', the terminal equipment outputs the address and the function information of the function module in a display and/or loudspeaking mode, and receives a second starting control request comprising the name and the address of the function module;
s700', the terminal device sends a second working instruction to the function module to which the second start control request is directed, controls the function module to which the second start control request is directed to work, and receives data returned by the function module to which the second start control request is directed.
For convenience, S200 to S600 are not shown in fig. 3.
The second work instruction may be used to instruct the functional module corresponding to the address included in the second enabling control request, so that the corresponding functional module executes the operation.
Therefore, the terminal equipment can obtain the address and the function information of the function module from the second type router which is not the first type router, and control the function module according to the address and the function information.
When the functional module cannot be connected with the first type of router and can only be connected with the second type of router, the functional module can send the address and the function information of the functional module to the second type of router, and the second type of router sends the address and the function information of the functional module to the server.
The second work instruction may be sent from the terminal device to the function module after the terminal device receives the second enabling control request and determines that the terminal device and the function module targeted by the second enabling control request are in the same local area network. Namely: s700' may specifically include: after the terminal device and the function module targeted by the second start control request are determined to be in the same local area network, the terminal device sends a second working instruction to the function module targeted by the second start control request, controls the function module targeted by the second start control request to work, and receives data returned by the function module targeted by the second start control request.
Therefore, the second working instruction can be sent out after the terminal equipment and the function module are confirmed to be in the same local area network again, the situation that the terminal equipment sends the second working instruction to the function module in the local area network if the terminal equipment and the function module cannot be connected in the same local area network is avoided, the time consumed by repeatedly searching the function module due to the fact that the terminal equipment cannot send the second working instruction is saved, and effective transmission of the second working instruction is facilitated.
As shown in fig. 4, on the basis of the embodiment shown in fig. 3, another method for controlling the operation of a functional module according to the embodiment of the present invention may further include, after S200':
s300', if the terminal equipment cannot receive the response of the function module, the terminal equipment sends a third searching request to a server connected in the Internet so as to search the address and the function information of the function module bound with the user account;
s400', receiving the address and the function information of the function module bound with the user account from the server side, and outputting the address and the function information of the function module to the user in a display and/or loudspeaking mode;
wherein, S400 ″ may specifically include:
if the function module is registered in the server, the terminal equipment acquires the address and the function information of the function module bound with the user account from the function module response received by the connected server, and outputs the address and the function information of the function module to the user in a display and/or loudspeaking mode; the address and the function information of the function module are the address and the function information of the function module registered in the server after the function module is connected with the second type router.
If the server is connected with the first type of router, the terminal equipment obtains a function module equipment list stored in the first type of router from a function module response received by the connected server, wherein the first type of router is registered on the server, and the function module equipment list comprises the address and the function information of the function module.
Therefore, when the terminal device is connected with the server, the address and the function information of the function module connected with the first type server or the address and the function information of the function module connected with the second type server can be obtained, so that the terminal device can control the work of the function module by sending a third work instruction containing the address and the function information of the function module.
S500', receiving a third starting control request comprising a name and an address of a function module input by a user, sending a third working instruction to a server, controlling the function module registered in the server to work, and receiving data returned by the server; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
For convenience, S200 to S600 and S300 'to S700' are not shown in fig. 4.
The third work instruction may be sent from the terminal device to the server after the terminal device receives a third enabling control request input by the user and determines that the terminal device and the first type router and/or the function module registered in the server are not in the same local area network.
Namely: s500 "may specifically include:
the method comprises the steps that terminal equipment receives a third starting control request which is input by a user and comprises a function module name and an address, and sends a third working instruction to a server after judging that the terminal equipment and a first type router and/or a function module which are registered in the server are not in the same local area network, the function module which is registered in the server is controlled to work, and data returned by the server are received; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
On the basis of the embodiment shown in fig. 1, another method for controlling the operation of a functional module according to the embodiment of the present invention may further include:
after the terminal equipment receives a function module identifier which is input by a user and needs to be bound with a user account, the terminal equipment sends the identifier of the function module to the server, so that the server judges whether the user account is bound with the identifier of the function module or not, and returns the judged result to the terminal equipment;
if the terminal equipment receives the information that the module and the user account sent by the server are not bound, the terminal equipment sends a request for searching a first type of router in the local area network;
if the terminal equipment receives the response of the first-class router, the terminal equipment sends a first binding instruction to the connected first-class router, so that the first-class router receives and stores the address, the function information and the bound user account information of the module; and the first type router is enabled to send the identification, address, function information and bound user account information of the module to the connected server.
Therefore, the method and the device can realize that the terminal equipment is connected with the first type router in the network according to the network where the functional module required to be controlled by the terminal equipment is located, so that the user account information and the identification of the functional module in the first type router are bound.
On the basis of the embodiment shown in fig. 1, another method for controlling the operation of a functional module according to the embodiment of the present invention may further include:
after the terminal equipment receives the function module identification needing to be bound with the user account, the terminal equipment sends the function module identification to the server, so that the server judges whether the user account is bound with the identification of the function module or not, and returns the judged result to the terminal equipment;
if the terminal equipment receives the information that the functional module and the user account sent by the server are not bound, the terminal equipment sends a request for searching a first type of router in the local area network;
and if the terminal equipment receives the response of the first type of router, the terminal equipment sends a first binding instruction to the server, so that the server receives and stores the identification, the address, the function information and the bound user account information of the function module from the first type of router.
Therefore, the network where the functional module needs to be controlled according to the terminal equipment can be realized, and the server connected with the terminal equipment can bind the user account information with the identification of the functional module.
Therefore, after the identifier of the functional module is bound with the user account, the functional module is associated with the user account, so that the working of the functional module can be conveniently controlled under the conditions that the first type of router is added and the functional module is safe to use in future use.
On the basis of the embodiment shown in fig. 1, another method for controlling the operation of a functional module according to the embodiment of the present invention may further include:
before the terminal equipment is connected with the server, the terminal equipment sends the received user account information input by the user to the server and receives a comparison result from the server, wherein the comparison result is obtained by comparing the user account information sent by the terminal equipment with the user account information stored by the server; and if the comparison result is the same, determining that the received user account information input by the user passes the authentication, and connecting the terminal equipment with the server.
Therefore, the user account information can be verified before the control function module works, and the safety of the work of the control function module is improved.
In the above embodiments, the functional module and the first type router may be connected in a PLC power line carrier communication manner.
Therefore, the functional module can be connected with the first type of router plugged in the power socket within a certain range in a manner of plugging the conventional power socket, so that the plug-and-play characteristic of the functional module is enhanced; when the router is used, the first type of router can be connected with the functional module without laying cables or adopting a wireless communication mode which easily causes signal attenuation, the use of the functional module is facilitated, the application range of the functional module is enlarged, and the use efficiency of a user is improved.
Corresponding to the embodiment of the method, the invention also provides a device for controlling the function module to work.
As shown in fig. 5, an apparatus for controlling operations of a functional module according to an embodiment of the present invention is applied to a terminal device on a user side, and the apparatus may include: a first router lookup unit 100, a first account information transmission unit 200, a first router connection unit 300, a first module lookup unit 400, a first list output unit 500, and a first module control unit 600,
the first router searching unit 100 is configured to receive a first-class router connection request sent by a user, send a router search request to each router in a local area network according to the first-class router connection request, and search for a first-class router in the local area network, where the first-class router is a router that registers its own router identifier with a server;
the first account information sending unit 200 is configured to send user account information input by a user to a server in the internet after receiving a response returned by the first type of router according to the router searching request;
the first router connection unit 300 is configured to establish connection with the first type of router after receiving a message returned by the server and confirming that the user account information is bound to the router identifier of the first type of router; the router identification of the first type router is sent to the server by the first type router in advance and is stored in the server;
the first module searching unit 400 is configured to send a first function module searching request to a first type of router with which a connection has been established, and obtain a function module list sent by the first type of router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the function module and function information;
the first list output unit 500 is configured to output the function module list in a display and/or loudspeaking manner, and receive a first enabling control request including a name and an address of a function module sent by a user;
specifically, since the function module list is output and includes the address of the function module and the function information, the user can issue the first enabling control request by selecting a function of a function module in the function module list. For example: and outputting the address corresponding to the name of the functional module and the functional information in a display mode, wherein the functional information of the functional module is embodied by the control item of the functional module. In this way, after the user clicks a certain control item for a certain functional module in the functional module list, the name and address of the functional module corresponding to the instruction can be determined, and thus the click instruction is the first enabling control request.
The first module control unit 600 is configured to send a first working instruction to the function module to which the first start control request is directed, control the function module to which the first start control request is directed to work, and receive data returned by the function module to which the first start control request is directed.
Specifically, the first start control request may be: and the user inputs a request for controlling the function module to work to the terminal equipment. The user can send a first starting control request to the terminal equipment through a keyboard, a mouse, a touch screen and the like.
Specifically, the first work instruction may be: the terminal device sends a request for controlling the functional module to the functional module, and the first work instruction includes an address of the functional module which needs to work according to the request and work information which needs to be executed by the functional module.
The device for controlling the function module to work provided by the embodiment of the invention is characterized in that after a terminal device sends a search request, the terminal device receives a response of a first type router in a local area network where the terminal device is located, and after user account information is bound with a first type router identifier, the terminal device is connected with the first type router; the method comprises the steps that after a terminal device sends a first search request to a first type router which is connected with the terminal device, a functional module list is received from the first type router; after receiving a first enabling control request comprising the name and the address of the function module, the terminal equipment sends a first work instruction to the function module to which the first enabling control request aims. The user can select the powered-on functional module in advance according to the own requirement, when a certain function needs to be realized, the device list of the registered online functional module is obtained from the first-class router in the local area network, the functional module needing to be controlled can be selected, the work of the functional module is directly controlled, the data returned by the functional module is directly obtained, and the dependence on the first-class router when the terminal module controls the working of the functional module is reduced.
The first module control unit 600 may include: a local area network judging subunit and a module communication subunit,
the local area network judging subunit is used for judging whether the terminal equipment and the function module aimed at by the first starting control request are in the same local area network, and if so, the module communication subunit is triggered;
the module communication subunit is configured to send a first working instruction to the function module targeted by the first start control request, control the function module targeted by the first start control request to work, and receive data returned by the function module targeted by the first start control request.
Therefore, the first working instruction can be sent out after the terminal equipment and the function module are confirmed to be in the same local area network again, the situation that the terminal equipment sends the first working instruction to the function module in the local area network if the terminal equipment and the function module cannot be connected in the same local area network is avoided, the time consumed by repeatedly searching the first type of router or the function module due to the fact that the terminal equipment cannot send the first working instruction is saved, and effective transmission of the first working instruction is facilitated.
In other embodiments of the present invention, the apparatus shown in fig. 5 may further include: a second module searching unit, a second account information sending unit, a first module connecting unit, a third module searching unit, a second list output unit and a second module control unit,
the second module searching unit is configured to send a router searching request to each router in the local area network by the first router searching unit, and after searching for the first type of router in the local area network, send a function module searching request for searching for a function module in the local area network if it is determined that a response of the first type of router cannot be received;
specifically, the terminal device may send the function module search request through a second type of router in the local area network.
The second account information sending unit is used for sending the user account information to a server in the Internet when receiving the response of the functional module;
the function module in the local area network can be connected with the second type of router, and the terminal device and the server in the internet are connected with the second type of router. The second type of router is a device for connecting the function module and connecting the internet and the local area network, and the second type of router does not have a device identifier that can be registered in the server.
Therefore, the terminal device can send the user account information to the server in the internet through the second type router.
The first module connecting unit is used for establishing connection with the functional module after confirming that the user account information is bound with the identifier of the functional module;
the third module searching unit is used for sending a second searching request to the function module with the established connection, and receiving the address and the function information of the function module which is registered on line from the function module with the established connection;
the function module which is registered on line is connected with the second type router, and the identification of the function module is stored in the server in advance; the second search request is a request sent by the terminal device to the function module with the established connection, and the second search request is used for searching the function module connected with the second type of router in the local area network.
The second list output unit is used for outputting the address and the function information of the function module in a display and/or loudspeaking mode and receiving a second starting control request comprising the name and the address of the function module;
and the second module control unit is configured to send a second working instruction to the function module to which the second start control request is directed, control the function module to which the second start control request is directed to work, and receive data returned by the function module to which the second start control request is directed.
The second work instruction may be used to instruct the functional module corresponding to the address included in the second enabling control request, so that the corresponding functional module executes the operation.
Therefore, the terminal equipment can obtain the address and the function information of the function module from the second type router which is not the first type router, and control the function module according to the address and the function information.
When the functional module cannot be connected with the first type of router and can only be connected with the second type of router, the functional module can send the address and the function information of the functional module to the second type of router, and the second type of router sends the address and the function information of the functional module to the server.
The second work instruction may be sent from the terminal device to the function module after the terminal device receives the second enabling control request and determines that the terminal device and the function module targeted by the second enabling control request are in the same local area network.
Therefore, the second working instruction can be sent out after the terminal equipment and the function module are confirmed to be in the same local area network again, the situation that the terminal equipment sends the second working instruction to the function module in the local area network if the terminal equipment and the function module cannot be connected in the same local area network is avoided, the time consumed by repeatedly searching the function module due to the fact that the terminal equipment cannot send the second working instruction is saved, and effective transmission of the second working instruction is facilitated.
The apparatus shown in fig. 5 comprises: when the second module searching unit, the second account information sending unit, the first module connecting unit, the third module searching unit, the second list output unit, and the second module controlling unit are provided, further, the apparatus shown in fig. 5 may further include: a fourth module searching unit, a module information output unit and a third module control unit,
the fourth module searching unit is configured to, after the second module searching unit sends a function module searching request for searching for a function module in the local area network, send a third searching request to a server connected to the internet if the terminal device cannot receive a response from the function module, so as to search for an address and function information of the function module bound to the user account;
the module information output unit is used for receiving the address and the function information of the function module bound with the user account from the server side and outputting the address and the function information of the function module to the user in a display and/or loudspeaking mode;
if the function module is registered in the server, the terminal equipment acquires the address and the function information of the function module bound with the user account from the function module response received by the connected server, and outputs the address and the function information of the function module to the user in a display and/or loudspeaking mode; the address and the function information of the function module are the address and the function information of the function module registered in the server after the function module is connected with the second type router.
If the server is connected with the first type of router, the terminal equipment obtains a function module equipment list stored in the first type of router from a function module response received by the connected server, wherein the first type of router is registered on the server, and the function module equipment list comprises the address and the function information of the function module.
Therefore, when the terminal device is connected with the server, the address and the function information of the function module connected with the first type server or the address and the function information of the function module connected with the second type server can be obtained, so that the terminal device can control the work of the function module by sending a third work instruction containing the address and the function information of the function module.
The third module control unit is used for receiving a third starting control request which is input by a user and comprises a function module name and an address, sending a third working instruction to the server, controlling the function module registered in the server to work, and receiving data returned by the server; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
The third work instruction may be sent from the terminal device to the server after the terminal device receives a third enabling control request input by the user and determines that the terminal device and the first type router and/or the function module registered in the server are not in the same local area network.
In other embodiments of the present invention, the apparatus shown in fig. 5 may further include: a first identifier sending unit, a second router searching unit and a first binding unit,
the first identification sending unit is used for sending the identification of the functional module to the server after the terminal equipment receives the identification of the functional module which is input by the user and needs to be bound with the user account, so that the server judges whether the user account is bound with the identification of the functional module or not and returns the judged result to the terminal equipment;
the second router searching unit is used for sending a request for searching the first type of router in the local area network when the terminal equipment receives the information that the module sent by the server is not bound with the user account;
the first binding unit is used for sending a first binding instruction to the connected first-class router when the terminal equipment receives the response of the first-class router, so that the first-class router receives and stores the address, the function information and the bound user account information of the module; and the first type router is enabled to send the identification, address, function information and bound user account information of the module to the connected server.
Therefore, the method and the device can realize that the terminal equipment is connected with the first type router in the network according to the network where the functional module required to be controlled by the terminal equipment is located, so that the user account information and the identification of the functional module in the first type router are bound.
In other embodiments of the present invention, the apparatus shown in fig. 5 may further include: a second identifier sending unit, a third router search unit and a second binding unit,
the second identifier sending unit is used for sending the function module identifier to the server after the terminal equipment receives the function module identifier needing to be bound with the user account, so that the server judges whether the user account is bound with the identifier of the function module or not and returns the judged result to the terminal equipment;
the third router searching unit is used for sending a request for searching the first type of router in the local area network when the terminal equipment receives the information that the functional module and the user account which are sent by the server are not bound;
and the second binding unit is used for sending a first binding instruction to the server when the terminal equipment receives the response of the first type of router, so that the server receives and stores the identification, the address, the function information and the bound user account information of the function module from the first type of router.
Therefore, the network where the functional module needs to be controlled according to the terminal equipment can be realized, and the server connected with the terminal equipment can bind the user account information with the identification of the functional module.
Therefore, after the identifier of the functional module is bound with the user account, the functional module is associated with the user account, so that the working of the functional module can be conveniently controlled under the conditions that the first type of router is added and the functional module is safe to use in future use.
In the above embodiments, the functional module and the first type router may be connected in a PLC power line carrier communication manner.
Therefore, the functional module can be connected with the first type of router plugged in the power socket within a certain range in a manner of plugging the conventional power socket, so that the plug-and-play characteristic of the functional module is enhanced; when the router is used, the first type of router can be connected with the functional module without laying cables or adopting a wireless communication mode which easily causes signal attenuation, the use of the functional module is facilitated, the application range of the functional module is enlarged, and the use efficiency of a user is improved.
As shown in fig. 6, a method for controlling an operation of a functional module according to an embodiment of the present invention is applied to a router, and the method may include:
s201, a router receives a router searching request sent by a terminal device in a local area network after receiving a first type router connection request sent by a user, and sends a searching request response to the terminal device so that the terminal device sends user account information input by the user to a server in the Internet, wherein the router is a router which registers a router identification of the router in the server;
specifically, the router search request is a request sent by the terminal device, and the router search request is used for searching for a router with a specific feature. The specific feature router is a router that can register its own router identification with the server.
S202, after receiving a message that user account information is bound with an identifier of a router from a server connected in the Internet, the router establishes connection with terminal equipment, wherein the router identifier of the router is sent to the server by the router in advance and is stored in the server;
the user account information received by the server is sent to the server connected in the internet by the terminal equipment after the terminal equipment receives the user account information input by the user.
When the router is connected with the server, the identifier of the router is sent by the router in advance and is stored in the server.
S203, after receiving a first search request sent by a terminal device which is connected, a router sends a function module list to the terminal device, so that the terminal device outputs the function module list in a display and/or loudspeaking mode and receives a first starting control request which is sent by a user and includes a function module name and an address, further, the terminal device sends a first working instruction to a function module which is aimed at by the first starting control request, controls the function module which is aimed at by the first starting control request to work, and receives data returned by the function module which is aimed at by the first starting control request; the function module list is information registered with a connected router when the function module is enabled, and comprises an address of the function module and function information.
The function module list is registration information received by the router from the connected function modules, and comprises addresses of the function modules and function information;
the first search request is a request sent by the terminal device to the router, and is used for inquiring the functional module connected with the router.
Therefore, the router can send the function module list to the terminal equipment after being connected with the terminal equipment, so that a user using the terminal equipment can know and select the available function modules needing to be controlled to work; therefore, the user can conveniently find the controllable functional module and control the controllable functional module, the operation of the user is simplified, the operation efficiency of the user is improved, and the operation time of the user is reduced.
On the basis of the embodiment shown in fig. 6, another method for controlling the operation of a functional module according to the embodiment of the present invention may further include:
after the router receives and stores the function module address and the function information from the function module, the router transmits the function module address and the function information to the server.
Thus, the router can obtain the address and the function information of the function module in real time and then transmit the address and the function information of the function module to the server in real time.
In the above embodiments, the router and the functional module may be connected in a PLC power line carrier communication manner.
Therefore, the functional module can be connected with the first type of router plugged in the power socket within a certain range in a manner of plugging the conventional power socket, so that the plug-and-play characteristic of the functional module is enhanced; when the router is used, the first type of router can be connected with the functional module without laying cables or adopting a wireless communication mode which easily causes signal attenuation, the use of the functional module is facilitated, the application range of the functional module is enlarged, and the use efficiency of a user is improved.
In addition, the invention also discloses a router, which is used for executing the method applied to the operation of the control function module of the router.
In addition, an embodiment of the present invention further provides a functional module operating method, which is applied to a functional module, and as shown in fig. 7, the method may include:
s301, the functional module sends a module address to be registered and functional information to a first type router connected in the local area network;
s302, a functional module receives a first working instruction sent by a first type router;
and S303, the functional module works according to the first working instruction.
The first type of router is connected with the functional module and can be connected with the server and the terminal equipment; the first type router has a unique identifier, can register the identifier of the first type router in the server, and can output the received address of the functional module and the function information in the form of a functional module list, receive an instruction sent by the terminal device or the server for controlling the functional module to work, and send a module execution operation instruction to the functional module related in the instruction.
And the functional module executes corresponding operation after receiving the first work instruction. It should be noted that specific types of the functional modules include, but are not limited to, a gas concentration detection functional module, a temperature detection functional module, a humidity detection functional module, a sound detection functional module, a passive infrared motion detection functional module, and a flame detection functional module.
Therefore, the functional module can send the module address and the functional information to the first type router, so that the first type router can store the block address and the functional information into the functional module list; and the functional module executes work according to the obtained first work instruction.
On the basis of the embodiment shown in fig. 7, another method for operating a functional module provided in the embodiment of the present invention may further include:
if the function module is judged to be unable to connect with the first type router in the local area network, the function module operates according to the second operation instruction received from the terminal device after sending an instruction for registering the function module address and the function information in the server to the second type router connected in the local area network.
The second type of router is connected with the functional module and can be connected with the router and the terminal equipment; the second type of router does not have the identity of the first type of router and does not need to be registered with the server.
Thus, the functional module can send the module address and the functional information to the second type router; and the functional module executes work according to the obtained second work instruction.
The functional module and the first type of router can be connected in a PLC power line carrier communication mode.
Therefore, the functional module can be connected with the first type of router plugged in the power socket within a certain range in a manner of plugging the conventional power socket, so that the plug-and-play characteristic of the functional module is enhanced; when the router is used, the first type of router can be connected with the functional module without laying cables or adopting a wireless communication mode which easily causes signal attenuation, the use of the functional module is facilitated, the application range of the functional module is enlarged, and the use efficiency of a user is improved.
In addition, to achieve and improve the above object, an embodiment of the present invention further discloses a function module integration apparatus 400, please refer to fig. 8, in which the function module integration apparatus 400 includes a platform module 401, a data transmission module 402, and a control module 403, where the platform module 401 may be installed with more than one function module 500. The integration apparatus 400 is connected to a server 700 in the internet.
The platform module 401 is configured to connect to the control module 403 and connect to more than one functional module 500, where the platform module 401 receives an address of the functional module 500 and sends an instruction for instructing the functional module 500 to operate to the functional module 500;
the control module 403 is connected with the platform module 401, the control module 403 is connected with the data transmission module 402, and an embedded operating system is installed in the control module 403;
the data transmission module 402 is configured to connect with the control module 403 and connect with the server 700, and after the integrated device 400 confirms that the user account information is bound to the identifier of the integrated device 400, the data transmission module 402 is further connected with the terminal device 600.
The data transmission module 402 may be connected to the server 700 and/or the terminal device 600 through communication methods including but not limited to wifi, wired network, USB, bluetooth low energy, infrared, 3G, and 4G.
The server 700 may be a server connected to the function module integration apparatus 400 and configured to receive the function module integration apparatus 400; the server may issue an instruction for controlling the operation of the function module 500 to the function module-integrated apparatus 400 after receiving an instruction for controlling the operation of the function module-integrated apparatus 400, wherein the function module 500 is connected to the platform module 401.
After the function module integration apparatus 400 receives an integration apparatus search request from the terminal device 600 in the local area network, the data transmission module 402 in the function module integration apparatus 400 sends a search request response to the terminal device 600;
after the function module integration apparatus 400 receives a message confirming that the user account information is bound with the identifier of the integration apparatus 400 from the server 700, the function module integration apparatus 400 connects the terminal device 600; wherein, the user account information is sent to the server 700 connected in the internet by the terminal device 600, and the identifier of the function module integrated device 400 is sent in advance by the data transmission module 402 in the function module integrated device 400 and stored in the server 700;
after the data transmission module 402 transmits the fourth search request to the control module 403, the function module integration apparatus 400 transmits a function module list to the terminal device 600; wherein the function module list is information received and stored by the function module integration apparatus 400 from the connected function module 500, and includes the address of the function module 500 and the function information, and the fourth search request is received by the data transmission module of the function module integration apparatus 400 from the terminal device 600 having established the connection; the fourth search request may be a request for searching for an address and function information of the functional module 500, and the functional modules 500 targeted by the fourth search request are all connected to the functional module integrated apparatus 400.
When the function module integration apparatus 400 receives the fourth work instruction from the terminal device 600, the platform module 401 in the function module integration apparatus 400 sends a fourth execution operation instruction to the function module 500 targeted by the fourth work instruction, and the function module 500 targeted by the fourth execution operation instruction works according to the operation information included in the fourth execution operation instruction; the fourth execution operation instruction is used to instruct the functional module 500 corresponding to the address included in the fourth work instruction to execute the operation.
Further, as a supplement, after receiving the fifth work instruction from the server 700, the platform module 401 in the function module integration apparatus 400 issues a fifth execution operation instruction to the function module 500 to which the fifth work instruction is directed.
The fifth work instruction is an instruction that the server 700 is connected to the terminal device 600 when it is determined that the terminal device 600 cannot be connected to the function module integration apparatus 400 in the local area network in which the terminal device 600 is located, and the server 700 sends the function module integration apparatus 400 an instruction for controlling the function module 500 to work after receiving the instruction from the terminal device 600; here, the functional modules 500 are all connected to the functional module integrated device 400.
Further, as a supplement, the function module integration apparatus 400 further includes: and an operation instruction input module 404 connected to the control module 403, where the operation instruction input module 404 is configured to transmit the received operation instruction information to the control module 403. The operation instruction input module includes, but is not limited to, a voice receiving module and a camera module. The user may input a sixth work order for controlling the function module 500 connected to the integrated device 400 to work from the operation order input module 404. Therefore, when the user is close to the function module integrated apparatus 400, the user may control the function module 500 connected to the integrated apparatus 400 to operate only by directly inputting the sixth operation command to the integrated apparatus 400 without using the manner of connecting the terminal device 600 to the integrated apparatus 400 or using the manner of connecting the terminal device 600 to the server 700.
Further, as a supplement, the function module integration apparatus 400 further includes: and an output module 405 connected to the control module 403, where the output module 405 is configured to receive an output instruction from the control module 403 and output a signal according to the output instruction. The output module 405 includes, but is not limited to, a display module, a projection module, an infrared data output module, and a sound output module. Thus, the user can cause the function module integration apparatus 400 to output video, images, sound, and other types of signals and data.
Further, as a supplement, the function module integration apparatus 400 further includes: and an action control module 406 connected to the control module 403, wherein the action control module 406 is configured to control actions of the function module integrated device 400 according to action commands received from the control module 403, and the actions performed by the function module integrated device 400 include, but are not limited to, horizontal movement, vertical movement, and rotation.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (15)

1. A method for controlling the operation of a functional module is applied to a terminal device at a user side, and is characterized in that the method comprises the following steps:
receiving a first-class router connection request sent by a user, sending a router search request to each router in a local area network according to the first-class router connection request, and searching a first-class router in the local area network, wherein the first-class router is a router which registers the router identification of the first-class router in a server;
after receiving a response returned by the first type of router according to the router searching request, sending user account information input by a user to a server in the Internet;
after receiving a message returned by the server and confirming that the user account information is bound with the router identification of the first type of router, establishing connection with the first type of router; the router identification of the first type router is sent to the server by the first type router in advance and is stored in the server;
sending a first function module searching request to a first type router which has established connection, and obtaining a function module list sent by the first type router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the function module and function information;
outputting the function module list in a display and/or loudspeaking mode, and receiving a first starting control request which is sent by a user and comprises a function module name and an address;
and sending a first working instruction to the function module to which the first start control request is directed, controlling the function module to which the first start control request is directed to work, and receiving data returned by the function module to which the first start control request is directed.
2. The method according to claim 1, wherein the step of sending a first work instruction to the function module to which the first start control request is directed, controlling the function module to which the first start control request is directed to work, and receiving data returned by the function module to which the first start control request is directed includes:
and judging whether the terminal equipment and the function module aimed at by the first starting control request are in the same local area network, if so, sending a first working instruction to the function module aimed at by the first starting control request, controlling the function module aimed at by the first starting control request to work, and receiving data returned by the function module aimed at by the first starting control request.
3. The method of claim 1, wherein after sending a router lookup request to each router in the local area network to lookup the first type of router in the local area network, the method further comprises:
if the response of the first type router cannot be received, sending a function module searching request for searching the function module in the local area network;
if the response of the function module is received, the user account information is sent to a server in the Internet;
after confirming that the user account information is bound with the identifier of the functional module, establishing connection with the functional module;
sending a second search request to the function module with the established connection, and receiving the address and the function information of the function module which is registered on line from the function module with the established connection;
outputting the address and the function information of the function module in a display and/or loudspeaking mode, and receiving a second starting control request comprising the name and the address of the function module;
and sending a second working instruction to the function module to which the second start control request is directed, controlling the function module to which the second start control request is directed to work, and receiving data returned by the function module to which the second start control request is directed.
4. The method according to claim 3, wherein after sending the function module search request for searching the function module in the local area network, the method further comprises:
if the terminal equipment cannot receive the response of the function module, sending a third searching request to a server connected in the Internet to search the address and the function information of the function module bound with the user account;
receiving the address and the function information of the function module bound with the user account from the server side, and outputting the address and the function information of the function module to the user in a display and/or loudspeaking mode;
receiving a third starting control request which is input by a user and comprises a function module name and an address, sending a third working instruction to the server, controlling the function module registered in the server to work, and receiving data returned by the server; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
5. The method of claim 1, further comprising:
after the terminal equipment receives a functional module identifier which is input by a user and needs to be bound with a user account, the functional module identifier is sent to the server, so that the server judges whether the user account is bound with the functional module identifier or not, and returns a judgment result to the terminal equipment;
if the terminal equipment receives the information that the module and the user account sent by the server are not bound, sending a request for searching a first type of router in the local area network;
if the terminal equipment receives the response of the first-class router, a first binding instruction is sent to the connected first-class router, so that the first-class router receives and stores the address, the function information and the bound user account information of the module; and the first type router is enabled to send the identification, address, function information and bound user account information of the module to the connected server.
6. The method of claim 1, further comprising:
after the terminal equipment receives the function module identification needing to be bound with the user account, the function module identification is sent to the server, so that the server judges whether the user account is bound with the identification of the function module or not, and returns the judged result to the terminal equipment;
if the terminal equipment receives the information that the functional module and the user account sent by the server are not bound, sending a request for searching a first type of router in the local area network;
and if the terminal equipment receives the response of the first type of router, sending a first binding instruction to the server, so that the server receives and stores the identification, the address, the function information and the bound user account information of the function module from the first type of router.
7. An apparatus for controlling the operation of a functional module, which is applied to a terminal device on a user side, the apparatus comprising: a first router searching unit, a first account information sending unit, a first router connecting unit, a first module searching unit, a first list output unit and a first module control unit,
the first router searching unit is used for receiving a first type of router connection request sent by a user, sending a router searching request to each router in a local area network according to the first type of router connection request, and searching a first type of router in the local area network, wherein the first type of router is a router which registers the router identification of the first type of router in a server;
the first account information sending unit is used for sending user account information input by a user to a server in the Internet after receiving a response returned by the first type of router according to the router searching request;
the first router connection unit is used for establishing connection with the first type of router after receiving a message returned by the server and confirming that the user account information is bound with the router identifier of the first type of router; the router identification of the first type router is sent to the server by the first type router in advance and is stored in the server;
the first module searching unit is used for sending a first function module searching request to a first type of router which has established connection, and obtaining a function module list sent by the first type of router; the function module list is information registered to a first type of router when the function module is started, and comprises the address of the function module and function information;
the first list output unit is used for outputting the function module list in a display and/or loudspeaking mode and receiving a first starting control request which is sent by a user and comprises a function module name and an address;
the first module control unit is configured to send a first working instruction to the function module to which the first start control request is directed, control the function module to which the first start control request is directed to work, and receive data returned by the function module to which the first start control request is directed.
8. The apparatus of claim 7, wherein the first module control unit comprises: a local area network judging subunit and a module communication subunit,
the local area network judging subunit is used for judging whether the terminal equipment and the function module aimed at by the first starting control request are in the same local area network, and if so, the module communication subunit is triggered;
the module communication subunit is configured to send a first working instruction to the function module targeted by the first start control request, control the function module targeted by the first start control request to work, and receive data returned by the function module targeted by the first start control request.
9. The apparatus of claim 7, further comprising: a second module searching unit, a second account information sending unit, a first module connecting unit, a third module searching unit, a second list output unit and a second module control unit,
the second module searching unit is configured to send a router searching request to each router in the local area network by the first router searching unit, and after searching for the first type of router in the local area network, send a function module searching request for searching for a function module in the local area network if it is determined that a response of the first type of router cannot be received;
the second account information sending unit is used for sending the user account information to a server in the Internet when receiving the response of the functional module;
the first module connecting unit is used for establishing connection with the functional module after confirming that the user account information is bound with the identifier of the functional module;
the third module searching unit is used for sending a second searching request to the function module with the established connection, and receiving the address and the function information of the function module which is registered on line from the function module with the established connection;
the second list output unit is used for outputting the address and the function information of the function module in a display and/or loudspeaking mode and receiving a second starting control request comprising the name and the address of the function module;
and the second module control unit is configured to send a second working instruction to the function module to which the second start control request is directed, control the function module to which the second start control request is directed to work, and receive data returned by the function module to which the second start control request is directed.
10. The apparatus of claim 9, further comprising: a fourth module searching unit, a module information output unit and a third module control unit,
the fourth module searching unit is configured to, after the second module searching unit sends a function module searching request for searching for a function module in the local area network, send a third searching request to a server connected to the internet if the terminal device cannot receive a response from the function module, so as to search for an address and function information of the function module bound to the user account;
the module information output unit is used for receiving the address and the function information of the function module bound with the user account from the server side and outputting the address and the function information of the function module to the user in a display and/or loudspeaking mode;
the third module control unit is used for receiving a third starting control request which is input by a user and comprises a function module name and an address, sending a third working instruction to the server, controlling the function module registered in the server to work, and receiving data returned by the server; and the third work instruction is used for indicating the functional module corresponding to the address included in the third enabling control request to enable the corresponding functional module to execute the operation.
11. The apparatus of claim 7, further comprising: a first identifier sending unit, a second router searching unit and a first binding unit,
the first identification sending unit is used for sending the identification of the functional module to the server after the terminal equipment receives the identification of the functional module which is input by the user and needs to be bound with the user account, so that the server judges whether the user account is bound with the identification of the functional module or not and returns the judged result to the terminal equipment;
the second router searching unit is used for sending a request for searching the first type of router in the local area network when the terminal equipment receives the information that the module sent by the server is not bound with the user account;
the first binding unit is used for sending a first binding instruction to the connected first-class router when the terminal equipment receives the response of the first-class router, so that the first-class router receives and stores the address, the function information and the bound user account information of the module; and the first type router is enabled to send the identification, address, function information and bound user account information of the module to the connected server.
12. The apparatus of claim 7, further comprising: a second identifier sending unit, a third router search unit and a second binding unit,
the second identifier sending unit is used for sending the function module identifier to the server after the terminal equipment receives the function module identifier needing to be bound with the user account, so that the server judges whether the user account is bound with the identifier of the function module or not and returns the judged result to the terminal equipment;
the third router searching unit is used for sending a request for searching the first type of router in the local area network when the terminal equipment receives the information that the functional module and the user account which are sent by the server are not bound;
and the second binding unit is used for sending a first binding instruction to the server when the terminal equipment receives the response of the first type of router, so that the server receives and stores the identification, the address, the function information and the bound user account information of the function module from the first type of router.
13. A method for controlling the operation of a functional module, the method being applied to a router, the method comprising:
receiving a router searching request sent by terminal equipment in a local area network after receiving a first-class router connection request sent by a user, and sending a searching request response to the terminal equipment so that the terminal equipment sends user account information input by the user to a server in the Internet, wherein the router is a router which registers a router identification of the router in the server;
after receiving a message that user account information is bound with an identifier of a router from a server connected in the Internet, establishing connection with a terminal device, wherein the router identifier of the router is sent to the server by the router in advance and is stored in the server;
after receiving a first search request sent by a terminal device with an established connection, sending a function module list to the terminal device, so that the terminal device outputs the function module list in a display and/or loudspeaking manner and receives a first enabling control request which is sent by a user and includes a function module name and an address, further enabling the terminal device to send a first working instruction to a function module to which the first starting control request is directed, control the function module to which the first starting control request is directed to work, and receive data returned by the function module to which the first starting control request is directed; the function module list is information registered with a connected router when the function module is enabled, and comprises an address of the function module and function information.
14. The method of claim 13, further comprising:
after the router receives and stores the function module address and the function information from the function module, the router transmits the function module address and the function information to the server.
15. A functional module integrated device is characterized by comprising a platform module, a data transmission module and a control module; wherein,
the platform module is connected with the control module and more than one functional module, receives the address of the functional module and sends an instruction for indicating the functional module to work to the functional module;
the control module is connected with the platform module, is connected with the data transmission module and is internally provided with an embedded operating system;
the data transmission module is connected with the control module, is connected with a server, and is also connected with terminal equipment after the functional module integration device confirms that the user account information is bound with the identifier of the functional module integration device;
after the function module integration device receives an integration device search request from the terminal equipment in the local area network, the data transmission module sends a search request response to the terminal equipment;
after the function module integration device receives a message for confirming that the user account information is bound with the identifier of the function module integration device from the server, the function module integration device is connected with the terminal equipment; the user account information is sent to a server connected in the Internet by terminal equipment, and the identification of the function module integrated device is sent in advance by a data transmission module in the function module integrated device and is stored in the server;
after the data transmission module sends the fourth search request to the control module, the functional module integration device sends a functional module list to the terminal equipment; the function module list is information which is received and stored by the function module integration device from the connected function modules, and comprises the addresses of the function modules and function information, and the fourth search request is received by the data transmission module of the function module integration device from the terminal equipment which has established the connection; the fourth search request may be a request for searching for an address and function information of the function module, and the function modules targeted by the fourth search request are all connected to the function module integration device;
when the functional module integration device receives a fourth operating instruction from the terminal device, a platform module in the functional module integration device sends a fourth execution operating instruction to a functional module targeted by the fourth operating instruction, and the functional module targeted by the fourth execution operating instruction works according to operating information included in the fourth execution operating instruction; and the fourth execution operation instruction is used for indicating the functional module corresponding to the address included in the fourth working instruction to execute the 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 true CN105323127A (en) 2016-02-10
CN105323127B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105722089A (en) * 2016-03-24 2016-06-29 浙江风向标科技有限公司 Equipment authentication method
CN105787342A (en) * 2016-02-26 2016-07-20 北京小米移动软件有限公司 Method and device for executing target function

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

Cited By (4)

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

Also Published As

Publication number Publication date
CN105323127B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US10827007B2 (en) Methods and systems of configuring electronic devices
CN102694846B (en) Method, device and system for recommending application program
US20140121786A1 (en) Smart gateway, smart home system and smart remote control method thereof
US9547980B2 (en) Smart gateway, smart home system and smart controlling method thereof
CN109450752B (en) Household appliance network distribution method and device and computer readable storage medium
AU2018203123B2 (en) A configuration connection device
US20140129006A1 (en) Smart gateway, smart home system and smart controlling method thereof
KR102173242B1 (en) Local wireless data communication system, method and apparatus for automactic setup of imformation
US20220146999A1 (en) System and method for handing off the configuration of a building device from a contractor to a customer using a hang tag or the like
US20170234566A1 (en) Mobile device with contractor accessible screens for configuring a building device
US20170237576A1 (en) Systems and methods for handing off configuration of a building device from a contractor to a customer
CN105323127B (en) The method and device of control function module work, functional module integrating device
CN103686282A (en) Method and device for starting browser in smart television
KR20010000287A (en) System and Method for remote control of computer using wireless communication equipment
JP6133934B2 (en) Remote controller
US20160142258A1 (en) Methods and systems for verifying installation of a device
JP6384739B2 (en) Connection setting device and method
CN105391749A (en) Equipment networking system in Internet of Things, and display method
WO2011039836A1 (en) Wireless lan device and wireless communication method
JP5020955B2 (en) Device linkage operation system, linkage operation execution method, device capable of linkage operation, server device, and program
KR101333656B1 (en) Building automation system using near field communication
TW201545064A (en) System and method for automatically downloading program
JP6150516B2 (en) Facility management system, portable terminal, facility management apparatus, and facility management method
KR20180045620A (en) System for diagnosing network using IoT terminal and method thereof
JP4729900B2 (en) Information providing system and adapter device

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