CN105471686B - Terminal control method, device and system - Google Patents

Terminal control method, device and system Download PDF

Info

Publication number
CN105471686B
CN105471686B CN201510991952.9A CN201510991952A CN105471686B CN 105471686 B CN105471686 B CN 105471686B CN 201510991952 A CN201510991952 A CN 201510991952A CN 105471686 B CN105471686 B CN 105471686B
Authority
CN
China
Prior art keywords
party
message
intelligent terminal
control message
primitive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510991952.9A
Other languages
Chinese (zh)
Other versions
CN105471686A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510991952.9A priority Critical patent/CN105471686B/en
Publication of CN105471686A publication Critical patent/CN105471686A/en
Application granted granted Critical
Publication of CN105471686B publication Critical patent/CN105471686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks

Abstract

The invention discloses a terminal control method, device and system, and belongs to the field of computer networks. The method comprises the following steps: the gateway equipment establishes network connection with at least one third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats; the gateway equipment acquires a primitive control message, wherein the primitive control message is a message adopting a gateway side transmission protocol; the gateway equipment converts the primitive control message into a third-party control message, wherein the third-party control message is a message in a third-party message format; the gateway equipment sends the third party control message to the third party intelligent terminal. The invention solves the problems that the same manufacturer is difficult to produce all kinds of intelligent terminals simultaneously and the application range of the current intelligent home system is limited; the effect of unified management and control can be achieved even if the third-party intelligent terminal is produced by different manufacturers.

Description

Terminal control method, device and system
Technical Field
The embodiment of the invention relates to the field of computer networks, in particular to a terminal control method, device and system.
Background
The intelligent home system is a system organically integrating a plurality of intelligent terminals. The intelligent terminal includes: intelligent socket, intelligent electric light, intelligent (window) curtain, intelligent air conditioner, intelligent TV and intelligent switch etc..
The existing intelligent home system is basically established on the basis of the internet of things established based on a Zigbee (purple peak) module. The Zigbee technology is a short-distance, low-power consumption wireless communication technology. Each Zigbee module needs to have a dedicated gateway with a Zigbee control function and a router function, and the Zigbee module establishes a Zigbee network in an ad hoc network manner through the dedicated gateway, and the dedicated gateway is responsible for accessing the intelligent device to the internet to implement a network access process. In the whole network range, if the Zigbee modules using the same transmission protocol and the same message format are produced by the same manufacturer, one Zigbee module can be connected to a plurality of Zigbee modules, thereby implementing unified management on a plurality of smart home terminals at the same time.
In the process of implementing the embodiment of the present invention, the inventor finds that the prior art has at least the following problems:
the Zigbee modules need to be Zigbee modules produced by the same manufacturer and using the same transmission protocol and the same message format, but in fact, it is difficult for the same manufacturer to produce all kinds of intelligent terminals at the same time, so that the current intelligent home systems are usually focused on a certain kind or several kinds of intelligent home systems, and the application range is limited.
Disclosure of Invention
In order to solve the problems that the same manufacturer is difficult to produce all kinds of intelligent terminals simultaneously and the application range of the current intelligent home system is limited, the embodiment of the invention provides a terminal control method, a device and a system. The technical scheme is as follows:
in a first aspect, a terminal control method is provided, where the method includes:
establishing network connection with at least one third-party intelligent terminal, wherein the network connection accords with a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
obtaining a primitive control message, wherein the primitive control message is a message in a gateway side message format;
converting the primitive control message into a third party control message, wherein the third party control message is a message in the format of the third party message;
and sending the third party control message to the third party intelligent terminal through the network connection, wherein the third party intelligent terminal is used for executing the third party control message.
In a second aspect, there is provided a terminal control apparatus, the apparatus comprising:
the connection module is used for establishing network connection with at least one third-party intelligent terminal, the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a primitive control message which is a message in a gateway side message format;
a conversion module, configured to convert the primitive control packet into a third-party control packet, where the third-party control packet is a packet using the third-party transport protocol;
and the sending module is used for sending the third-party control message to the third-party intelligent terminal through the network connection, and the third-party intelligent terminal is used for executing the third-party control message.
In a third aspect, a network system is provided, the system including: the system comprises a user terminal, a server, gateway equipment and a third-party intelligent terminal;
the gateway equipment is used for establishing network connection with at least one third-party intelligent terminal, the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
the user terminal is used for sending a primitive control message to the gateway equipment through the server, wherein the primitive control message is a message in a gateway side message format
The gateway device is used for acquiring the primitive control message; converting the primitive control message into a third party control message, wherein the third party control message is a message in the format of the third party message;
the gateway device is used for sending the third party control message to the third party intelligent terminal through the network connection;
and the third-party intelligent terminal is used for executing the third-party control message.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
converting the primitive control message into a third-party control message by gateway equipment, and sending the third-party control message to a third-party intelligent terminal through network connection; the problem that the application range of the current intelligent home system is limited due to the fact that the same manufacturer is difficult to produce all kinds of intelligent terminals at the same time is solved; the same gateway equipment can support the connection and control of a plurality of third-party intelligent terminals adopting different third-party transmission protocols and/or different third-party message formats, and even if the third-party intelligent terminals are third-party intelligent terminals produced by different manufacturers, the effect of unified management and control can be achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a gateway device according to an embodiment of the present invention;
fig. 3 is a flowchart of a method of controlling a terminal according to an embodiment of the present invention;
fig. 4A is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
FIG. 4B is a schematic diagram of a terminal control method provided by the embodiment shown in FIG. 4A;
fig. 5 is a schematic diagram of a terminal control method according to an embodiment of the present invention;
fig. 6 is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
fig. 7 is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
fig. 8 is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
fig. 9 is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
fig. 10 is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
fig. 11 is an interface schematic diagram of a terminal control method according to another embodiment of the present invention when establishing an association relationship;
fig. 12 is a flowchart of a method of controlling a terminal according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of a terminal control device according to another embodiment of the present invention;
fig. 14 is a schematic structural diagram of a terminal control device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a network system 100 according to an embodiment of the invention is shown. The network system 100 may be a smart home system. The network system 100 includes: at least one user terminal 120, a server 140, a gateway device 160, and at least one third party smart terminal 180.
The user terminal 120 may be a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), a laptop, a desktop computer, or the like. The user terminal 120 runs a predetermined APP (Application), which may be an instant messaging Application, a social Application, a smart home management Application, or a gateway management Application. In the embodiment of the present invention, the predetermined APP is exemplified as an instant messaging program. The social application may be a microblog, friend-making software, or the like.
The user terminal 120 and the server 140 are connected through a wired network or a wireless network.
The server 140 is a server for providing a background service of a predetermined APP. That is, the server 140 may be a backend server of an instant messaging program, a backend server of a social application program, a backend server of an intelligent home management application program, or a backend server of a gateway management application program.
The server 140 and the gateway device 160 are connected via a wired network or a wireless network.
Gateway device 160 may be a router, switch, or home media center, etc. The gateway device 160 is a gateway device for discovering, connecting, and managing the third party intelligent terminal 180. In some possible embodiments, the gateway device 160 establishes a connection directly with the user terminal 120 without the intermediary of the server 140.
The gateway device 160 is connected with the third-party intelligent terminal 180 through a wired network or a wireless network.
The third party intelligent terminal 180 may be an intelligent electric lamp, an intelligent fan, an intelligent curtain, an intelligent camera, an intelligent pet feeder, an intelligent socket, an intelligent air conditioner, an intelligent electric cooker, an intelligent refrigerator, an intelligent watch, intelligent glasses, intelligent shoes, and the like. With the improvement of the scientific and technical level, the types and application fields of the third-party intelligent terminals are more and more. Typically, the third party smart terminal 180 and the gateway device 120 have different manufacturers. The third party intelligent terminal 180 employs a third party transmission protocol and a third party message format.
When there are multiple third party vendors, there are different third party intelligent terminals 180 that use different third party transmission protocols and/or different third party message formats.
That is, the two third-party smart devices 180 may employ different third-party transmission protocols and the same third-party message format; or, the two third-party smart devices 180 adopt the same third-party transmission protocol and different third-party message formats; alternatively, the two third-party smart devices 180 employ different third-party transmission protocols and different third-party message formats.
Wherein the third party transmission protocol comprises at least one of the following protocols:
a transmission protocol based on a WIFI (Wireless Fidelity) protocol;
a transmission protocol based on a Zigbee (Zigbee) protocol;
a transmission protocol based on a BLE (Bluetooth Low Energy) protocol;
a transmission protocol based on an RF (Radio Frequency) 433 protocol, which uses a 433Mhz Frequency band;
a transmission protocol based on RF2.4G protocol, wherein the transmission protocol uses a 2.4Ghz frequency band;
a transmission protocol based on the radio frequency RF5G protocol, the transmission protocol using the 5Ghz band;
and the transmission protocol is based on the wireless networking specification Z-Wave.
For example, two third-party smart devices 180 use the same third-party transmission protocol and different third-party message formats, such as: one third party smart device 180 employs Zigbee protocol and message format 1, and the other third party smart device 180 employs Zigbee protocol and message format 2.
For another example, there are at least two third-party intelligent terminals that use different third-party transmission protocols. For example, one third-party intelligent terminal adopts a transmission protocol based on a Zigbee protocol, and the other third-party intelligent terminal adopts a transmission protocol based on a WiFi protocol.
Referring to fig. 2, a schematic structural diagram of a gateway device 200 according to an embodiment of the present invention is shown. The gateway apparatus 200 includes: a processor 220, a memory 240, and at least one network card component 260.
The processor 220 is a control center of the gateway apparatus 200, connects various parts of the entire gateway apparatus 200 using various interfaces and lines, and performs various functions of the gateway apparatus 200 and processes data by running or executing software programs and/or modules stored in the memory 240 and calling data stored in the memory 240, thereby performing overall control of the gateway apparatus 200. Optionally, processor 220 includes one or more processing cores.
The processor 220 is electrically connected to the memory 240.
The memory 240 is used to store software programs and modules. The processor 220 executes various functional applications and data processing by executing software programs and modules stored in the memory 240. The Memory 240 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk or an optical disk.
The processor 220 is further electrically connected to at least one network card assembly 260.
The network card assembly 260 includes: at least two of a WiFi network card component 261, a Zigbee network card component 262, a network card component 263 with RJ45 interface, a bluetooth network card component 264, and a radio frequency network card component 265. In this embodiment, the gateway device 200 includes all five network card assemblies 200 for illustration. For each type of network card component, the gateway device 200 may include one or more network card components 260 of that type. For example, the gateway device 200 includes 5 network card components 263 with RJ45 interfaces, one WIFI network card component 261, and the like.
Optionally, the software programs and modules stored in the memory 240 include: a gateway ROM (read-only memory) 241, a network communication program 242, an internet of things program 243, a third party intelligent terminal discovery program 244, a third party intelligent terminal connection program 245, a third party protocol resolution plug-in 246, a control rule execution engine 247, and the like.
Wherein gateway ROM241 represents a read only memory image for the gateway. The gateway ROM241 includes: code or instructions for implementing a custom operating system for gateway device 200. For some common third party message formats, the gateway ROM241 includes: and/or, the code or instruction is used for converting the message adopting the third party message format into the message adopting the gateway side message format.
The network communication program 242 includes: a WiFi communication program, an ethernet communication program, a third party smart terminal communication program, etc. The network communication program includes: basic code or instructions for implementing inter-device communication.
The internet of things program 243 includes: code or instructions for enabling communication between the gateway device and the user terminal. For example, when an instant messaging program is run in the user terminal, the internet of things program is also an instant messaging program, and the gateway device 200 is simulated as a user in the instant messaging program, so as to access a friend relationship chain of the instant messaging service; for another example, after simplification, there is no QQ communication client of the user interface; when a social application is running in the user terminal, the internet of things program is also a social application, and the gateway device 200 is simulated as a user in the social application, so as to access a friend relationship chain of the social service.
The third party smart terminal discovery program 244 includes: code or instructions for discovering a third party smart terminal in an accessible state. For example, the third-party intelligent terminal in the accessible state sends a broadcast message, and the third-party intelligent terminal discovery program is a code for parsing and processing the broadcast message.
The third party smart terminal connectivity program 245 includes: code or instructions to establish a connection with a third party intelligent terminal in an accessible state.
The third party protocol resolution plug-in 246 includes: and/or, the code or instruction is used for converting the message adopting the third party message format into the message adopting the gateway side message format. Optionally, there are multiple third party protocol parsing plug-ins 246 for different third party transport protocols, one third party parsing plug-in 246 corresponding to one third party message format, or one third party parsing plug-in 246 corresponding to two or more third party message formats.
The control rule execution engine 247 includes: code or instructions for parsing and executing primitive control instructions. The primitive control commands may be generated by any one of a user terminal, a server, a gateway device, and another third party intelligent terminal. The primitive control instruction is used for realizing control on the target third-party intelligent terminal. The target third-party intelligent terminal is a third-party intelligent terminal which is expected to be controlled in the connected third-party intelligent terminals.
Referring to fig. 3, a flowchart of a method for controlling a terminal according to an embodiment of the present invention is shown. The embodiment is exemplified by applying the method to the gateway device shown in fig. 1. The method comprises the following steps:
301, establishing a network connection with at least one third-party intelligent terminal, wherein the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
if the third-party intelligent terminal adopts a transmission protocol based on a WIFI protocol, the gateway equipment establishes WIFI connection with the third-party intelligent terminal; if the third-party intelligent terminal adopts a transmission protocol based on a Zigbee protocol, the gateway equipment establishes Zigbee connection with the third-party intelligent terminal; if the third-party intelligent terminal adopts a transmission protocol based on a BLE protocol, the gateway equipment establishes Bluetooth connection with the third-party intelligent terminal; if the third-party intelligent terminal adopts a transmission protocol based on an RF433 protocol, a transmission protocol based on an RF2.4G protocol, a transmission protocol based on a radio frequency RF5G protocol or a transmission protocol based on Z-Wave, the gateway device establishes radio frequency connection with the third-party intelligent terminal.
Step 302, obtaining a primitive control message, wherein the primitive control message is a message in a gateway side message format;
the gateway device adopts a gateway side message format. The control message adopting the gateway side message format can be called as a primitive control message; the data packet in the gateway side packet format may be referred to as a primitive data packet.
The primitive control messages may be generated by any one of the user terminal, the server, the gateway device, and another third party intelligent terminal of fig. 1.
And the primitive control message is used for controlling the target third-party intelligent terminal.
Step 303, converting the primitive control message into a third-party control message, wherein the third-party control message is a message in a third-party message format;
and the third party message format adopted by the third party control message corresponds to the target third party intelligent terminal.
And 304, sending a third party control message to a third party intelligent terminal through network connection, wherein the third party intelligent terminal is used for executing the third party control message.
And the gateway equipment sends the converted third-party control message to a third-party intelligent terminal through network connection. And the third-party intelligent terminal is used for executing the control instruction carried in the third-party control message after receiving the third-party control message.
In summary, in the terminal control method provided in this embodiment, the gateway device converts the primitive control packet into a third-party control packet, and sends the third-party control packet to the third-party intelligent terminal through network connection; the problem that the application range of the current intelligent home system is limited due to the fact that the same manufacturer is difficult to produce all kinds of intelligent terminals at the same time is solved; the same gateway equipment can support the connection and control of a plurality of third-party intelligent terminals adopting different third-party transmission protocols and/or different third-party message formats, and even if the third-party intelligent terminals are third-party intelligent terminals produced by different manufacturers, the effect of unified management and control can be achieved.
Referring to fig. 4A, a flowchart of a method for controlling a terminal according to another embodiment of the present invention is shown. This embodiment is exemplified by applying the terminal control method to the network system described in fig. 1. The method comprises the following steps:
step 401, a gateway device establishes an association relationship with a user terminal;
for the convenience of control, the gateway device first establishes an association relationship with the user terminal. Optionally, the association relationship is any one of a binding relationship, a friend relationship in an instant messaging service, a friend relationship in a social service, and a concern relationship in a social service. Optionally, the association relationship is stored in a user terminal or a server.
For example, if an instant messaging program QQ is run in the user terminal and a QQ internet of things program is run in the gateway device, a friend relationship between the QQ of the user terminal and the QQ number of the gateway device is established in the server. At this time, the gateway device can be displayed in the QQ address book of the user terminal in the form of an instant messaging buddy.
Step 402, the gateway device establishes a network connection with at least one third-party intelligent terminal, the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
since the manufacturers of each third-party intelligent terminal may be the same or different, the third-party transmission protocol and the third-party message format used by each third-party intelligent terminal may also be the same or different. And aiming at each third-party intelligent terminal, the gateway equipment establishes network connection with the third-party intelligent terminal. The network connections established between the gateway device and the different third party intelligent terminals may be the same or different.
For example, the gateway device establishes WiFi connection with an intelligent switch produced by a manufacturer a, the gateway device also establishes Zigbee connection with an intelligent electric lamp produced by a manufacturer B, and the gateway device also establishes bluetooth connection with an intelligent refrigerator produced by a manufacturer C.
Step 403, the gateway device obtains device information of the third-party intelligent terminal;
the equipment information of the third-party intelligent terminal comprises: the name of the third-party intelligent terminal, the identification of the third-party intelligent terminal, the manufacturer of the third-party intelligent terminal, the function introduction of the third-party intelligent terminal, the authority control information of the third-party intelligent terminal, the working state of the third-party intelligent terminal and the like.
Step 404, the gateway device sends the device information of the third-party intelligent terminal to the user terminal;
when the network connection is directly established between the gateway equipment and the user terminal, the gateway equipment sends the equipment information of the third-party intelligent terminal to the user terminal through the network connection;
when the network connection is indirectly established between the gateway equipment and the user terminal through the server, the gateway equipment sends the equipment information of the third-party intelligent terminal to the user terminal through the server. That is, the gateway device sends the device information of the third-party intelligent terminal to the server, and the server forwards the device information to the user terminal. Optionally, the server stores an association relationship between the gateway device and the user terminal.
Step 405, the user terminal displays the equipment information of the third-party intelligent terminal;
optionally, the user terminal displays the third-party intelligent terminal as an addable new device; optionally, the user terminal displays the third-party intelligent terminal as an addable instant messaging contact or social application contact.
Step 406, the user terminal sends a binding request to the gateway device;
when a user wants to use and manage a certain third-party intelligent terminal, the user terminal is triggered to send a binding request to the gateway equipment, and the binding request carries the identifier of the third-party intelligent terminal. The binding request is used for requesting the gateway equipment to establish a binding relationship between the user terminal and the third-party intelligent terminal.
Correspondingly, the gateway device receives a binding request of the user terminal.
Step 407, the gateway device establishes a binding relationship between the user terminal and the third-party intelligent terminal according to the binding request.
The gateway equipment stores the binding relationship between the user terminal and the third-party intelligent terminal. The binding relationship may also be stored in a server or a user terminal.
After the binding relationship is established, the user terminal may control the third party smart terminal.
It should be noted that the message communicated between the user terminal and the gateway device adopts a gateway-side message format. The gateway-side message format is the transport protocol used by the gateway device.
Step 408, the user terminal sends a primitive control message to the gateway device;
when the network connection is directly established between the user terminal and the gateway equipment, the user terminal directly sends the primitive control message to the gateway equipment through the network connection.
When the user terminal and the gateway device indirectly establish network connection through the server, the user terminal sends the primitive control message to the gateway device through the server. That is, the user terminal sends the primitive control message to the server first, and the server forwards the primitive control message to the gateway device.
The primitive control message is used for controlling the target third-party intelligent terminal, so that the target third-party intelligent terminal is triggered to execute the preset operation. The primitive control packet is a packet in a gateway-side packet format.
For example, if the third-party intelligent terminal is an intelligent lamp, and the user wishes to control the intelligent lamp to turn on, the information carried in the primitive control message includes: identification and starting instructions of the intelligent electric lamp;
for another example, if the third-party smart terminal is a smart jack and the user wishes to turn off the smart jack at regular time, the information carried in the primitive control message includes: identification of the intelligent socket, timing closing time and a timing closing instruction;
for another example, if the third-party intelligent terminal is an intelligent refrigerator, and the user wishes to change the operation mode of the intelligent refrigerator, the information carried in the primitive control message includes: identification of intelligent refrigerator, identification of operation mode.
Optionally, the primitive control message also carries an identifier of the gateway device.
Optionally, the primitive control packet is generated by a user operating a user terminal; optionally, the primitive control packet is automatically generated by the user terminal according to a preset control policy.
Step 409, the gateway equipment converts the primitive control message into a third-party control message, wherein the third-party control message is in a third-party message format;
and the gateway equipment acquires the identifier of the third-party intelligent terminal from the primitive control message. And the gateway equipment inquires a third party message format corresponding to the third party intelligent terminal.
If the third-party message format is the third-party message format supported and converted by the native program in the gateway equipment, the gateway equipment converts the native control message into a third-party control message through the native program;
if the third party message format is the third party message format supported and converted by the third party protocol analysis plug-in the gateway equipment, the gateway equipment converts the primitive control message into a third party control message through the third party protocol analysis plug-in.
It should be noted that the third party protocol resolution plug-in may be developed by a third party manufacturer and uploaded to the server after development. And the gateway equipment acquires the third-party protocol analysis plug-in from the server in an updating mode or a request mode and installs the third-party protocol analysis plug-in.
Step 410, the gateway device sends a third party control message to a third party intelligent terminal through network connection;
the network connection is a connection established between the gateway device and a third party intelligent terminal.
Correspondingly, the third-party intelligent terminal receives the third-party control message.
Step 411, the third party intelligent terminal executes the third party control message.
Because the third party control message adopts a third party message format, the third party intelligent terminal can directly analyze and execute the third party control message.
For example, taking the intelligent electric lamp as an example, after receiving the third party control message for indicating "on", the intelligent electric lamp is switched from the off state to the on state.
In summary, in the terminal control method provided in this embodiment, the gateway device converts the primitive control packet into a third-party control packet, and sends the third-party control packet to the third-party intelligent terminal through network connection; the problem that the application range of the current intelligent home system is limited due to the fact that the same manufacturer is difficult to produce all kinds of intelligent terminals at the same time is solved; the same gateway equipment can support the connection and control of a plurality of third-party intelligent terminals adopting different third-party transmission protocols and/or different third-party message formats, and even if the third-party intelligent terminals are third-party intelligent terminals produced by different manufacturers, the effect of unified management and control can be achieved.
The terminal control method provided by this embodiment further generates the primitive control packet by the user terminal, so that the user terminal can remotely control the third-party intelligent terminal. If the user terminal runs an instant messaging program or a social application, the gateway device and the third-party intelligent terminal can be used as a contact person to display and control.
Because the third-party message format is generally the relatively confidential content of each third-party manufacturer, the third-party manufacturer is generally reluctant to disclose the specific details of the third-party message format to other manufacturers, the terminal control method provided by the embodiment enables the third-party intelligent terminal to access the gateway device by providing the API of the gateway-side message format for the third-party manufacturer and developing the third-party protocol analysis plug-in by the third-party manufacturer, and the third-party manufacturer is not required to disclose the details of the third-party message format.
For easy understanding, please refer to fig. 4B, the user terminal 120 sends the primitive control packet a, the primitive control packet B, and the primitive control packet C to the gateway device 160 through the predetermined APP. The primitive control message A is used for controlling the third-party intelligent equipment A, the primitive control message B is used for controlling the third-party intelligent equipment B, and the primitive control message C is used for controlling the third-party intelligent equipment C. The three primitive control messages are sent to the server 140 first, and the server 140 queries the gateway device 160 corresponding to the user terminal 120 according to the pre-stored association relationship. Server 140 forwards the three primitive control messages to gateway device 160. The gateway device 160 receives the three primitive control messages by executing an internal internet of things program, converts the primitive control message a into a third-party control message a through a third-party protocol analysis plug-in a, and sends the third-party control message a to the third-party intelligent device a; converting the primitive control message B into a third-party control message B through a third-party protocol analysis plug-in B, and sending the third-party control message B to a third-party intelligent device B; and converting the primitive control message C into a third-party control message C through a third-party protocol analysis plug-in component C, and sending the third-party control message C to third-party intelligent equipment C. The third-party control message a, the third-party control message B, and the third-party control message C generally have different third-party message formats.
In an optional embodiment based on the embodiment of fig. 4A, the user terminal may send the primitive control packet by using a single third-party smart terminal as an object, or may send the primitive control packet by using a group including at least two third-party smart terminals as an object. In this embodiment, a user terminal sends a primitive control packet by using a single third-party intelligent terminal as an object.
The primitive control message is used for triggering the accessed third-party intelligent terminal under the gateway equipment to execute the predetermined operation. At the user terminal, the primitive control packet includes several different implementation forms as follows:
firstly, when receiving control information input in a button form, a user terminal directly or indirectly sends a primitive control message to gateway equipment with an incidence relation through a server, so that the gateway equipment converts the primitive control message into a third-party control message and sends the third-party control message to a third-party intelligent terminal;
such as an "on" or "off button in the" smart light device control "interface shown in fig. 5. When the user clicks the 'on' button, the user terminal generates and sends a primitive control message for turning on the intelligent lamp, so that the gateway equipment converts the primitive control message into a third party control message and sends the third party control message to the intelligent lamp.
Secondly, when receiving control information input in a text form conforming to a fixed format, the user terminal directly or indirectly sends a primitive control message to gateway equipment with an association relationship through a server, so that the gateway equipment converts the primitive control message into a third-party control message and sends the third-party control message to a third-party intelligent terminal;
because the gateway device can be displayed in the instant messaging client or the social application client of the user terminal in the form of a contact, the user inputs the control information in the form of characters conforming to the fixed format, and the control information can be sent to the gateway device in the form of chat information in the instant messaging client or the social application client.
For example, taking the intelligent electric lamp as an example, control information with a fixed format of "on", "off", "dimming", or "brightening" is specified, and the user directly inputs the control information conforming to the fixed format in the chat interface corresponding to the intelligent electric lamp: on, off, dim, or brighten, etc., forming the primitive control message. The primitive control message is directly sent to the gateway equipment with the association relationship in the form of chat information, or indirectly sent to the gateway equipment with the association relationship through the server, and then the gateway equipment converts the primitive control message into a third party control message and sends the third party control message to the intelligent electric lamp.
Thirdly, when receiving control information input in a non-fixed format character form, the user terminal analyzes the control information to obtain a corresponding primitive control message, and directly or indirectly sends the primitive control message to gateway equipment with an association relationship through a server, so that the gateway equipment converts the primitive control message into a third-party control message and sends the third-party control message to a third-party intelligent terminal;
for example, in the case of an intelligent electric lamp, control information such as "on", "off", "dimming", or "brightening" in a fixed format is specified. The chat information input by the user in the chat interface corresponding to the intelligent electric lamp is 'please help me to turn on the lamp', and the user terminal analyzes the control information 'please help me to turn on the lamp' through a character recognition technology, a semantic recognition technology and the like to obtain a primitive control message for indicating 'on'. The primitive control message is directly sent to the gateway equipment with the association relationship in the form of chat information, or indirectly sent to the gateway equipment with the association relationship through the server, and then the gateway equipment converts the primitive control message into a third party control message and sends the third party control message to the intelligent electric lamp.
Fourthly, when receiving control information input in a non-fixed format character form, the user terminal sends the control information in the character form to the server, the server analyzes the control information to obtain a corresponding primitive control message, and then the server sends the primitive control message to gateway equipment with an association relation, so that the gateway equipment converts the primitive control message into a third-party control message and sends the third-party control message to a third-party intelligent terminal;
based on the third implementation form, if the user terminal does not have the character recognition technology, the semantic analysis technology, and the like, the received control information input in the non-fixed format character form can be sent to the server. The server analyzes the control information through a character recognition technology, a semantic recognition technology and the like to obtain a corresponding primitive control message.
Fifthly, when receiving control information input in a voice form, the user terminal obtains a corresponding control message through voice recognition and analysis of the control information, and directly or indirectly sends the control message to a third-party intelligent terminal with an association relationship through a server;
for example, taking an intelligent electric lamp as an example, if a user says "please help me to turn on the lamp", the user terminal analyzes the control information "please help me to turn on the lamp" through a semantic analysis technology, a semantic extraction technology and the like, and obtains a corresponding control message. The control message can be directly sent to the third-party intelligent terminal with the association relationship, and also can be indirectly sent to the third-party intelligent terminal with the association relationship through the server.
Sixthly, when receiving the control information input in the voice form, the user terminal sends the control information in the voice form to the server, and the server sends a primitive control message to the gateway equipment with the association relation, so that the gateway equipment converts the primitive control message into a third-party control message and sends the third-party control message to the third-party intelligent terminal.
Based on the fifth implementation form, if the user terminal does not have the semantic analysis technology, the semantic extraction technology, or the like, the received control information input in the form of voice may be sent to the server. The server analyzes the control information through a semantic analysis technology, a semantic extraction technology and the like to obtain a corresponding primitive control message.
Correspondingly, the gateway equipment receives the primitive control message sent by the user terminal with the association relation.
In this embodiment, since the triggering form of the control information is very diverse, the terminal control method is more humanized and intelligent in practical application.
In another possible embodiment, the primitive control message is generated by a server. At this time, step 408 in the embodiment of fig. 4A may be alternatively implemented as step 608a and step 608b, as shown in fig. 6:
step 608a, the server generates a primitive control message according to a predetermined first control strategy;
optionally, the first control policy is a control policy preset in the server by the user terminal.
Optionally, the first control policy is a control policy preset in the server, and the control policy is selectable by the user terminal. After the user terminal enables or pays attention to the first control strategy, the server automatically executes the first control strategy.
For example, the first control strategy includes: the primitive control message for opening the curtain is sent to the intelligent curtain at 6:00 a day, the primitive control message for opening the electric lamp is sent to the intelligent electric lamp at 19:00 a day, and the primitive control message for keeping the indoor temperature at 20 ℃ is sent to the intelligent air conditioner at 10:00 a night every day.
In step 608b, the server sends the primitive control packet to the gateway device, where the primitive control packet is generated by the server according to the predetermined first control policy.
In this embodiment, since the server may generate the primitive control packet according to the predetermined first control policy, the server may replace the user terminal to control the third-party intelligent terminal even if the user terminal is powered off.
In another possible embodiment, the primitive control message is generated by the gateway device. At this point, step 408 in the FIG. 4A embodiment may alternatively be implemented as step 708, as shown in FIG. 7:
step 708, the gateway device generates a primitive control message according to a predetermined second control strategy;
optionally, the second control policy is a control policy preset in the gateway device by the user terminal.
Optionally, the second control policy is a control policy preset in the gateway device, and the control policy may be selectable by the user terminal. After the user terminal enables or pays attention to the second control strategy, the gateway equipment automatically executes the second control strategy.
For example, the second control strategy includes: the primitive control message for opening the curtain is sent to the intelligent curtain at 6:00 a day, the primitive control message for opening the electric lamp is sent to the intelligent electric lamp at 19:00 a day, and the primitive control message for keeping the indoor temperature at 20 ℃ is sent to the intelligent air conditioner at 10:00 a night every day.
In this embodiment, since the gateway device may generate the primitive control packet according to the predetermined second control policy, the gateway device may replace the user terminal to control the third-party intelligent terminal even if the user terminal is powered off.
In another possible embodiment, the primitive control message is generated by another third party intelligent terminal. The other third-party intelligent terminal is assumed to be a third-party intelligent terminal A, and the controlled third-party intelligent terminal is assumed to be a third-party intelligent terminal B. At this point, step 408 in the embodiment of FIG. 4A may be alternatively implemented as step 808 a. As shown in fig. 8:
step 808a, the third party intelligent terminal A sends a third party control message to the gateway equipment;
the third party control message is used for controlling the third party intelligent terminal.
Taking the example that the third-party intelligent terminal A is an intelligent switch and the third-party intelligent terminal is an intelligent lamp, the intelligent switch controls a message to the gateway device by a third party, and the third-party control message is used for controlling the intelligent lamp to be turned on or turned off.
Optionally, a binding relationship is established between the third-party intelligent terminal a and the third-party intelligent terminal B in the gateway device, or the third-party intelligent terminal a and the third-party intelligent terminal B are bound with the same user terminal. The third-party intelligent terminal B can be not limited to one device, but also can be a plurality of devices.
808b, the gateway device receives the third party control message;
the third party control message adopts a third party message format, and the third party message format corresponds to the third party intelligent terminal A. The third-party message format corresponding to the third-party intelligent terminal a is usually different from the third-party message format corresponding to the third-party intelligent terminal B.
Step 808c, the gateway device converts the third party control message into a primitive control message in a gateway side message format.
In the subsequent step 409, the gateway device converts the primitive control packet into a third-party control packet in a third-party packet format corresponding to the third-party intelligent terminal B.
In this embodiment, linkage control can be implemented between the third-party intelligent terminal and the third-party intelligent terminal. The effect that the user can use one third-party intelligent terminal to control one or more other third-party intelligent terminals is achieved.
It should be noted that, if the third-party packet format corresponding to the third-party intelligent terminal a is the same as the third-party packet format corresponding to the third-party intelligent terminal B, the gateway device may directly forward the third-party control packet.
It should be added that, in another possible embodiment based on the above embodiments, the third-party intelligent terminal may further send data to the user terminal or another third-party intelligent terminal, where the data may be current operation data of the third-party intelligent terminal, so that the user terminal or another third-party intelligent terminal is facilitated. Referring to fig. 9, the terminal control method further includes the steps of:
step 412, the third party intelligent terminal sends a third party data message to the gateway device, wherein the third party data message is a message in a third party message format;
the third party message format corresponds to the third party intelligent terminal.
The third party data message may include operating data of the third party intelligent terminal.
Step 413, the gateway device receives a third party data message sent by the third party intelligent terminal, wherein the third party data message is a message in a third party message format;
step 414, the gateway device converts the third-party data message into a primitive data message, wherein the primitive data message is a message in a gateway-side message format;
step 415, the gateway device sends the primitive data message to the user terminal, or the gateway device converts the primitive data message into another third party data message and sends the another third party data message to another third party intelligent terminal;
when the destination device of the third party data packet is a user terminal, the gateway device directly or indirectly sends the primitive data packet to the user terminal through a server.
When the destination device of the third party data message is another third party intelligent terminal (third party intelligent terminal C), the gateway device converts the primitive data message into another third party data message, and a third party transmission protocol adopted by the another third party data message corresponds to the another third party intelligent terminal (third party intelligent terminal C). Then, the gateway device sends the other third-party data message obtained after the conversion to another third-party intelligent terminal (third-party intelligent terminal C).
For example, the third-party intelligent terminal is an intelligent washing machine, the intelligent washing machine generates a third-party data message according to the current washing state of the intelligent washing machine, and the intelligent washing machine sends the third-party data message to the gateway device. Then, the gateway device converts the third-party data message into a primitive data message and forwards the primitive data message to the user terminal. The user terminal can analyze the washing state from the primitive data message and display the washing state.
It should be noted that, if the third-party transmission protocol corresponding to the third-party intelligent terminal a is the same as the third-party transmission protocol corresponding to the third-party intelligent terminal B, the gateway device may directly forward the third-party data packet to the third-party intelligent terminal B.
It should be further noted that, in this embodiment, the execution sequence of steps 411 to 414 in the embodiment of fig. 4 or in an alternative embodiment based on the embodiment of fig. 4 is not limited.
In some alternative embodiments, the process of establishing an association relationship between the user terminal and the gateway device, which is shown in step 401, may be alternatively implemented as steps 401a to 401, as shown in fig. 10:
step 401a, a user terminal acquires an equipment identifier of a gateway device in a preset mode;
the preset mode comprises the following steps: any one of scanning a two-dimensional code on the gateway device, scanning a bar code on the gateway device, receiving character information input by a user, identifying characters on the gateway device and/or communicating with the gateway device through a wireless Near Field Communication (NFC).
The device identifier is usually a character string, and the device identifiers of different gateway devices are different. For example, if the device identifier of a certain gateway device is "117417255", and the device identifier is encoded to obtain a two-dimensional code, the user terminal may obtain the device identifier of the gateway device by recognizing the two-dimensional code.
It should be noted that the device identifier may also be directly printed on the specification of the gateway device when the gateway device leaves the factory, or may be printed on a label and then attached to the gateway device. The user may enter the device identification directly in the user terminal. Optionally, the device identifier is a user account in an instant messaging service or a user account in a social service. For example, the device identifier is a QQ number in the instant messenger QQ.
Step 401b, the user terminal sends a request carrying the device identifier of the gateway device for adding the association relationship to the server;
the request for adding the association carries an equipment identifier of the gateway equipment, and the equipment identifier of the gateway equipment is acquired by the user terminal through the preset mode. The user terminal can determine the association relation with the gateway equipment after the agreement of the server.
Correspondingly, the server receives a request carrying the device identifier of the gateway device for adding the association relationship, which is sent by the user terminal.
Step 401c, the server detects whether a user terminal establishing an association relation with the gateway device for the first time exists;
preferably, a corresponding authority management mechanism is set in the whole instant messaging system, and the server sets the user terminal which establishes the association relation with the gateway device for the first time as an administrator. After the administrator, the user terminal applying for establishing the association with the gateway device must be approved by the administrator to establish the association.
Step 401d, if the detection result is existence, the server sends an authorization request to the user terminal which establishes the association relation with the gateway equipment for the first time;
the authorization request is used to inquire the user terminal that establishes the association relationship with the gateway device for the first time, that is, whether the administrator agrees to establish the association relationship between the gateway device and other user terminals.
The specific implementation mode is as follows: firstly, a server sends an authorization request to a user terminal which establishes an association relation with gateway equipment for the first time; then, the user terminal receives an authorization request sent by a server; secondly, the user terminal receives an input signal whether to permit the authorization request; and finally, if the input signal indicates that the authorization request is allowed, the user terminal sends the allowance feedback information to the server, so that the server sends an addition success response to other user terminals after receiving the allowance feedback information. Wherein the input signal of whether to permit the authorization request is input by the user of the user terminal associated with the gateway device for the first time.
If the detection result indicates that the response is not present, the server directly performs the step of transmitting the add success response to the user terminal.
Step 401e, the server sends an addition success response to the user terminal when receiving permission feedback information sent by the user terminal for establishing the association relation with the gateway device for the first time;
and after the user of the user terminal establishing the association relation with the gateway equipment for the first time agrees to establish the association relation between the user terminal and the gateway equipment, the server sends a response of successful addition to the user terminal. The successful response usually carries the name of the gateway device, the IP (Internet Protocol, Protocol for interconnection between networks), the port information, and other contents.
Correspondingly, the user terminal receives the addition success response sent by the server.
Step 401f, after receiving the response of successful addition fed back by the server, the user terminal establishes an association relationship with the gateway device;
after the user terminal and the gateway device establish an association relationship, the user terminal can control the gateway device to execute a predetermined operation according to the control instruction by the corresponding control instruction control and intelligent device connected with the user terminal.
Step 401g, the server sends a command of adding the association relation to the gateway device;
the command for adding the association carries the device identifier of the user terminal, and the command for adding the association is sent after the server receives the request for adding the association sent by the user terminal. Further, the command for adding the association relationship is usually sent after the server receives the permission feedback information sent by the user terminal for establishing the association relationship with the gateway device for the first time. And the command for adding the association relationship is used for triggering the gateway equipment to establish the association relationship with the user terminal.
Correspondingly, the gateway device receives the command for adding the association relation sent by the server.
Step 401h, the gateway equipment and the user terminal establish an association relation;
and after receiving the command of adding the association relation sent by the server, the gateway equipment establishes the association relation with the user terminal.
After the association relationship is successfully established, information of the gateway device, such as the device name, the device icon, and the like, is displayed in the "device list" of the user terminal shown in fig. 11.
It should be noted that, in the embodiment of the present invention, the association relationship established between the gateway device and the user terminal may be an association relationship between the gateway device and a user account logged in a predetermined APP in the user terminal.
In an alternative embodiment based on the embodiment of fig. 4, the gateway device further needs to identify in advance whether the third party intelligent terminal is a trusted intelligent terminal. That is, before step 404, a step 4035 as shown in fig. 12 is also included, and step 404 is alternatively implemented as step 404 a:
4035, the gateway device verifies whether the third-party intelligent terminal is a trusted intelligent terminal according to the device information;
the gateway equipment stores the identification of the trusted intelligent terminal as a trusted list in advance. For example, a manufacturer a of the gateway device cooperates with a manufacturer B of the third-party intelligent terminal, the manufacturer B of the third-party intelligent terminal provides the produced device identifier list of the third-party intelligent terminal to the manufacturer a of the gateway device, and the manufacturer a of the gateway device stores the device identifier list in the gateway device.
Step 404a, when the verification result shows that the third party intelligent terminal is the trusted intelligent terminal, the gateway device sends the device information of the third party intelligent terminal to the user terminal.
And when the verification result shows that the third-party intelligent terminal is not the trusted intelligent terminal, the gateway equipment disconnects the third-party intelligent terminal, or equipment information of the third-party intelligent terminal is not sent to the user terminal.
And then, establishing a binding relationship between the user terminal and the third-party intelligent terminal. In the embodiment of the present invention, the binding relationship established between the third-party intelligent terminal and the user terminal may also be the binding relationship between the third-party intelligent terminal and the user account logged in the predetermined APP in the user terminal.
In this embodiment, the gateway device only sends the device information of the trusted intelligent terminal to the user terminal, so that the user terminal binds the trusted intelligent terminal, and the security of the user terminal can be effectively protected.
Referring to fig. 13, a block diagram of a terminal control apparatus according to an embodiment of the present invention is shown. The apparatus may be implemented as all or part of a gateway device in software, hardware, or a combination of both. The device includes: a connection module 1320, an acquisition module 1340, a conversion module 1360, and a sending module 1380;
a connection module 1320, configured to establish a network connection with at least one third-party intelligent terminal, where the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals exist and use different third-party transmission protocols and/or different third-party message formats;
an obtaining module 1340, configured to obtain a primitive control packet, where the primitive control packet is a packet in a gateway side packet format;
a conversion module 1360, configured to convert the primitive control packet into a third-party control packet, where the third-party control packet is a packet in the third-party packet format;
a sending module 1380, configured to send the third-party control packet to the third-party intelligent terminal through the network connection, where the third-party intelligent terminal is configured to execute the third-party control packet.
In summary, the terminal control apparatus provided in this embodiment converts the primitive control packet into a third-party control packet through the gateway device, and sends the third-party control packet to the third-party intelligent terminal through network connection; the problem that the application range of the current intelligent home system is limited due to the fact that the same manufacturer is difficult to produce all kinds of intelligent terminals at the same time is solved; the same gateway equipment can support the connection and control of a plurality of third-party intelligent terminals adopting different third-party transmission protocols and/or different third-party message formats, and even if the third-party intelligent terminals are third-party intelligent terminals produced by different manufacturers, the effect of unified management and control can be achieved.
Referring to fig. 14, a block diagram of a terminal control device according to another embodiment of the present invention is shown. The apparatus may be implemented as all or part of a gateway device in software, hardware, or a combination of both. The device includes: a connection module 1320, an acquisition module 1340, a conversion module 1360, and a sending module 1380;
a connection module 1320, configured to establish a network connection with at least one third-party intelligent terminal, where the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals exist and use different third-party transmission protocols and/or different third-party message formats;
an obtaining module 1340, configured to obtain a primitive control packet, where the primitive control packet is a packet in a gateway side packet format;
a conversion module 1360, configured to convert the primitive control packet into a third-party control packet, where the third-party control packet is a packet in the third-party packet format;
a sending module 1380, configured to send the third-party control packet to the third-party intelligent terminal through the network connection, where the third-party intelligent terminal is configured to execute the third-party control packet.
Optionally, the converting module 1360 is configured to convert the primitive control packet into the third party control packet through a native program; or, the conversion module 1360 is configured to convert the primitive control packet into the third-party control packet through a third-party protocol analysis plug-in.
Optionally, the obtaining module 1340 is configured to receive the primitive control packet sent by the user terminal; or, the obtaining module 1340 is configured to receive the primitive control packet sent by the server, where the primitive control packet is forwarded after the server receives the primitive control packet sent by the user terminal; or, the obtaining module 1340 is configured to receive the primitive control packet sent by the server, where the primitive control packet is generated by the server according to a predetermined first control policy; or, the obtaining module 1340 is configured to generate the primitive control packet according to a predetermined second control policy; or, the obtaining module 1340 is configured to receive a third-party control packet in the third-party packet format sent by another third-party intelligent terminal, and convert the third-party control packet into the primitive control packet in the gateway-side packet format.
Optionally, the apparatus further comprises: a receiving module 1330;
the receiving module 1330 is configured to receive a third-party data packet sent by the third-party intelligent terminal, where the third-party data packet is a packet in the third-party packet format;
the conversion module 1360 is further configured to convert the third-party data packet into a primitive data packet, where the primitive data packet is a packet in a gateway-side packet format;
the sending module 1380 is further configured to send the primitive data packet to the user terminal, or convert the primitive data packet into another third party data packet, and send the another third party data packet to another third party intelligent terminal.
Optionally, the apparatus further comprises: a binding module 1350;
the obtaining module 1340 is configured to obtain device information of the third-party intelligent terminal;
the sending module 1380 is configured to send the device information of the third-party intelligent terminal to the user terminal;
the receiving module 1330 is configured to receive a binding request of the ue;
the binding module 1350 is configured to establish a binding relationship between the user terminal and the third-party smart terminal according to the binding request.
Optionally, the apparatus further comprises:
a verification module 1370, configured to verify whether the third-party intelligent terminal is a trusted intelligent terminal according to the device information;
the sending module 1380 is configured to send the device information of the third-party smart terminal to the user terminal when the verification result of the verification module 1370 is that the third-party smart terminal is the trusted smart terminal.
Optionally, the apparatus further comprises: an association module 1390;
the association module is used for establishing an association relationship with the user terminal, wherein the association relationship is any one of a binding relationship, a friend relationship in the instant messaging service, a friend relationship in the social service and a concern relationship in the social service.
Optionally, at least two third-party intelligent terminals adopt different third-party transmission protocols.
Optionally, the third party transmission protocol includes at least one of the following protocols:
a transmission protocol based on a wireless fidelity (WIFI) protocol;
a transmission protocol based on the Zigbee protocol;
a transmission protocol based on a Bluetooth Low Energy (BLE) protocol;
a transmission protocol based on the radio frequency RF433 protocol;
a transmission protocol based on a radio frequency RF2.4G protocol;
a transmission protocol based on the radio frequency RF5G protocol;
and the transmission protocol is based on the wireless networking specification Z-Wave.
It should be noted that: the terminal control device provided in the foregoing embodiment is only illustrated by dividing the functional modules when triggering an intelligent network service, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the terminal control device and the terminal control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (19)

1. A terminal control method, characterized in that the method comprises:
establishing network connection with at least one third-party intelligent terminal, wherein the network connection accords with a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
responding to a second control strategy which is started or concerned by the user terminal and is preset in the gateway equipment, and generating a primitive control message according to the second control strategy; alternatively, the first and second electrodes may be,
in response to receiving a third party control message in the third party message format sent by another third party intelligent terminal, converting the third party control message into the primitive control message in the gateway side message format;
the third party control message is a message in the third party message format, and the primitive control message is a message which is used for controlling the third party intelligent terminal and is in the gateway side message format;
converting the primitive control message into the third party control message;
sending the third party control message to the third party intelligent terminal through the network connection, wherein the third party intelligent terminal is used for executing the third party control message;
receiving a third party data message sent by the third party intelligent terminal through the network connection, wherein the third party data message is a message in a third party message format;
converting the third-party data message into a primitive data message, wherein the primitive data message is a message in a gateway side message format;
when a third party transmission protocol corresponding to the target equipment of the third party data message is different from a third party transmission protocol corresponding to the third party intelligent terminal, converting the primitive data message into another third party data message, and sending the another third party data message to the target equipment;
when a third party transmission protocol corresponding to the target equipment of the third party data message is the same as the third party transmission protocol corresponding to the third party intelligent terminal, sending the third party data message to the target equipment;
the target device is any one third-party intelligent terminal different from the third-party intelligent terminal.
2. The method of claim 1, wherein converting the primitive control packet into a third party control packet comprises:
converting the primitive control message into the third party control message through a native program;
or the like, or, alternatively,
and converting the primitive control message into the third party control message through a third party protocol analysis plug-in.
3. The method of claim 1, further comprising:
receiving the primitive control message sent by the user terminal;
or the like, or, alternatively,
receiving the primitive control message sent by a server, wherein the primitive control message is forwarded after the server receives the primitive control message sent by the user terminal;
or the like, or, alternatively,
and receiving the primitive control message sent by the server, wherein the primitive control message is generated by the server according to a preset first control strategy.
4. The method of claim 1, further comprising: and when the destination equipment of the third party data message is a user terminal, sending the primitive data message to the user terminal.
5. The method of any of claims 1 to 4, further comprising:
acquiring equipment information of the third-party intelligent terminal;
sending the equipment information of the third-party intelligent terminal to a user terminal;
receiving a binding request of the user terminal;
and establishing a binding relationship between the user terminal and the third-party intelligent terminal according to the binding request.
6. The method according to claim 5, wherein after acquiring the device information of the third-party intelligent terminal, the method further comprises:
verifying whether the third-party intelligent terminal is a trusted intelligent terminal or not according to the equipment information;
the sending the device information of the third-party intelligent terminal to the user terminal comprises:
and when the verification result shows that the third-party intelligent terminal is the trusted intelligent terminal, sending the equipment information of the third-party intelligent terminal to the user terminal.
7. The method of any of claims 1 to 4, further comprising:
and establishing an association relation with the user terminal, wherein the association relation is any one of a binding relation, a friend relation in the instant messaging service, a friend relation in the social service and an attention relation in the social service.
8. The method according to any of claims 1 to 4, wherein the third party transport protocol comprises at least one of the following protocols:
a transmission protocol based on a wireless fidelity (WIFI) protocol;
a transmission protocol based on the Zigbee protocol;
a transmission protocol based on a Bluetooth Low Energy (BLE) protocol;
a transmission protocol based on the radio frequency RF433 protocol;
a transmission protocol based on a radio frequency RF2.4G protocol;
a transmission protocol based on the radio frequency RF5G protocol;
and the transmission protocol is based on the wireless networking specification Z-Wave.
9. A terminal control apparatus, characterized in that the apparatus comprises:
the connection module is used for establishing network connection with at least one third-party intelligent terminal, the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
the acquisition module is used for responding to a second control strategy which is started or concerned by the user terminal and is preset in the gateway equipment, and generating a primitive control message according to the second control strategy; or, in response to receiving a third party control message in the third party message format sent by another third party intelligent terminal, converting the third party control message into the primitive control message in the gateway side message format, where the third party control message is a message in the third party message format, and the primitive control message is a message in the gateway side message format and is used for controlling the third party intelligent terminal;
the conversion module is used for converting the primitive control message into the third party control message;
the sending module is used for sending the third party control message to the third party intelligent terminal through the network connection, and the third party intelligent terminal is used for executing the third party control message;
the receiving module is used for receiving a third party data message sent by the third party intelligent terminal, wherein the third party data message is a message in a third party message format;
the conversion module is further configured to convert the third-party data message into a primitive data message, where the primitive data message is a message in a gateway-side message format;
the sending module is further configured to, when the destination device of the third party data packet is another third party intelligent terminal and a third party transmission protocol corresponding to the another third party intelligent terminal is different from a third party transmission protocol corresponding to the third party intelligent terminal, convert the primitive data packet into another third party data packet, and send the another third party data packet to the another third party intelligent terminal;
when the destination device of the third party data message is another third party intelligent terminal and the third party transmission protocol corresponding to the other third party intelligent terminal is the same as the third party transmission protocol corresponding to the third party intelligent terminal, sending the third party data message to the other third party intelligent terminal;
the target device is any one third-party intelligent terminal different from the third-party intelligent terminal.
10. The apparatus of claim 9,
the conversion module is used for converting the primitive control message into the third party control message through a native program;
or the like, or, alternatively,
and the conversion module is used for converting the primitive control message into the third-party control message through a third-party protocol analysis plug-in.
11. The apparatus of claim 9, wherein the obtaining module is configured to:
receiving the primitive control message sent by the user terminal;
or the like, or, alternatively,
receiving the primitive control message sent by a server, wherein the primitive control message is forwarded after the server receives the primitive control message sent by the user terminal;
or the like, or, alternatively,
and receiving the primitive control message sent by the server, wherein the primitive control message is generated by the server according to a preset first control strategy.
12. The apparatus of claim 9, wherein the receiving module is further configured to send the primitive data packet to the user terminal when a destination device of the third party data packet is the user terminal.
13. The apparatus of any of claims 9 to 12, further comprising: the device comprises a receiving module and a binding module;
the acquisition module is used for acquiring the equipment information of the third-party intelligent terminal;
the sending module is used for sending the equipment information of the third-party intelligent terminal to the user terminal;
the receiving module is used for receiving the binding request of the user terminal;
and the binding module is used for establishing a binding relationship between the user terminal and the third-party intelligent terminal according to the binding request.
14. The apparatus of claim 13, further comprising:
the verification module is used for verifying whether the third-party intelligent terminal is a trusted intelligent terminal or not according to the equipment information;
and the sending module is used for sending the equipment information of the third-party intelligent terminal to the user terminal when the verification result of the verification module is that the third-party intelligent terminal is the trusted intelligent terminal.
15. The apparatus of any of claims 9 to 12, further comprising: a correlation module;
the association module is used for establishing an association relationship with the user terminal, wherein the association relationship is any one of a binding relationship, a friend relationship in the instant messaging service, a friend relationship in the social service and a concern relationship in the social service.
16. The apparatus according to any of claims 9 to 12, wherein the third party transport protocol comprises at least one of the following protocols:
a transmission protocol based on a wireless fidelity (WIFI) protocol;
a transmission protocol based on the Zigbee protocol;
a transmission protocol based on a Bluetooth Low Energy (BLE) protocol;
a transmission protocol based on the radio frequency RF433 protocol;
a transmission protocol based on a radio frequency RF2.4G protocol;
a transmission protocol based on the radio frequency RF5G protocol;
and the transmission protocol is based on the wireless networking specification Z-Wave.
17. A network system, characterized in that the system comprises: the system comprises a user terminal, a server, gateway equipment and a third-party intelligent terminal;
the gateway equipment is used for establishing network connection with at least one third-party intelligent terminal, the network connection conforms to a third-party transmission protocol supported by the third-party intelligent terminal, and at least two third-party intelligent terminals adopt different third-party transmission protocols and/or different third-party message formats;
the user terminal is used for sending a primitive control message to the gateway equipment through the server, wherein the primitive control message is used for controlling the third-party intelligent terminal and adopts a gateway-side message format;
the gateway device is used for responding to a second control strategy which is started or concerned by the user terminal and is preset in the gateway device, and generating a primitive control message according to the second control strategy; or, in response to receiving a third party control message in the third party message format sent by another third party intelligent terminal, converting the third party control message into the primitive control message in the gateway side message format, where the third party control message is a message in the third party message format, and the primitive control message is a message in the gateway side message format and is used for controlling the third party intelligent terminal; converting the primitive control message into a third party control message;
the gateway device is used for sending the third party control message to the third party intelligent terminal through the network connection;
the third-party intelligent terminal is used for executing the third-party control message;
the gateway device is used for receiving a third party data message sent by the third party intelligent terminal through the network connection, wherein the third party data message is a message in a third party message format;
the gateway device is used for converting the third-party data message into a primitive data message, wherein the primitive data message is a message in a gateway-side message format;
the gateway device is configured to, when a destination device of the third party data packet is another third party intelligent terminal and a third party transmission protocol corresponding to the another third party intelligent terminal is different from a third party transmission protocol corresponding to the third party intelligent terminal, convert the primitive data packet into another third party data packet, and send the another third party data packet to the another third party intelligent terminal;
the gateway device is configured to send the third-party data packet to another third-party intelligent terminal when a destination device of the third-party data packet is another third-party intelligent terminal and a third-party transmission protocol corresponding to the another third-party intelligent terminal is the same as the third-party transmission protocol corresponding to the third-party intelligent terminal;
the target device is any one third-party intelligent terminal different from the third-party intelligent terminal.
18. The system according to claim 17, wherein a predetermined application program runs in the user terminal, and the server is a background server corresponding to the predetermined application program;
the predetermined application program is any one of an instant messaging program, a social contact application program, an intelligent home management application program and a gateway management application program.
19. A computer-readable storage medium, having at least one program code stored therein, the at least one program code being loaded and executed by a processor to implement the operations performed in the terminal control method according to any one of claims 1 to 8.
CN201510991952.9A 2015-12-26 2015-12-26 Terminal control method, device and system Active CN105471686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510991952.9A CN105471686B (en) 2015-12-26 2015-12-26 Terminal control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510991952.9A CN105471686B (en) 2015-12-26 2015-12-26 Terminal control method, device and system

Publications (2)

Publication Number Publication Date
CN105471686A CN105471686A (en) 2016-04-06
CN105471686B true CN105471686B (en) 2022-01-07

Family

ID=55608996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510991952.9A Active CN105471686B (en) 2015-12-26 2015-12-26 Terminal control method, device and system

Country Status (1)

Country Link
CN (1) CN105471686B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898893B (en) * 2016-05-31 2020-09-22 北京乐美无限科技有限公司 Full-duplex communication method for mobile terminal and Internet of things equipment
CN107547314B (en) * 2016-06-24 2021-03-12 夏普株式会社 Intelligent household appliance cloud platform and intelligent household cloud system
CN106292378A (en) * 2016-09-29 2017-01-04 董学章 A kind of switch panel supporting Based Intelligent Control
CN108111465B (en) 2016-11-24 2021-08-31 华为技术有限公司 Method and device for managing user equipment
CN109039837A (en) * 2017-06-12 2018-12-18 大唐移动通信设备有限公司 A kind of communication means and intelligent domestic gateway of smart home system
CN107395583B (en) * 2017-07-14 2020-09-04 北京墨丘科技有限公司 Method and device for realizing communication between different applications based on natural language
CN107360071B (en) * 2017-08-15 2020-02-14 中国联合网络通信集团有限公司 Information sending method of intelligent home network, mobile client and intelligent home gateway
CN107493211A (en) * 2017-08-29 2017-12-19 海信集团有限公司 The control method and device of intelligent home device
CN107801167A (en) * 2017-11-13 2018-03-13 广东聚光电子科技有限公司 The method of mobile terminal and smart device communication and the device for realizing this method
CN107968995B (en) * 2017-11-29 2019-11-29 北京地平线机器人技术研发有限公司 Short-distance communication equipment sharing request and control method, electronic equipment and storage medium
CN108111999B (en) * 2017-12-28 2020-02-28 北京地平线机器人技术研发有限公司 Device sharing request and control method, electronic device and storage medium
CN109347506A (en) * 2018-10-24 2019-02-15 四川蓝色港湾科技有限公司 A kind of data relay device suitable for a variety of transmission modes
CN109410555A (en) * 2018-12-04 2019-03-01 惠州Tcl移动通信有限公司 Terminal control method, device, terminal and storage medium
CN111435338A (en) * 2019-01-14 2020-07-21 中国移动通信集团终端有限公司 Multi-intelligent hardware unified management and control method, platform, system, equipment and storage medium
CN111478816A (en) * 2020-04-15 2020-07-31 公牛集团股份有限公司 Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment
CN112087454B (en) * 2020-09-10 2021-08-31 上海顺舟智能科技股份有限公司 Communication method, device, equipment and storage medium of Internet of things gateway equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802139A (en) * 2012-07-10 2012-11-28 无锡航天飞邻测控技术有限公司 Gateway data adapting system and method of Internet of Things
CN103701695A (en) * 2013-12-26 2014-04-02 四川九洲电器集团有限责任公司 Intelligent home gateway control system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1689201A1 (en) * 2003-11-20 2006-08-09 NEC Corporation Mobile communication system using private network, relay node, and radio base control station
CN102064959B (en) * 2010-11-16 2014-07-23 西安电子科技大学 Three-network convergence oriented digital home network architecture
CN103023681B (en) * 2011-09-22 2016-03-02 北京天成信宇科技有限责任公司 Smart home control device, update method
CN103379154B (en) * 2012-04-23 2016-12-14 中兴通讯股份有限公司 Household electric appliance control method, cloud system, home gateway General controller and domestic electric appliances controller
CN103647706A (en) * 2013-12-27 2014-03-19 深圳市众鸿科技股份有限公司 Self-adaptation protocol communication gateway and communication platform
CN104079653A (en) * 2014-07-03 2014-10-01 上海积谕信息科技有限公司 Smart home control method and system based on B/S framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802139A (en) * 2012-07-10 2012-11-28 无锡航天飞邻测控技术有限公司 Gateway data adapting system and method of Internet of Things
CN103701695A (en) * 2013-12-26 2014-04-02 四川九洲电器集团有限责任公司 Intelligent home gateway control system

Also Published As

Publication number Publication date
CN105471686A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105471686B (en) Terminal control method, device and system
US10511550B2 (en) Systems and methods for instant messaging
US9420044B2 (en) Leveraging system signaling service advertisements for application-layer discovery and connection management in an internet of things (IoT) environment
RU2602982C2 (en) Method, apparatus and system for intelligently controlling device and plug-and-play device
EP3425566B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
US10264424B2 (en) Information processing method and central control device
WO2016058366A1 (en) Smart home appliance control method and home control center
US20160277205A1 (en) Internet of things (iot) communication method, communication end, and user end
US9468029B2 (en) Unifying multiple wireless networks
US10038754B2 (en) Method of establishing communication session using active connection of mobile terminal to relay server
WO2016145797A1 (en) Smart home control method, device and system
US10908889B2 (en) Method, user equipment, and application server for downloading application
EP3007385B1 (en) Terminal peripheral control method, m2m gateway, and communications system
CN113132185B (en) Equipment distribution network binding method, system, mobile terminal and storage medium
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
CN103581316A (en) Intercommunication control system and method of internet-of-things controllers
WO2017143743A1 (en) Heterogeneous protocol communication method and controller
KR102303095B1 (en) Method for assigning a tag with an action within a network, respective network and control device
US9712993B2 (en) System and method of trigger service
CN108989157B (en) Method and device for controlling intelligent equipment
EP3032838A1 (en) Message processing method, device, gateway, set-top box and internet protocol television system
WO2017000447A1 (en) Control method, device and system for intelligent household appliance
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
Sakai et al. Virtual personal area network system for integrating pans with different standards and locations
KR101636215B1 (en) Gateway apparatus and method for providing a plurality of wireless communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant