Disclosure of Invention
The invention provides a wireless router transmission rate switching method, a control method and a wireless router, which are used for solving the problem that the transmission rate of the router can not be switched autonomously in the prior art.
On one hand, the invention discloses a method for switching transmission rate of a wireless router, which comprises the following steps:
s100, monitoring the connection state of the wireless router;
s200, when the connection state of the wireless router changes, acquiring the access terminal information of the wireless router and the current transmission rate of the wireless router, and judging whether the transmission rate of the wireless router needs to be switched, if so, entering the next step, otherwise, returning to the step S100;
s300 switches the transmission rate of the wireless router.
Further, the step S200 includes:
s210, when an access terminal is added to the wireless router, acquiring the current transmission rate of the wireless router;
s220, judging whether the current transmission rate is a first transmission rate, if so, returning to the step S100, otherwise, entering the step S230;
s230, acquiring the type of the newly added access terminal;
s240, judging whether the type of the newly added access terminal is a wireless terminal, if so, entering the next step, otherwise, returning to the step S100;
s250 obtains the wireless mode of the newly added access terminal, and determines whether the wireless mode is the first wireless mode, if so, step S300 is entered, otherwise, step S100 is returned to.
Further, the step S200 includes:
s260, when a wireless terminal is disconnected with the wireless router, acquiring wireless modes of all wireless terminals connected with the wireless router and the current transmission rate of the wireless router;
s270, judging whether the wireless terminal in the first wireless mode exists according to the acquired wireless modes of all the wireless terminals, if so, entering the step S280, otherwise, entering the step S290;
s280, judging whether the current transmission rate of the wireless router is a first transmission rate, if so, returning to the step S100, otherwise, entering the step S300;
s290 determines whether the current transmission rate of the wireless router is the second transmission rate, if yes, the process returns to step S100, otherwise, the process proceeds to step S300.
Further, the step S250 includes:
s251 obtains a wireless mode of the newly added access terminal, and determines whether the wireless mode is a first wireless mode, if so, step S252 is performed, otherwise, step S100 is performed;
s252 acquires the signal strength of the newly added access terminal, and determines whether the signal strength is lower than a preset signal strength, if so, the process returns to step S100, otherwise, the process proceeds to step S300.
Further, the first transmission rate is PCIE1.1, and the first wireless mode is a 2.4G frequency operating mode.
Further, the step S100 includes:
s110 periodically monitors the connection status of the wireless router according to a preset time interval.
The invention also discloses a method for controlling the transmission rate of the wireless router, which comprises the following steps:
s10 monitoring the connection state of the wireless router;
s20, when the connection state of the wireless router changes, the access terminal information of the wireless router is obtained, and the transmission rate of the wireless router is controlled according to the access terminal information.
Further, the step S20 includes:
s21, when a wireless access terminal is added to the wireless router, acquiring wireless modes of all wireless terminals which are added before and have access to the wireless router;
s22, judging whether the acquired wireless mode has a first wireless mode, if so, entering step S23, otherwise, entering step S24;
s23, controlling the transmission rate of the wireless router to be a first transmission rate;
s24, acquiring the wireless mode of the newly added wireless access terminal, judging whether the wireless mode is the first wireless mode, if so, entering the step S23, otherwise, entering the step S25;
s25 controls the transmission rate of the wireless router to be a second transmission rate.
Further, the step S20 includes:
s26, when a wireless terminal is disconnected with the wireless router, acquiring the wireless mode of the wireless terminal connected with the wireless router after disconnection;
s27, according to the acquired wireless modes of all wireless terminals, judging whether a wireless terminal with a first wireless mode exists, if so, entering step S28, otherwise, entering step S29;
s28, controlling the transmission rate of the wireless router to be a first transmission rate;
s29 controls the transmission rate of the wireless router to be a second transmission rate.
Finally, the invention also discloses a wireless router of the wireless router transmission rate switching method, and the wireless router can execute the transmission rate switching method of the invention, which comprises the following steps:
the monitoring module is used for monitoring the connection state of the wireless router and the terminal; the acquisition module is used for acquiring the information of an access terminal accessed to the wireless router and the current transmission rate of the wireless router; the judging module is connected with the monitoring module and the acquiring module and used for coordinating the work of all the modules and judging whether the transmission rate of the wireless router needs to be switched or not according to the access terminal information acquired by the acquiring module and the current transmission rate information of the wireless router; an operation module; and the wireless router is connected with the judging module and used for switching the transmission rate of the wireless router according to the judging result of the judging module.
Further, the wireless router further comprises: the signal intensity acquisition module is connected with the judgment module and is used for acquiring the signal intensity of the wireless terminal accessed to the wireless router; and the storage module is connected with the judging module and is used for storing the signal intensity threshold value.
Further, the wireless router further comprises: and the display module is connected with the judging module and used for displaying the current transmission rate of the wireless router.
Further, the transmission rate of the wireless router comprises: PCIE1.1, PCIE 2.0; the access terminal information comprises the type of the access terminal and the wireless mode of the access terminal, wherein the type of the access terminal comprises wired and wireless, and the wireless mode of the access terminal comprises 2.4G and 5G.
Compared with the best technology in the prior art, the invention has the advantages that: the wireless router can realize the automatic switching of the transmission rate through the switching method of the invention, and the balance of the performance and the anti-interference is better. The router of the invention simultaneously supports two PCIE transmission rates, carries out PCIE switching according to the terminal type and the wireless mode condition, and keeps the performance and the anti-interference to be optimized.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, 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.
The invention discloses a method for switching transmission rate of a wireless router, the embodiment is shown in figure 1, and the method comprises the following steps:
s100, monitoring the connection state of the wireless router;
s200, when the connection state of the wireless router changes, acquiring the access terminal information of the wireless router and the current transmission rate of the wireless router, and judging whether the transmission rate of the wireless router needs to be switched, if so, entering the next step, otherwise, returning to the step S100;
s300 switches the transmission rate of the wireless router.
The connection state of a wireless router generally refers to the connection state between the wireless router and a terminal. When the wireless router needs to be designed into a sub-board or extend sub-working boards, the sub-boards can only transmit at one speed, and if the transmission speed needs to be changed, the wireless router needs to be manually switched. In the embodiment, the connection state information of the wireless router is acquired, when the connection state changes, the information of the terminal currently accessed by the wireless router and the current transmission rate are acquired, and then the judgment of whether the switching is needed is made according to the information. Specifically, for example, the default transmission rate of the router is PCIE1.1, the router will operate at the transmission rate of PCIE1.1 after being started, and if the terminals accessing the wireless router are all 5G terminals, since there is no 2.4G terminal, there is no interference to the 2.4G terminal, and in order to improve the transmission rate under the condition that the transmission performance is not affected, the current transmission rate of PCIE1.1 can be completely switched to PCIE2.0 after being judged. However, if a 2.4G terminal is accessed, the PCIE1.1 transmission rate still needs to be kept running in order not to affect the transmission performance of the 2.4G terminal.
An embodiment of the present invention, as shown in fig. 2, includes:
s100, monitoring the connection state of the wireless router;
s210, when an access terminal is added to the wireless router, acquiring the current transmission rate of the wireless router;
s220, judging whether the current transmission rate is a first transmission rate, if so, returning to the step S100, otherwise, entering the step S230;
s230, acquiring the type of the newly added access terminal;
s240, judging whether the type of the newly added access terminal is a wireless terminal, if so, entering the next step, otherwise, returning to the step S100;
s250, acquiring a wireless mode of the newly added access terminal, judging whether the wireless mode is a first wireless mode, if so, entering the step S300, otherwise, returning to the step S100;
s300 switches the transmission rate of the wireless router.
Preferably, the first transmission rate is PCIE1.1, and the first wireless mode is a 2.4G frequency operating mode. The first radio mode of the wireless terminal corresponds to a first transmission rate of the router. That is, generally if the wireless mode of the wireless terminal is the first wireless mode, the transmission rate of the router is generally the first transmission rate. Conversely, if the transmission rate of the wireless terminal is the first transmission rate, it means that there must be a wireless terminal whose wireless mode is the first wireless mode (note that not all wireless terminals are the first wireless mode) among the terminals accessing the wireless router. That is, to preferentially ensure the performance of the router, when the wireless terminal accessing the router has only 1 wireless mode of the terminals as the first wireless mode (2.4G), the transmission rate of the router is PCIE 1.0; when the wireless modes of the wireless terminals accessed to the router are all the second wireless mode (5G), the transmission rate of the router is PCIE2.0, and at this time, the transmission performance is not affected, and since there is no 2.4G wireless terminal, interference to the wireless terminals is not generated, and the transmission rate is also greatly increased.
In the third embodiment of the present invention, when a new terminal accesses a wireless router, if the transmission rate of the current wireless router is PCIE1.1, then there is certainly a wireless terminal whose wireless mode is 2.4G mode in the terminal that has accessed the wireless router, and in order to ensure that the transmission performance is not affected, the router still selects the current transmission rate to operate, and does not perform switching. Specifically, a schematic diagram of the handover determination is shown in fig. 3.
When a new terminal accesses the wireless router, if the transmission rate of the current wireless router is PCIE2.0, it indicates that the wireless modes of the terminals that have previously accessed the wireless router are wireless terminals in a 5G mode, and therefore, we need to determine the newly accessed terminal next. Firstly, judging the type of a terminal, if the terminal is a wired terminal, the terminal does not need to be switched, if the terminal is a wireless terminal, further judging the wireless mode of the wireless terminal, and if the terminal is a 2.4G mode, switching the current transmission rate PCIE2.0 of a router to PCIE1.1 in order to ensure that the transmission performance of the terminal is not affected; if the wireless terminal is in 5G mode, then no handover is required. A schematic diagram of a specific embodiment is shown in fig. 4.
It should be noted that the adding of the access terminal to the wireless router (or the accessing of the new terminal to the wireless router) is a case where a new terminal is accessed when an existing wireless terminal is accessed to the wireless router, and does not include a case where the wireless router is accessed to the wireless terminal for the first time. That is, the method can be adopted in the case that at least one wireless terminal has been accessed to the wireless router before the new addition. For the situation that the wireless router accesses the terminal for the first time, corresponding switching needs to be performed according to the default transmission rate set by the wireless router and the accessed terminal. Specifically, in the fifth embodiment, as shown in fig. 5, the default transmission rate of the wireless router is set to be PCIE2.0, the wireless router operates according to the default transmission rate PCIE2.0 after being started, and after the first access terminal a is accessed, the terminal type of the access terminal a is first determined, and if the terminal a is a wired terminal, the transmission rate of the router is not affected, switching is not needed, and the current transmission rate is kept unchanged. If the terminal a is a wireless terminal, the wireless mode of the terminal a needs to be acquired, and the determination is made according to the wireless mode, and if the wireless mode of the terminal a is a 2.4G wireless mode (a first wireless mode), and the current transmission rate of the router is PCIE2.0, the transmission rate of the wireless router needs to be switched to PCIE1.1 (a first transmission rate, a transmission rate matched with the first wireless mode).
Of course, if the default transmission rate set before is PCIE1.1 (the first transmission rate), after accessing the terminal a in the first wireless mode, since the terminal a is in the 2.4G wireless mode, the transmission rate does not need to be switched, and the current transmission rate is kept unchanged (the 2.4G wireless mode is matched with the PCIE1.1 transmission rate). If the wireless terminal accessing the wireless router for the first time is terminal b and terminal b is in the 5G wireless mode, the transmission rate of the router needs to be switched to PCIE2.0 (the second transmission rate, the transmission rate matching the 5G wireless mode).
An embodiment six of the present invention, as shown in fig. 6, includes the steps of:
s100, monitoring the connection state of the wireless router;
s260, when a wireless terminal is disconnected with the wireless router, acquiring wireless modes of all wireless terminals connected with the wireless router and the current transmission rate of the wireless router;
s270, judging whether the wireless terminal in the first wireless mode exists according to the acquired wireless modes of all the wireless terminals, if so, entering the step S280, otherwise, entering the step S290;
s280, judging whether the current transmission rate of the wireless router is a first transmission rate, if not, entering the step S310;
s290, judging whether the current transmission rate of the wireless router is a second transmission rate, if not, entering the step S320;
s310, switching the transmission rate of the wireless router to the first transmission rate;
s320 switches the transmission rate of the wireless router to the second transmission rate.
Although step S260 in this embodiment indicates how to perform subsequent determination when there is a wireless terminal disconnected from the wireless router, the method of this embodiment is also applicable to a case where a newly added wireless terminal accesses the wireless router, that is, when the connection state of the wireless router changes, the method can perform subsequent determination by obtaining the wireless modes of all wireless terminals connected to the wireless router and the current transmission rate of the wireless router. Likewise, the idea of this embodiment is to surround the idea that whenever one of the wireless terminals accessing the wireless router is a wireless terminal in the first wireless mode, it is determined that the router needs to operate at the first transmission rate (that is, if the current router transmission rate is not the first transmission rate, it is necessary to switch the transmission rate of the router to the first transmission rate).
Specifically, for example, when the wireless terminal of the first access router is in a 2.4G wireless mode and the router operates at a transmission rate of PCIE1.0, the terminal changes, that is, the first terminal is disconnected, and the second terminal accesses the wireless router, a schematic diagram of switching determination in the sixth embodiment is shown in fig. 7; similarly, when the router operates at the transmission rate of PCIE2.0, the terminal changes (the terminal accessed before the change is a 5G wireless terminal), and a seventh embodiment is as shown in fig. 8. Note that in both of these changes, when the router only accesses one terminal, the access needs to be determined according to the foregoing embodiments when there are multiple accesses.
An eighth embodiment of the present invention, as shown in fig. 9, includes the steps of:
s100, monitoring the connection state of the wireless router;
s210, when an access terminal is added to the wireless router, acquiring the current transmission rate of the wireless router;
s220, judging whether the current transmission rate is a first transmission rate, if so, returning to the step S100, otherwise, entering the step S230;
s230, acquiring the type of the newly added access terminal;
s240, judging whether the type of the newly added access terminal is a wireless terminal, if so, entering the next step, otherwise, returning to the step S100;
s251 obtains a wireless mode of the newly added access terminal, and determines whether the wireless mode is a first wireless mode, if so, step S252 is performed, otherwise, step S100 is performed;
s252 collects the signal strength of the newly added access terminal, and determines whether the signal strength is lower than a preset signal strength, if so, the process returns to step S100, otherwise, the process proceeds to step S310.
S310, the transmission rate of the wireless router is switched to be a first transmission rate.
In this embodiment, whether the wireless terminal is used as a consideration factor for switching the transmission rate of the wireless router is determined according to the signal strength of the wireless terminal. Before the signal strength of the newly added terminal is collected, similarly, the current transmission rate of the wireless router is obtained, and if the current transmission rate of the wireless router is the first transmission rate (PCIE1.1), it indicates that 2.4G wireless terminals determining the first transmission rate exist in the wireless terminals that have been previously accessed to the wireless router, and then subsequent judgment is not needed, and the monitoring is returned to continue. If the current transmission rate is not the first transmission rate (PCIE1.1), then judging the type and wireless mode of the newly added access terminal, and only if the newly added terminal is a wireless terminal and the wireless mode of the wireless terminal is the first wireless mode (2.4G), then we need to collect and switch the signal intensity, otherwise, all keep the original transmission rate of the router unchanged. Regarding the signal strength of the newly added 2.4G wireless terminal, the signal strength is compared with the preset signal strength after being collected, if the terminal signal is very weak, the terminal signal does not need to be used as a judgment factor of the transmission rate of the router, and the terminal signal can be operated according to the previous transmission rate in order to ensure the performance and rate balance of other access wireless terminals. If the acquired signal strength is greater than the preset signal strength, the 2.4G wireless terminal needs to be included in the judgment factor, and at this time, if we do not switch to the first transmission rate (PCIE1.1), the performance of the newly-added 2.4G wireless terminal is inevitably affected, and therefore, the current transmission rate is switched to the first transmission rate. Specifically, regarding the signal strength of the wireless terminal, for example, if the 2.4G wireless terminal is separated from the wireless router by a wall (if the distance is not far away), the signal strength of the signal sent by the 2.4G wireless terminal received by the wireless router is approximately-35 dBm, if two walls are separated, the signal strength is approximately reduced to-45 dBm, and if three walls are separated, the signal strength is approximately reduced to-55 dBm; generally, when the signal is reduced to-55 dBm, the signal is weak, and at this time, the transmission rate of the router has no great influence on the terminal, so we can preset a signal strength for reference, and if the signal strength is lower than the preset signal strength, the terminal is not used as a switch judgment basis for the transmission rate of the router. For example, we preset a signal strength threshold of-55 dBm, that is, if we monitor that the signal strength is lower than the threshold, it can be said that the 2.4G wireless terminal is far away from the wireless router or has more barriers, and its transmission performance is greatly affected by the distance and the barriers, the signal strength is very weak, therefore, if the receiving sensitivity of the newly added wireless terminal is lower than the threshold value of-75 dBm, for example, -85dBm, we can do without considering the judgment of the router transmission rate by the 2.4G wireless terminal, and still according to the previous transmission rate, if the router collects the signal strength of the newly added wireless terminal as-48 dBm, the transmission performance of the wireless terminal in the first wireless mode needs to be considered, and thus the current transmission rate of the router needs to be switched to the first transmission rate matching the wireless terminal in the first wireless mode.
In addition, the acquisition and judgment of the signal strength can also be used for the situation that the connection state of a terminal disconnected router and the like changes. When the connection condition of the wireless router is monitored to be changed, all wireless modes of the wireless terminals still connected to the wireless router are obtained. Then judging whether the connected wireless terminals have wireless terminals in a first wireless mode, if not, controlling the transmission rate of the wireless router to be a second transmission rate (PCIE 2.0); if yes, further collecting the signal intensity of the wireless terminal in the first wireless mode, judging whether the signal intensity is lower than the preset signal intensity, and if yes, controlling the transmission rate of the router to be a second transmission rate (PCIE 2.0); otherwise the transmission rate of the control router is the first transmission rate (PCIE 1.1).
Preferably, the step S100 in any of the above embodiments includes: s110 periodically monitors the connection status of the wireless router according to a preset time interval. The connection state of the router can be monitored at any time, and similarly, in order to reduce the workload of the system, the connection state of the wireless router can be monitored periodically to trigger the monitoring periodically.
In addition, in order to prevent frequent switching that may be caused by terminal changes, therefore, a waiting time (e.g., 1 minute) given to a preset time period after each switching may also be set, during which switching cannot be performed.
The present invention also discloses a method for controlling transmission rate of a wireless router, where an embodiment of the control method is shown in fig. 10, and the method includes:
s10 monitoring the connection state of the wireless router;
s20, when the connection state of the wireless router changes, the access terminal information of the wireless router is obtained, and the transmission rate of the wireless router is controlled according to the access terminal information.
In the above embodiment, the connection status of the wireless router changes, where the change includes two cases of adding and disconnecting a wireless terminal accessing the wireless router, and when an access terminal is added to the wireless router, as shown in fig. 11, the method for controlling the transmission rate of the wireless router includes:
s10 monitoring the connection state of the wireless router;
s21, when a wireless access terminal is added to the wireless router, acquiring wireless modes of all wireless terminals which are added before and have access to the wireless router;
s22, judging whether the acquired wireless mode has a first wireless mode, if so, entering step S23, otherwise, entering step S24;
s23, controlling the transmission rate of the wireless router to be a first transmission rate;
s24, acquiring the wireless mode of the newly added wireless access terminal, judging whether the wireless mode is the first wireless mode, if so, entering the step S23, otherwise, entering the step S25;
s25 controls the transmission rate of the wireless router to be a second transmission rate.
For example, there are A, B, C wireless terminals that have access to the wireless router, the wireless mode of a is 2.4G wireless mode, and both B and C are 5G wireless mode; now that a wireless access terminal D is added to access the wireless router, according to the control method of the present invention, the wireless terminal mode that has been previously accessed to the wireless router is obtained, and after the wireless mode of the terminal A, B, C is obtained, it is found that the wireless mode of 2.4G (the first wireless mode) exists, so that the transmission rate of the router is controlled to be PCIE1.1 (the first transmission rate) regardless of the mode of the subsequently added access terminal. If the wireless terminal modes accessed before the new addition are all 5G wireless modes, the wireless mode of the new addition access terminal needs to be further acquired, if the wireless mode of the new addition access terminal is a 2.4G wireless mode, the transmission rate of the router is controlled to be PCIE1.1, and if the wireless mode of the new addition access terminal is 5G, the transmission rate of the router is controlled to be PCIE2.0 (second transmission rate).
When there is a wireless terminal disconnected from the wireless router, as shown in fig. 12, the transmission rate control method of the wireless router includes:
s10 monitoring the connection state of the wireless router;
s26, when a wireless terminal is disconnected with the wireless router, acquiring the wireless mode of the wireless terminal connected with the wireless router after disconnection;
s27, according to the acquired wireless modes of all wireless terminals, judging whether a wireless terminal with a first wireless mode exists, if so, entering step S28, otherwise, entering step S29;
s28, controlling the transmission rate of the wireless router to be a first transmission rate;
s29 controls the transmission rate of the wireless router to be a second transmission rate.
Similarly, let us assume that there are A, B, C wireless terminals accessing the wireless router, the wireless mode of a is 2.4G wireless mode, and both B and C are 5G wireless mode; now, if the wireless terminal a disconnects from the wireless router, the wireless terminals connected to the wireless router after disconnection only have terminals B and C, and since the wireless modes of the terminals B and C are both 5G and do not belong to the first wireless mode, the transmission rate of the wireless router is controlled to be PCIE2.0 (second transmission rate); of course, if the disconnected wireless terminal is the terminal C, only the wireless terminals a and B access the wireless router after disconnection, and since the wireless mode of the wireless terminal a is 2.4G (the first wireless mode), that is, there are terminals in the 2.4G wireless mode (the first wireless mode) in the wireless terminals that remain to access the wireless router after disconnection, the transmission rate of the wireless router is controlled to be PCIE1.1 (the first transmission rate). In this embodiment, taking an example that a wireless terminal disconnects a wireless router, actually, the method of this embodiment is also applicable to a case where an access wireless terminal is newly added or a case where a wireless router has access to a wireless terminal for the first time, and only after a connection state of the wireless router changes, a wireless mode of the wireless terminal that is still connected to the wireless router after the change is obtained, and as long as a 2.4G wireless mode (a first wireless mode) exists, a transmission rate of the wireless router is controlled to be PCIE1.1 (the first transmission rate is matched with the first wireless mode), and if no 2.4G wireless mode exists, for example, all wireless modes are 5G wireless modes, a transmission rate of the wireless router is controlled to be PCIE2.0 (the second transmission rate).
According to the above-mentioned control method embodiment, the present invention may further provide a wireless router, which controls the transmission rate by executing the above-mentioned control method for the transmission rate. Specifically, the wireless router comprises a monitoring module, a connection module and a processing module, wherein the monitoring module is used for monitoring the connection state of the wireless router and the terminal; the acquisition module is used for acquiring the information of an access terminal accessed to the wireless router; and the control module is connected with the monitoring module and the acquisition module and used for coordinating the work of all the modules and controlling the transmission rate of the router according to the access terminal information acquired by the acquisition module.
Specifically, two situations may occur when the monitoring module monitors that the connection state of the wireless router changes:
newly-increased situation:
when a monitoring module of the wireless router monitors that a wireless access terminal is newly added to the wireless router, the acquisition module acquires wireless modes of all wireless terminals which are previously accessed to the wireless router and are newly added under the control of the control module;
the control module judges whether a first wireless mode exists in the acquired wireless modes, and if so, controls the transmission rate of the wireless router to be a first transmission rate; otherwise, the wireless mode of the newly added wireless access terminal is obtained through the obtaining module, whether the wireless mode is the first wireless mode or not is judged, if yes, the control module controls the transmission rate of the wireless router to be the first transmission rate, and if not, the control module controls the transmission rate of the wireless router to be the second transmission rate.
Disconnection condition:
when the monitoring module monitors that a wireless terminal is disconnected from the wireless router, the acquisition module acquires the wireless mode of the wireless terminal connected with the wireless router after disconnection under the control of the control module;
the control module judges whether a wireless terminal in a first wireless mode exists according to the wireless modes of all the wireless terminals acquired by the acquisition module, and if so, the control module controls the transmission rate of the wireless router to be the first transmission rate; otherwise, the control module controls the transmission rate of the wireless router to be a second transmission rate.
Based on the same technical concept as the method for switching the transmission rate of the wireless router, an embodiment of the present invention further provides a wireless router, where the wireless router may perform the method for switching the transmission rate of the wireless router, specifically, as shown in fig. 13, a first embodiment of the wireless router includes: the monitoring module 10 is used for monitoring the connection state of the wireless router and the terminal; an obtaining module 20, configured to obtain information of an access terminal accessing the wireless router and a current transmission rate of the wireless router; a determining module 30, connected to the monitoring module 10 and the obtaining module 20, configured to coordinate operations of the modules, and determine whether to switch the transmission rate of the wireless router according to the access terminal information obtained by the obtaining module 20 and the current transmission rate information of the wireless router; an operation module 40; and the judging module 30 is connected to switch the transmission rate of the wireless router according to the judgment result of the judging module 30.
The monitoring module 10 monitors the connection state of the wireless router, and when the connection state of the wireless router is monitored to be changed, the access terminal information of the wireless router and the current transmission rate of the wireless router are acquired through the acquisition module 20; then, the determining module 30 determines whether to switch the transmission rate of the wireless router according to the access terminal information and the current transmission rate information acquired by the acquiring module 20. If the judgment result requires switching, the operation module 40 performs the operation of switching the transmission rate of the router.
The change of the connection state of the wireless router includes an increase or decrease of a terminal accessing the wireless router, for example, when the monitoring module 10 monitors that an access terminal is added to the wireless router, the current transmission rate of the wireless router is obtained through the obtaining module 20; the judging module 30 judges whether the current transmission rate is the first transmission rate, if yes, the current transmission rate is kept unchanged, and switching is not needed; if not, the type of the newly added access terminal is continuously obtained through the obtaining module 20, and whether the newly added access terminal is a wired terminal or a wireless terminal is judged, if the newly added access terminal is the wired terminal, the original transmission rate is kept unchanged, if the newly added access terminal is the wireless terminal, the wireless mode of the wireless access terminal is further obtained through the obtaining module 20, the judging module 30 further judges whether to switch according to the wireless mode of the wireless access terminal, specifically, if the wireless mode of the wireless access terminal is the first wireless mode, the transmission rate of the wireless router is switched through the operating module 40, otherwise, the original transmission rate is kept unchanged.
When the monitoring module 10 monitors that a wireless terminal disconnects the wireless router, the obtaining module 20 obtains the wireless modes of all the wireless terminals connected with the wireless router; the judging module 30 judges whether there is a wireless terminal in the first wireless mode according to the wireless mode of the wireless terminal acquired by the acquiring module 20, and if there is a wireless terminal in the first wireless mode, controls the transmission rate of the wireless router to be the first transmission rate; and if no wireless terminal in the first wireless mode exists in the wireless terminals accessed to the wireless router, controlling the transmission rate of the wireless router to be a second transmission rate.
As shown in fig. 14, in a second embodiment of the wireless router according to the present invention, based on the above embodiment, the wireless router further includes: a signal strength acquisition module 50, connected to the judgment module 30, for acquiring the signal strength of the wireless terminal accessing the wireless router; and the storage module 60 is connected with the judging module 30 and is used for storing the signal strength threshold value.
When the monitoring module 10 monitors that the connection state of the wireless router changes, the obtaining module 20 obtains the wireless modes of all the wireless terminals accessing the wireless router; the judging module 30 judges whether there is a first wireless mode in the wireless modes of all the acquired terminals according to the information acquired by the acquiring module 20, if not, the operating module 40 controls the transmission rate of the wireless router to be a second transmission rate under the control of the judging module 30; if the signal strength is not lower than the preset signal strength, the operation module 40 controls the transmission rate of the wireless router to be the first transmission rate under the control of the judgment module 30.
Preferably, the wireless router further comprises: a display module 70, connected to the determining module 30, for displaying the current transmission rate of the wireless router.
Preferably, in any of the above embodiments, the transmission rate of the wireless router includes: PCIE1.1 (first transmission rate), PCIE2.0 (second transmission rate); the access terminal information comprises the type of the access terminal and the wireless mode of the access terminal, wherein the type of the access terminal comprises wired and wireless modes, and the wireless mode of the access terminal comprises 2.4G (first wireless mode) and 5G (second wireless mode).
In addition, in the aspect of hardware design, the wireless router needs to make the 2.4G chip and the 5G chip compatible with two transmission rates of PCIE1.1/PCIE2.0 at the same time, so that the wireless router is realized through switching of the adapter plate. Specifically, the hardware design of the router of the present invention is as shown in fig. 11, and the 2.4G and 5G chips are connected to the CPU through the adapter board, and the rate switching is completed through the change in the value of the register. Adopt the keysets to make to set up more rationally in the space, divide the board design also can avoid interfering more.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.