CN108737226A - A kind of binding method, the apparatus and system of household appliance and socket - Google Patents
A kind of binding method, the apparatus and system of household appliance and socket Download PDFInfo
- Publication number
- CN108737226A CN108737226A CN201810332643.4A CN201810332643A CN108737226A CN 108737226 A CN108737226 A CN 108737226A CN 201810332643 A CN201810332643 A CN 201810332643A CN 108737226 A CN108737226 A CN 108737226A
- Authority
- CN
- China
- Prior art keywords
- household appliance
- socket
- address information
- information
- sent
- 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/2807—Exchanging configuration information on appliance services in a home automation network
-
- 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
- H04L2012/284—Home automation networks characterised by the type of medium used
- H04L2012/2841—Wireless
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses the binding method of a kind of household appliance and socket, apparatus and system, the binding method of the household appliance and socket includes applied to socket:Receive the first address information of household appliance;According to first address information, bind request is sent to the household appliance, wherein carrying the first communications address information of the socket in the bind request;If receiving the binding acknowledgement message that the household appliance is replied, it determines and completes to bind with the household appliance, the second communications address information for obtaining and preserving the household appliance makes the socket according to second communications address information, is communicated with the household appliance.The present invention can save Internet resources, improve the promptness of communication.
Description
Technical field
The present invention relates to Smart Home technical field more particularly to the binding method of a kind of household appliance and socket, devices
And system.
Background technology
With the development of Internet technology, the intelligent family for being connected various household appliances in family by technology of Internet of things
The technology of residence is come into being, and with popularizing for smart home market, smart home has come into the life of user, and is user's
Life is provided convenience.
At present on the market in the application of smart home, intelligent appliance after being powered up, is connect with the terminal device of user,
Terminal device can obtain and show the operation conditions of household electrical appliances, could be realized and be communicated by terminal device between household electrical appliances and socket,
When needing frequently to be communicated between household electrical appliances and socket, it is required for relying on terminal device due to communicating every time, so can cause
The a large amount of wasting of resources, and there is also interact not in time.
Invention content
The present invention provides the binding method of a kind of household appliance and socket, apparatus and systems, to solve the prior art
Since the power supplys of household electrical appliances cannot be cut off in time when the exception request that middle household electrical appliances occur, so as to cause household electrical appliances service life reduction and peace is generated
The problem of full hidden danger.
The present invention provides the binding methods of a kind of household appliance and socket, are applied to socket, and this method includes:
Receive the first address information of the household appliance;
According to first address information, bind request is sent to the household appliance, wherein being taken in the bind request
The first communications address information with the socket;
If receiving the binding acknowledgement message that the household appliance is replied, determines and completes to bind with the household appliance,
Obtain and preserve the second communications address information of the household appliance.
It can be real between socket and household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket
It now binds, and preserves the communications address information of counterpart device, therefore can directly be communicated between household appliance and socket, and
Terminal device is needed not rely on, to save Internet resources, improves the promptness of communication.
Further, first address information for receiving the household appliance includes:
Reception connect the household appliance that the terminal of same router is sent by first communication party formula with the socket
The first address information, wherein the first communication party formula includes Wireless Fidelity WiFi communication, the household appliance is inserted with described
Seat connection same router, first address information includes MAC address and/or the institute of the household appliance
State the internet protocol address that router is household appliance distribution;
Second communications address information for obtaining the household appliance includes:
By first address information, it is determined as the second communications address information of the household appliance.
Socket is used with household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket includes
The first communication party formula of WiFi communication is communicated, and binding is completed, and the second communications address information of household appliance is determined
With the first communications address information of socket, to realize the direct communication between household appliance and socket.
Further, first address information for receiving the household appliance includes:
The first address information that the household appliance is sent by second communication method is received, wherein the second communication party
Formula includes bluetooth or ZigBee.
It includes blue that socket is used with household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket
The second communication method of tooth or ZigBee are communicated, and binding is completed, direct between household appliance and socket to realize
Communication.
Further, described to be sent to the household appliance after first address information for receiving the household appliance
Before bind request, the method further includes:
Judge that whether the quantity for the household appliance that the socket itself has currently been bound reached that the socket is set inserts
Bit quantity;
If not, carrying out subsequent step.
Socket is only bound with a household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket,
Accuracy when household appliance is communicated with socket may be implemented.
Further, the company-information of the socket is also carried in the bind request;
After the transmission bind request to the household appliance, the binding acknowledgement message that the household appliance is replied is received
Before, the method further includes:
The agreement binding response that the household appliance is sent is received, wherein the agreement binding response is the household appliance
Judge in the company-information pre-saved, there are what is sent when the company-information of the socket;
According to the device identification create-rule pre-saved, the first identifier information of the household appliance is generated;
The first identifier information is sent to the household appliance;
Second communications address information for obtaining the household appliance includes:
By the first identifier information and first address information, it is determined as the second mailing address of the household appliance
Information.
It was being bound in socket and household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket
Cheng Zhong, socket generate the second identifier information of the first identifier information and itself of household appliance, to ensure after the completion of binding, family
Accuracy when being communicated between electric equipment and socket.
The present invention provides the binding methods of a kind of household appliance and socket, are applied to household appliance, and this method includes:
The bind request that socket is sent is received, is set according to the household electrical appliances of reception wherein the bind request is the socket
What the first standby address information was sent, the first communications address information of the socket is carried in the bind request;
According to first communications address information, binding acknowledgement message is replied to the socket, the socket is made to receive
After the binding acknowledgement message, determine that the socket is completed to bind with the household appliance, and make the household appliance according to institute
The first communications address information is stated, is communicated with the socket.
It can be real between socket and household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket
It now binds, and preserves the communications address information of counterpart device, therefore can directly be communicated between household appliance and socket, and
Terminal device is needed not rely on, to save Internet resources, improves the promptness of communication.
Further, before the bind request for receiving socket transmission, the method further includes:
The MAC address that the household appliance is sent by first communication party formula makes described in terminal reception
The MAC Address of household appliance;
Receive the account and encrypted message of the router for the terminal connection that the terminal is sent;
It according to the account and encrypted message, is connected to the router, it is the household appliance to obtain the router
The IP address of distribution, and the IP address of the household appliance is sent to the terminal, so that the terminal is set according to the household electrical appliances
The IP address of standby MAC Address and the household appliance determines the first address information of the household appliance, and logical by first
First address information is sent to the socket by letter mode, wherein the first communication party formula includes Wireless Fidelity WiFi logical
Letter, the household appliance connect same router with the socket, and first address information includes the MAC of the household appliance
The IP address of address and/or the household appliance;
Wherein, first communications address information includes the MAC address of the socket and/or the road
By the internet protocol address that device is socket distribution.
Socket is used with household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket includes
The first communication party formula of WiFi communication is communicated, and binding is completed, and the second communications address information of household appliance is determined
With the first communications address information of socket, to realize the direct communication between household appliance and socket.
Further, before the bind request for receiving socket transmission, the method further includes:
The first address information is sent by second communication method, after so that the socket is received first address information,
Bind request is sent to the household appliance, wherein the second communication method includes bluetooth or ZigBee;
Wherein, second communications address information includes the second identifier information of the socket and the second ground of the socket
Location information.
It includes blue that socket is used with household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket
The second communication method of tooth or ZigBee are communicated, and binding is completed, direct between household appliance and socket to realize
Communication.
Further, the company-information of the socket is also carried in the bind request;
After the bind request for receiving socket transmission, before the reply binding acknowledgement message to the socket, institute
The method of stating further includes:
Judge in the company-information pre-saved, if there are the company-informations of the socket;
Agree to binding response if so, being returned to the socket;
Judge whether to receive the first identifier information that the socket is sent, wherein the first identifier information is described insert
Seat is according to the device identification create-rule pre-saved, the first identifier information of the household appliance of generation;
If so, carrying out subsequent step.
It was being bound in socket and household appliance in the binding method of household appliance provided in an embodiment of the present invention and socket
Cheng Zhong, socket generate the second identifier information of the first identifier information and itself of household appliance, to ensure after the completion of binding, family
Accuracy when electric equipment is communicated with socket.
The present invention provides a kind of binding device of household appliance and socket, is applied to socket, which includes:
Receiving module, the first address information for receiving the household appliance;
Sending module, for according to first address information, bind request to be sent to the household appliance, wherein described
The first communications address information of the socket is carried in bind request;
Binding module, if the binding acknowledgement message replied for receiving the household appliance, determines and the household electrical appliances
Equipment completes binding, obtains and preserves the second communications address information of the household appliance, make the socket according to described second
Communications address information is communicated with the household appliance.
Further, the receiving module, the terminal for connecting same router with the socket specifically for reception pass through
First address information of the household appliance that first communication party formula is sent, wherein the first communication party formula includes Wireless Fidelity
WiFi communication, the household appliance connect same router with the socket, and first address information includes that the household electrical appliances are set
Standby MAC address and/or the internet protocol address that the router is household appliance distribution;
The binding module is specifically used for for first address information being determined as the second communication of the household appliance
Address information.
Further, the receiving module is specifically used for receiving what the household appliance was sent by second communication method
First address information, wherein the second communication method includes bluetooth or ZigBee.
Further, described device further includes:
Judgment module judges that the socket itself is worked as after being specifically used for the first address information for receiving the household appliance
Whether the quantity of the preceding household appliance bound reaches the slot quantity that the socket is set;If not, triggering the transmission
Module.
Further, the company-information of the socket is also carried in the bind request;
The sending module is additionally operable to after the household appliance sends bind request, is received the household appliance and is sent
Agreement binding response deposited wherein described agree to that binding response is that the household appliance judges in the company-information that pre-saves
It is sent in the company-information of the socket;According to the device identification create-rule pre-saved, the household appliance is generated
First identifier information;The first identifier information is sent to the household appliance;
The binding module is specifically used for, by the first identifier information and first address information, being determined as described
Second communications address information of household appliance.
The present invention provides the binding devices of a kind of household appliance and socket, are applied to household appliance, which includes:
Receiving module, the bind request for receiving socket transmission, wherein the bind request is the socket according to connecing
What the first address information of the household appliance received was sent, the first of the socket is carried in the bind request communicatedly
Location information;
Sending module, for according to first communications address information, replying binding acknowledgement message to the socket, making institute
It states after socket receives the binding acknowledgement message, determines that the socket is completed to bind with the household appliance, and make the family
Electric equipment is communicated according to first communications address information with the socket.
Further, the sending module passes through first communication party before being additionally operable to receive the bind request that socket is sent
Formula sends the MAC address of the household appliance, and terminal is made to receive the MAC Address;Receive the terminal hair
The account and encrypted message of the router for the terminal connection sent;According to the account and encrypted message, with the router
Connection obtains the router and is the IP address of household appliance distribution, and the IP address of the household appliance is sent to
The terminal makes the terminal according to the MAC Address of the household appliance and the IP address of the household appliance, determines the first ground
Location information, and first address information is sent to by the socket by first communication party formula, wherein the first communication party
Formula includes Wireless Fidelity WiFi communication, and the household appliance connect same router, first address information with the socket
The IP address of MAC Address and/or the household appliance including the household appliance;Wherein, first communications address information
MAC address and/or the router including the socket are the Internet protocol IP of socket distribution
Address.
Further, the sending module passes through second communication party before being additionally operable to receive the bind request that socket is sent
Formula sends the first address information, after so that the socket is received first address information, sends and binds to the household appliance
Request, wherein the second communication method includes bluetooth or ZigBee;Wherein, first communications address information includes described inserts
The second identifier information of seat and the second address information of the socket.
Further, the company-information of the socket is also carried in the bind request;
Described device further includes:
Judgment module judges in the company-information pre-saved, if deposit after receiving the bind request that socket is sent
In the company-information of the socket;Agree to binding response if so, being returned to the socket;Judge whether to receive the socket
The first identifier information of transmission, wherein the first identifier information is the socket generates rule according to the device identification pre-saved
Then, the first identifier information of the household appliance of generation;If so, triggering the sending module.
The present invention provides the binding systems of a kind of household appliance and socket, are applied to socket the system comprises such as above-mentioned
Household appliance and socket binding device, and as above-mentioned applied to the household appliance of household appliance and the binding device of socket.
The present invention provides a kind of sockets, including processor, memory and communication module;
The processor controls the communication module and receives household appliance for calling the instruction in the memory
First address information;According to first address information, bind request is sent to the household appliance, wherein the bind request
Middle the first communications address information for carrying the socket;If the communication module receives the binding that the household appliance is replied
Confirmation message determines and completes to bind with the household appliance, obtains and preserve the second communications address information of the household appliance,
Make the socket according to second communications address information, is communicated with the household appliance.
The present invention provides the binding method of a kind of household appliance and socket, apparatus and system, the household appliance and socket
Binding method include applied to socket:Receive the first address information of household appliance;According to first address information, to institute
It states household appliance and sends bind request, wherein carrying the first communications address information of the socket in the bind request;If
The binding acknowledgement message that the household appliance is replied is received, determines and completes to bind with the household appliance, obtain and preserve institute
The second communications address information for stating household appliance makes the socket according to second communications address information, is set with the household electrical appliances
It is standby to be communicated.It may be implemented to bind between socket and household appliance in the present invention, and preserve the mailing address letter of counterpart device
Breath, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save network
Resource improves the promptness of communication.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is the structural schematic diagram of the binding system of a kind of household appliance that the embodiment of the present invention 1 provides and socket;
Fig. 2 is the structural schematic diagram of the binding system of a kind of household appliance that the embodiment of the present invention 1 provides and socket;
Fig. 3 is the structural schematic diagram of the binding system of a kind of household appliance that the embodiment of the present invention 3 provides and socket;
Fig. 4 is the binding method of a kind of household appliance and socket that the embodiment of the present invention 7 provides;
Fig. 5 is the binding method of a kind of household appliance and socket that are provided in the embodiment of the present invention 9;
Fig. 6 is a kind of structural schematic diagram for socket that the embodiment of the present invention 11 provides;
Fig. 7 is a kind of structural schematic diagram for socket that the embodiment of the present invention 12 provides;
Fig. 8 is a kind of structural schematic diagram for household appliance that the embodiment of the present invention 14 provides;
Fig. 9 is that the binding device of a kind of household appliance provided in an embodiment of the present invention and socket is applied to socket schematic diagram;
Figure 10 is that the binding device of a kind of household appliance provided in an embodiment of the present invention and socket shows applied to household appliance
It is intended to.
Specific implementation mode
In order to save Internet resources, the promptness of communication is improved, an embodiment of the present invention provides a kind of household appliance and is inserted
Binding method, the apparatus and system of seat.
To make the objectives, technical solutions, and advantages of the present invention clearer, make into one below in conjunction with the attached drawing present invention
Step ground detailed description, it is clear that described embodiment is only a part of the embodiment of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
Embodiment 1:
Fig. 1 is the structural schematic diagram of the binding system of a kind of household appliance provided in an embodiment of the present invention and socket, described
Binding system includes socket 11 and household appliance 12;Wherein,
The socket 11, the first address information for receiving the household appliance 12;According to first address information,
Bind request is sent to the household appliance 12, wherein carrying the first mailing address letter of the socket 11 in the bind request
Breath;If receiving the binding acknowledgement message of the reply of the household appliance 12, determines and complete to bind with the household appliance 12, obtain
Take and preserve the second communications address information of the household appliance 12;
The household appliance 12, the bind request for receiving the transmission of socket 11;According to first communications address information,
Binding acknowledgement message is replied to the socket 11.
In order to save Internet resources, the promptness of communication is improved, an embodiment of the present invention provides a kind of household appliance and is inserted
The binding system of seat, which includes socket 11 and household appliance 12.
Socket 11 can be the arbitrary socket in smart home environment, or for electricity where controlling household appliance 12
The socket of the break-make on road.
The communication module and household appliance used when socket is communicated with other equipment is communicated with other equipment
When the communication module that uses, can be WiFi (WIreless-Fidelity, Wireless Fidelity) communication module, or bluetooth
Communication module, ZigBee communication module etc., it is corresponding that socket 11 can obtain the communication module installed thereon with household appliance 12
Address information.
In binding procedure, household appliance 12 is when initializing or first powering on, it will usually broadcast the first ground of itself
Location information is mounted on the first address information of the communication module in household appliance 12, in addition to the first address information, household appliance
12 can also broadcast the information such as the device category of household appliance 12, affiliated producer outward.Socket 11 can directly receive house
First address information of electric equipment 12 can be the first address information that other equipment receives household appliance 12, then forward
To socket 11.
If what is installed in household appliance 12 is WiFi communication module, the first address information can be household appliance 12
MAC (Media Access Control, media access control) address information, if what is installed in household appliance 12 is that bluetooth is logical
Believe module, then the first address information can be the Bluetooth address of the bluetooth communication in household appliance 12, if household appliance
The ZigBee communication module installed on 12, then the first address information can be the ZigBee communication module in household appliance 12
The addresses ZigBee.
After socket 11 receives the first address information of household appliance 12, according to the first address information, to household appliance 12
Bind request is sent, the first communications address information of socket 11 is carried in bind request, the first communications address information includes inserting
Corresponding second address information of communication module installed on seat 11.
After household appliance 12 receives the bind request of socket 11, the first mailing address that can will be carried in bind request
Information preservation is the first communications address information of socket 11.Household appliance 12 can reply binding acknowledgement message, family to socket 11
Electric equipment 12 is when replying binding acknowledgement message, according to the first communications address information of the socket 11 pre-saved, to socket 11
Reply binding acknowledgement message.
Socket 11 sends request process and belongs to the prior art, do not repeat in embodiments of the present invention according to address information.
Household appliance 12 belongs to the prior art according to communications address information, the process of return information, does not do in embodiments of the present invention superfluous
It states.
If socket 11 receives the binding acknowledgement message of the reply of household appliance 12, can determine complete with household appliance 12
At binding.Socket 11 is being determined with after the completion binding of household appliance 12, can obtain and preserve the second communication of household appliance 12
Address information, the second communications address information include the first address information of household appliance 12.
Socket 11 can be completed to bind in this process with household appliance 12, complete to preserve house in the socket 11 after binding
Second communications address information of electric equipment 12 completes the first mailing address that socket 11 is preserved in the household appliance 12 after binding
Information, communications address information between socket 11 and household appliance 12 for communicating with each other.
The system that household appliance and the socket of binding are constituted is completed as shown in Fig. 2, in fig. 2, socket and household appliance it
Between connected by power cord, the break-make of circuit where household appliance can be controlled.
It may be implemented to bind between socket and household appliance in the embodiment of the present invention, and preserve the mailing address of counterpart device
Information, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save net
Network resource improves the promptness of communication.
Embodiment 2:
On the basis of the various embodiments described above, in the embodiment of the present invention, the system also includes:Terminal and router;
The household appliance is additionally operable to before receiving the bind request that socket is sent, is sent by first communication party formula
The MAC Address of the household appliance, wherein the first communication party formula includes WiFi communication;Receive the described of the terminal transmission
The account and encrypted message of the router of terminal connection;It according to the account and encrypted message, is connected to the router, obtains
The router is the IP address of household appliance distribution, and the IP address of the household appliance is sent to the terminal,
Wherein, first communications address information includes the MAC address of the socket and/or the router is institute
State Internet protocol IP (Internet Protocol, Internet protocol) address of socket distribution.
The system also includes:
The terminal, the MAC Address of MAC Address and the socket for receiving household appliance, to the household appliance
The account and encrypted message of the router of itself connection are sent with the socket;Receive the routing that the household appliance is sent
Device is the IP address of household appliance distribution, with receiving the IP that the router that the socket is sent is socket distribution
Location.
When arriving household appliance access for identification, IP address is distributed for the household appliance for the router;It recognizes slotting
Seated connection is fashionable, and IP address is distributed for the socket.
The socket, the mac address information specifically for sending the socket by first communication party formula receive the end
The account and encrypted message of the router for the terminal connection that end is sent;According to the account and encrypted message, with the road
It is connected by device, obtains the IP address that the router is socket distribution, and the IP address of the socket is sent to described
Terminal;Receive the first address information of the household appliance that the terminal is sent by first communication party formula, first ground
Location information includes the MAC Address of the household appliance and/or the IP address that the router is household appliance distribution;By institute
The first address information is stated, the second communications address information of the household appliance is determined as.
Household appliance is different from the communication module installed on socket, and the communication mode used in communication is also different, at this
WiFi communication module is installed on household appliance and socket in inventive embodiments, then in communication using the including WiFi communication
One communication mode.Because being equipped with WiFi communication module in household appliance, it can thus be understood that household appliance is with WiFi
The household appliance of communication function.
When household appliance is communicated with socket using first communication party formula, can by household appliance and socket with it is same
Router connects, and so that household appliance and socket is located at same LAN, realizes mutual communication.
Household appliance can broadcast the first address information of household appliance outward when initializing or first powering on, because
Currently employed first communication party formula, therefore the mac address information that the first address information of household appliance broadcast is household appliance, this
Outer household appliance can be with information such as broadcasting equipment type, affiliated producers.
Similarly, socket can broadcast the second address information of socket, because working as outward when initializing or first powering on
It is preceding to use first communication party formula, therefore the second address information of socket broadcast is the mac address information of socket, socket may be used also in addition
With information such as broadcasting equipment type, affiliated producers.
Further include terminal and router in the system, terminal is connect with router, and terminal receives household appliance broadcast
Include the information of the first address information, the account for the router that it is currently connected and password can be sent to household appliance, household electrical appliances
Equipment is connect according to the account and password of the router received with the router.What terminal received socket broadcast includes the
The account for the router that it is currently connected and password, can be sent to socket by the information of double-address information, and socket is according to receiving
Router account and password, connect with the router.It, can be with after household appliance, socket are connect with same router
Think that household appliance is located at socket in same LAN.
After household appliance is connect with router, router can be the IP address that household appliance distributes household appliance, and household electrical appliances are set
The standby IP address by router for its distribution is sent to terminal, and after socket is connect with router, router can be that socket distribution is inserted
The IP address of seat, IP address of the socket by router for its distribution are sent to terminal.
After household appliance, socket are connect with router, terminal can receive and show the first address of household appliance
Information and router are the IP address of household appliance distribution and the second address information and router of socket are what socket distributed
IP address.
User can select the household appliance and socket of pending binding, terminal that can set household electrical appliances according to the display of terminal
The first standby address information is sent to socket, and MAC Address and/or the router in the first address information including household appliance are family
The IP address of electric equipment distribution.Which information comprising household appliance can be that user selects in first address information, also may be used
Be in terminal it is pre-configured.
After binding that socket receives instruction, bind request is sent to household appliance, the of socket is carried in bind request
One communications address information, household appliance receive in bind request, preserve the first communications address information of socket, and the first of socket
Include the second address information in communications address information, the second address information includes the MAC Address of Kazakhstan socket and/or router is slotting
The IP address of seat distribution.The information for including in second address information should be corresponding with the information in the first address information, as the first
Include the MAC Address of household appliance in the information of location, then should also include at least the MAC Address of socket in the second address information.
Socket sends bind request, household appliance is received according to the first address information of household appliance to household appliance
After bind request, binding acknowledgement message is replied to socket, socket is determined to be completed to bind with household appliance.
When socket carries out communicating completion binding with household appliance using first communication party formula, socket can believe the first address
Breath, is determined as the second communications address information of household appliance, household appliance can also directly save as the second address information slotting
First communications address information of seat.
The second communications address information of household appliance is saved in socket, and the first communication of socket is saved in household appliance
Address information, therefore the direct communication between socket and household appliance may be implemented.
Further, the information for completing binding can also be sent to terminal by socket after completing binding with household appliance,
User obtains socket by terminal and is completed after binding with household appliance, without being carried out in real time using terminal-pair household appliance or socket
Monitoring, improves user experience.There can also be the APP (Application, using journey for being equipped with household electrical appliances status display in terminal
Sequence) as described in Figure 3, to receive and show that the operating status for the household appliance that household appliance is sent or socket are sent to user
Socket operating status etc..
It includes that the first communication party formula of WiFi communication is communicated that socket and household appliance, which use, in embodiments of the present invention,
Binding is completed, and the second communications address information of household appliance and the first communications address information of socket is determined, to real
Existing direct communication between household appliance and socket.
Embodiment 3:
On the basis of the various embodiments described above, in the embodiment of the present invention, the socket is set specifically for receiving the household electrical appliances
Standby the first address information sent by second communication method, wherein the second communication method includes bluetooth or ZigBee.
Before being additionally operable to receive the bind request that socket is sent, the is sent by second communication method for the household appliance
One address information, wherein first communications address information include the socket second identifier information and the socket
Double-address information.
Household appliance is different from the communication module installed on socket, and the communication mode used in communication is also different, at this
Bluetooth communication or ZigBee communication module are installed on household appliance and socket in inventive embodiments, then used in communication
Second communication method including bluetooth or ZigBee.Therefore bluetooth communication or ZigBee communication mould are installed in household appliance
Block, it can thus be understood that household appliance is the household appliance with function of Bluetooth communication or ZigBee communication function.
When household appliance is communicated with socket using second communication method, as long as household appliance is located at bluetooth with socket
Or in the communication range of ZigBee, you can realize mutual communication.
Household appliance can broadcast the first address information of household appliance outward when initializing or first powering on, because
Currently employed second communication method, thus household appliance broadcast the first address information be household appliance Bluetooth address or
The addresses ZigBee, household appliance can be with information such as the manufacture identification informations of broadcasting equipment type, affiliated producer and equipment in addition.
When household appliance, socket are communicated using second communication method, the equipment that sends information needs to follow bluetooth logical
Letter agreement or the ZigBee communication agreement equipment that is encrypted, therefore receives information need through Bluetooth communication protocol or
ZigBee communication agreement is decrypted.
Socket can be scanned when initializing or first powering on the presence or absence of the data letter sent using second communication method
Breath, if so, the data information scanned is decrypted, to get the first address information of household appliance.
Socket can determine the second address information of itself, and the device identification create-rule that meeting basis pre-saves,
Generate the second identifier information of itself, the device identification create-rule can be generating random number rule or other create-rules,
As long as ensureing that the identification information of the equipment generated is unique.
After socket gets the first address information of household appliance, tied up to household appliance transmission by second communication method
It is fixed to ask, the second address information and second identifier information of socket are carried in bind request.
After household appliance receives the bind request of socket, the second address of the socket carried in bind request can be believed
Breath and the first communications address information that second identifier information preservation is socket.Household appliance according to first communications address information,
To socket transmission data, such as replys binding and determine information.
When using second communication method binding household appliance and socket, participated in without terminal.
In order to improve flexibility when household appliance abnormality detection, can gather in home appliance WiFi communication module,
Bluetooth communication, ZigBee communication mould in the block at least two, it is equally possible that WiFi communication module, indigo plant in socket
Tooth communication module, ZigBee communication mould in the block at least two etc..
Socket and household appliance are using the second communication method progress for including bluetooth or ZigBee in embodiments of the present invention
Communication, completes binding, to realize the direct communication between household appliance and socket.
Embodiment 4:
On the basis of the various embodiments described above, in the embodiment of the present invention, the socket, the specific reception household electrical appliances are set
After the first standby address information, judge whether the quantity for the household appliance that the socket itself has currently been bound reaches the socket
The slot quantity itself being set, if not, sending bind request to the household appliance.
Due to that can preserve the second communications address information of household appliance in binding completion rear socket, socket can be true
The quantity of the fixed household appliance itself currently bound.The slot quantity itself being set can also be got in the socket,
The slot quantity being set can be pre-stored in the socket, can also be the slot quantity that socket obtains itself, will
The slot quantity is determined as the slot quantity being set, and each slot of socket is only capable of connecting with an equipment, and slot can be
Holes slot or three hole slots etc..
Socket is after receiving the first address information of household appliance, it can be determined that the household appliance itself currently bound
Quantity whether reach the slot quantity that socket is set, if so, socket not with send address information the household appliance
It is bound, therefore does not send bind request to the household appliance, if not, socket can be with the family of the first address information of transmission
Electric equipment is bound, and bind request is sent to the household appliance, to realize the binding with the household appliance.
In embodiments of the present invention, socket can be bound with household appliance, to realize that household appliance is led to socket
The promptness of letter.
Embodiment 5:
On the basis of the various embodiments described above, in the embodiment of the present invention, the socket is additionally operable to send out to the household appliance
After sending bind request, the agreement binding response that the household appliance is sent is received, wherein described in also being carried in the bind request
The company-information of socket;According to the device identification create-rule pre-saved, the first identifier information of the household appliance is generated;
The first identifier information is sent to the household appliance;By the first identifier information and first address information, really
It is set to the second communications address information of the household appliance.
The household appliance is additionally operable to after receiving the bind request that socket is sent, judges in the company-information pre-saved,
With the presence or absence of the company-information of the socket;Agree to binding response if so, being returned to the socket;Judge whether to receive institute
State the first identifier information of socket transmission;If so, replying binding acknowledgement message to the socket.
In embodiments of the present invention, when socket is communicated with household appliance by second communication method, socket and household electrical appliances
Terminal participation is not needed in the binding procedure of equipment, therefore household appliance needs to judge whether socket meets electricity where control itself
The socket demand of road break-make.
Socket is believed when sending bind request to household appliance except the first mailing address of itself is carried in bind request
Breath is outer, can also carry the information of itself affiliated producer.
Company-information is pre-saved in household appliance, the company-information preserved in household appliance can be used for judging socket
Whether the demand with the socket that itself can realize communication, the company-information preserved in household appliance may include household appliance institute
The company-information of category, the company-information etc. cooperated with the affiliated producer of household appliance.
Household appliance is when receiving the bind request of socket transmission, according to the factory belonging to the socket carried in bind request
Family's information judges whether the company-information belonging to socket in the company-information pre-saved, if it is present thinking
The socket meets the demand with the socket that itself can realize communication, and household appliance is returned to socket agrees to binding response, will tie up
The first communications address information carried in fixed request saves as the first communications address information of socket.
Because Bluetooth address or the addresses ZigBee may not be unique, when there are multiple sockets and household appliances in user family
When, it is communicated only with Bluetooth address or the addresses ZigBee, can occur mistake, therefore socket can be in binding procedure
Generate corresponding first identifier information and second identifier information for household appliance and socket itself, with by first identifier information and
Second identifier information, it is accurate to determine the equipment for receiving information, to avoid the equipment for receiving information from sending mistake, further increase
The accuracy that is communicated between household appliance and socket.
After socket receives the agreement binding response of household appliance return, rule are generated according to the device identification pre-saved
Then, which is sent to household appliance, and the first identifier is believed by the first identifier information for generating household appliance
First address information of breath and household appliance, saves as the second communications address information of household appliance.
Household appliance receives the first identifier information of socket transmission, replys binding acknowledgement message to socket, socket receives
To after binding acknowledgement message, determines and complete to bind with household appliance.
Further, socket is being determined with after household appliance completion binding, can also send what binding was completed in terminal
Information, the APP for having household electrical appliances status display that user can be installed by terminal, the running state data information of household appliance or slotting
The running state data etc. of seat.
In embodiments of the present invention, in socket and household appliance in binding procedure, socket generates the first of household appliance
The second identifier information of identification information and itself, to ensure after the completion of binding, standard when being communicated between household appliance and socket
True property.
Embodiment 6:
Fig. 4 is a kind of binding method of household appliance and socket provided in an embodiment of the present invention, is included the following steps:
S401:Receive the first address information of household appliance.
The binding method of household appliance provided in an embodiment of the present invention and socket is applied to socket.
S402:According to first address information, bind request is sent to the household appliance, wherein the bind request
Middle the first communications address information for carrying the socket.
S403:If receiving the binding acknowledgement message that the household appliance is replied, determines and completed with the household appliance
Binding, obtains and preserves the second communications address information of the household appliance, make the socket according to second mailing address
Information is communicated with the household appliance.
It may be implemented to bind between socket and household appliance in the embodiment of the present invention, and preserve the mailing address of counterpart device
Information, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save net
Network resource improves the promptness of communication.
Embodiment 7:
On the basis of the above embodiments, in the embodiment of the present invention, the first address letter for receiving the household appliance
Breath includes:
Reception connect the household appliance that the terminal of same router is sent by first communication party formula with the socket
The first address information, wherein the first communication party formula includes Wireless Fidelity WiFi communication, the household appliance is inserted with described
Seat connection same router, first address information includes MAC address and/or the institute of the household appliance
State the internet protocol address that router is household appliance distribution;
Second communications address information for obtaining the household appliance includes:
By first address information, it is determined as the second communications address information of the household appliance.
Include that the first communication party formula of WiFi communication is communicated since socket and household appliance use, complete binding,
And the second communications address information of household appliance and the first communications address information of socket is determined, to realize household appliance with
Direct communication between socket.
Further, first address information for receiving the household appliance includes:
The first address information that the household appliance is sent by second communication method is received, wherein the second communication party
Formula includes bluetooth or ZigBee.
Include that the second communication method of bluetooth or ZigBee is communicated since socket and household appliance use, completes and tie up
It is fixed, to realize the direct communication between household appliance and socket.
Further, described to be sent to the household appliance after first address information for receiving the household appliance
Before bind request, the method further includes:
Judge that whether the quantity for the household appliance that the socket itself has currently been bound reached that the socket is set inserts
Bit quantity;
If not, carrying out subsequent step.
Socket is only bound with a household appliance, accuracy when may be implemented to communicate between household appliance and socket.
Further, the company-information of the socket is also carried in the bind request;
After the transmission bind request to the household appliance, the binding acknowledgement message that the household appliance is replied is received
Before, the method further includes:
The agreement binding response that the household appliance is sent is received, wherein the agreement binding response is the household appliance
Judge in the company-information pre-saved, there are what is sent when the company-information of the socket;
According to the device identification create-rule pre-saved, the first identifier information of the household appliance is generated;
The first identifier information is sent to the household appliance;
Second communications address information for obtaining the household appliance includes:
By the first identifier information and first address information, it is determined as the second mailing address of the household appliance
Information.
Due in socket and household appliance in binding procedure, socket generate household appliance first identifier information and itself
Second identifier information, to ensure the accuracy communicated between household appliance and socket after the completion of binding.
Socket is bound with household appliance in the embodiment of the present invention, and the second of household appliance is saved in socket
Communications address information saves the first communications address information of socket, to realize socket and household appliance in home appliance
Between direct communication.
Embodiment 8:
Fig. 5 is the binding method of a kind of household appliance and socket that are provided in the embodiment of the present invention, is included the following steps:
S501:Receive socket send bind request, wherein the bind request be the socket according to described in reception
What the first address information of household appliance was sent, the first communications address information of the socket is carried in the bind request.
The binding method of household appliance provided in an embodiment of the present invention and socket is applied to household appliance.
S502:According to first communications address information, binding acknowledgement message is replied to the socket, the socket is made to connect
After receiving the binding acknowledgement message, determine that the socket is completed to bind with the household appliance.
It may be implemented to bind between socket and household appliance in the embodiment of the present invention, and preserve the mailing address of counterpart device
Information, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save net
Network resource improves the promptness of communication.
Embodiment 10:
On the basis of the above embodiments, in the embodiment of the present invention, before the bind request for receiving socket transmission, institute
The method of stating further includes:
The MAC address that the household appliance is sent by first communication party formula makes described in terminal reception
The MAC Address of household appliance;
Receive the account and encrypted message of the router for the terminal connection that the terminal is sent;
It according to the account and encrypted message, is connected to the router, it is the household appliance to obtain the router
The IP address of distribution, and the IP address of the household appliance is sent to the terminal, so that the terminal is set according to the household electrical appliances
The IP address of standby MAC Address and the household appliance determines the first address information of the household appliance, and logical by first
First address information is sent to the socket by letter mode, wherein the first communication party formula includes Wireless Fidelity WiFi logical
Letter, the household appliance connect same router with the socket, and first address information includes the MAC of the household appliance
The IP address of address and/or the household appliance;
Wherein, first communications address information includes the MAC address of the socket and/or the road
By the internet protocol address that device is socket distribution.
Include that the first communication party formula of WiFi communication is communicated since socket and household appliance use, complete binding,
And the second communications address information of household appliance and the first communications address information of socket is determined, to realize household appliance with
Direct communication between socket.
Further, before the bind request for receiving socket transmission, the method further includes:
The first address information is sent by second communication method, after so that the socket is received first address information,
Bind request is sent to the household appliance, wherein the second communication method includes bluetooth or ZigBee;
Wherein, first communications address information includes the second identifier information of the socket and the second ground of the socket
Location information.
Include that the second communication method of bluetooth or ZigBee is communicated since socket and household appliance use, completes and tie up
It is fixed, to realize to household appliance whether abnormal detection.
Further, the company-information of the socket is also carried in the bind request;
After the bind request for receiving socket transmission, before the reply binding acknowledgement message to the socket, institute
The method of stating further includes:
Judge in the company-information pre-saved, if there are the company-informations of the socket;
Agree to binding response if so, being returned to the socket;
Judge whether to receive the first identifier information that the socket is sent, wherein the first identifier information is described insert
Seat is according to the device identification create-rule pre-saved, the first identifier information of the household appliance of generation;
If so, carrying out subsequent step.
Due in socket and household appliance in binding procedure, socket generate household appliance first identifier information and itself
Second identifier information, to ensure after the completion of binding, accuracy when being communicated between household appliance and socket.
Socket is bound with household appliance in the embodiment of the present invention, and the second of household appliance is saved in socket
Communications address information saves the first communications address information of socket, to realize socket and household appliance in home appliance
Between direct communication.
Embodiment 11:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of socket 600, as shown in fig. 6, including
Processor 601, memory 602 and communication module 603;
The processor 601 controls the communication module 603 and receives house for calling the instruction in the memory 602
First address information of electric equipment;According to first address information, bind request is sent to the household appliance, wherein described
The first communications address information of the socket 600 is carried in bind request;If the communication module 603 receives the household electrical appliances
The binding acknowledgement message of device replied determines and completes to bind with the household appliance, obtains and preserve the of the household appliance
Two communications address informations make the socket 600 according to second communications address information, are communicated with the household appliance.
The memory 602 can be used for store instruction and data, and memory 602 can include mainly store instruction area and storage
Data field, storage data field can store the incidence relation of household appliance and address information;Store instruction area can store operation system
Instruction etc. needed for system, at least one function.
Processor 601 is the control centre of socket 600, using the various pieces of various interfaces and wiring-connecting socket 600,
By running or executing the instruction being stored in memory 602 and calling is stored in data in memory 602, socket is executed
600 various functions and processing data, to realize the binding of socket 600 and household appliance.Optionally, processor 601 can wrap
Include one or more processing units;Preferably, processor 601 can integrate application processor 601 and modem processor 601,
Wherein, 601 main processing operation system of application processor and application program etc., mainly processing is wireless for modem processor 601
Communication.It is understood that above-mentioned modem processor 601 can not also be integrated into processor 601.In some embodiments
In, processor 601 memory 602, can realize that in some embodiments, they can also be independent on one chip
It is realized respectively on chip.
Communication module 603 is the module that socket 600 is communicated with other equipment, and communication module 603 can be WiFi communication
Module 603, bluetooth communication 603, ZigBee communication module 603 etc..
Processor 601 is specifically used for calling the instruction in memory 602, to realize the reception of control communication module 603 and institute
It states socket 600 and connects the first address of the household appliance that the terminal of same router is sent by first communication party formula and believe
Breath, wherein the first communication party formula includes WiFi communication, the household appliance connect same router with the socket 600,
First address information includes the MAC address of the household appliance and/or the router is the family
The internet protocol address of electric equipment distribution.
Processor 601 is specifically used for calling the instruction in memory 602, to realize first address information, determines
For the second communications address information of the household appliance.
Processor 601 is specifically used for calling the instruction in memory 602, to realize that it is described that control communication module 603 receives
The first address information that household appliance is sent by second communication method, wherein the second communication method include bluetooth or
ZigBee。
Processor 601 is additionally operable to call the instruction in memory 602, to realize the first address for receiving the household appliance
After information, judge whether the quantity for the household appliance that the socket 600 itself has currently been bound reaches what the socket was set
Slot quantity, if not, sending bind request to the household appliance.
The company-information of the socket 600 is also carried in bind request;
Processor 601 is additionally operable to call the instruction in memory 602, and bind request is sent to realize to the household appliance
Afterwards, before receiving the binding acknowledgement message that the household appliance is replied, control communication module 603 receives the household appliance and sends
Agreement binding response deposited wherein described agree to that binding response is that the household appliance judges in the company-information that pre-saves
It is sent in the company-information of the socket 600;According to the device identification create-rule pre-saved, generates the household electrical appliances and set
Standby first identifier information;The first identifier information is sent to the household appliance.
Processor 601 is specifically used for calling the instruction in memory 602, to realize the first identifier information and described
First address information is determined as the second communications address information of the household appliance.
Although being not shown, device 600 can also include the control switch of the power supply and socket power powered to all parts
Deng details are not described herein.
In embodiments of the present invention, it may be implemented to bind between socket and household appliance, and preserve the communication of counterpart device
Address information, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save
Internet resources, improve the promptness of communication.
Embodiment 12:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of socket 700, as shown in fig. 7, packet
It includes:Processor 701, communication interface 702, memory 703 and communication bus 704, wherein processor 701, communication interface 702 are deposited
Reservoir 703 completes mutual communication by communication bus 704;
It is stored with computer program in the memory 703, when described program is executed by the processor 701 so that
The processor 701 executes following steps:
Receive the first address information of household appliance;
According to first address information, bind request is sent to the household appliance, wherein being taken in the bind request
The first communications address information with the socket;
If receiving the binding acknowledgement message that the household appliance is replied, determines and completes to bind with the household appliance,
The second communications address information for obtaining and preserving the household appliance makes the socket according to second communications address information,
It is communicated with the household appliance.
The communication bus that above-mentioned socket is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface 702 is for the communication between above-mentioned socket and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit, network processing unit (Network
Processor, NP) etc.;It can also be digital command processor (Digital Signal Processing, DSP), special collection
At circuit, field programmable gate array either other programmable logic device, discrete gate or transistor logic, discrete hard
Part component etc..
In embodiments of the present invention, when processor executes the program stored on memory, between socket and household appliance
It may be implemented to bind, and preserve the communications address information of counterpart device, therefore can directly be carried out between household appliance and socket
Communication improves the promptness of communication without relying on terminal device to save Internet resources.
Embodiment 13:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of computer storage readable storage medium
Matter is stored with the computer program that can be executed by socket in the computer readable storage medium, when described program is inserted described
When being run on seat so that the socket realizes following steps when executing:
Receive the first address information of household appliance;
According to first address information, bind request is sent to the household appliance, wherein being taken in the bind request
The first communications address information with the socket;
If receiving the binding acknowledgement message that the household appliance is replied, determines and completes to bind with the household appliance,
The second communications address information for obtaining and preserving the household appliance makes the socket according to second communications address information,
It is communicated with the household appliance.
Above computer readable storage medium storing program for executing can be any usable medium or number that the processor in socket can access
Such as according to storage device, including but not limited to magnetic storage such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc., optical memory
CD, DVD, BD, HVD etc. and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NAND
FLASH), solid state disk (SSD) etc..
Computer program, computer program are provided in the computer readable storage medium provided in embodiments of the present invention
It may be implemented to bind when being executed by processor, between socket and household appliance, and preserve the communications address information of counterpart device, because
It can directly be communicated between this household appliance and socket, without relying on terminal device, to save Internet resources,
Improve the promptness of communication.
Embodiment 14:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of household appliance 800, as shown in figure 8,
Including:Processor 801, communication interface 802, memory 803 and communication bus 804, wherein processor 801, communication interface 802,
Memory 803 completes mutual communication by communication bus 804;
It is stored with computer program in the memory 803, when described program is executed by the processor 801 so that
The processor 801 executes following steps:
The bind request that socket is sent is received, is set according to the household electrical appliances of reception wherein the bind request is the socket
What the first standby address information was sent, the first communications address information of the socket is carried in the bind request;
According to first communications address information, binding acknowledgement message is replied to the socket, the socket is made to receive
After the binding acknowledgement message, determine that the socket is completed to bind with the household appliance, and make the household appliance according to institute
The first communications address information is stated, is communicated with the socket.
The communication bus that above-mentioned household appliance is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface 802 is for the communication between above-mentioned household appliance and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit, network processing unit (Network
Processor, NP) etc.;It can also be digital command processor (Digital Signal Processing, DSP), special collection
At circuit, field programmable gate array either other programmable logic device, discrete gate or transistor logic, discrete hard
Part component etc..
In embodiments of the present invention, when processor executes the program stored on memory, between socket and household appliance
It may be implemented to bind, and preserve the communications address information of counterpart device, therefore can directly be carried out between household appliance and socket
Communication improves the promptness of communication without relying on terminal device to save Internet resources.
Embodiment 15:
On the basis of the various embodiments described above, the embodiment of the present invention additionally provides a kind of computer storage readable storage medium
Matter is stored with the computer program that can be executed by household appliance in the computer readable storage medium, when described program is in institute
It states when being run in household appliance so that the household appliance realizes following steps when executing:
The bind request that socket is sent is received, is set according to the household electrical appliances of reception wherein the bind request is the socket
What the first standby address information was sent, the first communications address information of the socket is carried in the bind request;
According to first communications address information, binding acknowledgement message is replied to the socket, the socket is made to receive
After the binding acknowledgement message, determine that the socket is completed to bind with the household appliance, and make the household appliance according to institute
The first communications address information is stated, is communicated with the socket.
Above computer readable storage medium storing program for executing can be any usable medium that the processor in household appliance can access
Or data storage device, including but not limited to magnetic storage such as floppy disk, hard disk, tape, magneto-optic disk (MO) etc., optical memory
Such as CD, DVD, BD, HVD and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NAND
FLASH), solid state disk (SSD) etc..
Computer program, computer program are provided in the computer readable storage medium provided in embodiments of the present invention
It may be implemented to bind when being executed by processor, between socket and household appliance, and preserve the communications address information of counterpart device, because
It can directly be communicated between this household appliance and socket, without relying on terminal device, to save Internet resources,
Improve the promptness of communication.
Fig. 9 is a kind of 900 schematic diagram of binding device of household appliance and socket provided in an embodiment of the present invention, is applied to insert
Seat, the device include:
Receiving module 91, the first address information for receiving the household appliance;
Sending module 92, for according to first address information, bind request, wherein institute to be sent to the household appliance
State the first communications address information that the socket is carried in bind request;
Binding module 93, if the binding acknowledgement message replied for receiving the household appliance, determines and the family
Electric equipment completes binding, obtains and preserves the second letter address information of the household appliance, make the socket according to described second
Communications address information is communicated with the household appliance.
The receiving module 91, the terminal for connecting same router with the socket specifically for reception pass through the first communication
First address information of the household appliance that mode is sent, wherein the first communication party formula includes Wireless Fidelity WiFi logical
Letter, the household appliance connect same router with the socket, and first address information includes the matchmaker of the household appliance
Body access control MAC addresses and/or the internet protocol address that the router is household appliance distribution;
The binding module 93 is specifically used for first address information, and be determined as the household appliance second is logical
Believe address information.
The receiving module 91 is specifically used for receiving the first address that the household appliance is sent by second communication method
Information, wherein the second communication method includes bluetooth or ZigBee.
Described device further includes:
Judgment module 94 after the first address information for receiving the household appliance, judges that the socket itself is current
Whether the quantity for the household appliance bound reaches the slot quantity that the socket is set;If not, triggering the transmission mould
Block 92.
The company-information of the socket is also carried in the bind request;
The sending module 92 is additionally operable to after the household appliance sends bind request, receives the household appliance hair
The agreement binding response sent, wherein described agree to that binding response is that the household appliance judges in the company-information pre-saved,
There are what is sent when the company-information of the socket;According to the device identification create-rule pre-saved, generates the household electrical appliances and set
Standby first identifier information;The first identifier information is sent to the household appliance;
The binding module 93 is specifically used for, by the first identifier information and first address information, being determined as institute
State the second communications address information of household appliance.
It may be implemented to bind between socket and household appliance in the embodiment of the present invention, and preserve the mailing address of counterpart device
Information, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save net
Network resource improves the promptness of communication.
Figure 10 is a kind of 1000 schematic diagram of binding device of household appliance and socket provided in an embodiment of the present invention, is applied to
Household appliance, the device include:
Receiving module 1001, the bind request for receiving socket transmission, wherein the bind request is the socket root
It is sent according to the first address information of the household appliance of reception, first that the socket is carried in the bind request is logical
Believe address information;
Sending module 1002, for according to first communications address information, binding acknowledgement message to be replied to the socket,
After so that the socket is received the binding acknowledgement message, determine that the socket is completed to bind with the household appliance, and make institute
Household appliance is stated according to first communications address information, is communicated with the socket.
The sending module 1002 is sent out before being additionally operable to receive the bind request that socket is sent by first communication party formula
The MAC address for sending the household appliance makes terminal receive the household appliance MAC Address;Receive the end
The account and encrypted message of the router for the terminal connection that end is sent;According to the account and encrypted message, with the road
It is connected by device, obtains the IP address that the router is household appliance distribution, and the IP address of the household appliance is sent out
The terminal is given, makes the terminal according to the MAC Address of the household appliance and the IP address of the household appliance, determines institute
The first address information of household appliance is stated, and first address information is sent to by the socket by first communication party formula,
Described in first communication party formula include Wireless Fidelity WiFi communication, the household appliance connect same router with the socket,
First address information includes the MAC Address of the household appliance and/or the IP address of the household appliance;Wherein, described
First communications address information includes the MAC address of the socket and/or the router is the socket point
The internet protocol address matched.
The sending module 1002 is sent out before being additionally operable to receive the bind request that socket is sent by second communication method
The first address information is sent, after so that the socket is received first address information, bind request is sent to the household appliance,
The wherein described second communication method includes bluetooth or ZigBee;Wherein, first communications address information includes the socket
Second address information of second identifier information and the socket.
The company-information of the socket is also carried in the bind request;
Described device further includes:
Judgment module 1003 judges in the company-information pre-saved after receiving the bind request that socket is sent, is
It is no that there are the company-informations of the socket;Agree to binding response if so, being returned to the socket;Judge whether to receive described
The first identifier information that socket is sent is given birth to wherein the first identifier information is the socket according to the device identification pre-saved
At rule, the first identifier information of the household appliance of generation;If so, triggering sending module 1002.
It may be implemented to bind between socket and household appliance in the embodiment of the present invention, and preserve the mailing address of counterpart device
Information, therefore can directly be communicated between household appliance and socket, without relying on terminal device, to save net
Network resource improves the promptness of communication.
For method, device embodiment, since it is substantially similar to system embodiment, so the comparison of description is simple
Single, related place illustrates referring to the part of system embodiment.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (20)
1. the binding method of a kind of household appliance and socket, which is characterized in that be applied to socket, this method includes:
Receive the first address information of household appliance;
According to first address information, bind request is sent to the household appliance, wherein carrying institute in the bind request
State the first communications address information of socket;
If receiving the binding acknowledgement message that the household appliance is replied, determines and complete to bind with the household appliance, obtain
And the second communications address information of the household appliance is preserved, make the socket according to second communications address information, with institute
Household appliance is stated to be communicated.
2. the method as described in claim 1, which is characterized in that the first address information packet for receiving the household appliance
It includes:
Receive the of the household appliance for connecting that the terminal of same router is sent by first communication party formula with the socket
One address information, wherein the first communication party formula includes Wireless Fidelity WiFi communication, the household appliance connects with the socket
Same router is connect, first address information includes the MAC address of the household appliance and/or the road
By the internet protocol address that device is household appliance distribution;
Second communications address information for obtaining the household appliance includes:
By first address information, it is determined as the second communications address information of the household appliance.
3. the method as described in claim 1, which is characterized in that the first address information packet for receiving the household appliance
It includes:
The first address information that the household appliance is sent by second communication method is received, wherein the second communication method packet
Include bluetooth or ZigBee.
4. method as claimed in claim 3, which is characterized in that after first address information for receiving the household appliance,
Before the transmission bind request to the household appliance, the method further includes:
Judge whether the quantity for the household appliance that the socket itself has currently been bound reaches the slot number that the socket is set
Amount;
If not, carrying out subsequent step.
5. method as claimed in claim 3, which is characterized in that also carry producer's letter of the socket in the bind request
Breath;
It is described send bind request to the household appliance after, receive binding acknowledgement message that the household appliance is replied it
Before, the method further includes:
The agreement binding response that the household appliance is sent is received, wherein the agreement binding response judges for the household appliance
In the company-information pre-saved, there are what is sent when the company-information of the socket;
According to the device identification create-rule pre-saved, the first identifier information of the household appliance is generated;
The first identifier information is sent to the household appliance;
Second communications address information for obtaining the household appliance includes:
By the first identifier information and first address information, it is determined as the second mailing address letter of the household appliance
Breath.
6. the binding method of a kind of household appliance and socket, which is characterized in that be applied to household appliance, this method includes:
The bind request that socket is sent is received, wherein the bind request is the household appliance of the socket according to reception
What the first address information was sent, the first communications address information of the socket is carried in the bind request;
According to first communications address information, binding acknowledgement message is replied to the socket, so that the socket is received described
It after binding acknowledgement message, determines that the socket and the household appliance are completed to bind, and makes the household appliance according to described the
One communications address information is communicated with the socket.
7. method as claimed in claim 6, which is characterized in that before the bind request for receiving socket transmission, the side
Method further includes:
The MAC address that the household appliance is sent by first communication party formula makes terminal receive the household electrical appliances
The MAC Address of equipment;
Receive the account and encrypted message of the router for the terminal connection that the terminal is sent;
It according to the account and encrypted message, is connected to the router, obtains the router and distributed for the household appliance
IP address, and the IP address of the household appliance is sent to the terminal, makes the terminal according to the household appliance
The IP address of MAC Address and the household appliance, determines the first address information of the household appliance, and passes through first communication party
First address information is sent to the socket by formula, wherein the first communication party formula includes Wireless Fidelity WiFi communication,
The household appliance connect same router with the socket, and first address information includes the MAC of the household appliance
The IP address of location and/or the household appliance;
Wherein, first communications address information includes the MAC address of the socket and/or the router
For the internet protocol address of socket distribution.
8. method as claimed in claim 6, which is characterized in that before the bind request for receiving socket transmission, the side
Method further includes:
The first address information is sent by second communication method, after so that the socket is received first address information, to institute
It states household appliance and sends bind request, wherein the second communication method includes bluetooth or ZigBee;
Wherein, first communications address information includes the second identifier information of the socket and the second address letter of the socket
Breath.
9. method as claimed in claim 8, which is characterized in that also carry producer's letter of the socket in the bind request
Breath;
After the bind request for receiving socket transmission, before the reply binding acknowledgement message to the socket, the side
Method further includes:
Judge in the company-information pre-saved, if there are the company-informations of the socket;
Agree to binding response if so, being returned to the socket;
Judge whether to receive the first identifier information that the socket is sent, wherein the first identifier information is the socket root
According to the device identification create-rule pre-saved, the first identifier information of the household appliance of generation;
If so, carrying out subsequent step.
10. the binding device of a kind of household appliance and socket, which is characterized in that be applied to socket, which includes:
Receiving module, the first address information for receiving the household appliance;
Sending module, for according to first address information, bind request being sent to the household appliance, wherein the binding
The first communications address information of the socket is carried in request;
Binding module, if the binding acknowledgement message replied for receiving the household appliance, determines and the household appliance
Binding is completed, the second communications address information of the household appliance is obtained and preserve, the socket is made to be communicated according to described second
Address information is communicated with the household appliance.
11. device as claimed in claim 10, which is characterized in that the receiving module is specifically used for receiving and the socket
First address information of the household appliance that the terminal of connection same router is sent by first communication party formula, wherein described
First communication party formula includes Wireless Fidelity WiFi communication, and the household appliance connect same router with the socket, and described
One address information includes the MAC address of the household appliance and/or the router is the household appliance
The internet protocol address of distribution;
The binding module is specifically used for, by first address information, being determined as the second mailing address of the household appliance
Information.
12. device as claimed in claim 10, which is characterized in that the receiving module is set specifically for receiving the household electrical appliances
Standby the first address information sent by second communication method, wherein the second communication method includes bluetooth or ZigBee.
13. device as claimed in claim 12, which is characterized in that described device further includes:
Judgment module after the first address information for receiving the household appliance, judges that the socket itself has currently been bound
The quantity of household appliance whether reach the slot quantity that the socket is set;If not, triggering the sending module.
14. method as claimed in claim 12, which is characterized in that also carry producer's letter of the socket in the bind request
Breath;
The sending module is additionally operable to after the household appliance sends bind request, receives the same of the household appliance transmission
Meaning binding response, wherein described agree to that binding response is that the household appliance judges in the company-information pre-saved that there are institutes
It is sent when the company-information for stating socket;According to the device identification create-rule pre-saved, the of the household appliance is generated
One identification information;The first identifier information is sent to the household appliance;
The binding module is specifically used for, by the first identifier information and first address information, being determined as the household electrical appliances
Second communications address information of equipment.
15. the binding device of a kind of household appliance and socket, which is characterized in that be applied to household appliance, which includes:
Receiving module, for receive socket transmission bind request, wherein the bind request be the socket according to reception
What the first address information of the household appliance was sent, the first mailing address letter of the socket is carried in the bind request
Breath;
Sending module makes described insert for according to first communications address information, binding acknowledgement message to be replied to the socket
After seated connection receives the binding acknowledgement message, determine that the socket is completed to bind with the household appliance, and the household electrical appliances is made to set
For according to first communications address information, communicated with the socket.
16. device as claimed in claim 15, which is characterized in that the sending module is additionally operable to receive tying up for socket transmission
Before fixed request, the MAC address of the household appliance is sent by first communication party formula, and terminal is made to receive institute
State the MAC Address of household appliance;Receive the account and encrypted message of the router for the terminal connection that the terminal is sent;Root
It according to the account and encrypted message, is connected to the router, with obtaining the IP that the router is household appliance distribution
Location, and the IP address of the household appliance is sent to the terminal, make the terminal according to the MAC Address of the household appliance
And the IP address of the household appliance, determine the first address information of the household appliance, and by first communication party formula by institute
It states the first address information and is sent to the socket, wherein the first communication party formula includes Wireless Fidelity WiFi communication, the family
Electric equipment connect same router with the socket, first address information include the household appliance MAC Address and/or
The IP address of the household appliance;Wherein, first communications address information includes the media access control MAC of the socket
Location and/or the internet protocol address that the router is socket distribution.
17. device as claimed in claim 15, which is characterized in that the sending module is additionally operable to receive tying up for socket transmission
Before fixed request, the first address information is sent by second communication method, the socket is made to receive first address information
Afterwards, bind request is sent to the household appliance, wherein the second communication method includes bluetooth or ZigBee;Wherein, described
First communications address information includes the second identifier information of the socket and the second address information of the socket.
18. device as claimed in claim 17, which is characterized in that also carry the producer of the socket in the bind request
Information;
Described device further includes:
Judgment module judges in the company-information pre-saved, if there are institutes after receiving the bind request that socket is sent
State the company-information of socket;Agree to binding response if so, being returned to the socket;Judge whether that receiving the socket sends
First identifier information, wherein the first identifier information is the socket according to the device identification create-rule pre-saved,
The first identifier information of the household appliance generated;If so, triggering the sending module.
19. the binding system of a kind of household appliance and socket, which is characterized in that the system comprises such as claim 10-14 to answer
For the household appliance of socket and the binding device of socket, and as claim 15-18 is applied to the household appliance of household appliance
With the binding device of socket.
20. a kind of socket, which is characterized in that including processor, memory and communication module;
The processor controls the communication module receives household appliance first for calling the instruction in the memory
Address information;According to first address information, bind request is sent to the household appliance, wherein being taken in the bind request
The first communications address information with the socket;If the communication module receives the binding acknowledgement that the household appliance is replied
Information determines and completes to bind with the household appliance, obtains and preserve the second communications address information of the household appliance, make institute
Socket is stated according to second communications address information, is communicated with the household appliance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810332643.4A CN108737226B (en) | 2018-04-13 | 2018-04-13 | Method, device and system for binding household appliance and socket |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810332643.4A CN108737226B (en) | 2018-04-13 | 2018-04-13 | Method, device and system for binding household appliance and socket |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108737226A true CN108737226A (en) | 2018-11-02 |
CN108737226B CN108737226B (en) | 2020-07-07 |
Family
ID=63938918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810332643.4A Active CN108737226B (en) | 2018-04-13 | 2018-04-13 | Method, device and system for binding household appliance and socket |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737226B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110601934A (en) * | 2019-09-18 | 2019-12-20 | 青岛海信智慧家居系统股份有限公司 | Method and device for establishing binding relationship between binding switch equipment and switch equipment |
CN110933194A (en) * | 2019-11-05 | 2020-03-27 | 珠海格力电器股份有限公司 | Automatic address allocation method, equipment and system |
CN111540457A (en) * | 2020-04-02 | 2020-08-14 | 出门问问信息科技有限公司 | Binding method and device, electronic equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102109840A (en) * | 2010-12-10 | 2011-06-29 | 深圳市科陆电子科技股份有限公司 | Intelligent control system and control method thereof for home appliances |
CN102685273A (en) * | 2012-06-08 | 2012-09-19 | 陈梓平 | Address allocation method for intelligent equipment |
CN104375497A (en) * | 2014-12-15 | 2015-02-25 | 广东美的厨房电器制造有限公司 | Smart home, smart home control method, control system and electronic equipment |
CN205721127U (en) * | 2016-03-31 | 2016-11-23 | 深圳市九洲光电科技有限公司 | Smart jack and intelligent home control system |
CN106506175A (en) * | 2016-11-21 | 2017-03-15 | 北京小米移动软件有限公司 | The control method of device power supply (DPS) and device |
-
2018
- 2018-04-13 CN CN201810332643.4A patent/CN108737226B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102109840A (en) * | 2010-12-10 | 2011-06-29 | 深圳市科陆电子科技股份有限公司 | Intelligent control system and control method thereof for home appliances |
CN102685273A (en) * | 2012-06-08 | 2012-09-19 | 陈梓平 | Address allocation method for intelligent equipment |
CN104375497A (en) * | 2014-12-15 | 2015-02-25 | 广东美的厨房电器制造有限公司 | Smart home, smart home control method, control system and electronic equipment |
CN205721127U (en) * | 2016-03-31 | 2016-11-23 | 深圳市九洲光电科技有限公司 | Smart jack and intelligent home control system |
CN106506175A (en) * | 2016-11-21 | 2017-03-15 | 北京小米移动软件有限公司 | The control method of device power supply (DPS) and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110601934A (en) * | 2019-09-18 | 2019-12-20 | 青岛海信智慧家居系统股份有限公司 | Method and device for establishing binding relationship between binding switch equipment and switch equipment |
CN110933194A (en) * | 2019-11-05 | 2020-03-27 | 珠海格力电器股份有限公司 | Automatic address allocation method, equipment and system |
CN111540457A (en) * | 2020-04-02 | 2020-08-14 | 出门问问信息科技有限公司 | Binding method and device, electronic equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108737226B (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110692280B (en) | Network access method, device and system | |
CN104964399B (en) | The address distribution method and device of air-conditioning equipment | |
CN108737226A (en) | A kind of binding method, the apparatus and system of household appliance and socket | |
US20100034386A1 (en) | Device manager repository | |
CN108488914A (en) | Air-conditioner set, the operating method of air-conditioner set and device | |
CN102395144B (en) | Wireless access point upgrade method, system thereof and device thereof | |
EP2687000B1 (en) | Hybrid networking simple-connect setup using proxy device | |
US9614585B2 (en) | Switching communication devices between different communication media | |
CN104243616A (en) | Wi-Fi (wireless fidelity) communication based cloud air conditioner system | |
CN105577500B (en) | The correlating method and device of VXLAN and tunnel | |
CN104518864A (en) | Power Line communication (PLC) network nodes using cipher then segment security | |
CN104811357B (en) | A kind of Internet of things system | |
CN108592310A (en) | Communication means in air-conditioning system and air-conditioning system between unit | |
CN108800446A (en) | Communication means in air-conditioning system and air-conditioning system between unit | |
CN108566231A (en) | Air-conditioning communication system, method, storage medium, electronic device | |
CN106302448A (en) | remote access control method and device | |
CN111049752A (en) | Load balancing method and device for multiple transmission lines | |
CN106453670A (en) | Communication method, apparatus and system for smart meter | |
CN106464556A (en) | Node networking method, apparatus and system | |
CN108613258A (en) | The communication means of air-conditioning system and air-conditioner set | |
CN104597890B (en) | Information processing method and electronic equipment | |
CN105812413A (en) | Communication method and device | |
ES2904975T3 (en) | Data transmission between a terminal and an associated server | |
CN109862445A (en) | A kind of communication system and its communication means of distributed charging pile | |
CN109788325A (en) | Video task distribution method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |