Background technology
WIFI is that a kind of permission electronic equipment is connected to a WLAN(WLAN)Technology, 2.4G is usually used
UHF or 5G SHF ISM radio frequency bands.Being connected to WLAN typically has cryptoguard, but may also be open, this
Sample allows for any equipment in the range of WLAN connect.WIFI is the brand of a wireless network communication technique, by
WIFI alliances are held, it is therefore an objective to improve the intercommunity between the Wi-Fi product based on 802.11 standards of IEEE.
Wireless network online can simply be interpreted as wireless networking, nearly all smart mobile phone, panel computer and notes
This computer all supports that WIFI surfs the Net, and is to use a kind of most wide wireless network transmission technology now.Actually wired network
Network signal is converted into wireless signal, supplies to support that the related computer of its technology, mobile phone, flat board etc. are received using wireless router.Handss
Machine just can be saved with the obstructed network online for crossing mobile UNICOM when having Wi-Fi wireless signals if WIFI functions
Traffic fee is fallen.
Most Wi-Fi products, substantially have 2 kinds of situations at present:
1st, low-power consumption small-power scheme, as shown in figure 1, directly using the PA that Wi-Fi chip internals are integrated(PA:Power
Amplifier, power amplifier refer in particular to radio-frequency power amplifier in the present invention, are the important composition portions of various transmitting sets
Point, in the front stage circuits of transmitter, the RF signal power very little produced by modulation oscillator circuit is needed through a series of
Amplify a buffer stage, interstage amplifier section, final power amplifier stage, after obtaining enough radio-frequency powers, can just be fed to antenna
On radiate.)Work, is directly connected to antenna, CPU after radiofrequency signal output(Central Processing Unit,
Central processing unit)/MCU(Microcontroller Unit, single-chip microcomputer)By controlling PA work inside Wi-Fi module, output
Low-power level signal is launched by antenna, and transmission range is at tens meters or so, so can only use indoors or closely, and
And effect through walls is also poor.Microstrip line shown in figure refers to the microwave being made up of the plain conductor band propped up on dielectric substrate
Transmission line, the another side of substrate makes grounded metal flat board, herein refers to the transmission line of transmitting radio frequency signal above PCB.
2nd, the high-power scheme of high power consumption, as shown in Fig. 2 using WIFI chips+external PA, radiofrequency signal output is put through PA
After big, be connected to antenna, i.e. CPU/MCU by controlling external PA work, output low-power level signal after outside PA amplifications,
Output high-power signal is launched by antenna again, and transmission range can reach more than 500 meters.This kind of scheme regular software meeting
Arrange high, normal, basic three power grades of WIFI to realize near, long-distance transmissions, on the one hand either high power or low-power, outward
The PA for putting is switched on work, and the power consumption of external PA than larger, especially for the mobile terminal using battery,
Many electricity will be wasted during near work;On the other hand, the lower powered switching of this senior middle school is all by software interface
Or hardware button goes to select, some possibility will also be restarted and can just be come into force, and so for user, operation is just cumbersome.
Corresponding defect is all had based on above two scheme, it is impossible to meet the demand of user.
Therefore, for drawbacks described above, prior art has yet to be improved and developed.
The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, there is provided a kind of Based Intelligent Control
The method and system of WIFI transmission ranges, it is intended to by the removable WIFI terminal equipment of WIFI terminal detection from WIFI terminal away from
From and WIFI it is stable when signal intensity realizing closely arrive remote or arrive closely WIFI communication patterns at a distance
Seamless switching, on the premise of power consumption optimum, realize the transmission range of Based Intelligent Control WIFI.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of method of Based Intelligent Control WIFI transmission range, wherein, including:
Step A, by the removable WIFI terminal equipment of WIFI terminal detection with a distance from WIFI terminal and when WIFI is stable
Signal intensity;
Step B, when the distance is less than predeterminable range or the signal intensity is higher than preset signal strength, CPU or MCU
Radio-frequency (RF) switch is made to connect with first interface by the first control line, while will be the confession of external PA electrically disconnected by the second control line,
External PA is made not work;
Step C, when the distance is higher than predeterminable range or the signal intensity is less than preset signal strength, CPU or MCU
Radio-frequency (RF) switch is connected with second interface by the first control line, while the power supply of external PA is connected by the second control line, make
External PA starts working.
The method of the Based Intelligent Control WIFI transmission range, wherein, step A is specifically included:
A1, WIFI terminal is by calculating both using the GPS location data of WIFI terminal and removable WIFI terminal equipment
Distance;
A2, WIFI terminal by using removable WIFI terminal equipment by the feedback of the information of received signal strength to WIFI terminal or
Person obtains signal intensity when WIFI stablizes according to signal attenuation model, and is pre-stored in WIFI terminal.
The method of the Based Intelligent Control WIFI transmission range, wherein, step B also includes:
B1, when CPU or MCU makes radio-frequency (RF) switch connect with first interface by the first control line, while passing through the second control line
Will be the confession of external PA electrically disconnected, make external PA not work, while controlling PA work inside WIFI module, output low-power level signal leads to
Cross antenna to be launched.
The method of the Based Intelligent Control WIFI transmission range, wherein, step C also includes:
C1, when CPU or MCU makes radio-frequency (RF) switch connect with second interface by the first control line, while passing through the second control line
The power supply of external PA is connected, makes external PA start working, while control PA inside WIFI module not working, export low-power level signal
After outside PA amplifies, output high-power signal is launched by antenna again.
The method of the Based Intelligent Control WIFI transmission range, wherein, WIFI terminal is predetermined with signal intensity according to distance
Threshold values is switched over, and is switched over, the predetermined valve by when one of signal intensity or distance meet reservation threshold
Value is configured according to the actual requirements.
A kind of system of Based Intelligent Control WIFI transmission range, wherein, including:
WIFI module, for providing WIFI signal;Range finder module, for detecting that the removable WIFI terminal for receiving WIFI signal sets
The standby distance with WIFI terminal;Signal detection module, for detecting the removable WIFI terminal device signal for receiving WIFI signal
Intensity;
Also include:
Detection module, for by the removable WIFI terminal equipment of range finder module detection is with a distance from WIFI terminal and passes through letter
Signal intensity when number detection module detection WIFI is stable;
First control module, for being less than predeterminable range or the signal intensity higher than preset signal strength when the distance
When, CPU or MCU makes radio-frequency (RF) switch connect with first interface by the first control line, while will be external by the second control line
The confession of PA is electrically disconnected, makes external PA not work;
Second control module, when the distance is higher than predeterminable range or the signal intensity is less than preset signal strength, CPU
Or MCU makes radio-frequency (RF) switch connect with second interface by the first control line, while connecting external PA's by the second control line
Power supply, makes external PA start working.
The system of the Based Intelligent Control WIFI transmission range, wherein, the detection module is specifically included:
Apart from detector unit, for range finder module by the GPS location number using WIFI terminal and removable WIFI terminal equipment
According to calculating both distances;
Signal strength detection unit, for signal detection module by adopting removable WIFI terminal equipment by received signal strength
Feedback of the information obtain to WIFI terminal or according to signal attenuation model WIFI it is stable when signal intensity, and be pre-stored in
In WIFI terminal.
The system of the Based Intelligent Control WIFI transmission range, wherein, first control module also includes:
Closely power output unit, for making radio-frequency (RF) switch with first interface to connect by the first control line as CPU or MCU
It is logical, while will be the confession of external PA electrically disconnected by the second control line, make external PA not work, while controlling PA inside WIFI module
Work, output low-power level signal are launched by antenna.
The system of the Based Intelligent Control WIFI transmission range, wherein, second control module also includes:
Remote power output unit, for making radio-frequency (RF) switch with second interface to connect by the first control line as CPU or MCU
It is logical, while the power supply of external PA is connected by the second control line, make external PA start working, while controlling PA inside WIFI module
Do not work, output low-power level signal after outside PA amplifications, launched by antenna again by output high-power signal.
The system of the Based Intelligent Control WIFI transmission range, wherein, WIFI mode of operations include closely pattern and long distance
From pattern, WIFI terminal is carried out between closely pattern and remote pattern according to the reservation threshold of distance or signal intensity
Switching, switches over by when one of signal intensity or distance meet reservation threshold, and the reservation threshold is according to reality
Border demand is configured.
The invention discloses a kind of method and system of Based Intelligent Control WIFI transmission range, methods described includes:Pass through
Signal intensity of the removable WIFI terminal equipment of WIFI terminal detection with a distance from WIFI terminal and when WIFI is stable;When described
When distance is less than predeterminable range or the signal intensity higher than preset signal strength, CPU or MCU is made by the first control line
Radio-frequency (RF) switch is connected with first interface, while will be the confession of external PA electrically disconnected by the second control line, make external PA not work;When
When the distance is less than preset signal strength higher than predeterminable range or the signal intensity, CPU or MCU is by the first control
Line makes radio-frequency (RF) switch connect with second interface, while the power supply of external PA is connected by the second control line, makes external PA start work
Make.Letter of the present invention by the removable WIFI terminal equipment of WIFI terminal detection with a distance from WIFI terminal and when WIFI is stable
Number intensity realizing closely arriving the remote or remote seamless switching to closely WIFI communication patterns, in power consumption optimum
On the premise of, the transmission range of Based Intelligent Control WIFI is realized, facilitates user.
Specific embodiment
To make the objects, technical solutions and advantages of the present invention clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings
The present invention is further described.It should be appreciated that specific embodiment described herein is only to explain the present invention, and without
It is of the invention in limiting.
Fig. 3 is referred to, Fig. 3 is the flow chart of the preferred embodiment of the method for Based Intelligent Control WIFI transmission range of the present invention.
As shown in figure 3, a kind of method of Based Intelligent Control WIFI transmission range provided in an embodiment of the present invention, including following step
Suddenly:
Step S100, by the removable WIFI terminal equipment of WIFI terminal detection with a distance from WIFI terminal and when WIFI is stable
Signal intensity.
In the present invention, WIFI terminal is by the GPS location data meter using WIFI terminal and removable WIFI terminal equipment
Calculation draws both distances;WIFI terminal by using removable WIFI terminal equipment by the feedback of the information of received signal strength extremely
WIFI terminal or according to signal attenuation model come obtain WIFI it is stable when signal intensity, and be pre-stored in WIFI terminal.
For example, according to distance increase WIFI signal intensity inherently weaken this rule, can with field experimentation set up signal intensity with away from
From corresponding lists, determine a critical point from data result, such as distance less than 60m when, signal intensity more than-
80dBm or so, is now set to PA work inside WIFI terminal, and more than after 60m, signal intensity is less than -80dBm to distance, now
It is set to the external PA work of WIFI terminal.
Step S200, when the distance is less than predeterminable range or the signal intensity is higher than preset signal strength, CPU
Or MCU connects radio-frequency (RF) switch and first interface by the first control line, while by the second control line by the confession of external PA
It is electrically disconnected, make external PA not work.
In the present invention, when CPU or MCU makes radio-frequency (RF) switch connect with first interface by the first control line, while passing through
Second control line will be the confession of external PA electrically disconnected, makes external PA not work, while controlling PA work inside WIFI module, exports little
Power signal is launched by antenna.
Described PA, radio-frequency power amplifier in WIFI radio circuits, used as the afterbody of emitter, effect is to put
Big transmission signal, makes transmission signal meet the requirements.Have it is built-in such as:AR9331, MT7602E etc., also have external PA.In order to reduce into
Originally generally use built-in, and circuit is simple;But in order to strengthen WIFI signal, it is typically chosen external.
Step S300, when the distance is higher than predeterminable range or the signal intensity is less than preset signal strength, CPU
Or MCU makes radio-frequency (RF) switch connect with second interface by the first control line, while connecting external PA's by the second control line
Power supply, makes external PA start working.
In the present invention, when CPU or MCU makes radio-frequency (RF) switch connect with second interface by the first control line, while passing through
Second control line connects the power supply of external PA, makes external PA start working, while control PA inside WIFI module not working, exports
Low-power level signal after outside PA amplifications, launched by antenna again by output high-power signal.
WIFI module also known as serial ports WIFI module, belong to Internet of Things transport layer, and function is that serial ports or Transistor-Transistor Logic level are switched to symbol
Close WIFI wireless network communication standards flush bonding module, built-in wireless network protocol IEEE802.11b.g.n protocol stacks and
ICP/IP protocol stack.The embedded WIFI module of traditional hardware device directly can link the Internet using WIFI, be to realize wirelessly
The important component part of the Internet of Things application such as smart home, M2M.
Reservation threshold of the WIFI terminal according to distance with signal intensity is switched over, when signal intensity or distance wherein it
One when meeting reservation threshold by switch over, the reservation threshold is configured according to the actual requirements.
Said method flow process implementation procedure schematic diagram such as Fig. 4, it is after flow process starts, removable by WIFI terminal detection
Signal intensity of the WIFI terminal equipment with a distance from WIFI terminal and when WIFI is stable;Judge the distance whether less than default
Whether distance or the signal intensity are higher than preset signal strength, when the distance is less than predeterminable range or the signal is strong
When degree is higher than preset signal strength, CPU or MCU makes radio-frequency (RF) switch connect with first interface by the first control line, while logical
Crossing the second control line will be the confession of external PA electrically disconnected, makes external PA not work while controlling PA work inside WIFI module, output
Low-power level signal is launched by antenna, you can the WIFI patterns of mobile WIFI terminal equipment choice are near work mould
Formula, is conducive to saving power consumption, extends the stand-by time of removable WIFI terminal equipment.
When the distance is higher than predeterminable range or the signal intensity is less than preset signal strength, CPU or MCU leads to
Crossing the first control line makes radio-frequency (RF) switch connect with second interface, while the power supply of external PA is connected by the second control line, makes outer
PA start-up operations are put, while control PA inside WIFI module not working, output low-power level signal is exported after outside PA amplifications
High-power signal is launched by antenna again, you can the WIFI patterns of mobile WIFI terminal equipment choice are remote Working mould
Formula, is advantageously implemented the long-distance transmissions of WIFI signal.
Due to the difference of spatial environmentss, signal intensity and distance are not strict linear inverse relation, and distance is bigger, letter
Number must be weaker, but signal it is weak be exactly not necessarily that distance is remote, also barrier such as blocks at the factor, as long as therefore signal intensity is low
Meet first, WIFI terminal is just operated in remote pattern more than predetermined value in predetermined value or distance(It is exactly external big work(
Rate PA mode of operation)As long as, or signal intensity be higher than predetermined value or distance less than predetermined value meet first, WIFI terminal just
It is operated in closely pattern(It is exactly PA mode of operations inside WIFI module), this ensures that WIFI communications are normal.
To cause operation principle of the present invention clearer, the operation principle of technical solution of the present invention is shown below is, please be join
See that Fig. 5, Fig. 5 are the control system operation principle schematic diagrams of Based Intelligent Control WIFI transmission range of the present invention.
In order to solve the problem with present on, the technical program in the case where WIFI transmission performances are ensured, by software
With the cooperation of hardware, the transmission range of Based Intelligent Control WIFI on the premise of power consumption optimum, is realized.
The present invention includes two kinds of technical schemes, and a kind of is to may move WIFI terminal equipment with a distance from WIFI terminal from low coverage
From to remote, another kind is to may move WIFI terminal equipment with a distance from WIFI terminal from a distance to closely, lower mask
Body illustrates that two kinds of technical schemes realize process:
The first:From closely to remote, when removable WIFI terminal equipment from WIFI terminal it is closer to the distance when, typically away from
From<60m(Predeterminable range), or signal intensity when being stablized according to the WIFI of detection>-80dBm(Preset signal strength), preset away from
From being adjusted according to the actual requirements with preset signal strength, CPU/MCU makes radio-frequency (RF) switch by control line 1(SPDT)With
One interface(Port1)Connect, while will be the confession of PA electrically disconnected by control line 2, make PA not work, now PA inside WIFI module
Work, power are little, reduce power consumption;When removable WIFI terminal equipment is more and more remote with a distance from WIFI terminal, that is to say, that
Distance>60m, or signal intensity when being stablized according to the WIFI of detection<- 80dBm, CPU/MCU open radio frequency by control line 1
Close(SPDT)With second interface(Port2)Connect, while the power supply of PA is connected by control line 2, make PA start working, now
Inside WIFI module, PA does not work, WIFI module output low-power level signal, after outside PA amplifies, exports high-power signal,
Launched by antenna again.
WIFI terminal also includes WIFI module, range finder module, signal detection module;WIFI module is used to provide WIFI letters
Number;Distance of the range finder module mainly for detection of the removable WIFI terminal equipment and WIFI terminal of reception WIFI signal;Range finding
Method can be by calculating both distances using the GPS location data of WIFI terminal and removable WIFI terminal equipment;
Signal detection module, can be using movement mainly for detection of the removable WIFI terminal device signal intensity of WIFI signal is received
Hold the mode of the feedback of the information of received signal strength to WIFI terminal, it is also possible to counted according to the distance with WIFI terminal
Calculate, concrete value of calculation basis signal attenuation model draws, attenuation model adopts field experimentation and test value to set up, and is pre-stored in
WIFI terminal.
Second:From at a distance to closely, with above just conversely, when removable WIFI terminal equipment is from WIFI terminal
It is distant when, general distance>60m(Predeterminable range), or signal intensity when being stablized according to the WIFI of detection<-80dBm
(Preset signal strength), CPU/MCU makes radio-frequency (RF) switch by control line 1(SPDT)With second interface(Port2)Connect, while logical
The power supply that control line 2 connects external PA is crossed, makes external PA in running order, now PA does not work inside WIFI module, finally
Antenna end output is high-power, meets remote WIFI signal transmission;When removable WIFI terminal equipment from WIFI terminal away from
When close to increasingly, that is to say, that distance<60m, or signal intensity when being stablized according to the WIFI of detection>- 40dBm, CPU/MCU
Radio-frequency (RF) switch is made by control line 1(SPDT)With first interface(Port1)Connect, while the power supply of PA is broken by control line 2
Open, make PA not work, now PA work inside WIFI module, final antenna end export small-power.
The present invention does not need user to arrange in whole process, and system is automatically according to removable WIFI terminal equipment and WIFI
The distance of terminal selects corresponding mode of operation, realizes Based Intelligent Control transmission range, efficiently solves battery of mobile terminal
The short problem of use time, extends mobile terminal use time.
Technical scheme can be used in some moveable monitoring devices in addition, and WIFI moulds are used when closely
The inside PA of block, closes the power supply of external PA, in low power mode of operation, external PA can be just opened when distant,
In high power work pattern.The such as military using WIFI special type video instrument, unmanned plane of taking photo by plane etc., pass through in moving process
The automatic control system of system realizes real-time transmission of video.
Based on above-described embodiment, the present invention also provides a kind of system of Based Intelligent Control WIFI transmission range, refers to Fig. 6,
Fig. 6 is the functional schematic block diagram of the preferred embodiment for being of Based Intelligent Control WIFI transmission range of the present invention.
As shown in fig. 6, the system includes:
WIFI module 10, for providing WIFI signal;Range finder module 20, for detecting the removable WIFI ends for receiving WIFI signal
The distance of end equipment and WIFI terminal;Signal detection module 30, for detecting that the removable WIFI terminal for receiving WIFI signal sets
Standby signal intensity;As detailed above.
Also include:
Detection module 40, for may move by range finder module detection, WIFI terminal equipment is with a distance from WIFI terminal and passes through
Signal intensity when signal detection module detection WIFI is stable;As detailed above.
First control module 50, for being less than predeterminable range or the signal intensity higher than preset signals when the distance
During intensity, CPU or MCU makes radio-frequency (RF) switch connect with first interface by the first control line, while will by the second control line
The confession of external PA is electrically disconnected, makes external PA not work;As detailed above.
Second control module 60, when the distance is higher than that predeterminable range or the signal intensity are less than preset signal strength
When, CPU or MCU makes radio-frequency (RF) switch connect with second interface by the first control line, while connecting outer by the second control line
The power supply of PA is put, makes external PA start working;As detailed above.
Further, the system of the Based Intelligent Control WIFI transmission range, wherein, the detection module is specifically included:
Apart from detector unit, for range finder module by the GPS location number using WIFI terminal and removable WIFI terminal equipment
According to calculating both distances;As detailed above.
Signal strength detection unit, for signal detection module by signal will be received using removable WIFI terminal equipment
The feedback of the information of intensity obtains signal intensity when WIFI stablizes to WIFI terminal or according to signal attenuation model, and prestores
Storage is in WIFI terminal;As detailed above.
The system of the Based Intelligent Control WIFI transmission range, wherein, first control module also includes:
Closely power output unit, for making radio-frequency (RF) switch with first interface to connect by the first control line as CPU or MCU
It is logical, while will be the confession of external PA electrically disconnected by the second control line, make external PA not work, while controlling PA inside WIFI module
Work, output low-power level signal are launched by antenna;As detailed above.
The system of the Based Intelligent Control WIFI transmission range, wherein, second control module also includes:
Remote power output unit, for making radio-frequency (RF) switch with second interface to connect by the first control line as CPU or MCU
It is logical, while the power supply of external PA is connected by the second control line, make external PA start working, while controlling PA inside WIFI module
Do not work, output low-power level signal after outside PA amplifications, launched by antenna again by output high-power signal;Specifically such as
It is upper described.
The system of the Based Intelligent Control WIFI transmission range, wherein, WIFI mode of operations include closely pattern and long distance
From pattern, WIFI terminal is cut between closely pattern and remote pattern according to the reservation threshold of distance and signal intensity
Change, just switch over when only signal intensity meets reservation threshold simultaneously with distance, the reservation threshold enters according to the actual requirements
Row is arranged;As detailed above.
In sum, the invention discloses a kind of method and system of Based Intelligent Control WIFI transmission range, methods described bag
Include:It is strong by signal of the removable WIFI terminal equipment of WIFI terminal detection with a distance from WIFI terminal and when WIFI is stable
Degree;When it is higher than preset signal strength that the distance is less than predeterminable range or the signal intensity, CPU or MCU is by the
One control line makes radio-frequency (RF) switch connect with first interface, while will be the confession of external PA electrically disconnected by the second control line, make external
PA does not work;When the distance is higher than predeterminable range or the signal intensity is less than preset signal strength, CPU or MCU
Radio-frequency (RF) switch is connected with second interface by the first control line, while the power supply of external PA is connected by the second control line, make
External PA starts working.The present invention by WIFI terminal detection may move WIFI terminal equipment with a distance from WIFI terminal and
Signal intensity when WIFI is stable is realizing closely arrive remote or arrive the seamless of closely WIFI communication patterns at a distance
Switching, on the premise of power consumption optimum, realizes the transmission range of Based Intelligent Control WIFI, facilitates user.
Certainly, one of ordinary skill in the art will appreciate that all or part of flow process in realizing above-described embodiment method,
Can be by computer program to instruct related hardware(Such as processor, controller etc.)To complete, described program can be stored
In the storage medium of an embodied on computer readable, the program is may include upon execution such as the flow process of above-mentioned each method embodiment.Its
Described in storage medium can be for memorizer, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can
To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention
Shield scope.