Intelligent household equipment access method and system based on wireless routing terminal
Technical Field
The invention relates to the technical field of intelligent home, in particular to an intelligent home equipment connection method and system.
Background
With the rise of the internet of things technology, currently, the smart home systems have developed to a higher technical level, and people can conveniently realize remote control and centralized management of various home electrical equipment, such as an air conditioning system, a security system, a lighting system, a video system and the like. The current intelligent home system is based on a local area network and an internet. The intelligent home system based on the Internet can be free from the limitation of regions, and the control and management of various electrical equipment, security equipment and the like can be realized as long as the control terminal is connected to the Internet.
However, the current smart home system generally has a problem: when the intelligent home market is in large-scale rise, a large amount of novel intelligent household equipment can appear rapidly, if new equipment needs to be added, new intelligent household equipment needs to be added through third-party software in a mobile phone connected with a router, each home terminal is connected to an intelligent gateway through manual setting, access, control or management of the intelligent household equipment can be achieved through authentication permission of a user, and operation is complex. Therefore, adding a new home device in the smart home system requires manual operation of the user, the existing smart home system is complex in connection mode, the user is required to complete related operations, and each home device needs to interact with the server.
Accordingly, there is a need for improvements in the art.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an intelligent home equipment access method and system based on a wireless router terminal, and aims to solve the technical problems that the existing intelligent home system is complex in connection mode and free of user connection operation.
In a first aspect, an embodiment of the present invention provides an intelligent home device access method based on a wireless routing terminal, including a wireless routing terminal and an intelligent home device to be accessed, where the method includes:
adding verification information to the intelligent household equipment;
the intelligent household equipment sends a broadcast signal, wherein the broadcast signal comprises a broadcast address and the verification information;
the wireless routing terminal receives the broadcast signal through a broadcast signal receiving port and filters the broadcast signal to obtain the verification information;
authenticating the verification information by comparing the verification information with an identity information list;
and if the authentication is passed, adding the identification number of the intelligent household equipment to a control list of the wireless routing terminal.
Preferably, the smart home device access method based on the wireless routing is implemented by using a limited broadcast address based on a UDP broadcast protocol.
Preferably, the wireless-routing-based smart home device access method, where the smart home device sends a broadcast signal, further includes: and presetting a broadcast signal receiving end address as the broadcast signal receiving port.
Preferably, the smart home device access method based on wireless routing further includes: the address of the receiving end of the broadcast signal.
Preferably, the wireless-routing-based smart home device access method includes a server, where the authenticating the identity identifier includes: sending the verification information to the server and comparing the verification information with the identity information list, wherein the identity information list is stored in the server; and judging whether the identity information list contains the verification information or not, and if so, passing the authentication.
Preferably, the wireless-routing-based smart home device access method, wherein the identification number of the smart home device includes: one or both of the device number and the MAC address of the device.
In a first aspect, an embodiment of the present invention provides an intelligent home device access system based on a wireless router terminal, including a wireless router terminal and an intelligent home device to be accessed, where the system includes:
the identification unit is used for adding verification information to the intelligent household equipment;
a broadcasting unit for transmitting a broadcasting signal including a broadcasting address and the authentication information;
an obtaining unit, configured to receive the broadcast signal through the broadcast signal receiving port address, and filter the broadcast signal to obtain the verification information;
the authentication unit is used for authenticating the verification information and comparing the verification information with an identity information list;
and the confirmation unit is used for adding the identification number of the intelligent household equipment passing the authentication to the control list of the wireless routing terminal.
Preferably, the smart home device access system based on the wireless routing terminal, wherein the broadcast address in the broadcast signal is a limited broadcast address based on a UDP broadcast protocol.
Preferably, the smart home device access system based on the wireless router terminal, wherein the broadcasting unit further includes: the preset unit is used for presetting a broadcast signal receiving end address as the broadcast signal receiving port.
Preferably, the smart home device access system based on the wireless router terminal, wherein the broadcast signal sent by the broadcast unit further includes: the address of the receiving end of the broadcast signal.
Preferably, the smart home device access system based on the wireless router terminal includes a server, and the authentication unit further includes: a comparison unit, configured to send the verification information to the server and compare the verification information with the identity information list, where the identity information list is stored in the server; and the judging unit is used for judging whether the identity information list contains the verification information or not, and if so, the authentication is passed.
Preferably, the smart home devices access system based on the wireless router terminal, wherein the identification number of the smart home device includes: one or both of the device number and the MAC address of the device.
Compared with the prior art, the invention has the beneficial effects that: the invention solves the problems that in the prior art, new intelligent household equipment needs to be added through third-party software in a mobile phone connected with a router, each household terminal is connected to the intelligent gateway through manual setting, and access, control or management of the intelligent household equipment can be realized only through manual authentication permission of a user, so that the operation is complicated. On one hand, the intelligent home system is automatically accessed by sending broadcast signals, and on the other hand, the authentication and binding of the intelligent home equipment are automatically completed by comparing authentication information of the authentication equipment; the operation of manual access and authentication of the user is omitted, and the operation is directly provided for the user control interface, so that the operation flow of the user on the intelligent household equipment is optimized.
Drawings
Fig. 1 is a flowchart of an intelligent home device access method based on a wireless router terminal according to the present invention;
fig. 2 is a schematic structural diagram of an intelligent home device access system based on a wireless routing terminal according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an intelligent home device access method based on a wireless routing terminal according to a first embodiment of the present invention, including the wireless routing terminal and an intelligent home device to be accessed, and a home internet of things is constructed in a home range covered by a wireless signal of the wireless routing terminal. The intelligent home equipment is provided with a communication module, and the intelligent home equipment access method based on the wireless routing terminal comprises the following steps:
step S1, adding verification information to the intelligent household equipment;
step S2, the smart home equipment sends a broadcast signal, wherein the broadcast signal comprises a broadcast address and the verification information;
step S3, the wireless router terminal receives the broadcast signal through the broadcast signal receiving port, and filters the broadcast signal to obtain the verification information;
step S4, authenticating the verification information, and comparing the verification information with an identity information list;
and step S5, if the authentication is passed, adding the identification number of the intelligent household equipment to a control list of the wireless routing terminal.
Specifically, the verification information added in step S1 represents a unique identifier of a home internet of things to be accessed by the smart home device, that is, a piece of verification information representing the home internet of things is defined when the home internet of things is constructed, for example, 4 bytes are used to distinguish different home internet of things, and each byte adopts 16-ary coding. That is to say, when an intelligent home device is about to access the home internet of things, the intelligent home device is given a verification message belonging to the home internet of things first, so that the verification message is authenticated in the following steps.
In step S2, since the smart home device cannot know the IP address of the wireless router terminal, and connection does not need to be established before information is transmitted using the UDP protocol, in this embodiment, the smart home device may send the verification information in a broadcast form through the UDP protocol. In other words, the smart home device sends the authentication information to the wireless routing terminal, and the IP address of the wireless routing terminal may not be known, so the smart home device does not know the network mask of the network where the smart home device is located and the IP address of the wireless routing terminal, and further, the broadcast address may use the limited broadcast address 255.255.255.255, and simultaneously encapsulate the authentication information and the limited broadcast address into a broadcast signal to be sent and send the broadcast signal to each host on the same broadcast network, and the wireless routing terminal in the same broadcast network receives the broadcast signal.
Further, since the broadcast is also directed to the port number of the receiver, since it is impossible for all ports of the receiver to listen to the broadcast, it is necessary to preset a broadcast signal receiving port address as the broadcast signal receiving port and to set the broadcast signal receiving port address. The broadcast signal receiving port address is a 16-bit port address, and the system forwards the data received from the broadcast network to the corresponding application program according to the port address. The 16-bit port address ranges from 0 to 65535, and from 0 to 1023 is reserved by the system, and is mainly used for providing system services such as HTTP, FTP, TELNET and the like, so that the preset broadcast signal receiving end address should be larger than 1023.
Step S3, the wireless router receives the broadcast signal through the broadcast signal receiving port, and filters the broadcast signal to obtain the verification information.
Step S4, authenticating the verification information, and comparing the verification information with the identity information list. Further, the server prestores an identity information list which comprises verification information of the plurality of home internet of things. The method for accessing the smart home device to the home internet of things is to be solved in the embodiment, so the home internet of things already exists, and the verification information of the home internet of things is uploaded to the identity information list of the server, and the specific uploading method is not the main technology to be solved in the embodiment, so that a person skilled in the art can follow the existing technology to realize the method. The verification information obtained in step S3 is compared with all the information in the identity information list, and if the identity information list includes the verification information, the authentication is passed.
And step S5, if the authentication is passed, adding the identification number of the intelligent household equipment to a control list of the wireless routing terminal. The identification number of the intelligent household equipment comprises one or two of an equipment number and an MAC address of the equipment. Furthermore, a user accesses, controls or manages the smart home corresponding to the identification number in the control list by accessing the control list in the wireless routing terminal through the wireless routing terminal to which the wireless control terminal (such as a smart phone, a tablet computer, a notebook computer, etc.) is connected.
The embodiment solves the problems that in the prior art, new intelligent household equipment needs to be added through third-party software in a mobile phone connected with a router, each household terminal is connected to the intelligent gateway through manual setting, access, control or management to the intelligent household equipment can be realized through manual authentication permission of a user, and the operation is complex. On one hand, the intelligent home system is automatically accessed by sending broadcast signals, and on the other hand, the authentication and binding of the intelligent home equipment are automatically completed by comparing authentication information of the authentication equipment; the operation of manual access and authentication of the user is omitted, and the operation is directly provided for the user control interface, so that the operation flow of the user on the intelligent household equipment is optimized.
Example two
Fig. 2 is a schematic structural diagram of an intelligent home device access system based on a wireless router terminal according to a second embodiment of the present invention, including a wireless router terminal and an intelligent home device to be accessed, where the intelligent home device access system 1 based on the wireless router terminal includes: the identification unit 11 is used for adding verification information to the smart home device; a broadcasting unit 12 for transmitting a broadcast signal including a broadcast address and authentication information; an obtaining unit 13, configured to receive a broadcast signal through a broadcast signal receiving port address, and filter the broadcast signal to obtain verification information; an authentication unit 14 for authenticating the verification information by comparing the verification information with the identity information list; and the confirming unit 15 is configured to add the identification number of the smart home device that passes the authentication to the control list of the wireless routing terminal.
Specifically, the verification information added in the representation unit 11 represents a unique identifier of a home internet of things to be accessed by the smart home device, that is, a piece of verification information representing the home internet of things is defined when the home internet of things is constructed, for example, 4 bytes are used to distinguish different home internet of things, and each byte adopts 16-system coding. That is to say, when there is an intelligent home device to be accessed to the home internet of things, the intelligent home device is first given a verification message belonging to the home internet of things, so that the subsequent authentication unit 14 authenticates the verification message.
The broadcast address in the broadcast signal sent by the broadcast unit 12 is a restricted broadcast address based on the UDP broadcast protocol, which is specifically referred to the description in the first embodiment.
Further, the broadcasting unit 12 further includes: a presetting unit 121, configured to preset a broadcast signal receiving end address as the broadcast signal receiving port; and the broadcast signal transmitted by the broadcasting unit 12 further includes: the above-mentioned broadcast signal receiving end address refers to the description in the first embodiment.
The authentication unit 14 further includes: a comparison unit 142, configured to send the verification information to the server and compare the verification information with an identity information list, where the identity information list is stored in the server; the determining unit 141 is configured to determine whether the identity information list includes the verification information, and if so, the authentication is passed, which please refer to the description of the step S4 in the first embodiment.
The confirming unit 15 is configured to add the identification number of the smart home device that passes the authentication to the identification number of the smart home device in the control list of the wireless routing terminal, where the identification number includes: one or both of the device number and the MAC address of the device.
Although various aspects of the invention are presented in the independent claims, other aspects of the invention comprise combinations of features from the described embodiments and/or the dependent claims with the features of the independent claims, and not solely the combinations explicitly presented in the claims.
It is noted herein that while the above describes example embodiments of the invention, these descriptions should not be viewed in a limiting sense. Rather, several variations and modifications are possible without departing from the scope of the invention as defined in the appended claims.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.