The content of the invention
In order to solve the above technical problems, the present invention provides a kind of router antenna adjustment method and device, pass through intelligent end
The aerial position of the signal strength data dynamic regulation router at end, realize that signal covers up to the purpose of optimal user experience.
Technical scheme provided by the invention is as follows:
The invention discloses a kind of router antenna adjustment method, including step:The antenna of router is driven in default model
Enclose interior rotation;The signal strength data for the smart machine that record antenna is connected when rotating with router;It is strong according to the signal of record
Degrees of data calculates the optimal location of antenna;Router antenna is adjusted to optimal location.
Further, the step " signal strength data for the smart machine that record antenna is connected when rotating with router;Root
The optimal location of antenna is calculated according to the signal strength data of record " specifically include:Record respectively when antenna rotates in each position
The signal strength data for the smart machine being connected with router is put, signal strength data includes multiple signal strength values;According to
Multiple signal strength values of record filter out maximum signal value;Initial position corresponding with maximum signal value is obtained,
Using the initial position as optimal location.
Further, in addition to step:When there is new smart machine couple in router, it is stylish that antenna rotation is recorded respectively
First signal strength data of smart machine;First signal strength data includes multiple first signal strength values;According to note
Multiple first signal strength values of record filter out the first maximum signal value, obtain corresponding with the first maximum signal value
More new position;More new position is calculated with the initial position according to acquisition, obtains the optimal location of antenna.
Further, in addition to step:Whether generating state changes the smart machine that detection is connected with router;If so, then
Screen the smart machine in addition to generating state changes;Again the antenna of router is driven to rotate within a preset range;Obtain
The secondary signal intensity data for each smart machine that antenna filters out when rotating;The secondary signal intensity data includes multiple
Secondary signal intensity level;The maximum signal value in multiple signal strength values of each smart machine is filtered out respectively, and is obtained
Take alternate location corresponding with each maximum signal value;The optimal location of antenna is calculated according to multiple alternate locations..
Further, the step " whether generating state changes the smart machine that detection is connected with router " is further wrapped
Include:Whether the network traffics of detection smart machine are less than predetermined threshold value;Or, whether detection smart machine disconnects with router;Or,
Whether detection smart machine occurs change in location.
The invention also discloses a kind of router antenna regulating device, including:Drive module, for driving the day of router
Line rotates within a preset range;Logging modle, the signal for recording the smart machine being connected when antenna rotates with router are strong
Degrees of data;Computing module, for calculating the optimal location of antenna according to the signal strength data of record;Tested rotating platform module,
For adjusting router antenna to optimal location.
Further, the logging modle is specifically used for recording receive on each position when antenna rotates and road respectively
By the signal strength data of the smart machine of device connection, signal strength data includes multiple signal strength values;The computing module
Specifically for filtering out maximum signal value according to multiple signal strength values of record, obtain corresponding with maximum signal value
Initial position, using the initial position as optimal location.
Further, the logging modle is specifically additionally operable to, when there is new smart machine couple in router, record day respectively
Line rotates the first signal strength data of stylish smart machine;It is strong that first signal strength data includes multiple first signals
Angle value;The computing module is specifically additionally operable to filter out the first maximum signal according to multiple first signal strength values of record
Value, obtain more new position corresponding with the first maximum signal value;More new position and the initial bit according to acquisition
Put and calculated, obtain the optimal location of antenna.
Further, in addition to:Detection module, whether generating state changes the smart machine that detection is connected with router;Sieve
Modeling block, when being disconnected for the network traffics of smart machine when judgement be present less than predetermined threshold value or smart machine with router,
Screen the smart machine in addition to disconnected with router or network traffics exceed predetermined threshold value;The logging modle is also
For obtaining the secondary signal intensity data of each smart machine filtered out when antenna rotates;The secondary signal intensity data
Including multiple secondary signal intensity levels;The computing module is additionally operable to filter out multiple signal intensities of each smart machine respectively
Maximum signal value in value, and obtain alternate location corresponding with each maximum signal value;According to multiple alternative positions
Put the optimal location for calculating antenna.
Further, the detection module further comprises:First detection sub-module, for detecting the network flow of smart machine
Whether amount is less than predetermined threshold value;Second detection sub-module, for detect smart machine whether with router disconnect;3rd detection
Module, for detecting whether smart machine occurs change in location.
Compared with prior art, the signal strength data for the smart machine that the present invention is connected by acquisition with router, it is real
Now according to signal strength data dynamic adjust router aerial position, with up to by signal cover up to optimal user experience mesh
, the smart machine of connection is obtained more preferable usage experience under limited resource.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, they are not represented
Its practical structures as product.In addition, so that simplified form readily appreciates, there is identical structure or function in some figures
Part, one of those is only symbolically depicted, or only marked one of those.Herein, "one" is not only represented
" only this ", the situation of " more than one " can also be represented.
Fig. 1 is a kind of step schematic diagram of one embodiment of router antenna adjustment method of the present invention.As shown in figure 1,
A kind of router antenna adjustment method, including step:S110, the antenna of router is driven to rotate within a preset range;S120, note
The signal strength data for the smart machine that record antenna is connected when rotating with router;S130, the signal strength data according to record
Calculate the optimal location of antenna;Router antenna is adjusted to optimal location.
Specifically, above-mentioned steps S110 driving router antenna rotate within a preset range be by with router antenna
The motor being connected is realized, drives antenna to rotate within a preset range by motor, preset range can be according to different model
Router progress is self-defined, does not limit herein.The preset range that single antenna class router rotates in the present invention is similar to hemispherical,
That is 180 degree, multiple antennas intersect in order to avoid antenna, are arranged to 120 degree of fan-shaped spheroid.
Specifically, the signal strength data for the smart machine that the step S120 records antenna is connected when rotating with router
The optimal location for calculating antenna according to the signal strength data of record with step S130 specifically includes:Antenna is recorded respectively to rotate
When the signal strength data of smart machine that is connected on each position with router, it is strong that signal strength data includes multiple signals
Angle value;Maximum signal value is filtered out according to multiple signal strength values of record;Obtain corresponding with maximum signal value
Initial position, using the initial position as optimal location.
Because the signal intensity of smart machine is relevant with the position of router antenna, therefore only a smart machine ought connect
When connecing router, as long as selecting the maximum position of signal strength values as optimal location.
In the present invention during intelligent terminal connection route device, record antenna rotation process on each position intelligent terminal
Signal strength data, signal strength data include multiple signal strength values.The optimal of antenna is calculated according to signal strength data
Position, herein can be by calculating maximum signal value in one group of signal strength data, will be first corresponding to maximum signal value
Beginning, position was as optimal location, by tested rotating platform to optimal location, you can realizes the optimum experience of signal covering.
Preferably, Fig. 2 is a kind of step schematic diagram of another embodiment of router antenna adjustment method of the present invention, is such as schemed
Shown in 2, in addition to step:S210, when there is new smart machine couple in router, record antenna respectively and rotate stylish intelligence
First signal strength data of equipment;First signal strength data includes multiple first signal strength values;S220, according to note
Multiple first signal strength values of record filter out the first maximum signal value, obtain corresponding with the first maximum signal value
More new position;S230, more new position is calculated with the initial position according to acquisition, obtains the optimal position of antenna
Put.
Specifically, when there is new smart machine connection route device, then it is strong according to the first signal of newly-increased smart machine
Degrees of data updates the optimal location of antenna, records new intelligent terminal respectively according to above-mentioned steps in the different positions that antenna rotates
First signal strength values at place are put, form one group of first signal strength data for new intelligent terminal, and filter out respectively new
Maximum signal value in first signal strength data of intelligent terminal, obtained according to obtained maximum signal value corresponding
More new position, more new position and initial position are calculated, obtain the optimal location of antenna.More new position can be taken herein
Average value with initial position is as optimal location.
Fig. 3 is a kind of step schematic diagram of the further embodiment of router antenna adjustment method of the present invention.Such as Fig. 3 institutes
Show, in addition to step:Whether generating state changes S310, detection and router connection smart machine;If so, perform next
Step;The smart machine of S320, screening in addition to generating state changes;S330, the antenna of router is driven again in default model
Enclose interior rotation;S340, the secondary signal intensity data for obtaining each smart machine filtered out when antenna rotates;Second letter
Number intensity data includes multiple secondary signal intensity levels;S350, the multiple signal strength values for filtering out each smart machine respectively
In maximum signal value, and obtain corresponding with each maximum signal value alternate location;S360, according to multiple alternative
Position calculates the optimal location of antenna.
Specifically, the step " whether generating state changes the smart machine that detection is connected with router " is further wrapped
Include:Whether the network traffics of detection smart machine are less than predetermined threshold value;Or, whether detection smart machine disconnects with router;Or,
Whether detection smart machine occurs change in location.
Specifically, it can obtain whether smart machine is without using network or standby under the routed environment by router
When, i.e., by judging that the network traffics of smart machine are less than predetermined threshold value, predetermined threshold value can be depending on being actually needed in the present embodiment
Self-defining.Judge the smart machine temporarily without using network or it is standby when, then start motor, rescan all intelligence and set
It is standby, and the secondary signal intensity data of each smart machine is recorded and handled, regain the optimal location of antenna.
Specifically, can judge currently to disconnect with the presence or absence of some smart machine by router, connect if existing and disconnecting
The smart machine connect, then start motor, rescans the smart machine of connection, and by the secondary signal intensity of each smart machine
Data record is simultaneously handled, and regains the optimal location of antenna.
Specifically, when position changes smart machine under the routed environment, obstruction is added between route, is led
During the number of writing weakened, setting dies down value changes more than default change threshold (in the present embodiment by taking 5db as an example), then starts
Motor, rescan, and the secondary signal intensity data of each smart machine is recorded and handled, regain the optimal of antenna
Position.
Whether the state by judging smart machine changes to optimize the position of antenna, can be obtained by existing route device
The state of smart machine is taken, more neatly adjusts the antenna of router, to obtain the more preferable network coverage, is provided in real time optimal
Network is experienced, without additionally increasing too many cost.
The present invention calculates multiple alternate locations using preset algorithm, obtains an optimal location, and the preset algorithm is specific
Depending on being actually needed, the average value of alternate location can be taken to be selected corresponding in alternate location as optimal location
Maximum signal value is used as optimal location for maximum.
Fig. 4 is a kind of main composition schematic diagram of router antenna regulating device of the present invention.A kind of as shown in figure 4, route
Device antenna regulating device, including:Drive module 100, for driving the antenna of router to rotate within a preset range;Logging modle
200, the signal for recording the smart machine being connected with router received when antenna rotates on each position respectively is strong
Degrees of data;Computing module 300, for calculating the optimal location of antenna according to the signal strength data of record;Tested rotating platform mould
Block 400, for adjusting router antenna to optimal location.
Specifically, drive module 100 drive router antenna rotate within a preset range be by with router antenna
The motor being connected is realized, drives antenna to rotate within a preset range by motor, preset range can be according to different model
Router progress is self-defined, does not limit herein.The preset range that single antenna class router rotates in the present invention is similar to hemispherical,
That is 180 degree, multiple antennas intersect in order to avoid antenna, are arranged to 120 degree of fan-shaped spheroid.
In the present invention during intelligent terminal connection route device, record antenna rotation process on each position intelligent terminal
Signal strength data, signal strength data include multiple signal strength values.The optimal of antenna is calculated according to signal strength data
Position, herein can be by calculating maximum signal value in one group of signal strength data, will be first corresponding to maximum signal value
Beginning, position was as optimal location, by tested rotating platform to optimal location, you can realizes the optimum experience of signal covering.
Preferably, the logging modle 200 specifically is additionally operable to, when there is new smart machine couple in router, record respectively
Antenna rotates the first signal strength data of stylish smart machine;First signal strength data includes multiple first signals
Intensity level;The computing module 300 is specifically additionally operable to filter out the first maximum letter according to multiple first signal strength values of record
Number intensity level, obtain more new position corresponding with the first maximum signal value;According to acquisition more new position with it is described
Initial position is calculated, and obtains the optimal location of antenna.
Specifically, when there is new smart machine connection route device, then it is strong according to the first signal of newly-increased smart machine
Degrees of data updates the optimal location of antenna, records new intelligent terminal respectively according to above-mentioned steps in the different positions that antenna rotates
First signal strength values at place are put, form one group of first signal strength data for new intelligent terminal, and filter out respectively new
Maximum signal value in first signal strength data of intelligent terminal, obtained according to obtained maximum signal value corresponding
More new position, more new position and initial position are calculated, obtain the optimal location of antenna.More new position can be taken herein
Average value with initial position is as optimal location.
Fig. 5 is fully composed schematic diagram for a kind of router antenna regulating device of the present invention.As shown in Figure 5, it is preferred that also
Including:Detection module 500, whether generating state changes the smart machine that detection is connected with router;Screening module 600, is used for
When judging that the network traffics of smart machine be present disconnects less than predetermined threshold value or smart machine with router, screen except with road
Disconnected by device or network traffics exceed the smart machine outside predetermined threshold value;The logging modle 200 is additionally operable to obtain
The secondary signal intensity data for each smart machine that antenna filters out when rotating;The secondary signal intensity data includes multiple
Secondary signal intensity level;The computing module 300 is additionally operable to filter out respectively in multiple signal strength values of each smart machine
Maximum signal value, and obtain corresponding with each maximum signal value alternate location;According to multiple alternate location meters
Calculate the optimal location of antenna.
Preferably, the detection module 500 further comprises:First detection sub-module 510, for detecting smart machine
Whether network traffics are less than predetermined threshold value;Second detection sub-module 520, for detect smart machine whether with router disconnect;
3rd detection sub-module 530, for detecting whether smart machine occurs change in location.
Specifically, it can obtain whether smart machine is without using network or standby under the routed environment by router
When, i.e., by judging that the network traffics of smart machine are less than predetermined threshold value, predetermined threshold value can be depending on being actually needed in the present embodiment
Self-defining.Judge the smart machine temporarily without using network or it is standby when, then start motor, rescan all intelligence and set
It is standby, and the secondary signal intensity data of each smart machine is recorded and handled, regain the optimal location of antenna.
Specifically, can judge currently to disconnect with the presence or absence of some smart machine by router, connect if existing and disconnecting
The smart machine connect, then start motor, rescans the smart machine of connection, and by the secondary signal intensity of each smart machine
Data record is simultaneously handled, and regains the optimal location of antenna.
Specifically, when position changes smart machine under the routed environment, obstruction is added between route, is led
During the number of writing weakened, setting dies down value changes more than default change threshold (in the present embodiment by taking 5db as an example), then starts
Motor, rescan, and the secondary signal intensity data of each smart machine is recorded and handled, regain the optimal of antenna
Position.
Whether the state by judging smart machine changes to optimize the position of antenna, can be obtained by existing route device
The state of smart machine is taken, more neatly adjusts the antenna of router, to obtain the more preferable network coverage, is provided in real time optimal
Network is experienced, without additionally increasing too many cost.
The signal strength data for the smart machine that the present invention is connected by acquisition with router, is realized according to signal intensity number
The aerial position of router is adjusted according to dynamic, up to the purpose that signal is covered up to optimal user experience, to make the intelligence of connection
Equipment can obtain more preferable usage experience under limited resource.
It should be noted that the content such as information exchange, implementation procedure in the present apparatus between each module and the above method are real
Apply example and be based on same design, particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.