CN106161151A - The control method of a kind of Smart Home and equipment - Google Patents
The control method of a kind of Smart Home and equipment Download PDFInfo
- Publication number
- CN106161151A CN106161151A CN201610408706.0A CN201610408706A CN106161151A CN 106161151 A CN106161151 A CN 106161151A CN 201610408706 A CN201610408706 A CN 201610408706A CN 106161151 A CN106161151 A CN 106161151A
- Authority
- CN
- China
- Prior art keywords
- intelligent home
- home device
- terminal
- signaling
- feedback message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/283—Processing of data at an internetworking point of a home automation network
- H04L12/2834—Switching of information between an external network and a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Automation & Control Theory (AREA)
- Computing Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses control method and the equipment of a kind of Smart Home, limited by hardware resource due to intelligent home device for solution, the control of the terminal the most equal with the tcp port number of the built-in communication module of intelligent home device, the problem reducing Consumer's Experience can only be accepted simultaneously.Method includes: first terminal sends relay services and searches signaling;If described first terminal receives the first feedback message of the second terminal, according to described first feedback message, set up with described second terminal and be connected;Described first terminal, by described second terminal, sends control signaling to the intelligent home device being connected with described second terminal, to be controlled described intelligent home device.Owing to first terminal can be controlled by the intelligent home device that this second terminal is connected by the second terminal, it is achieved that the control to same intelligent home device of multiple terminals, improve Consumer's Experience.
Description
Technical field
The present invention relates to communication technical field, particularly relate to control method and the equipment of a kind of Smart Home.
Background technology
Along with the development of Smart Home, have multiple terminal and multiple intelligent home devices in one family, it may appear that many
The situation of individual one intelligent home device of terminal control, this intelligent home device and the plurality of terminal typically access same route
Device, after terminal is connected with intelligent home device foundation, kinsfolk can realize the control to intelligent home device by terminal
System.
In prior art, the built-in communication module of intelligent home device is due to by central processing unit (Central
Processing Unit, CPU) etc. the restriction of hardware resource, cause communication capacity limited, can simultaneously set up the end of connection
Hold limited, during the control of intelligent home device receiving terminal, need to distribute hardware resource and be attached with described terminal, and,
During intelligent home device is connected with terminal, intelligent home device needs to open UDP (User simultaneously
Data Protocol, UDP) port and open transmission control protocol (Transmission Control Protocol, TCP) end
Mouthful, also can consume the hardware resource that intelligent home device is more, therefore, intelligent home device at most can only receive this Smart Home
The control of the terminal that the tcp port number of the built-in communication module of equipment is equal, when other terminal needs to control intelligent home device
Time, need to force to seize the hardware resource that an existing terminal is enjoyed, so that be connected with this intelligent home device
Terminal disconnects with intelligent home device, thus cannot obtain the state of intelligent home device.
In sum, conventionally, as intelligent home device is limited by hardware resource, can only accept the most simultaneously
The control of many terminals equal with the tcp port number of the built-in communication module of intelligent home device, reduces Consumer's Experience.
Summary of the invention
It is an object of the invention to provide control method and the equipment of a kind of Smart Home, to solve intelligent home device discovery
During, owing to intelligent home device is limited by hardware resource, at most built-in with intelligent home device can only be accepted simultaneously
The control of the terminal that the tcp port number of communication module is equal, the problem reducing Consumer's Experience.
Embodiments provide the control method of a kind of Smart Home, including:
First terminal sends relay services and searches signaling, and wherein, described relay services is searched signaling and is used for searching described the
Whether the LAN at one terminal place exists the second terminal performing relay services;
If described first terminal receives the first feedback message of the second terminal, according to described first feedback message, with institute
Stating the second terminal and set up connection, described first feedback message includes the IP address of described second terminal and/or described second terminal
Tcp port information;
Described first terminal, by described second terminal, sends control to the intelligent home device being connected with described second terminal
Signaling processed, to be controlled described intelligent home device.
Optionally, described first feedback message also includes at least one in following information: described second terminal connects
The type information of intelligent home device, for characterizing the information of described intelligent home device current state, for identifying described intelligence
The identification information of energy home equipment;Or
Described relay services searches the type information of the intelligent home device that signaling also includes that needs control;Described first anti-
Feedback message also includes at least one in following information: for being connected with described second terminal and meeting the intelligence of described type information
Can home equipment current state information, be connected and meet the intelligent family of described type information with described second terminal for mark
Occupy the identification information of equipment.
Optionally, after described first terminal sends relay services lookup signaling, described method also includes:
If in setting the time period, described first terminal is not received by the first feedback message of any second terminal, described
First terminal sends intelligent home device and searches signaling, and wherein, described intelligent home device is searched signaling and is used for searching described office
Intelligent home device in the net of territory;
Described first terminal receives the second feedback message of intelligent home device;
Described first terminal, according to described second feedback message, is set up with described intelligent home device and is connected, and described second
Feedback message includes the IP address of described intelligent home device and/or the tcp port information of described intelligent home device.
Optionally, described second feedback message also includes at least one in following information: described intelligent home device
Type information, for characterizing the information of described intelligent home device current state, for identifying the mark of described intelligent home device
Knowledge information.
Optionally, described first terminal, according to described second feedback message, is set up with described intelligent home device and is connected it
After, described method also includes:
Described first terminal is set up with the other-end in described LAN and is connected;
Described first terminal receives the control signaling that described other-end sends;
Described first terminal, by described control signaling, is transmitted to the intelligent home device indicated by described control signaling, with
Control described intelligent home device.
Embodiments provide the control method of a kind of Smart Home, including:
If the tcp port that intelligent home device is by self, receive in LAN and connect with described intelligent home device
The control signaling that the second terminal connect sends, described intelligent home device parses the operation indicated by described control signaling, its
In, the udp port of described intelligent home device is closed, and described control signaling is the first terminal in described LAN
It is sent to described second terminal;
Described intelligent home device performs the operation indicated by described control signaling.
Optionally, described method also includes:
If the udp port that intelligent home device is by self, receive the intelligent home device lookup that first terminal sends
Signaling, wherein, the tcp port of described intelligent home device is closed, and described intelligent home device is searched signaling and is used for
Search the intelligent home device in the LAN at described first terminal place;
Described intelligent home device sends the second feedback message to described first terminal, and closes described udp port, starts
The tcp port of self, wherein, described second feedback message includes the type information of described intelligent home device, for characterizing
State the information of intelligent home device current state, at least one in the identification information identifying described intelligent home device,
The IP address of described intelligent home device and/or the tcp port information of described intelligent home device;
Described intelligent home device passes through described tcp port, receives the control that other-end is sent by described first terminal
Signaling processed.
Optionally, described method also includes:
If the connection between described intelligent home device and described first terminal disconnects, described intelligent home device closes institute
State tcp port, start described udp port.
Embodiments provide a kind of terminal, including:
Sending module, is used for sending relay services and searches signaling, and wherein, described relay services is searched signaling and is used for searching institute
State and whether the LAN at the terminal place belonging to sending module exists the second terminal performing relay services;
Processing module, if for the first feedback message receiving the second terminal, according to described first feedback message, with institute
Stating the second terminal and set up connection, described first feedback message includes the IP address of described second terminal and/or described second terminal
Tcp port information;
Sending module is additionally operable to: by described second terminal, send out to the intelligent home device being connected with described second terminal
Send control signaling, so that described intelligent home device to be controlled.
Optionally, described sending module is additionally operable to: if described terminal is not received by any second in setting the time period
First feedback message of terminal, sends intelligent home device and searches signaling, and wherein, described intelligent home device is searched signaling and is used for
Search the intelligent home device in described LAN;
Described processing module is additionally operable to: receive the second feedback message of intelligent home device;According to described second feedback
Message, with described intelligent home device set up be connected, described second feedback message include described intelligent home device IP address,
And/or the tcp port information of described intelligent home device.
Optionally, described processing module is additionally operable to: sets up with the other-end in described LAN and is connected;Receive described
The control signaling that other-end sends;
Described sending module is additionally operable to: by described control signaling, be transmitted to the Smart Home indicated by described control signaling
Equipment, to control described intelligent home device.
Embodiments provide a kind of intelligent home device, including:
First processing module, if by the tcp port of the intelligent home device belonging to described first processing module, receiving
The control signaling that the second terminal being connected with described equipment in LAN sends, is used for parsing indicated by described control signaling
Operation, wherein, the udp port of described intelligent home device is closed, and described control signaling is in described LAN
First terminal be sent to described second terminal;
Second processing module, for performing the operation indicated by described control signaling.
Optionally, described first processing module is additionally operable to: if by the udp port of described intelligent home device, receiving
The intelligent home device that first terminal sends searches signaling, and wherein, the tcp port of described intelligent home device is in closedown shape
State, described intelligent home device lookup signaling intelligent home device in the LAN searching described first terminal place,
For sending the second feedback message to described first terminal, and close described udp port, start described intelligent home device
Tcp port, wherein, described second feedback message includes the type information of described intelligent home device, for characterizing described intelligence
The information of home equipment current state, at least one in the identification information identifying described intelligent home device, described intelligence
The IP address of energy home equipment and/or the tcp port information of described intelligent home device;
By described tcp port, receive the control signaling that other-end is sent by described first terminal.
Optionally, described first processing module is additionally operable to:
If the connection between described intelligent home device and described first terminal disconnects, close described tcp port, start institute
State udp port.
In the control method of a kind of Smart Home that the embodiment of the present invention provides and equipment, first terminal sends relay services
Searching signaling, wherein, described relay services searches whether signaling exists in the LAN searching described first terminal place
Perform the second terminal of relay services;If described first terminal receives the first feedback message of the second terminal, according to described
One feedback message, sets up with described second terminal and is connected, and described first feedback message includes the internet protocol of described second terminal
View IP address and/or the transmission control protocol TCP port information of described second terminal;Described first terminal passes through described second
Terminal, sends control signaling to the intelligent home device being connected with described second terminal, to carry out described intelligent home device
Control.Owing to first terminal can be controlled by the intelligent home device that this second terminal is connected by the second terminal, it is achieved
Multiple terminals controls to same intelligent home device, improve Consumer's Experience.
Accompanying drawing explanation
The control method flow chart of a kind of Smart Home that Fig. 1 provides for the embodiment of the present invention;
A kind of terminal interface schematic diagram that Fig. 2 provides for the embodiment of the present invention;
Another terminal interface schematic diagram that Fig. 3 provides for the embodiment of the present invention;
The control method flow chart of another Smart Home that Fig. 4 provides for the embodiment of the present invention;
The control method flow chart of the another kind of Smart Home that Fig. 5 provides for the embodiment of the present invention;
The schematic diagram of a kind of terminal that Fig. 6 provides for the embodiment of the present invention;
The schematic diagram of a kind of intelligent home device that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
In order to the technical scheme of the embodiment of the present invention is described, employ the printed words such as " first ", " second ", in local area network not
With terminal make a distinction, but quantity and operator precedence level to terminal does not limits, and first terminal represents new access office
Any terminal of territory net, the second terminal represents any terminal accessing described LAN.
The "and/or" mentioned in the embodiment of the present invention, describes the incidence relation of affiliated partner, and expression can exist three kinds of passes
System, such as, A and/or B, can represent: individualism A, there is A and B, individualism B these three situation simultaneously.Symbol "/" one
As represent forward-backward correlation to as if the relation of a kind of "or".
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.Should be appreciated that described herein
Embodiment be merely to illustrate and explain the present invention, be not intended to limit the present invention.
In following example, intelligent home device refers to include the equipment of communication module.Wherein, communication module is defined as
Can provide the functional module of a kind of network connection service in intelligent home device, communication module includes but not limited to Wireless Fidelity
(Wireless-Fidelity, Wi-Fi) module, bluetooth (Bluetooth) module, mobile network (mobile web) module, void
Intend dedicated network (Virtual Private Network, VPN) module, Ethernet (Ethernet) module etc..
Optionally, described intelligent home device includes but not limited to intelligent television, intelligent refrigerator, intelligent air condition.
In embodiment shown in Fig. 1, it is provided that the control method of a kind of Smart Home, including:
Step 100, first terminal send relay services and search signaling, and wherein, described relay services is searched signaling and is used for looking into
Look for and whether the LAN at described first terminal place exists the second terminal performing relay services.
Optionally, described relay services is searched signaling and is used UDP format.
Optionally, first terminal uses the mode of multicast or broadcast to send described relay services and searches signaling.
Optionally, described relay services is searched in signaling can carry search criterion, and described querying condition is used for screening institute
State the second terminal in LAN.
Optionally, described search criterion includes but not limited to the type of intelligent home device and/or intelligent home device
Current state, it is not limited by the embodiment of the present invention.
Accordingly, after the second terminal in LAN receives described relay services lookup signaling, first judged with self
Whether the intelligent home device connected meets described relay services is searched the search criterion in signaling, if meeting, then to first eventually
End sends the first feedback message;If being unsatisfactory for, do not deal with.
Illustrate: assume that search criterion includes the type of intelligent home device, with the type of intelligent home device as intelligence
As a example by energy air-conditioning, the most described relay services searches signaling for searching second be connected in described LAN with intelligent air condition eventually
End, after the second terminal being connected with intelligent air condition in LAN receives described relay services lookup signaling, to first terminal
Send the first feedback message;The second terminal not being connected with intelligent air condition in LAN receives described relay services and searches signaling
After, do not deal with.
If the described first terminal of step 110 receives the first feedback message of the second terminal, disappear according to described first feedback
Breath, sets up with described second terminal and is connected, and described first feedback message includes the Internet Protocol of described second terminal
(Internet Protocol, IP) address and/or the tcp port information of described second terminal.
Optionally, described first feedback message uses UDP format.
Optionally, the second terminal uses the mode of clean culture to send described first feedback message.
Concrete, if after arbitrary second terminal in LAN receives relay services lookup signaling, if this second terminal
Determine that self is connected with the intelligent home device in described LAN, then return the first feedback message;If this second terminal is true
Determine self not to be connected with any intelligent home device in described LAN, do not process.
Step 120, described first terminal, by described second terminal, set to the Smart Home being connected with described second terminal
For sending control signaling, so that described intelligent home device is controlled.
Concrete, first terminal sends control signaling to the second terminal;Second terminal by with described intelligent home device
Between connection, the control signaling that receive is sent described intelligent home device, to realize first terminal to described intelligence man
The equipment of residence is controlled.
Optionally, control signaling and include the type information of described intelligent home device, the mark of described intelligent home device
At least one in the information of the state that information, intelligent home device are adjusted to.
As a example by intelligent refrigerator, the first terminal control interface to intelligent refrigerator 60d8, as in figure 2 it is shown, described intelligence man
Occupy the type information i.e. intelligent refrigerator of equipment, the identification information i.e. 60d8 of described intelligent home device, control described Smart Home
The information of the state that equipment is adjusted to i.e. temperature of refrigerating chamber 5 DEG C, freezer temperature is subzero 18 DEG C, and model selection is intelligence mould
Formula.
In the control method of a kind of Smart Home that the embodiment of the present invention provides, first terminal sends relay services and searches letter
Order, wherein, described relay services searches whether signaling deposits in commission in the LAN searching described first terminal place
Second terminal of following the service business;If described first terminal receives the first feedback message of the second terminal, according to described first feedback
Message, sets up with described second terminal and is connected, and described first feedback message includes IP address and/or the institute of described second terminal
State the tcp port information of the second terminal;Described first terminal is by described second terminal, to the intelligence being connected with described second terminal
Can send control signaling, so that described intelligent home device is controlled by home equipment.Owing to first terminal can be by second
The intelligent home device that this second terminal is connected by terminal is controlled, it is achieved that multiple terminals are to same intelligent home device
Control, improve Consumer's Experience.
In a kind of optional implementation, described first feedback message also includes: the intelligent family that described second terminal connects
Occupy the type information of equipment, for characterizing the information of described intelligent home device current state, for identifying described Smart Home
At least one in the identification information of equipment.
Concrete, described first terminal is after receiving described first feedback message, it is possible to determine with described second eventually
The type of intelligent home device, identification information and the current state that end connects.
In which, the type of intelligent home device can be that intelligent air condition, intelligent television, intelligent refrigerator and intelligence are washed
Clothing machine etc..
In which, can be online, off-line etc. for characterizing the information of described intelligent home device current state.
In another kind of optional implementation, described relay services is searched signaling and is also included that the Smart Home that needs control sets
Standby type information, the most described first feedback message also includes: for being connected with described second terminal and meeting described type letter
The information of the intelligent home device current state of breath, it is connected with described second terminal for mark and meets described type information
At least one in the identification information of intelligent home device.
Illustrate: first terminal obtain the first feedback message include the type of intelligent home device, identification information,
And current state, the most as shown in Figure 3:
As a example by intelligent refrigerator 6003, the type of intelligent home device is intelligent refrigerator, and 6003 is the mark of this intelligent refrigerator
Knowledge information, the information of this intelligent refrigerator current state includes: this intelligent refrigerator is to connect with LAN in intelligent refrigerator the most online
The Wireless Fidelity wi-fi module connect is opened, and temperature of refrigerating chamber is 5 DEG C, and freezer temperature is-22 DEG C, and refrigerator pattern is self-defined
Pattern;
As a example by intelligent air condition 0022, the type of intelligent home device is intelligent air condition, and 0022 is the mark of this intelligent air condition
Knowledge information, the information of this intelligent air condition current state includes: this intelligent air condition is to connect with LAN in intelligent air condition the most online
The Wireless Fidelity wi-fi module connect is opened, and intelligent air condition is opened, and air-conditioner temperature is 25 DEG C, and air conditioning mode is heating mode;
As a example by intelligent air condition 001a, the type of intelligent home device is intelligent air condition, and 001a is the mark of this intelligent air condition
Knowledge information, this intelligent air condition is in off-line state intelligent air condition the Wireless Fidelity wi-fi module being connected with LAN and does not opens,
Therefore the current state of intelligent air condition 001a cannot be obtained.
Based on any of the above-described embodiment, in the embodiment of the present invention, after described first terminal sends relay services lookup signaling,
Alternatively possible implementation is:
If in setting the time period, described first terminal is not received by the first feedback message of any second terminal, described
First terminal sends intelligent home device and searches signaling, and wherein, described intelligent home device is searched signaling and is used for searching described office
Intelligent home device in the net of territory;
Optionally, described intelligent home device is searched in signaling can carry search criterion, and described querying condition is used for sieving
Select the intelligent home device in described LAN.
Optionally, described search criterion includes but not limited to the type of intelligent home device and/or intelligent home device
Current state, it is not limited by the embodiment of the present invention.
Accordingly, after the intelligent home device in LAN receives described intelligent home device lookup signaling, first judge
Self whether meeting described intelligent home device and search the search criterion in signaling, if meeting, then sending second to first terminal
Feedback message;If being unsatisfactory for, do not deal with.
Illustrate: assume that search criterion includes the type of intelligent home device, with the type of intelligent home device as intelligence
As a example by energy air-conditioning, the most described intelligent home device searches signaling for searching the intelligent air condition in described LAN, in LAN
Intelligent air condition receive described intelligent home device and search after signaling, send the second feedback message to first terminal;LAN
In other intelligent home devices in addition to intelligent air condition receive after described intelligent home device searches signaling, do not deal with.
The described setting time period, in actual applications according to the requirements set of user, it is also possible to determine according to emulation, this
Bright embodiment is not construed as limiting.
Illustrating, the described setting time period can be 3 seconds, after described first terminal sends relay services lookup signaling, and 3
In second, described first terminal is not received by the first feedback message of any second terminal, and described first terminal sends Smart Home
Equipment searches signaling.
Described first terminal receives the second feedback message of intelligent home device;
Described first terminal, according to described second feedback message, is set up with described intelligent home device and is connected, and described second
Feedback message includes the IP address of described intelligent home device and/or the tcp port information of described intelligent home device;Described
Second feedback message also includes at least one in following information: the type information of described intelligent home device, be used for characterizing institute
State the information of intelligent home device current state, for identifying the identification information of described intelligent home device.
Further, described first terminal, according to described second feedback message, is set up with described intelligent home device and is connected
Afterwards, described first terminal is set up with the other-end in described LAN and is connected;Described first terminal receive described other
The control signaling that terminal sends;Described first terminal, by described control signaling, is transmitted to the intelligence indicated by described control signaling
Home equipment, to control described intelligent home device.
Concrete, that other terminal in LAN can be connected to described first terminal by described first terminal intelligence
Home equipment sends control signaling, to realize the control to the intelligent home device that described first terminal connects.
Based on the inventive concept as said method, the embodiment of the present invention additionally provides the controlling party of a kind of Smart Home
Method, as shown in Figure 4, including operating as follows:
If the tcp port that step 400 intelligent home device is by self, receive in LAN with described Smart Home
The control signaling that the second terminal that equipment has connected sends, described intelligent home device parses indicated by described control signaling
Operation, wherein, the udp port of described intelligent home device is closed, and described control signaling is in described LAN
First terminal is sent to described second terminal;
Step 410, described intelligent home device perform the operation indicated by described control signaling.
The intelligence when scene that above-mentioned steps 400 and step 410 are applied is first terminal access to LAN, in LAN
Home equipment has established with the second terminal in this LAN and has been connected, and now, the tcp port of intelligent home device is in work
State, is i.e. able to receive that the control signaling that the second terminal sends, and the udp port of this intelligent home device is closed, i.e.
Intelligent home device cannot be received and search signaling.
Under above-mentioned application scenarios, before step 400, also include: intelligent home device and the second terminal set up connection
Process, specific as follows:
After described intelligent home device access to LAN, open the udp port of self, to monitor intelligent home device lookup
Signaling, wherein, the tcp port of described intelligent home device is closed;
When described intelligent home device receives, by described udp port, the intelligent home device lookup that the second terminal sends
After signaling, send the second feedback message to the second terminal, and close described udp port, open described tcp port.
Wherein, described second feedback message includes: the IP address of described intelligent home device and/or described Smart Home
The tcp port information of equipment.
Optionally, described second feedback message also includes at least one in following information: described intelligent home device
Type information, for characterizing the information of described intelligent home device current state, for identifying the mark of described intelligent home device
Knowledge information.
Intelligent family when another application scenarios in the embodiment of the present invention is first terminal access to LAN, in LAN
The equipment of residence does not sets up any connection, and now, the udp port of intelligent home device is in running order, i.e. monitors Smart Home and sets
For future reference looking for signaling, the tcp port of this intelligent home device is closed.Under this scene, described method includes:
If the udp port that intelligent home device is by self, receive the intelligent home device lookup that first terminal sends
Signaling, wherein, the tcp port of described intelligent home device is closed, and described intelligent home device is searched signaling and is used for
Search the intelligent home device in the LAN at described first terminal place;
Described intelligent home device sends the second feedback message to described first terminal, and closes described udp port, starts
The transmission control protocol TCP port of self, wherein, described second feedback message includes the type letter of described intelligent home device
Cease, for characterizing the information of described intelligent home device current state, for identifying the identification information of described intelligent home device
In at least one, the IP address of described intelligent home device and/or the transmission control protocol TCP of described intelligent home device
Port information;
Described intelligent home device passes through described tcp port, receives the control that other-end is sent by described first terminal
Signaling processed.
In the embodiment of the present invention, if the connection between described intelligent home device and described first terminal disconnects, described intelligence
Described tcp port can be closed by home equipment, start described udp port.
In the embodiment of the present invention, tcp port and udp port are not opened in the same time, have saved intelligent home device
Resource.
Discovery method below by a kind of intelligent home device that the embodiment of the present invention is provided by a specific embodiment
It is described in detail.
Assume that the intelligent home device in LAN is intelligent air condition, this LAN does not has terminal, smart mobile phone A and intelligence
Energy mobile phone B is the terminal of this LAN to be accessed, and wherein, after smart mobile phone A first accesses this LAN, smart mobile phone B accesses again
This LAN, as it is shown in figure 5, include:
After smart mobile phone A access to LAN, the processing procedure of the present embodiment is as follows:
After step 500, smart mobile phone A access to LAN, send relay services and search signaling.
Step 510, smart mobile phone A are not received by the first feedback message of other smart mobile phone, send Smart Home and set
For future reference look for signaling.
Step 520, intelligent air condition receive described intelligent home device and search after signaling, by self IP address and/or
The tcp port information of self is sent to smart mobile phone A.
Step 530, intelligent air condition are first shut off udp port, are then turned on tcp port;Or while closedown udp port
Open tcp port.
Step 540, smart mobile phone A receive the IP address of intelligent air condition and/or the tcp port information of intelligent air condition, and
Store this information.
Step 550, smart mobile phone A are according to the IP address of intelligent air condition and/or the tcp port information of intelligent air condition and intelligence
TCP connection can be set up by air-conditioning.
Smart mobile phone A sets up after TCP is connected with intelligent air condition, and smart mobile phone A just can send to intelligent air condition and control
Signaling, to control this intelligent air condition, such as, step 560, smart mobile phone A send control signaling to intelligent air condition, control Intelligent air
Adjust in cooling mode, adjust the temperature to 26 DEG C.
After smart mobile phone B access to LAN, the processing procedure of the present embodiment is as follows:
Step 570, smart mobile phone B send relay services and search signaling.
Step 580, smart mobile phone A receive and send relay services to search after signaling, by self IP address and/or self
Tcp port information be sent to smart mobile phone B.
Step 590, smart mobile phone B according to the tcp port information of the IP address of smart mobile phone A and/or smart mobile phone A with
Smart mobile phone A sets up TCP and connects.
Step 5100, smart mobile phone B set up after TCP is connected with smart mobile phone A, smart mobile phone B by smart mobile phone A to
The intelligent air condition being connected with smart mobile phone A sends control signaling, to control this intelligent air condition.
Based on the inventive concept that the embodiment of the method shown in Fig. 2 is same, embodiments provide a kind of terminal, such as figure
Shown in 6, this terminal includes:
Sending module 601, is used for sending relay services and searches signaling, and wherein, described relay services is searched signaling and is used for looking into
Look for and whether the LAN at the terminal place belonging to described sending module exists the second terminal performing relay services;
Processing module 602, if for the first feedback message receiving the second terminal, according to described first feedback message,
Setting up with described second terminal and be connected, described first feedback message includes the IP address and/or described second of described second terminal
The tcp port information of terminal;
Sending module is additionally operable to: by described second terminal, send out to the intelligent home device being connected with described second terminal
Send control signaling, so that described intelligent home device to be controlled.
In a kind of terminal that the present embodiment provides, described terminal sends relay services and searches signaling, wherein, described middle following the service
Business searches whether signaling exists the second terminal performing relay services in the LAN searching described terminal place;If receiving
To the first feedback message of the second terminal, according to described first feedback message, set up with described second terminal and be connected, described first
Feedback message includes IP address and/or the tcp port information of described second terminal of described second terminal;By described second
Terminal, sends control signaling to the intelligent home device being connected with described second terminal, to carry out described intelligent home device
Control.Owing to this terminal can be controlled by the intelligent home device that this second terminal is connected by the second terminal, it is achieved that
The control to same intelligent home device of multiple terminals, improves Consumer's Experience.
Optionally, described sending module is additionally operable to: if described terminal is not received by any second in setting the time period
First feedback message of terminal, sends intelligent home device and searches signaling, and wherein, described intelligent home device is searched signaling and is used for
Search the intelligent home device in described LAN;
Described processing module is additionally operable to: receive the second feedback message of intelligent home device;According to described second feedback
Message, with described intelligent home device set up be connected, described second feedback message include described intelligent home device IP address,
And/or the transmission control protocol TCP port information of described intelligent home device.
Optionally, described processing module is additionally operable to: sets up with the other-end in described LAN and is connected;Receive described
The control signaling that other-end sends;
Described sending module is additionally operable to: by described control signaling, be transmitted to the Smart Home indicated by described control signaling
Equipment, to control described intelligent home device.
Based on the inventive concept as the embodiment of the method shown in Fig. 2, embodiments provide a kind of intelligence man
Occupy equipment, as it is shown in fig. 7, this intelligent home device includes:
First processing module 701, if the tcp port of the intelligent home device belonging to described first processing module, receives
The control signaling that the second terminal being connected with described intelligent home device in LAN sends, is used for parsing described control and believes
Operation indicated by order, wherein, the udp port of described intelligent home device is closed, and described control signaling is described
First terminal in LAN is sent to described second terminal;
Second processing module 702, for performing the operation indicated by described control signaling.
Optionally, described first processing module is additionally operable to:
If by the udp port of described intelligent home device, receiving the intelligent home device lookup that first terminal sends
Signaling, wherein, the tcp port of described intelligent home device is closed, and described intelligent home device is searched signaling and is used for
Search the intelligent home device in the LAN at described first terminal place, disappear for sending the second feedback to described first terminal
Breath, and close described udp port, start the tcp port of described intelligent home device, wherein, described second feedback message includes
The type information of described intelligent home device, for characterizing the information of described intelligent home device current state, for identifying
State at least one in the identification information of intelligent home device, the IP address of described intelligent home device and/or described intelligence man
Occupy the tcp port information of equipment;
By described tcp port, receive the control signaling that other-end is sent by described first terminal.
Optionally, described first processing module is additionally operable to:
If the connection between described intelligent home device and described first terminal disconnects, close described tcp port, start institute
State udp port.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code
The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.
Claims (14)
1. the control method of a Smart Home, it is characterised in that described method includes:
First terminal sends relay services and searches signaling, and wherein, described relay services is searched signaling and is used for searching described first eventually
Whether the LAN at end place exists the second terminal performing relay services;
If described first terminal receives the first feedback message of the second terminal, according to described first feedback message, with described
Two terminals are set up and are connected, and described first feedback message includes the Internet protocol IP address and/or described the of described second terminal
The transmission control protocol TCP port information of two terminals;
Described first terminal, by described second terminal, sends to the intelligent home device being connected with described second terminal and controls letter
Order, to be controlled described intelligent home device.
Method the most according to claim 1, it is characterised in that described first feedback message also includes in following information extremely
Few one: the type information of the intelligent home device that described second terminal connects, to be used for characterizing described intelligent home device current
The information of state, for identifying the identification information of described intelligent home device;Or
Described relay services searches the type information of the intelligent home device that signaling also includes that needs control;Described first feedback disappears
Breath also includes at least one in following information: for being connected and meet the intelligent family of described type information with described second terminal
Occupy the information of equipment current state, be connected with described second terminal for mark and meet the Smart Home of described type information and set
Standby identification information.
Method the most according to claim 1, it is characterised in that after described first terminal sends relay services lookup signaling,
Described method also includes:
If being not received by the first feedback message of any second terminal setting described first terminal in the time period, described first
Terminal sends intelligent home device and searches signaling, and wherein, described intelligent home device is searched signaling and is used for searching described LAN
In intelligent home device;
Described first terminal receives the second feedback message of intelligent home device;
Described first terminal, according to described second feedback message, is set up with described intelligent home device and is connected, described second feedback
Message includes the IP address of described intelligent home device and/or the tcp port information of described intelligent home device.
Method the most according to claim 3, it is characterised in that described second feedback message also includes in following information extremely
Few one: the type information of described intelligent home device, for characterizing the information of described intelligent home device current state, being used for
Identify the identification information of described intelligent home device.
Method the most according to claim 3, it is characterised in that described first terminal according to described second feedback message, with
Described intelligent home device is set up after connecting, and described method also includes:
Described first terminal is set up with the other-end in described LAN and is connected;
Described first terminal receives the control signaling that described other-end sends;
Described first terminal, by described control signaling, is transmitted to the intelligent home device indicated by described control signaling, to control
Described intelligent home device.
6. the control method of a Smart Home, it is characterised in that described method includes:
If intelligent home device is by self transmission control protocol TCP port, receive in LAN with described Smart Home
The control signaling that the second terminal that equipment has connected sends, described intelligent home device parses indicated by described control signaling
Operation, wherein, the UDP udp port of described intelligent home device is closed, and described control signaling is
First terminal in described LAN is sent to described second terminal;
Described intelligent home device performs the operation indicated by described control signaling.
Method the most according to claim 6, it is characterised in that described method also includes:
If the udp port that intelligent home device is by self, receive the intelligent home device lookup signaling that first terminal sends,
Wherein, the tcp port of described intelligent home device is closed, and described intelligent home device is searched signaling and is used for searching institute
State the intelligent home device in the LAN at first terminal place;
Described intelligent home device sends the second feedback message to described first terminal, and closes described udp port, starts self
Tcp port, wherein, described second feedback message includes the type information of described intelligent home device, for characterizing described intelligence
Can home equipment current state information, for identifying at least one in the identification information of described intelligent home device, described
The Internet protocol IP address of intelligent home device and/or the tcp port information of described intelligent home device;
Described intelligent home device passes through described tcp port, receives the control letter that other-end is sent by described first terminal
Order.
Method the most according to claim 7, it is characterised in that described method also includes:
If the connection between described intelligent home device and described first terminal disconnects, described intelligent home device is closed described
Tcp port, starts described udp port.
9. a terminal, it is characterised in that described terminal includes:
Sending module, is used for sending relay services and searches signaling, and wherein, described relay services is searched signaling and is used for searching described sending out
Send and whether the LAN at the terminal place belonging to module exists the second terminal performing relay services;
Processing module, if for receiving the first feedback message of the second terminal, according to described first feedback message, with described the
Two terminals are set up and are connected, and described first feedback message includes the Internet protocol IP address and/or described the of described second terminal
The transmission control protocol TCP port information of two terminals;
Sending module is additionally operable to: by described second terminal, send control to the intelligent home device being connected with described second terminal
Signaling processed, to be controlled described intelligent home device.
Terminal the most according to claim 9, it is characterised in that described sending module is additionally operable to: if in setting the time period
Described terminal is not received by the first feedback message of any second terminal, sends intelligent home device and searches signaling, wherein, institute
State intelligent home device and search signaling for searching the intelligent home device in described LAN;
Described processing module is additionally operable to: receive the second feedback message of intelligent home device;According to described second feedback message,
With described intelligent home device set up be connected, described second feedback message include described intelligent home device IP address and/or
The tcp port information of described intelligent home device.
11. terminals according to claim 10, it is characterised in that described processing module is additionally operable to: with in described LAN
Other-end set up connect;Receive the control signaling that described other-end sends;
Described sending module is additionally operable to: by described control signaling, be transmitted to the intelligent home device indicated by described control signaling,
To control described intelligent home device.
12. 1 kinds of intelligent home devices, it is characterised in that described intelligent home device includes:
First processing module, if by the transmission control protocol TCP end of the intelligent home device belonging to described first processing module
Mouthful, receive the control signaling that the second terminal being connected with described intelligent home device in LAN sends, be used for parsing
Operation indicated by described control signaling, wherein, the UDP udp port of described intelligent home device is in closedown
State, described control signaling is that the first terminal in described LAN is sent to described second terminal;
Second processing module, for performing the operation indicated by described control signaling.
13. intelligent home devices according to claim 12, it is characterised in that described first processing module is additionally operable to: if
By the udp port of described intelligent home device, receive the intelligent home device that first terminal sends and search signaling, wherein,
The tcp port of described intelligent home device is closed, and described intelligent home device is searched signaling and is used for searching described the
Intelligent home device in the LAN at one terminal place, for sending the second feedback message to described first terminal, and closes
Described udp port, starts the transmission control protocol TCP port of described intelligent home device, wherein, described second feedback message bag
Include the type information of described intelligent home device, for characterizing the information of described intelligent home device current state, for identifying
At least one in the identification information of described intelligent home device, the Internet protocol IP address of described intelligent home device and/
Or the tcp port information of described intelligent home device;
By described tcp port, receive the control signaling that other-end is sent by described first terminal.
14. intelligent home devices according to claim 13, it is characterised in that described first processing module is additionally operable to:
If the connection between described intelligent home device and described first terminal disconnects, close described tcp port, start described
Udp port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610408706.0A CN106161151B (en) | 2016-06-12 | 2016-06-12 | A kind of control method and equipment of smart home |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610408706.0A CN106161151B (en) | 2016-06-12 | 2016-06-12 | A kind of control method and equipment of smart home |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106161151A true CN106161151A (en) | 2016-11-23 |
CN106161151B CN106161151B (en) | 2019-09-17 |
Family
ID=57352881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610408706.0A Active CN106161151B (en) | 2016-06-12 | 2016-06-12 | A kind of control method and equipment of smart home |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161151B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108667900A (en) * | 2018-03-29 | 2018-10-16 | 深圳市九洲电器有限公司 | The method and device of the control panel of remotely located smart machine |
CN108810124A (en) * | 2018-06-02 | 2018-11-13 | 上海清鹤科技股份有限公司 | The remote access control system of a large amount of multimedia terminals under a kind of environment to public network |
CN109618133A (en) * | 2018-11-28 | 2019-04-12 | 深圳市南和移动通信科技股份有限公司 | A kind of monitoring method, terminal and system |
CN111885151A (en) * | 2020-07-21 | 2020-11-03 | 深圳市讯方技术股份有限公司 | Intelligent equipment communication method based on zigbee protocol and main intelligent equipment |
CN112866928A (en) * | 2021-01-12 | 2021-05-28 | 刘盛荣 | Control method and device of intelligent furniture and intelligent furniture |
WO2023205988A1 (en) * | 2022-04-25 | 2023-11-02 | Oppo广东移动通信有限公司 | Method and apparatus for transmitting control information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101321210A (en) * | 2008-07-04 | 2008-12-10 | 深圳华为通信技术有限公司 | Long-range control method, primary device and far-end equipment |
CN103237069A (en) * | 2013-04-17 | 2013-08-07 | 浙江大学 | Intelligent wireless household appliance controlling system and intelligent wireless household appliance controlling method |
CN104144093A (en) * | 2014-03-12 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Intelligent device control method, relevant device and system |
CN104202224A (en) * | 2014-09-11 | 2014-12-10 | 深圳市海派通讯科技有限公司 | Automatic search controlling method, device and system of intelligent appliance |
CN104898449A (en) * | 2015-06-04 | 2015-09-09 | 泰凌微电子(上海)有限公司 | Smart home system and control method thereof |
CN204884117U (en) * | 2015-06-16 | 2015-12-16 | 神猫科技(北京)有限公司 | Controlling means and system based on terminal bluetooth is used |
-
2016
- 2016-06-12 CN CN201610408706.0A patent/CN106161151B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101321210A (en) * | 2008-07-04 | 2008-12-10 | 深圳华为通信技术有限公司 | Long-range control method, primary device and far-end equipment |
CN103237069A (en) * | 2013-04-17 | 2013-08-07 | 浙江大学 | Intelligent wireless household appliance controlling system and intelligent wireless household appliance controlling method |
CN104144093A (en) * | 2014-03-12 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Intelligent device control method, relevant device and system |
CN104202224A (en) * | 2014-09-11 | 2014-12-10 | 深圳市海派通讯科技有限公司 | Automatic search controlling method, device and system of intelligent appliance |
CN104898449A (en) * | 2015-06-04 | 2015-09-09 | 泰凌微电子(上海)有限公司 | Smart home system and control method thereof |
CN204884117U (en) * | 2015-06-16 | 2015-12-16 | 神猫科技(北京)有限公司 | Controlling means and system based on terminal bluetooth is used |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108667900A (en) * | 2018-03-29 | 2018-10-16 | 深圳市九洲电器有限公司 | The method and device of the control panel of remotely located smart machine |
WO2019184533A1 (en) * | 2018-03-29 | 2019-10-03 | 深圳市九洲电器有限公司 | Method and apparatus for remotely configuring control panel of intelligent device |
CN108810124A (en) * | 2018-06-02 | 2018-11-13 | 上海清鹤科技股份有限公司 | The remote access control system of a large amount of multimedia terminals under a kind of environment to public network |
CN108810124B (en) * | 2018-06-02 | 2020-07-31 | 北京清鹤科技有限公司 | Remote access control system for large number of multimedia terminals in public network environment |
CN109618133A (en) * | 2018-11-28 | 2019-04-12 | 深圳市南和移动通信科技股份有限公司 | A kind of monitoring method, terminal and system |
CN111885151A (en) * | 2020-07-21 | 2020-11-03 | 深圳市讯方技术股份有限公司 | Intelligent equipment communication method based on zigbee protocol and main intelligent equipment |
CN111885151B (en) * | 2020-07-21 | 2023-04-18 | 深圳市讯方技术股份有限公司 | Intelligent equipment communication method based on zigbee protocol and main intelligent equipment |
CN112866928A (en) * | 2021-01-12 | 2021-05-28 | 刘盛荣 | Control method and device of intelligent furniture and intelligent furniture |
WO2023205988A1 (en) * | 2022-04-25 | 2023-11-02 | Oppo广东移动通信有限公司 | Method and apparatus for transmitting control information |
Also Published As
Publication number | Publication date |
---|---|
CN106161151B (en) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106161151A (en) | The control method of a kind of Smart Home and equipment | |
CN109257259A (en) | Scene inter-linked controlling method, device and household appliance | |
US6925360B2 (en) | Air conditioner control system using a telephone network and method for operating the same | |
CN104219150B (en) | Flow table issuance method and device | |
CN108391298B (en) | System and electronic equipment for automatically switching networks | |
CN108513154A (en) | Intelligent home furnishing control method, smart television based on smart television and storage medium | |
CN106797407A (en) | The dynamic generation of the unique identifier in things system | |
CN108834201A (en) | Household appliance and its networking control method, device, mobile terminal | |
CN108769009A (en) | Data communications method, smart machine and intelligent gateway | |
CN109347784B (en) | Terminal access control method, controller, control equipment and system | |
CN104601695A (en) | Intelligent device control method, device and system | |
CN105392185B (en) | A kind of networking method of smart machine, apparatus and system | |
CN108549246A (en) | Control method, apparatus, equipment and the readable storage medium storing program for executing of household electrical appliances operating status | |
CN111770156B (en) | Linkage control method and device and computer readable storage medium | |
CN108592302A (en) | The sending method of data, device, multi-line system, storage medium | |
CN109297142A (en) | Control method, air conditioner and storage medium | |
CN105592502B (en) | A kind of load-balancing method and device | |
CN107274531A (en) | Access control method and gate control system | |
CN101951665A (en) | Routing method of double-card mobile terminal and double-card mobile terminal | |
CN109286960A (en) | Junction network and its distribution method and apparatus, household electrical appliance | |
CN111464454A (en) | Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center | |
CN104486174B (en) | The network-building method and device of a kind of intelligent terminal | |
CN104898448A (en) | Intelligent household equipment control method and intelligent household equipment | |
CN107289581A (en) | A kind of air conditioning control method, apparatus and system | |
CN106792821B (en) | Access control method and device based on virtual gateway |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |