Wireless signal relay system
Technical Field
The invention relates to the technical field of wireless relay, in particular to a wireless signal relay system.
Background
Along with intelligent house, the rise of thing networking, wireless router and intelligent house controller can be arranged usually in current family, wireless router provides wireless signal for terminal equipment such as cell-phone, intelligent house controller provides wireless signal for intelligent house equipment in the family (like air conditioner, TV, camera etc.), because terminal equipment and intelligent house equipment are the overall arrangement dispersion at home, in order to make every terminal equipment and intelligent house equipment can both receive stronger wireless signal, need carry out relay amplification to the wireless signal that wireless router and intelligent house controller provided.
In the prior art, two wireless amplifiers are adopted to respectively carry out relay amplification on wireless signals of a wireless router and an intelligent household controller, and the wireless signal amplification mode needs to be realized by arranging the two wireless amplifiers in a household, so that the occupied space is large and the cost is high.
Disclosure of Invention
The invention mainly provides a wireless signal relay system which can solve the problems of large occupied space and high cost caused by the fact that two wireless amplifiers are needed to be arranged in a household in the conventional mode of carrying out relay amplification on wireless signals of a wireless router and an intelligent household controller.
In order to solve the technical problems, the invention adopts the technical scheme that: the wireless signal relay system comprises an amplifier, an intelligent home controller and a wireless router;
a first relay port of the amplifier is wirelessly connected to a first wireless access point of the wireless router, and a second relay port of the amplifier is wirelessly connected to a second wireless access point of the intelligent home controller; the third wireless access point of the amplifier provides wireless access for the mobile terminal, and the fourth wireless access point of the amplifier provides wireless access for the intelligent household equipment;
the amplifier monitors first data received by the first relay port through a first service thread and forwards the first data to the mobile terminal, and monitors second data received by the third wireless access point through the first service thread and forwards the second data to the wireless router; the amplifier monitors third data received by the second relay port through a second service line and forwards the third data to the intelligent home equipment, and monitors fourth data received by the fourth wireless access point through the second service thread and forwards the fourth data to the intelligent home controller; and simultaneously expanding the wireless signal coverage range of the wireless router and the intelligent home controller.
Preferably, the login information of the third wireless access point of the amplifier is the same as the login information of the first wireless access point of the wireless router; and the login information of the fourth wireless access point of the amplifier is the same as the login information of the second wireless access point of the intelligent home controller.
Preferably, the amplifier monitors, through the first service thread, ARP packets sent by the mobile terminal and received by the first relay port and the third wireless access point, and generates a mobile terminal list according to the ARP packets.
Preferably, the monitoring, by the amplifier through a first service thread, of the first data received by the first relay port, and forwarding the first data to the mobile terminal specifically includes:
the amplifier monitors the ARP unicast message and the DHCP unicast message received by the first relay port through the first service thread;
and the amplifier forwards the ARP unicast message to a first target mobile terminal according to the ARP unicast message and the mobile terminal list, and forwards the DHCP unicast message to a second target mobile terminal according to the DHCP unicast message and the mobile terminal list.
Preferably, the monitoring, by the amplifier, second data received by the third wireless access point through the first service thread, and forwarding the second data to the wireless router specifically includes:
and the amplifier monitors the first unicast message and the multicast message received by the third wireless access point through the first service thread, and forwards the first unicast message and the multicast message to the wireless router.
Preferably, the first unicast message is a unicast message of another type except for the ARP unicast message and the DHCP unicast message.
Preferably, the mobile terminal list includes a MAC address, an IP address, and interface information of each mobile terminal.
Preferably, the amplifier sends an ARP request to each of the mobile terminals in the mobile terminal list periodically through the first service thread, and updates the mobile terminal list according to a reply result of each of the mobile terminals.
Preferably, the forwarding the ARP unicast message to the first destination mobile terminal according to the ARP unicast message and the mobile terminal list specifically includes:
acquiring a first target MAC address in the ARP single broadcast message;
acquiring an affiliated interface of a first target mobile terminal matched with the first target MAC address according to the first target MAC address and the mobile terminal list;
and forwarding the ARP unicast message to the first target mobile terminal according to the interface of the first target mobile terminal.
Preferably, the forwarding the DHCP unicast message to the second destination mobile terminal according to the DHCP unicast message and the mobile terminal list specifically includes:
acquiring a second destination MAC address in the DHCP single broadcast message;
acquiring an affiliated interface of a second destination mobile terminal matched with the second destination MAC address according to the second destination MAC address and the mobile terminal list;
and forwarding the DHCP unicast message to the second target mobile terminal according to the interface of the second target mobile terminal.
The invention has the beneficial effects that: different from the situation of the prior art, the wireless signal relay system comprises an amplifier, an intelligent home controller and a wireless router, wherein the amplifier monitors first data received by a first relay port through a first service thread and from the wireless router, and forwards the first data to the mobile terminal, and monitors second data received by a third wireless access point through the first service thread and from the mobile terminal, and forwards the second data to the wireless router; the amplifier monitors third data received by the second relay port from the intelligent home controller through the second service line, forwards the third data to the intelligent home device, monitors fourth data received by the fourth wireless access point through the second service thread, and forwards the fourth data to the intelligent home controller. According to the invention, one amplifier is adopted, so that the wireless signal coverage range of the wireless router and the intelligent household controller can be expanded simultaneously, the space occupied by equipment is reduced, and the cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a schematic structural diagram of a wireless signal relay system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a wireless signal relay system according to an embodiment of the present invention, where the wireless signal relay system includes an amplifier, an intelligent home controller, and a wireless router.
The first relay port sta1 of the amplifier is wirelessly connected to the first wireless access point AP1 of the wireless router, and the second relay port sta2 of the amplifier is wirelessly connected to the second wireless access point AP2 of the intelligent household controller; the third wireless access point AP3 of the amplifier provides wireless access for the mobile terminal, and the fourth wireless access point AP4 of the amplifier provides wireless access for the intelligent household equipment.
The amplifier monitors the first data received by the first trunk port sta1 through the first service thread and forwards the first data to the mobile terminal, and monitors the second data received by the third wireless access point AP3 through the first service thread and forwards the second data to the wireless router; the amplifier monitors third data received by the second trunk port sta2 through a second service line, forwards the third data to the intelligent home equipment, monitors fourth data received by the fourth wireless access point AP4 through a second service thread, and forwards the fourth data to the intelligent home controller; the wireless router and the intelligent home controller are connected with the wireless router through the wireless signal transmission line.
Specifically, the login information of the third wireless access point AP3 of the amplifier is the same as the login information of the first wireless access point AP1 of the wireless router; the login information of the fourth wireless access point AP4 of the amplifier is the same as the login information of the second wireless access point AP2 of the smart home controller. Wherein the login information of the third wireless access point AP3 includes the first network name SSID and the first login password of the first wireless network expanded by the amplifier; the login information of the first wireless access point AP1 of the wireless router comprises a first network name SSID and a first login password of the first wireless network provided by the wireless router; the login information of the fourth wireless access point AP4 includes the second network name SSID and the second login password of the second wireless network expanded by the amplifier; the login information of the second wireless access point AP2 of the smart home controller includes a second network name SSID of the second wireless network and a second login password provided by the smart home controller.
Specifically, the amplifier monitors the ARP packets sent by the mobile terminal received by the first relay port sta1 and the third wireless access point AP3 through the first service thread, and generates a mobile terminal list according to the ARP packets. Meanwhile, the amplifier monitors the ARP messages sent by the intelligent household equipment and received by the second relay port sta2 and the fourth wireless access point AP4 through a second service thread, and generates an intelligent household equipment list according to the ARP messages. The mobile terminal list comprises the MAC address, the IP address and the belonging interface information of each mobile terminal, the amplifier acquires the MAC address of each mobile terminal from the ARP message sent by each mobile terminal, acquires the IP address of each mobile terminal according to the MAC address of each mobile terminal, and determines the belonging interface of each mobile terminal according to the port (the first relay port sta1 or the third wireless access point AP3) for receiving the ARP message. The generation process of the smart home device list is the same as that of the mobile terminal list, and is not described herein again.
Further specifically, the amplifier periodically sends an ARP request to each mobile terminal in the list of mobile terminals through the first service thread, and updates the list of mobile terminals according to a reply result of each mobile terminal. And the reply result of each mobile terminal is that the mobile terminal replies the ARP request or does not reply the ARP request, and the mobile terminal which does not reply the ARP request is deleted from the mobile terminal list, namely the mobile terminal list is updated. The process of updating the smart home device list by the amplifier is the same as the process of updating the mobile terminal list, and is not described herein again.
Specifically, the monitoring, by the amplifier, of the first data received by the first relay port sta1 through the first service thread, and forwarding the first data to the mobile terminal specifically includes: the amplifier monitors ARP unicast messages and DHCP unicast messages received by a first relay port sta1 through a first service thread; the amplifier forwards the ARP unicast message to a first target mobile terminal according to the ARP unicast message and the mobile terminal list, and forwards the DHCP unicast message to a second target mobile terminal according to the DHCP unicast message and the mobile terminal list. Among them, Address Resolution Protocol (ARP), and Dynamic Host Configuration Protocol (DHCP) are used.
Further specifically, forwarding the ARP unicast message to the first destination mobile terminal according to the ARP unicast message and the mobile terminal list specifically includes: acquiring a first target MAC address in an ARP single broadcast message; acquiring an affiliated interface of a first target mobile terminal matched with a first target MAC address according to the first target MAC address and the mobile terminal list; and forwarding the ARP unicast message to the first target mobile terminal according to the interface of the first target mobile terminal.
Further specifically, forwarding the DHCP unicast message to the second destination mobile terminal according to the DHCP unicast message and the mobile terminal list specifically includes: acquiring a second destination MAC address in the DHCP single broadcast message; acquiring an affiliated interface of a second target mobile terminal matched with a second target MAC address according to the second target MAC address and the mobile terminal list; and forwarding the DHCP unicast message to the second target mobile terminal according to the interface of the second target mobile terminal.
Specifically, the monitoring, by the amplifier, of the third data received by the second relay port sta2 through the second service thread, and forwarding the third data to the smart home device specifically includes: the amplifier monitors ARP unicast messages and DHCP unicast messages received by the second relay port sta2 through a second service thread; the amplifier forwards the ARP unicast message to a first target intelligent household device according to the ARP unicast message and the intelligent household device list, and forwards the DHCP unicast message to a second target intelligent household device according to the DHCP unicast message and the mobile terminal list.
Further specifically, forwarding the ARP unicast message to the first destination smart home device according to the ARP unicast message and the smart home device list specifically includes: acquiring a third destination MAC address in the ARP single broadcast message; acquiring an interface of the first target intelligent household equipment matched with the third target MAC address according to the third target MAC address and the intelligent household equipment list; and forwarding the ARP unicast message to the first target intelligent household equipment according to the interface of the first target intelligent household equipment.
Further specifically, forwarding the DHCP unicast message to the second destination smart home device according to the DHCP unicast message and the smart home device list specifically includes: acquiring a fourth destination MAC address in the DHCP single broadcast message; acquiring an interface of second target intelligent household equipment matched with the fourth target MAC address according to the fourth target MAC address and the intelligent household equipment list; and forwarding the DHCP unicast message to the second target intelligent household equipment according to the interface of the second target intelligent household equipment.
Specifically, the monitoring, by the amplifier, of the second data received by the third wireless access point AP3 through the first service thread, and forwarding the second data to the wireless router specifically includes: the amplifier monitors the first unicast message and the multicast message received by the third wireless access point AP3 through the first service thread, and forwards the first unicast message and the multicast message to the wireless router. The first unicast message is other types of unicast messages except an ARP unicast message and a DHCP unicast message. The amplifier forwards the first unicast message and the multicast message to the wireless router through the first service thread based on a three-layer routing mode.
Specifically, the amplifier monitors fourth data received by the fourth wireless access point AP4 through the second service thread, and forwards the fourth data to the smart home controller specifically: the amplifier monitors the first unicast message and the multicast message received by the fourth wireless access point AP4 through the second service thread, and forwards the first unicast message and the multicast message to the smart home controller. The first unicast message is other types of unicast messages except an ARP unicast message and a DHCP unicast message. And the amplifier forwards the first unicast message and the multicast message to the intelligent home controller through a second service thread based on a three-layer routing mode.
In the embodiment of the invention, the amplifier respectively realizes data forwarding between the mobile terminal and the wireless router and data forwarding between the intelligent household equipment and the intelligent household controller through two service threads in a service process, thereby simultaneously expanding the wireless network coverage range of the wireless router and the intelligent household controller.
The wireless signal relay system comprises an amplifier, an intelligent home controller and a wireless router, wherein the amplifier monitors first data received by a first relay port through a first service thread and from the wireless router, forwards the first data to a mobile terminal, monitors second data received by a third wireless access point through the first service thread and from the mobile terminal, and forwards the second data to the wireless router; the amplifier monitors third data received by the second relay port from the intelligent home controller through the second service line, forwards the third data to the intelligent home device, monitors fourth data received by the fourth wireless access point through the second service thread, and forwards the fourth data to the intelligent home controller. According to the invention, one amplifier is adopted, so that the wireless signal coverage range of the wireless router and the intelligent household controller can be expanded simultaneously, the space occupied by equipment is reduced, and the cost is reduced.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.