Disclosure of Invention
The invention provides a router function configuration method and device, which are used for solving the technical problems that in the prior art, a user needs to configure the function of a router through page setting, the operation is complicated, and the technical requirement on the user is high.
In one aspect, the present invention discloses a router function configuration method, including:
s100, monitoring the strength of a wireless signal;
s200, when the change of the wireless signal intensity is monitored, signal intensity change data are obtained;
s300, acquiring touch sensing data on an antenna of the router, judging whether the antenna of the router is touched, and entering the next step if the antenna of the router is touched;
s400, acquiring the label of the touched antenna according to the touch sensing data;
s500, corresponding function configuration is carried out on the router according to the label of the touched antenna and the signal strength change data.
Further, the step S500 includes:
s510, acquiring a function used for configuration of the touched antenna according to the label of the touched antenna;
s520, according to the signal intensity change data, the router is configured functionally.
Further, the step S200 includes: s210, when the decrease of the wireless signal strength is monitored, the signal strength decrease amplitude and the signal strength decrease duration are obtained.
Further, the step S520 includes:
s521, judging whether the signal intensity reduction amplitude is within a preset reference amplitude range, and if so, entering the next step;
s522 performs a function configuration on the router according to the signal strength reduction duration.
Further, the functional configuration includes: power adjustment, operating band selection, operating mode selection, bandwidth selection.
On the other hand, the invention also discloses a router function configuration device, which comprises: the monitoring module is used for monitoring the wireless signal intensity; the acquisition module is used for acquiring signal intensity change data and the label of the touched antenna; the acquisition module is used for acquiring touch sensing data on an antenna of the router; the operation module is used for carrying out corresponding function configuration on the router under the control of the control module; the control module is used for controlling the acquisition module to acquire signal intensity change data according to the fact that the monitoring module monitors that the wireless signal intensity changes, then acquiring touch sensing data on the antenna of the router through the acquisition module, acquiring the label of the touched antenna through the acquisition module when the control module judges that the antenna of the router is touched, and controlling the operation module to perform corresponding function configuration on the router according to the label of the touched antenna and the signal intensity change data.
Further, the control module is further configured to further acquire a function used for configuration by the touched antenna according to the label of the touched antenna; and performing function configuration on the router through the operation module according to the signal intensity change data.
Further, the obtaining module comprises: the label acquiring sub-module is used for acquiring the label of the touched antenna when the control module judges that the router antenna is touched; the amplitude obtaining sub-module is used for obtaining the signal intensity reduction amplitude when the monitoring module monitors that the wireless signal intensity is reduced; and the time acquisition sub-module is used for acquiring the signal intensity reduction duration when the monitoring module monitors that the wireless signal intensity is reduced.
Further, the function configuration of the router by the control module through the operation module according to the signal strength change data includes: and the control module judges whether the signal intensity reduction amplitude is within a preset reference amplitude range, and if so, the control module performs function configuration on the router through the operation module according to the signal intensity reduction duration.
Further, the functional configuration includes: power adjustment, operating band selection, operating mode selection, bandwidth selection.
The method and the device complete the configuration of the router according to the acquired label number of the touched antenna and the acquired signal intensity change data without page configuration, and are simple and convenient. The method for changing the signal intensity can change the signal intensity received by the antenna by using the principle that the handheld antenna changes the characteristic impedance, return loss and the like; according to the invention, page configuration is not needed, a user can simply configure the router by holding different antennas, the requirement on the user skill is low, and the router is quicker and more convenient and consumes less time.
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 router function configuration method, the embodiment of which is shown in figure 1 and comprises the following steps:
s100, monitoring the strength of a wireless signal;
s200, when the change of the wireless signal strength is monitored, signal strength change data are obtained;
s300, acquiring touch sensing data on an antenna of the router, judging whether the antenna of the router is touched or not, and entering the next step if the antenna of the router is touched;
s400, acquiring the label of the touched antenna according to the touch sensing data;
s500, corresponding function configuration is carried out on the router according to the label of the touched antenna and the signal strength change data.
In this embodiment, by monitoring the change of the wireless signal strength and whether the router antenna is touched, the router is configured with corresponding functions according to the label of the touched antenna and the signal strength change data. The antennas have different numbers and corresponding functional configurations, for example, the antenna 1 is used for configuring power adjustment, the antenna 2 is used for configuring selection of an operating frequency band, and the like. The signal strength variation data includes the magnitude of the signal strength variation, the duration of the signal strength variation, and the like. If the signal strength variation data is different, the specific control configuration on the antenna is also different. For example, antenna 1 corresponds to power adjustment, a 5-8db reduction in signal strength for a 3-5S duration, and a corresponding increase in power for router configuration. Then, when the router antenna 1 is detected to be touched, the reduction amplitude of the wireless signal strength of the router is within 5-8db, and the signal strength change duration is within 3-5S, the power of the router is increased. For another example, the signal strength is reduced by 5-8db for 10-13S, and the corresponding router is configured to reduce power, and then similarly, when the antenna 1 is detected to be touched, the signal strength of the router changes by 5-8db for 10-13S, and the power of the router is reduced. Because the wireless signal is radiated out through the router antenna, the signal strength can be controlled by controlling the router antenna, specifically, for example, when the router antenna is turned, the signal strength can be changed due to different antenna positions; for another example, when the router antenna is held by a hand, the characteristic impedance, return loss, etc. of the antenna are changed by holding the antenna by the hand, thereby changing the signal strength of the held antenna. In this embodiment, the functional configuration of the router is implemented according to the antenna label and the signal strength change data, and the user only needs to perform corresponding operations (holding or shifting the antenna) on the router antenna to change the signal strength, so that the functional configuration of the router is implemented, and the method is simple and fast.
It is worth noting that the steps of monitoring the signal intensity and acquiring the signal intensity change data in the steps of the invention are not in sequence with the steps of acquiring the touch sensing data of the antenna and acquiring the label of the touched antenna, and the steps of monitoring the wireless signal and acquiring the touch sensing data on the antenna are all performed at the same time.
Another embodiment of the present invention, as shown in fig. 2, comprises:
s100, monitoring the strength of a wireless signal;
s200, when the change of the wireless signal strength is monitored, signal strength change data are obtained;
s300, acquiring touch sensing data on an antenna of the router, judging whether the antenna of the router is touched, and entering the next step if the antenna of the router is touched;
s400, acquiring the label of the touched antenna according to the touch sensing data;
s510, acquiring a function used for configuration of the touched antenna according to the label of the touched antenna;
s520, according to the signal intensity change data, the router is configured functionally.
In this embodiment, the router antenna is provided with a sensor, and may be configured to collect touch sensing data on the antenna, and when a person touches the antenna, it may be determined whether the antenna of the router is touched according to the collected touch sensing data, and if so, the identifier of the touched antenna is obtained, and antennas with different identifiers may be configured with different router functions, so that the user needs to know which antenna the user touches, and then find the configured function corresponding to the antenna. Such as antenna 3 for operation mode selection, antenna 4 for bandwidth selection, etc. And then corresponding selection or adjustment is performed according to the signal intensity change data aiming at the function.
In any of the above embodiments, the step S200 includes: s210, when the decrease of the wireless signal strength is monitored, the signal strength decrease amplitude and the signal strength decrease duration are obtained.
Another embodiment of the present invention, as shown in fig. 3, comprises:
s100, monitoring the strength of a wireless signal;
s210, when the decrease of the wireless signal strength is monitored, the signal strength decrease amplitude and the signal strength decrease duration are obtained;
s300, acquiring touch sensing data on an antenna of the router, judging whether the antenna of the router is touched or not, and entering the next step if the antenna of the router is touched;
s400, acquiring the label of the touched antenna according to the touch sensing data;
s510, acquiring a function used for configuration of the touched antenna according to the label of the touched antenna;
s521, judging whether the signal intensity reduction amplitude is within a preset reference amplitude range, and if so, entering the next step;
s522, according to the signal strength reduction duration, corresponding function configuration is carried out on the router.
Specifically, this embodiment may be implemented by holding the antenna by hand, for example, if the user wants to close 5G wifi, the corresponding method is to hold the antenna 2 by hand for more than 5S, and the variation range of the signal strength is 5-8db (i.e. the difference between the signal strengths received by the antennas before and after holding the antenna by hand is 5-8 db), then, in the implementation process, the user holds the antenna 2 by hand for more than 5S and then releases the antenna, and the router can close 5G wifi, where the specific configuration method is: firstly, the wireless signal strength is monitored, when a user holds the antenna 2, the signal strength is certainly changed, then the reduced amplitude of the signal strength and the duration time of the signal strength change are obtained, meanwhile, touch sensing data on the router antenna can be collected, whether the router antenna is touched or not is seen, if the router antenna is touched, the router needs to be configured by the user, and the signal strength is reduced through manually controlling the antenna. Of course, if the signal strength changes, but it is determined that the router antenna is not touched, the router is not configured with functions, because the signal strength is not necessarily constant, and there may be other factors that change the signal strength, and the router is not configured with functions as long as the user does not touch the antenna manually and the signal strength changes. Only when the signal strength changes and the router antenna is detected to be touched, the subsequent functional configuration judgment operation step is carried out. The label of the touched antenna can be obtained according to the acquired touch sensing data, and each router antenna is provided with a corresponding sensor (which may be a touch sensor or a pressure sensor), so that the label of the antenna where the sensor is located can be obtained according to the touch sensing data acquired by which sensor in the touch sensing data, and the obtained label of the antenna can know which function of the router the user wants to configure, for example, the obtained label of the touched antenna is number 2, that is, it is detected that the antenna 2 is touched, and then the user can obtain that the user needs to perform switch configuration on a 5G wireless signal. And then, judging according to the acquired signal strength reduction amplitude and duration, specifically, judging whether the signal strength reduction amplitude is within the range of 5-8db, if so, looking at the duration of the signal strength change, namely the duration of the signal strength reduction, and if the duration is detected to be 6S, obtaining a corresponding control instruction according to a preset corresponding relation, and performing function configuration of closing 5G wireless signals on the router.
Another embodiment of the present invention, as shown in fig. 4, comprises:
s601, monitoring the strength of a wireless signal; when the change of the wireless signal intensity is monitored, signal intensity change data are obtained; the signal strength variation data comprises signal strength variation amplitude and duration;
s602, acquiring touch sensing data on the antenna of the router, judging whether the antenna of the router is touched, and if so, entering the next step;
s603, acquiring the label and the touch duration of the touched antenna according to the touch sensing data;
s604, judging whether the signal intensity change duration is consistent with the touch duration, if so, entering the next step;
s605, acquiring a function used for configuration of the touched antenna according to the label of the touched antenna;
s606, judging whether the signal intensity reduction amplitude is within a preset reference amplitude range, and if so, entering the next step;
s607 performs function configuration on the router according to the signal strength change duration or the touch duration.
In this embodiment, comparison and determination between the signal strength change duration and the touch duration are added, and it is further determined that the user touches the antenna to change the signal strength through this determination step. It should be noted that, in step S604, it is determined whether the signal strength change duration is consistent with the touch duration, where consistent does not necessarily mean that the two durations are completely the same, and considering the existence of an error, the difference between the two durations is within an error tolerance range, for example, the set error is within 2S, and therefore, as long as the signal strength change duration is within 2S of the touch duration, the two durations are considered to be consistent.
Preferably, in any of the above embodiments, the functional configuration includes: power adjustment, operating band selection, operating mode selection, bandwidth selection, etc.
Another embodiment of the present invention mainly changes the characteristic impedance, return loss, etc. of the antenna by holding the antenna by hand, thereby changing the received signal strength of different antennas, the CPU can detect the signal strength change of each antenna, and the functional configuration of the router is realized by this change, as shown in fig. 5, the working principle is as follows: the antenna has well-matched characteristic impedance, and when the antenna is held by a hand, the impedance value, the reflection parameter, the standing wave and the like of the antenna can be changed, so that the normal signal receiving intensity of the antenna is influenced. The received signal strength of each antenna can be detected in real time in the CPU, and when the signal strength of a certain antenna changes greatly suddenly and the signal strength of other antennas is unchanged, the situation that the user needs to configure the router at the moment can be judged. Specifically, assuming that the user currently wants to turn off 2.4G WIFI, the setting method is to hold the antenna 1 for more than 10s, and the implementation process is described as follows:
(1) Under the default state, the antenna works normally, and the state at this time is set to be 0;
(2) When a user holds the antenna 1, the characteristic impedance of the antenna 1 changes, the received signal strength of the antenna 1 changes by 5dB, and the state at this time is set to be 1;
(3) Monitoring the changed signal intensity in real time, namely, the state I, for 10 seconds;
(4) At the moment, the fact that the user has the requirement for closing 2.4G WIFI is judged, and the CPU sends a command to close.
By adopting the router function configuration method of the embodiment, page configuration is not needed, the requirement on the skills of the user is low, and the method is quicker and more convenient and consumes less time.
Based on the same technical concept, the present invention also discloses a router function configuration device, which can adopt the router function configuration method of any of the above embodiments, specifically, as shown in fig. 6, the router function configuration device of the present invention includes: the monitoring module 10 is used for monitoring the wireless signal intensity; an obtaining module 20, configured to obtain signal strength change data and a label of the touched antenna; an operation module 40, configured to perform corresponding function configuration on the router under the control of the control module 50; the control module 50 is configured to control the obtaining module 20 to obtain signal strength change data according to the change of the wireless signal strength monitored by the monitoring module 10, then collect touch sensing data on an antenna of the router through the collecting module 30, obtain a label of the touched antenna through the obtaining module 20 when the control module 50 determines that the antenna of the router is touched, and control the operating module 40 to perform corresponding function configuration on the router according to the label of the touched antenna and the signal strength change data.
In the above embodiment, the collecting module 30 may be a touch sensor or a pressure sensor, as long as the sensing data of the user touching the antenna (for example, holding the antenna by hand) can be collected.
Preferably, in the above embodiment, the control module 50 is further configured to obtain a function of the touched antenna for configuration according to the label of the touched antenna; and then, according to the signal strength change data, performing function configuration on the router through the operation module 40. Specifically, the router function configuration process performed by the device is as follows:
the monitoring module 10 monitors the intensity of the wireless signal, and when the intensity of the wireless signal is monitored to be changed, the obtaining module 20 obtains the data of the change of the intensity of the signal; the acquisition module 30 acquires touch sensing data on an antenna of the router, the control module 50 determines whether the antenna of the router is touched according to the touch sensing data, if the antenna is determined to be touched, the control module acquires a label of the touched antenna according to the touch sensing data, and then the control module 50 performs corresponding function configuration on the router according to the label of the touched antenna and the signal intensity change data.
In another embodiment of the apparatus of the present invention, as shown in fig. 7, on the basis of the above embodiment, the obtaining module 20 includes: a label acquiring submodule 21, configured to acquire a label of the touched antenna when the control module 50 determines that the router antenna is touched; the amplitude obtaining sub-module 22 is configured to obtain a signal strength reduction amplitude when the monitoring module 10 monitors that the wireless signal strength is reduced; the time obtaining sub-module 23 is configured to obtain a signal strength reduction duration when the monitoring module 10 monitors that the wireless signal strength is reduced.
The function configuration of the router by the control module 50 through the operation module 40 according to the signal strength change data includes: the control module 50 determines whether the signal strength reduction amplitude is within a preset reference amplitude range, and if so, performs function configuration on the router through the operation module 40 according to the signal strength reduction duration.
In the previous embodiment, it is said that, when the monitoring module monitors that the signal strength changes, the obtaining module obtains the signal strength change data, and in this embodiment, the signal strength change data includes the signal strength reduction amplitude and the signal strength reduction duration. Specifically, when the monitoring module monitors that the signal intensity is reduced, the amplitude obtaining sub-module obtains the signal intensity reduction amplitude, and the time obtaining sub-module obtains the signal intensity reduction duration; meanwhile, the acquisition module acquires touch sensing data, the control module judges whether the router antenna is touched according to the touch sensing data, if so, the label of the touched antenna is acquired through the label acquisition sub-module, and the control module is convenient to determine the configuration function corresponding to the labeled antenna according to the label of the touched antenna. And then the control module judges whether the signal intensity reduction amplitude acquired by the amplitude acquisition submodule is within a preset reference amplitude range, and if so, the control module performs function configuration on the router according to the duration time acquired by the time acquisition submodule. The function of the antenna 3 for configuration is bandwidth selection, for example, and if the antenna 3 is detected to be touched, and the signal strength is detected to be reduced, and the reduction amplitude is within the preset reference amplitude range, the duration is looked at. If the duration corresponds to 20 megabits of bandwidth in 1-5S, 40 megabits of bandwidth in 6-10S, and 80 megabits of bandwidth over 10S. Then if the duration of the acquired signal strength reduction is 8S, it can be concluded from the correspondence that the router will be configured with 40 megabits of bandwidth.
Preferably, in any of the above embodiments, the function configuration includes: power adjustment, operating band selection, operating mode selection, bandwidth selection, etc.
The device of the present invention corresponds to the method of the present invention, and therefore, the technical details in the method embodiment of the present invention are also applicable to the device embodiment of the present invention, and are not described herein again for reducing the repetition.
According to the invention, when the router is simply configured daily, the antenna is operated manually, for example, the antenna is held without page configuration, so that the requirement on the user skill is low, and the router is quicker and more convenient and consumes less time.
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.