Invention content
For the above problem existing for existing 3G/4G wireless routers, now providing that one kind aims at can be according to weather
Situation switches online pattern, supports the router and method of the intelligence switching online circuit of wiring logging-on function.
Specific technical solution is as follows:
A kind of router of intelligence switching online circuit, including:
One collecting unit, to acquire air data;
One wired routing unit, network is connected to using wired connection mode;
One wireless routing unit, network is connected to using radio connection;
One control unit is separately connected the collecting unit, wired routing unit and the wireless routing unit, uses
It is connected to network, or the control wireless routing to control wired routing unit according to the air data and preset condition
Unit is connected to network.
Preferably, the air data includes:Air temperature value and air humidity value.
Preferably, the collecting unit includes:
One temperature sensor, to acquire the air temperature value.
Preferably, the collecting unit includes:
One humidity sensor, to acquire the air humidity value.
Preferably, further include:
One judging unit connects the collecting unit and described control unit, to judge whether the collecting unit is adopted
Collect the air temperature value and the air humidity value, and exports judging result;
When the collecting unit does not collect the air temperature value and/or the air humidity value, the control is single
Member controls the wireless routing unit and is connected to network, to obtain the air temperature value and the air humidity value;
When the collecting unit collects the air temperature value and the air humidity value, described control unit according to
The air temperature value, the air humidity value and the preset condition select corresponding connection type to be connected to network.
Preferably, described control unit further includes:
One timing module, to record the delay time that the wireless routing unit cannot connect to network;
When the delay time reaching predetermined threshold value, described control unit controls wireless routing unit and disconnects and network
Connection controls wired routing unit and is connected to network to obtain the air temperature value and the air humidity value.
Preferably, the preset condition is the air temperature value between 0 ° to 40 °, and the air humidity value is less than
Or when equal to 60%, described control unit controls the wireless routing unit and is connected to network.
Preferably, the preset condition is the air temperature value less than 0 ° or the air temperature value is more than 40 °, and/
Or the air humidity value, when being more than 60%, described control unit controls wired routing unit and is connected to network.
A method of intelligence switching online circuit, using the router of above-mentioned intelligence switching online circuit, including under
State step:
S1. air data is acquired;
S2. network, or control are connected to control wired routing unit according to the air data and preset condition
It makes the wireless routing unit and is connected to network.
Preferably, the air data includes:Air temperature value and air humidity value.
Preferably, further include before executing the step S2:
A1. judge whether to collect the air temperature value and the air humidity value, if so, executing the step S2;
If it is not, executing step A2;
A2. it controls the wireless routing unit and is connected to network, to obtain the air temperature value and the air humidity
Value executes step S2.
Preferably, the step A2 includes:
A21. it controls the wireless routing unit and is connected to network;
A22. the delay time that the wireless routing unit cannot connect to network is recorded;
A23. judge whether the delay time reaches the predetermined threshold value, if so, executing step A24;If it is not, executing step
Rapid A25;
A24. control wireless routing unit disconnects the connection with network, and controls wired routing unit and be connected to network
To obtain the air temperature value and the air humidity value, the step S2 is executed;
A25. the air temperature value and the air humidity value are obtained, the step S2 is executed.
The advantageous effect of above-mentioned technical proposal:
1) router of intelligence switching online circuit acquires air data by collecting unit, using control unit according to sky
Destiny is according to the online pattern of router is switched over, to ensure the online quality of user;
2) method of intelligence switching online circuit can cut the network access of router according to the air data of acquisition
It changes, to improve the online experience of user.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of not making creative work it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The invention will be further described in the following with reference to the drawings and specific embodiments, but not as limiting to the invention.
As shown in Figure 1, a kind of router of intelligence switching online circuit, including:
One collecting unit 1, to acquire air data;
One wired routing unit 2, network is connected to using wired connection mode;
One wireless routing unit 5, network is connected to using radio connection;
One control unit 3 is separately connected collecting unit 1, wired routing unit 2 and wireless routing unit 5, to according to sky
Destiny evidence and preset condition control wired routing unit 2 and are connected to network, or control wireless routing unit 5 is connected to network.
Further, air data includes:Air temperature value and air humidity value, wireless routing unit 5 using 3G/4G without
Line on-line module.
In the present embodiment, air data is acquired by collecting unit 1, is satisfied the need according to air data using control unit 3
It is switched over by the online pattern of device, to ensure the online quality of user.
In a preferred embodiment, collecting unit 1 may include:
One temperature sensor, to acquire air temperature value.
In the present embodiment, the temperature value of air is acquired by temperature sensor.
In a preferred embodiment, collecting unit 1 includes:
One humidity sensor, to acquire air humidity value.
In the present embodiment, the humidity value of air is acquired by humidity sensor.
In a preferred embodiment, further include:
One judging unit 4 connects collecting unit 1 and control unit 3, to judge whether collecting unit 1 collects air
Temperature value and air humidity value, and export judging result;
When collecting unit 1 does not collect air temperature value and/or air humidity value, control unit 3 controls wireless routing
Unit 5 is connected to network, to obtain air temperature value and air humidity value;
When collecting unit 1 collects air temperature value and air humidity value, control unit 3 is according to air temperature value, sky
Air humidity angle value and preset condition select corresponding connection type to be connected to network.
In the present embodiment, when collecting unit 1 can not collect air temperature value and/or air humidity value, preferably
Wireless routing unit 5 is connected to network, to obtain current air data from high in the clouds, then by control unit 3 according to air data
The mode of connection network is selected with preset condition;
When collecting unit 1 can collect air temperature value and air humidity value simultaneously, control unit 3 can be directly according to sky
The mode of destiny evidence and preset condition selection connection network.
In a preferred embodiment, control unit 3 may also include:
One timing module, to record the delay time that wireless routing unit 5 cannot connect to network;
When delay time reaching predetermined threshold value, control unit 3 controls the connection of 5 disconnection and network of wireless routing unit,
It controls wired routing unit 2 and is connected to network to obtain air temperature value and air humidity value.
In the present embodiment, when being connected using wireless routing unit 5, network still can not obtain air temperature value and air is wet
When angle value, control unit 3 can disconnection of wireless routing unit 5 and network connection, connection type is switched to wired connection network,
To obtain air temperature value and air humidity value, then by control unit 3 according to the air data and preset condition of acquisition selection company
Connect the mode of network.
In a preferred embodiment, preset condition be air temperature value between 0 ° to 40 °, and air humidity value be less than or
When equal to 60%, control unit 3 controls wireless routing unit 5 and is connected to network.
In the present embodiment, when air temperature value between 0 ° to 40 ° and air humidity value be less than or equal to 60% when, nothing
The signal of line networking is optimal, therefore control unit 3 can be selected wireless routing unit 5 and be connected to network.
In a preferred embodiment, preset condition is air temperature value less than 0 ° or air temperature value is more than 40 °, and/or
When air humidity value is more than 60%, control unit 3 controls wired routing unit 2 and is connected to network.
In the present embodiment, when air temperature value is less than 0 ° or air temperature value is more than 40 ° and/or air humidity value is big
When 60%, the dtr signal of Wireless Networking can not ensure the online quality of user, therefore control unit 3 can be selected circuit
Network is connected to by unit 2.
As shown in Fig. 2, a kind of method of intelligence switching online circuit, using the road of such as above-mentioned intelligence switching online circuit
By device, include the following steps:
S1. air data is acquired;
S2. network, or control are connected to without circuit to control wired routing unit 2 according to air data and preset condition
Network is connected to by unit 5.
Further, air data includes:Air temperature value and air humidity value.
In the present embodiment, the network access of router can be switched over according to the air data of acquisition, to improve
The online experience of user.
As shown in Fig. 2, in a preferred embodiment, further including before executing step S2:
A1. judge whether to collect air temperature value and air humidity value, if so, executing step S2;If it is not, executing step
A2;
A2. control wireless routing unit 5 is connected to network, to obtain air temperature value and air humidity value, executes step
S2。
In the present embodiment, when air temperature value and/or air humidity value can not be collected, preferable wireless routing list
Member 5 is connected to network, to obtain current air data from high in the clouds, then by control unit 3 according to air data and preset condition
The mode of selection connection network;
When collecting unit 1 can collect air temperature value and air humidity value simultaneously, control unit 3 can be directly according to sky
The mode of destiny evidence and preset condition selection connection network.
As shown in figure 3, in a preferred embodiment, step A2 includes:
A21. control wireless routing unit 5 is connected to network;
A22. record wireless routing unit 5 cannot connect to the delay time of network;
A23. judge whether delay time reaches predetermined threshold value, if so, executing step A24;If it is not, executing step A25;
A24. control wireless routing unit 5 disconnects the connection with network, and control wired routing unit 2 be connected to network with
Air temperature value and air humidity value are obtained, step S2 is executed;
A25. air temperature value and air humidity value are obtained, step S2 is executed.
In the present embodiment, when being connected using wireless routing unit 5, network still can not obtain air temperature value and air is wet
When angle value, can disconnection of wireless routing unit 5 and network connection, connection type is switched to wired connection network, to obtain sky
Temperature value and air humidity value, the mode of air data and preset condition selection connection network further according to acquisition, to carry
The online experience of high user.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.