CN108770068A - A kind of WIFI Frequency Band Selections method, apparatus, storage medium and electronic equipment - Google Patents
A kind of WIFI Frequency Band Selections method, apparatus, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108770068A CN108770068A CN201810564835.8A CN201810564835A CN108770068A CN 108770068 A CN108770068 A CN 108770068A CN 201810564835 A CN201810564835 A CN 201810564835A CN 108770068 A CN108770068 A CN 108770068A
- Authority
- CN
- China
- Prior art keywords
- wifi
- established
- parameter
- connection
- signal strength
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0453—Resources in frequency domain, e.g. a carrier in FDMA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Abstract
This application discloses a kind of WIFI Frequency Band Selections method, apparatus, storage medium and electronic equipment, this method to include:Detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;Request is established if detecting and receiving WIFI connections, get parms information;The working frequency range of WIFI is selected according to parameter information, wherein the working frequency range of WIFI includes 2.4G frequency ranges and 5G frequency ranges;The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect, and so as to automatically select the working frequency range of WIFI according to parameter information, realizes and is automatically selected to WIFI frequency ranges, improves the flexibility of WIFI Frequency Band Selections.
Description
Technical field
The application belongs to a kind of field of communication technology more particularly to WIFI Frequency Band Selections method, apparatus, storage medium and electricity
Sub- equipment.
Background technology
Currently, many smart terminal products provide WIFI P2P functions or WIFI SoftAP functions, it is based on WIFI
The function scene of P2P has:Connect in Wireless Display projection mobile phone screen to TV, between WLAN or transmit file etc., it is based on
WIFI SoftAP function scenes have:Biography etc. is dodged as personal hot spot connection online, mobile phone removal of home or QQ, and these functions are all
It is to be realized based on WIFI.
General terminal WIFI supports 2.4G frequency ranges and 5G frequency ranges.Wherein, the characteristics of 2.4G frequency ranges, is:Ability through walls is strong, even
It is remote to connect distance, terminal and other-end distance farther out when connective stability it is more preferable, the characteristics of long distance network is more preferable, 5G frequency ranges
It is:For 2.4G frequency ranges, it is through walls can force difference, the farthest of support connects apart from shorter, when remotely connected, stability
Difference, but rate bandwidth bigger, network is more preferable when short distance.
In the research process to the prior art, the inventors found that WIFI P2P functions or WIFI
SoftAP functions acquiescence would generally set fixed frequency range using frequency range, such as fixed setting 5G frequency ranges or fixed setting 2.4G frequencies
Section so that cannot flexibly select suitable frequency range, therefore it is necessary to propose a kind of scheme to solve the above problems.
Invention content
A kind of WIFI Frequency Band Selections method, apparatus of the embodiment of the present application offer, storage medium and electronic equipment, can be automatic
Select the working frequency range of WIFI connections.
The embodiment of the present application provides a kind of WIFI Frequency Band Selections method, including:
Detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;
Request is established if detecting and receiving the WIFI connections, get parms information;
The working frequency range of WIFI is selected according to the parameter information, wherein the working frequency range of the WIFI includes 2.4G frequencies
Section and 5G frequency ranges;
The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect.
The embodiment of the present application also provides a kind of WIFI frequency band selection devices, including:
Detection unit, for detecting whether request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;
Acquiring unit, if for detecting that receiving the WIFI connections establishes request, get parms information;
Selecting unit, the working frequency range for selecting WIFI according to the parameter information, wherein the work frequency of the WIFI
Section includes 2.4G frequency ranges and 5G frequency ranges;
Unit is established, working frequency range and the WIFI peer ends of the connection to be established for the WIFI based on selection are established WIFI and connected
It connects.
The embodiment of the present application also provides a kind of storage medium, is stored thereon with computer program, when the computer program
When executing on computers so that the computer executes the step in WIFI Frequency Band Selections method provided by the embodiments of the present application
Suddenly.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute
The computer program stored in memory is stated, for executing the step in WIFI Frequency Band Selections method provided by the embodiments of the present application
Suddenly.
The embodiment of the present application is by detecting whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;If
Detect that receiving WIFI connections establishes request, then get parms information;The working frequency range of WIFI is selected according to parameter information;Base
WIFI is established with WIFI peer ends of the connection to be established in the working frequency range of the WIFI of selection to connect, so as to according to parameter information from
The working frequency range of dynamic selection WIFI, realizes and is automatically selected to WIFI frequency ranges, improve the flexibility of WIFI Frequency Band Selections.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described.It should be evident that the accompanying drawings in the following description is only some embodiments of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the schematic diagram of a scenario of WIFI Frequency Band Selections method provided by the embodiments of the present application.
Fig. 2 to Fig. 6 is the flow diagram of WIFI Frequency Band Selections method provided by the embodiments of the present application.
Fig. 7 is the structural schematic diagram of WIFI frequency band selection devices provided by the embodiments of the present application.
Fig. 8 a to Fig. 8 e are the part-structure schematic diagram of WIFI frequency band selection devices provided by the embodiments of the present application.
Fig. 9 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Figure 10 is another structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, the every other implementation that those skilled in the art are obtained under the premise of not making the creative labor
Example, belongs to the protection domain of the application.
It should be noted that the WIFI Frequency Band Selection methods in the embodiment of the present application are suitable for being based on WIFI P2P functions
And the scene of the function of WIFI SoftAP, specifically, the application will be specifically to be applied to WIFI by the WIFI Frequency Band Selection methods
A certain function scene in P2P functions scene and WIFI SoftAP describes in detail for that is, personal hot spot.
It particularly,, both can be such as this Shen for WIFI P2P when applied to scene based on WIFI P2P functions
Please be to wait for WIFI peer ends of the connection to the terminal (not being AP, only act as the role of AP) as AP described in the method for embodiment
Send WIFI connection requests, can also be as AP terminal actively to WIFI peer ends of the connection to be established send WIFI connections ask
Ask, if WIFI peer ends of the connection to be established agreement establish WIFI connections, so that it may using it is direct foundation as AP terminal with wait establishing
The WIFI connections of WIIF peer ends of the connection, therefore, WIFI Frequency Band Selections method can also be:
WIFI connections are sent to WIFI peer ends of the connection to be established and establish request, wherein the WIIF connections are established request and used
Allow to establish WIFI connections in asking WIFI peer ends of the connection to be established;
It detects whether to receive the permission information that WIFI peer ends of the connection to be established are sent, wherein the permission information is to wait for
Establishing WIFI peer ends of the connection allows the information for establishing WIFI connection requests;
If receiving the permission information that WIFI peer ends of the connection to be established are sent, get parms information;
The working frequency range of WIFI is selected according to parameter information, wherein the working frequency range of WIFI includes 2.4G frequency ranges and 5G frequencies
Section;
The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect.
With reference to figure 1, Fig. 1 is the schematic diagram of a scenario of WIFI Frequency Band Selection methods.Wherein, request receiving terminal is established in WIFI connections
It can detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;It is built if detecting and receiving WIFI connections
Vertical request, then get parms information;Then the working frequency range of WIFI is selected according to parameter information, wherein the working frequency range of WIFI
Including 2.4G frequency ranges and 5G frequency ranges;The working frequency range and WIFI peer ends of the connection to be established for being finally based on the WIFI of selection establish WIFI
Connection.
The embodiment of the present application provides a kind of WIFI Frequency Band Selections method, and the WIFI Frequency Band Selections method can be applied to electricity
In sub- equipment.The electronic equipment can be the terminal device that smart mobile phone, tablet computer etc. support WIFI.Fig. 2 is please referred to, institute
WIFI Frequency Band Selection methods are stated, may comprise steps of:
110, detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established.
Wherein, which supports that personal hot spot and WIFI P2P functions, WIFI P2P are a kind of WIFI point-to-point connections skills
Art can be supported directly to establish TCP/IP connections between WIFI terminal at two, not need to the participation of AP;Personal hot spot refers to
GPRS, 3G or 4G signal that terminal receives are converted into WIFI signal to retransmit away.
It should be noted that terminal first has to open personal hot spot or WIFI P2P functions, it is then based on the function
Under scene, detect whether that receiving WIFI connections establishes request, the wherein WIFI connections establish request by WIFI connections to be established
Opposite end is sent.
WIFI peer ends of the connection to be established first turn on WIFI functions of search, search for the WIFI near it, wherein usually can be with
It is to click WIFI icons with finger on the touchscreen to start WIFI search, WIFI peer ends of the connection to be established search neighbouring one
After a little WIFI, so that it may establish request to select one of WIFI to send WIFI connections.In this example, it is assumed that this is yet to be built
Vertical WIFI peer ends of the connection send WIFI connections to terminal and establish request, then the terminal, which is detected by, receives WIFI connections foundation
Request.
In several embodiments it is contemplated that arriving personal hot spot etc., there may be setting authorization messages to be waited for such as the case where password
WIFI peer ends of the connection are established to when terminal transmission WIFI connections foundation request, it is also necessary to while sending authorization message to terminal.
Request is established if 120, detecting and receiving WIFI connections, get parms information.
It is received when request is established in the WIFI connections for establishing the transmission of WIFI peer ends of the connection when terminal detects, so that it may to obtain
Take parameter information, wherein the parameter information can be distance parameter or signal strength parameter.
In some embodiments, it when terminal detects that receiving WIFI connections establishes request, can also detect whether to connect
The authorization message that WIFI peer ends of the connection to be established are sent is received, awarding for WIFI peer ends of the connection transmission to be established is received if detecting
Weigh information, then whether correct, if correctly, get parms information, if incorrect, generate prompt message if detecting authorization message,
The prompt message is sent to WIFI peer ends of the connection to be established, the prompt is for prompting WIFI peer ends of the connection mandate to be established to believe
Cease mistake.
130, the working frequency range of WIFI is selected according to parameter information.
In the present embodiment, the working frequency range of WIFI includes 2.4G frequency ranges and 5G frequency ranges, it may also be said to, in the present embodiment
Terminal had not only supported 2.4G frequency ranges, but also supported 5G frequency ranges, and terminal can be based on according to distance parameter or signal strength parameter selection
The working frequency range for the WIFI that the terminal is established, when terminal opens personal hot spot, the working frequency range of as personal hot spot works as terminal
When opening WIFI P2P, the as working frequency range of WIFI P2P, then terminal can be selected according to parameter information 2.4G frequency ranges or
Person 5G frequency ranges are as personal hot spot or the working frequency range of WIFI P2P.
140, the working frequency range of the WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect.
When selecting 2.4G frequency ranges, then WIFI is established with WIFI peer ends of the connection to be established based on 2.4G frequency ranges and connect;It is elected
When selecting 5G frequency ranges, then WIFI is established with WIFI peer ends of the connection to be established based on 5G frequency ranges and connect.
From the foregoing, it will be observed that the embodiment of the present application is by detecting whether that the WIFI connections for receiving WIFI peer ends of the connection to be established are built
Vertical request;Request is established if detecting and receiving WIFI connections, get parms information;The work of WIFI is selected according to parameter information
Make frequency range;The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect, so as to basis
Parameter information automatically selects the working frequency range of WIFI, realizes and is automatically selected to WIFI frequency ranges, improves WIFI Frequency Band Selections
Flexibility.
Citing, is described in further detail by method described in above-described embodiment below.Also referring to Fig. 3 and Fig. 4,
The detailed process of the WIFI Frequency Band Selection methods of the present embodiment can be as follows:
110, detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established.
Wherein, which supports that personal hot spot and WIFI P2P functions, WIFI P2P are a kind of WIFI point-to-point connections skills
Art can be supported directly to establish TCP/IP connections between WIFI terminal at two, not need to the participation of AP;Personal hot spot refers to
GPRS, 3G or 4G signal that terminal receives are converted into WIFI signal to retransmit away.
It should be noted that terminal first has to open personal hot spot or WIFI P2P functions, it is then based on the function
Under scene, detect whether that receiving WIFI connections establishes request, the wherein WIFI connections establish request by WIFI connections to be established
Opposite end is sent.
WIFI peer ends of the connection to be established first turn on WIFI functions of search, search for the WIFI near it, wherein usually can be with
It is to click WIFI icons with finger on the touchscreen to start WIFI search, WIFI peer ends of the connection to be established search neighbouring one
After a little WIFI, so that it may establish request to select one of WIFI to send WIFI connections.In this example, it is assumed that this is yet to be built
Vertical WIFI peer ends of the connection send WIFI connections to terminal and establish request, then the terminal, which is detected by, receives WIFI connections foundation
Request.
In several embodiments it is contemplated that arriving personal hot spot etc., there may be setting authorization messages to be waited for such as the case where password
WIFI peer ends of the connection are established to when terminal transmission WIFI connections foundation request, it is also necessary to while sending authorization message to terminal.
Request is established if 1201, detecting and receiving WIFI connections, to WIFI peer ends of the connection transmission data packet to be established,
Record sending time.
1202, the data packet that WIFI peer ends of the connection to be established return is received, receiving time is recorded.
1203, the time difference is determined according to sending time and receiving time.
1204, it combines the rate of electromagnetic transmission to determine at a distance from WIFI peer ends of the connection to be established according to the time difference, obtains
To distance parameter.
In some embodiments, distance parameter=(data packet receiving time-data packet sending time) * electromagnetic transmissions
Rate/2.
Therefore, it after detecting that receiving WIFI connections establishes request, can be sent to WIFI peer ends of the connection to be established
Data packet, while recording sending time;After WIFI peer ends of the connection to be established receive data packet, so that it may with returned data
Packet, then can receive the data packet of return, and record receiving time, then can be true according to sending time and receiving time
It fixes time difference, finally combines the rate of electromagnetic transmission to determine at a distance from WIFI peer ends of the connection to be established according to the time difference, obtain
To distance parameter.It is understood that since transmission data packet and received data packet have passed through transmission process twice, counting
When calculating distance parameter, after it will be multiplied by electromagnetic transmission rate the time difference, it is also necessary to divided by 2.
In some embodiments it is possible to be first to record transmission to WIFI peer ends of the connection transmission data packet to be established
Then time sends a command to WIFI peer ends of the connection to be established, data packet is received to obtain WIFI peer ends of the connection to be established
Then receiving time can determine the time difference according to the sending time and receiving time, then multiplied by the transmission speed with electromagnetic wave
Rate obtains distance parameter.
In some embodiments, it when terminal detects that receiving WIFI connections establishes request, can also detect whether to connect
The authorization message that WIFI peer ends of the connection to be established are sent is received, awarding for WIFI peer ends of the connection transmission to be established is received if detecting
Weigh information, then whether detect authorization message correct, if correctly, to WIFI peer ends of the connection transmission data packet to be established, record hair
Send the time;The data packet that WIFI peer ends of the connection to be established return is received, receiving time is recorded;According to sending time and receiving time
Determine the time difference;It combines the rate of electromagnetic transmission to determine at a distance from WIFI peer ends of the connection to be established according to the time difference, obtains
Distance parameter;If incorrect, prompt message is generated, which is sent to WIFI peer ends of the connection to be established, it is described to carry
Show for prompting WIFI peer ends of the connection authorization message mistake to be established.
Wherein, after obtaining distance parameter, so that it may to select the working frequency range of WIFI, Ke Yishi based on the distance parameter
The working frequency range of WIFI is selected according to following below scheme:
1301, detect whether that there is only a distance parameters.
If 1302, detecting, there is only a distance parameters, and whether detecting distance parameter is less than predetermined threshold value, if detection
It is less than predetermined threshold value to distance parameter, then executes 1303, distance parameter is not less than predetermined threshold value if detecting, executes 1304.
1303,5G frequency ranges are selected.
1304,2.4G frequency ranges are selected.
Can also be the working frequency range that WIFI is selected according to following below scheme after obtaining distance parameter:
1311, detect whether that there is only at least two distance parameters.
If 1312, detecting the presence of at least two distance parameters, selected from least two distance parameters maximum
Distance parameter obtains target distance parameter.
1313, whether detection target distance parameter is less than predetermined threshold value, if detecting, target distance parameter is less than default threshold
Value, then execute 1314, if detecting, target distance parameter is not less than predetermined threshold value, executes 1315.
1314,5G frequency ranges are selected.
1315,2.4G frequency ranges are selected.
1401, WIFI is established with WIFI peer ends of the connection to be established based on 5G frequency ranges to connect.
1402, WIFI is established with WIFI peer ends of the connection to be established based on 2.4G frequency ranges to connect.
It is understood that there may be one or more than one WIFI peer ends of the connection to be established send WIFI connections
Establish request, thus obtained distance parameter may be one or more than one, however for a WIFI connection to be established
The processing of opposite end and more than one WIFI peer ends of the connection to be established but is different, it is therefore desirable to detect whether that there is only one
Distance parameter, or detect whether that there are at least two distance parameters.
When detect there is only when a distance parameter, can directly detect the distance parameter whether be less than predetermined threshold value.
It is understood that since 5G is for 2.4G, the farthest connection of support is connected steady when remotely connected apart from shorter
Qualitative difference, therefore when remotely connected, can select 2.4G frequency ranges, but the rate bandwidth bigger of 5G frequency ranges, closely
When, network can be more preferable compared to for 2.4G frequency ranges, therefore when short distance connects, so that it may to select 5G frequency ranges.It therefore can be pre-
One threshold value is first set, when distance parameter is less than the threshold value, so that it may to select 5G frequency ranges, when distance parameter is not less than the threshold value
When, so that it may to select 2.4G frequency ranges.
When detecting the presence of at least two distance parameters, in order to ensure can be built with each WIFI peer ends of the connection to be established
Vertical WIFI connections, therefore the distance for the WIFI peer ends of the connection to be established that can be subject at a distance from local terminal farthest, to select
The working frequency range of WIFI, therefore the maximum distance parameter of distance parameter can be selected from least two distance parameters, it obtains
Target distance parameter selects the working frequency range of WIFI according to the target distance parameter, when target distance parameter is less than the threshold value,
5G frequency ranges are may be selected by, when target distance parameter is not less than the threshold value, so that it may to select 2.4G frequency ranges.
Wherein, which can be arranged according to actual conditions, you can be in the distance limits for reaching 5G frequency ranges, can also
When being held in 5G frequency ranges in connection, remains to keep relatively good network transmission, etc., be not specifically limited herein, with reality
Subject to the demand of border.
For example, the method for the present embodiment can be realized with following below scheme, wherein applied at end in WIFI Frequency Band Selection methods
For holding on a:
User a opens a terminal the personal hot spot function on a, and terminal a can detect whether always to receive WIFI to be established
Request is established in the WIFI connections that peer end of the connection is sent, at this point, user b opens WIFI functions of search, searches for neighbouring WIFI, if with
Family b then may search for the WIFI signal based on personal hot spot of terminal a, then in a certain range of the present positions user a
It is to have sent WIFI connections to terminal a to establish request that user b, which can be clicked and be connected the WIFI signal corresponding WIFI, terminal b, this
When, terminal a, which is detected by, receives the WIFI connections foundation request that terminal b is sent, and terminal b hairs are received when terminal a is detected
When request is established in the WIFI connections sent, then sending time can be recorded to terminal b transmission data packets;Terminal b receives the data
After packet, a data packet will be returned to terminal a, then terminal a receives the data packet that terminal b is returned, and records receiving time;
The time difference is determined according to sending time and receiving time;The rate of electromagnetic transmission is combined to determine with terminal b's according to the time difference
Distance obtains distance parameter;Then terminal a detects whether that there is only a distance parameters;Due to only receiving terminal b hairs at this time
Request is established in the WIFI connections sent, therefore terminal a detects then whether detecting distance parameter is low there is only a distance parameter
In predetermined threshold value;If detecting, distance parameter is less than predetermined threshold value, selects 5G frequency ranges;If detecting distance parameter not less than pre-
If threshold value, then 2.4G frequency ranges are selected.At this time, it is assumed that terminal a detect distance parameter be less than predetermined threshold value, then select 5G frequency ranges with
Terminal b establishes WIFI connections.
In some embodiments, if having multiple terminals to send WIFI connections to terminal a establishes request, terminal a is then examined
It measures there are at least two distance parameters, at this point, terminal a selects the work of WIFI using the maximum terminal of distance parameter as standard
Frequency range connect to make each terminal for sending WIFI connections foundation request to terminal a that can establish WIFI with terminal a.Therefore
If detecting the presence of at least two distance parameters, maximum distance parameter is selected from least two distance parameters, is obtained
Target distance parameter;Detect whether target distance parameter is less than predetermined threshold value;If detecting, target distance parameter is less than default threshold
Value, then select 5G frequency ranges;If detecting, target distance parameter is not less than predetermined threshold value, selects 2.4G frequency ranges.
From the foregoing, it will be observed that the embodiment of the present application is by detecting whether that the WIFI connections for receiving WIFI peer ends of the connection to be established are built
Vertical request;Request is established if detecting and receiving WIFI connections, get parms information;The work of WIFI is selected according to parameter information
Make frequency range;The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect, so as to basis
Parameter information automatically selects the working frequency range of WIFI, realizes and is automatically selected to WIFI frequency ranges, improves WIFI Frequency Band Selections
Flexibility.
Fig. 5 and Fig. 6 are please participated in together, and the detailed process of the WIFI Frequency Band Selection methods of the present embodiment can be as follows:
110, detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established.
Wherein, which supports that personal hot spot and WIFI P2P functions, WIFI P2P are a kind of WIFI point-to-point connections skills
Art can be supported directly to establish TCP/IP connections between WIFI terminal at two, not need to the participation of AP;Personal hot spot refers to
GPRS, 3G or 4G signal that terminal receives are converted into WIFI signal to retransmit away.
It should be noted that terminal first has to open personal hot spot or WIFI P2P functions, it is then based on the function
Under scene, detect whether that receiving WIFI connections establishes request, the wherein WIFI connections establish request by WIFI connections to be established
Opposite end is sent.
WIFI peer ends of the connection to be established first turn on WIFI functions of search, search for the WIFI near it, wherein usually can be with
It is to click WIFI icons with finger on the touchscreen to start WIFI search, WIFI peer ends of the connection to be established search neighbouring one
After a little WIFI, so that it may establish request to select one of WIFI to send WIFI connections.In this example, it is assumed that this is yet to be built
Vertical WIFI peer ends of the connection send WIFI connections to terminal and establish request, then the terminal, which is detected by, receives WIFI connections foundation
Request.
In several embodiments it is contemplated that arriving personal hot spot etc., there may be setting authorization messages to be waited for such as the case where password
WIFI peer ends of the connection are established to when terminal transmission WIFI connections foundation request, it is also necessary to while sending authorization message to terminal.
Request is established if 1221, detecting and receiving WIFI connections, generates instruction.
1222, WIFI peer ends of the connection to be established are sent instructions to.
1223, the signal strength for receiving the WIFI peer ends of the connection to be established that WIFI peer ends of the connection to be established return, obtains letter
Number intensive parameter.
After detecting that receiving WIFI connections establishes request, instruction can also be generated, the instruction is yet to be built for obtaining
The signal strength of vertical WIFI peer ends of the connection, WIFI peer ends of the connection to be established, WIFI peer ends of the connection to be established are sent to by the instruction
After receiving the instruction, so that it may which, to send over the signal strength of itself, what local terminal can receive that the return comes waits for
The signal strength for establishing WIFI peer ends of the connection, obtains signal strength parameter.
In some embodiments, it when terminal detects that receiving WIFI connections establishes request, can also detect whether to connect
The authorization message that WIFI peer ends of the connection to be established are sent is received, awarding for WIFI peer ends of the connection transmission to be established is received if detecting
Information is weighed, then whether correct, if correctly, generating instruction, send instructions to WIFI connections pair to be established if detecting authorization message
End;The signal strength for receiving the WIFI peer ends of the connection to be established that WIFI peer ends of the connection to be established return, obtains signal strength parameter;
If incorrect, prompt message is generated, which is sent to WIFI peer ends of the connection to be established, the prompt is for prompting
WIFI peer ends of the connection authorization message mistake to be established.
Wherein, after obtaining signal strength parameter, so that it may to select the work frequency of WIFI based on the signal strength parameter
Section, can be the working frequency range that WIFI is selected according to following below scheme:
1321, detect whether that there is only a signal strength parameters.
If 1322, detecting there is only a signal strength parameter, detect whether signal strength parameter is less than preset value,
If detecting, signal strength parameter is less than preset value, executes 1323, if detecting, signal strength parameter is not less than preset value,
Execute 1324.
1323,2.4G frequency ranges are selected.
1324,5G frequency ranges are selected.
Can also be the working frequency range that WIFI is selected according to following below scheme after obtaining signal strength parameter:
1331, detect whether that there are at least two signal strength parameters.
If 1332, detecting the presence of at least two signal strength parameters, chosen from least two signal strength parameters
Go out minimum signal strength parameter, obtains Target Signal Strength parameter.
1333, whether detection Target Signal Strength parameter is less than preset value, if detecting, Target Signal Strength parameter is less than
Preset value then executes 1334, if detecting, Target Signal Strength parameter is not less than preset value, executes 1335.
1334,2.4G frequency ranges are selected.
1335,5G frequency ranges are selected.
1421, WIFI is established with WIFI peer ends of the connection to be established based on 2.4G frequency ranges to connect.
1422, WIFI is established with WIFI peer ends of the connection to be established based on 5G frequency ranges to connect.
It is built it is understood that sending WIFI connections there may be one or more WIFI peer ends of the connection to be established
Vertical request, thus obtained signal strength parameter may be one or more than one, however a WIFI to be established is connected
The processing for connecing opposite end and more than one WIFI peer ends of the connection to be established but is different, it is therefore desirable to detect whether that there is only one
A signal strength parameter, or detect whether that there are at least two signal strength parameters.
When detecting there is only when a signal strength parameter, then it can directly detect whether the signal strength parameter is less than
Preset value.It is understood that since 2.4G is for 5G, ability through walls is strong, practices muscle distance far, stability higher,
In view of the complexity of practical JA(junction ambient), therefore the working frequency range of WIFI can be selected according to signal strength parameter, work as letter
When number intensive parameter is less than preset value, 2.4G frequency ranges are selected, when signal strength parameter is not less than preset value, select 5G frequency ranges.
When detecting the presence of at least two signal strength parameters, in order to ensure to connect with each WIFI to be established pair
WIFI connections are established at end, therefore can be subject to the signal strengths of the minimum WIFI peer ends of the connection to be established of signal strength, to select
The working frequency range of WIFI is selected, therefore the minimum signal strength of signal strength can be selected from least two signal strength parameters
Parameter obtains Target Signal Strength parameter, according to the working frequency range of Target Signal Strength parameter selection WIFI, works as echo signal
When intensive parameter is less than the preset value, so that it may to select 2.4G frequency ranges, when Target Signal Strength parameter is not less than the preset value,
It may be selected by 5G frequency ranges.
Wherein, which can be arranged according to actual conditions, be not specifically limited herein, be subject to actual demand.
For example, the method for the present embodiment can be realized with following below scheme, wherein applied at end in WIFI Frequency Band Selection methods
For holding on a:
User a opens a terminal the personal hot spot function on a, and terminal a can detect whether always to receive WIFI to be established
Request is established in the WIFI connections that peer end of the connection is sent, at this point, user b opens WIFI functions of search, searches for neighbouring WIFI, if with
Family b then may search for the WIFI signal based on personal hot spot of terminal a, then in a certain range of the present positions user a
It is to have sent WIFI connections to terminal a to establish request that user b, which can be clicked and be connected the WIFI signal corresponding WIFI, terminal b, this
When, terminal a, which is detected by, receives the WIFI connections foundation request that terminal b is sent, and terminal b hairs are received when terminal a is detected
When request is established in the WIFI connections sent, then instruction can be generated, terminal b is sent instructions to, the instruction is for obtaining terminal b's
Signal strength;Terminal b is received after the instruction, so that it may which, the signal strength of terminal b is sent to terminal a, then terminal a can
To receive the signal strength for the WIFI peer ends of the connection to be established that terminal b is returned, signal strength parameter is obtained;Then terminal a is detected
Whether there is only a signal strength parameters;Request is established due to only receiving the WIFI connections that terminal b is sent at this time, eventually
End a detects that there is only a signal strength parameters, then detects whether signal strength parameter is less than preset value, if detecting letter
Number intensive parameter is less than preset value, selects 2.4G frequency ranges;If detecting, signal strength parameter is not less than preset value, selects 5G frequencies
Section;At this time, it is assumed that terminal a detects that signal strength parameter is less than preset value, then 2.4G frequency ranges is selected to establish WIFI companies with terminal b
It connects.
In some embodiments, if having multiple terminals to send WIFI connections to terminal a establishes request, terminal a is then examined
It measures there are at least two signal strength parameters, at this point, terminal a is selected using the minimum terminal of signal strength parameter as standard
The working frequency range of WIFI, to make each terminal for sending WIFI connections foundation request to terminal a that can establish WIFI with terminal a
Connection.If therefore detecting the presence of at least two signal strength parameters, selected most from least two signal strength parameters
Big signal strength parameter obtains Target Signal Strength parameter;Detect whether Target Signal Strength parameter is less than predetermined threshold value;If
It detects that Target Signal Strength parameter is less than predetermined threshold value, then selects 5G frequency ranges;If detecting, Target Signal Strength parameter is not low
In predetermined threshold value, then 2.4G frequency ranges are selected.
From the foregoing, it will be observed that the embodiment of the present application is by detecting whether that the WIFI connections for receiving WIFI peer ends of the connection to be established are built
Vertical request;Request is established if detecting and receiving WIFI connections, get parms information;The work of WIFI is selected according to parameter information
Make frequency range;The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect, so as to basis
Parameter information automatically selects the working frequency range of WIFI, realizes and is automatically selected to WIFI frequency ranges, improves WIFI Frequency Band Selections
Flexibility.
When it is implemented, the application is not limited by the execution sequence of described each step, conflict is not being generated
In the case of, certain steps can also use other sequences to carry out or be carried out at the same time.
The embodiment of the present application also provides a kind of WIFI frequency band selection devices, and the WIFI frequency band selection devices can be integrated in
In electronic equipment, the electronic equipment can be the equipment that smart mobile phone, tablet computer etc. support WIFI.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of WIFI frequency band selection devices provided by the embodiments of the present application.WIFI frequencies
Section selection device 200 may include:Detection unit 210, acquiring unit 220 and establish unit 240 at selecting unit 230.
Detection unit 210, for detecting whether request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established.
Acquiring unit 220, if for detecting that receiving the WIFI connections establishes request, get parms information.
Selecting unit 230, the working frequency range for selecting WIFI according to the parameter information, wherein the work of the WIFI
Include 2.4G frequency ranges and 5G frequency ranges as frequency range.
Unit 240 is established, working frequency range and the WIFI peer ends of the connection to be established for the WIFI based on selection establish WIFI
Connection.
As shown in Figure 8 a, in some embodiments, acquiring unit 220 may include:
First record subelement 2201, for WIFI peer ends of the connection transmission data packet to be established, recording sending time.
Second record subelement 2202, the data packet returned for receiving WIFI peer ends of the connection to be established, when record receives
Between.
First determination subelement 2203, for determining the time difference according to sending time and receiving time.
Second determination subelement 2204, for being combined the rate of electromagnetic transmission to determine and WIFI to be established according to the time difference
The distance of peer end of the connection, obtains distance parameter.
As shown in Figure 8 b, in some embodiments, acquiring unit 220 may include:
Subelement 2211 is generated, for generating instruction.
Wherein, which is used to obtain the signal strength of WIFI peer ends of the connection to be established.
Transmission sub-unit 2212, for sending instructions to WIFI peer ends of the connection to be established.
Receiving subelement 2213, the letter for receiving the WIFI peer ends of the connection to be established that WIFI peer ends of the connection to be established return
Number intensity, obtains signal strength parameter.
As shown in Figure 8 c, in some embodiments, selecting unit 230 may include:
First detection sub-unit 2301, for detecting whether there is only a distance parameters.
Second detection sub-unit 2302, if for detecting that whether is detecting distance parameter there is only a distance parameter
Less than predetermined threshold value.
If first choice subelement 2303 selects 5G frequency ranges for detecting that distance parameter is less than predetermined threshold value.
If second selection subelement 2304 selects 2.4G frequency ranges for detecting that distance parameter is not less than predetermined threshold value.
In some embodiments, first detection sub-unit 2301 can be also used for:Detect whether that there is only one
Signal strength parameter;
Second detection sub-unit 2302 can be also used for:If detecting there is only a signal strength parameter, examine
Survey whether signal strength parameter is less than preset value;
The first choice subelement 2303 can be also used for:If detecting, signal strength parameter is less than preset value, selects
Select 2.4G frequency ranges;
The second selection subelement 2304 can be also used for:If detecting, signal strength parameter is not less than preset value,
Select 5G frequency ranges.
As shown in figure 8d, in some embodiments, selecting unit 230 may include:
Third detection sub-unit 2311, for detecting whether there are at least two distance parameters.
Subelement 2312 is chosen, if for detecting the presence of at least two distance parameters, from least two distance parameters
In select maximum distance parameter, obtain target distance parameter.
4th detection sub-unit 2313, for detecting whether target distance parameter is less than predetermined threshold value.
Third selects subelement 2314, if for detecting that target distance parameter is less than predetermined threshold value, selects 5G frequency ranges.
If 4th selection subelement 2315 selects 2.4G for detecting that target distance parameter is not less than predetermined threshold value
Frequency range.
In some embodiments, the third detection sub-unit 2311 can be also used for:Detect whether there is at least two
A signal strength parameter;
The selection subelement 2312 can be also used for:If detecting the presence of at least two signal strength parameters, to
Minimum signal strength parameter is selected in few two signal strength parameters, obtains Target Signal Strength parameter;
4th detection sub-unit 2313 can be also used for:Detect whether Target Signal Strength parameter is less than preset value;
The third selection subelement 2314 can be also used for:If detecting, Target Signal Strength parameter is less than preset value,
Then select 2.4G frequency ranges;
The 4th selection subelement 2315 can be also used for:If detecting Target Signal Strength parameter not less than default
Value, then select 5G frequency ranges.
As figure 8 e shows, in some embodiments, establishing unit 240 may include:
First establishes subelement 2401, if for selecting 2.4G frequency ranges, is connect with WIFI to be established based on 2.4G frequency ranges
WIFI connections are established in opposite end.
Second establishes subelement 2402, if for selecting 5G frequency ranges, based on 5G frequency ranges and WIFI peer ends of the connection to be established
Establish WIFI connections.
When it is implemented, the above modules can be realized as independent entity, arbitrary combination can also be carried out, is made
It is realized for same or several entities.
From the foregoing, it will be observed that the embodiment of the present application is by detecting whether that the WIFI connections for receiving WIFI peer ends of the connection to be established are built
Vertical request;Request is established if detecting and receiving WIFI connections, get parms information;The work of WIFI is selected according to parameter information
Make frequency range;The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect, so as to basis
Parameter information automatically selects the working frequency range of WIFI, realizes and is automatically selected to WIFI frequency ranges, improves WIFI Frequency Band Selections
Flexibility.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling institute
The computer program stored in memory is stated, for executing the step in WIFI Frequency Band Selections method provided in this embodiment.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet computer or smart mobile phone.Referring to Fig. 9,
Fig. 9 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
The mobile terminal 300 may include the components such as display unit 301, memory 302, processor 303.Art technology
Personnel are appreciated that mobile terminal structure shown in Fig. 9 does not constitute the restriction to mobile terminal, may include than illustrating more
More or less component either combines certain components or different components arrangement.
Display unit 301 may include such as showing screen.
Memory 302 can be used for storing application program and data.Include that can hold in the application program that memory 302 stores
Line code.Application program can form various functions module.Processor 303 is stored in the application journey of memory 302 by operation
Sequence, to perform various functions application and data processing.
Processor 303 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the application program being stored in memory 302, and is called and is stored in memory 302
Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.
In the present embodiment, the processor 303 in mobile terminal can be according to following instruction, will be one or more
The corresponding executable code of process of application program is loaded into memory 302, and is stored in storage by processor 303 to run
Application program in device 302, to realize step:
Detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;If detecting described in receiving
Request is established in WIFI connections, then get parms information;The working frequency range of WIFI is selected according to the parameter information, wherein described
The working frequency range of WIFI includes 2.4G frequency ranges and 5G frequency ranges;The working frequency range of WIFI based on selection is connect pair with WIFI to be established
WIFI connections are established at end.
Referring to Fig. 10, mobile terminal 400 may include display unit 401, memory 402, processor 403, input list
The components such as member 404, output unit 405.
Display unit 401 may include such as showing screen.
Memory 402 can be used for storing application program and data.Include that can hold in the application program that memory 402 stores
Line code.Application program can form various functions module.Processor 403 is stored in the application journey of memory 402 by operation
Sequence, to perform various functions application and data processing.
Processor 403 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the application program being stored in memory 402, and is called and is stored in memory 402
Data execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.
Input unit 404 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and
Generate keyboard related with user setting and function control, mouse, operating lever, optics or the input of trace ball signal.
Output unit 405 can be used for showing information input by user or the information and mobile terminal that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.
Output unit may include display panel.
In the present embodiment, the processor 403 in mobile terminal can be according to following instruction, will be one or more
The corresponding executable code of process of application program is loaded into memory 402, and is stored in storage by processor 403 to run
Application program in device 402, to realize step:
Detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;If detecting described in receiving
Request is established in WIFI connections, then get parms information;The working frequency range of WIFI is selected according to the parameter information, wherein described
The working frequency range of WIFI includes 2.4G frequency ranges and 5G frequency ranges;The working frequency range of WIFI based on selection is connect pair with WIFI to be established
WIFI connections are established at end.
In some embodiments, it when processor 403 executes the step of the information that gets parms, can execute:To waiting for
WIFI peer end of the connection transmission data packets are established, sending time is recorded;The data packet that WIFI peer ends of the connection to be established return is received, note
Record receiving time;The time difference is determined according to the sending time and receiving time;Electromagnetic transmission is combined according to the time difference
Rate determine at a distance from WIFI peer ends of the connection to be established, obtain distance parameter.
In some embodiments, processor 403 executes the working frequency range that WIFI is selected according to the parameter information
Step when, can execute:Detect whether that there is only a distance parameters;If detecting there is only a distance parameter, examine
Survey whether the distance parameter is less than predetermined threshold value;If detecting, the distance parameter is less than predetermined threshold value, selects 5G frequency ranges;
If detecting, the distance parameter is not less than predetermined threshold value, selects 2.4G frequency ranges.
In some embodiments, processor 403 executes the working frequency range that WIFI is selected according to the parameter information
Step when, can also be performed:Detect whether that there are at least two distance parameters;If detecting the presence of at least two distance ginsengs
Number, then select maximum distance parameter from least two distance parameter, obtain target distance parameter;Detect the mesh
Whether subject distance parameter is less than predetermined threshold value;If detecting, the target distance parameter is less than predetermined threshold value, selects 5G frequency ranges;
If detecting, the target distance parameter is not less than predetermined threshold value, selects 2.4G frequency ranges.
In some embodiments, it when processor 403 executes the step of the information that gets parms, can also be performed:It is raw
At instruction, described instruction is used to obtain the signal strength of WIFI peer ends of the connection to be established;Described instruction is sent to and waits establishing
WIFI peer ends of the connection;The signal strength for receiving the WIFI peer ends of the connection to be established that WIFI peer ends of the connection to be established return, obtains letter
Number intensive parameter.
In some embodiments, processor 403 executes the working frequency range that WIFI is selected according to the parameter information
Step when, can also be performed:Detect whether that there is only a signal strength parameters;If detecting, there is only a signal strengths
Parameter, then detect whether the signal strength parameter is less than preset value;If detecting, the signal strength parameter is less than preset value,
Then select 2.4G frequency ranges;If detecting, the signal strength parameter is not less than preset value, selects 5G frequency ranges.
In some embodiments, processor 403 executes the working frequency range that WIFI is selected according to the parameter information
Step when, can also be performed:Detect whether that there are at least two signal strength parameters;If detecting the presence of at least two signals
Intensive parameter then selects minimum signal strength parameter from least two signal strength parameter, obtains echo signal
Intensive parameter;Detect whether the Target Signal Strength parameter is less than preset value;If detecting the Target Signal Strength parameter
Less than preset value, then 2.4G frequency ranges are selected;If detecting, the Target Signal Strength parameter is not less than preset value, selects 5G frequencies
Section.
In some embodiments, processor 403 executes the working frequency range of the WIFI according to selection and waits establishing
When WIFI peer ends of the connection establish the step of WIFI connections, it can execute:If selection 2.4G frequency ranges, based on 2.4G frequency ranges with it is yet to be built
Vertical WIFI peer ends of the connection establish WIFI connections;If selecting 5G frequency ranges, established based on 5G frequency ranges and WIFI peer ends of the connection to be established
WIFI connections.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, the detailed description above with respect to WIFI Frequency Band Selection methods is may refer to, details are not described herein again.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described
When computer program is run on computers, the computer executes the Frequency Band Selection sides WIFI described in any of the above-described embodiment
Method.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by computer program, and the computer program can be stored in meter
In calculation machine readable storage medium storing program for executing, the storage medium can include but is not limited to:Read-only memory (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
WIFI Frequency Band Selections method, apparatus, storage medium and the electronic equipment that the embodiment of the present application is provided above into
It has gone and has been discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, the above implementation
The explanation of example is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art, according to
According to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification
It should not be construed as the limitation to the application.
Claims (11)
1. a kind of WIFI Frequency Band Selections method, which is characterized in that including:
Detect whether that request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;
Request is established if detecting and receiving the WIFI connections, get parms information;
According to the parameter information select WIFI working frequency range, wherein the working frequency range of the WIFI include 2.4G frequency ranges and
5G frequency ranges;
The working frequency range of WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and is connect.
2. WIFI Frequency Band Selections method according to claim 1, which is characterized in that it is described get parms information the step of wrap
It includes:
To WIFI peer ends of the connection transmission data packet to be established, sending time is recorded;
The data packet that WIFI peer ends of the connection to be established return is received, receiving time is recorded;
The time difference is determined according to the sending time and receiving time;
It combines the rate of electromagnetic transmission to determine at a distance from WIFI peer ends of the connection to be established according to the time difference, obtains distance
Parameter.
3. WIFI Frequency Band Selections method according to claim 2, which is characterized in that described to be selected according to the parameter information
The step of working frequency range of WIFI includes:
Detect whether that there is only a distance parameters;
If detecting there is only a distance parameter, detect whether the distance parameter is less than predetermined threshold value;
If detecting, the distance parameter is less than predetermined threshold value, selects 5G frequency ranges;
If detecting, the distance parameter is not less than predetermined threshold value, selects 2.4G frequency ranges.
4. WIFI Frequency Band Selections method according to claim 2, which is characterized in that described to be selected according to the parameter information
The step of working frequency range of WIFI includes:
Detect whether that there are at least two distance parameters;
If detecting the presence of at least two distance parameters, maximum distance ginseng is selected from least two distance parameter
Number, obtains target distance parameter;
Detect whether the target distance parameter is less than predetermined threshold value;
If detecting, the target distance parameter is less than predetermined threshold value, selects 5G frequency ranges;
If detecting, the target distance parameter is not less than predetermined threshold value, selects 2.4G frequency ranges.
5. WIFI Frequency Band Selections method according to claim 1, which is characterized in that it is described get parms information the step of wrap
It includes:
Instruction is generated, described instruction is used to obtain the signal strength of WIFI peer ends of the connection to be established;
Described instruction is sent to WIFI peer ends of the connection to be established;
The signal strength for receiving the WIFI peer ends of the connection to be established that WIFI peer ends of the connection to be established return obtains signal strength ginseng
Number.
6. WIFI Frequency Band Selections method according to claim 5, which is characterized in that described to be selected according to the parameter information
The step of working frequency range of WIFI includes:
Detect whether that there is only a signal strength parameters;
If detecting there is only a signal strength parameter, detect whether the signal strength parameter is less than preset value;
If detecting, the signal strength parameter is less than preset value, selects 2.4G frequency ranges;
If detecting, the signal strength parameter is not less than preset value, selects 5G frequency ranges.
7. WIFI Frequency Band Selections method according to claim 5, which is characterized in that described to be selected according to the parameter information
The step of working frequency range of WIFI includes:
Detect whether that there are at least two signal strength parameters;
If detecting the presence of at least two signal strength parameters, selected from least two signal strength parameter minimum
Signal strength parameter, obtain Target Signal Strength parameter;
Detect whether the Target Signal Strength parameter is less than preset value;
If detecting, the Target Signal Strength parameter is less than preset value, selects 2.4G frequency ranges;
If detecting, the Target Signal Strength parameter is not less than preset value, selects 5G frequency ranges.
8. according to the either WIFI Frequency Band Selection methods described in 4 or 6 or 7 of claim 3, which is characterized in that the basis
The working frequency range of the WIFI of selection establishes the step of WIFI is connect with WIFI peer ends of the connection to be established:
If selecting 2.4G frequency ranges, WIFI is established with WIFI peer ends of the connection to be established based on 2.4G frequency ranges and is connect;
If selecting 5G frequency ranges, WIFI is established with WIFI peer ends of the connection to be established based on 5G frequency ranges and is connect.
9. a kind of WIFI frequency band selection devices, which is characterized in that including:
Detection unit, for detecting whether request is established in the WIFI connections for receiving WIFI peer ends of the connection to be established;
Acquiring unit, if for detecting that receiving the WIFI connections establishes request, get parms information;
Selecting unit, the working frequency range for selecting WIFI according to the parameter information, wherein the working frequency range packet of the WIFI
Include 2.4G frequency ranges and 5G frequency ranges;
Unit is established, the working frequency range for the WIFI based on selection is established WIFI with WIFI peer ends of the connection to be established and connect.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that when the computer program is in computer
When upper execution so that the computer executes such as method described in any item of the claim 1 to 8.
11. a kind of electronic equipment, including memory, processor, which is characterized in that the processor is by calling the memory
The computer program of middle storage, for executing such as method described in any item of the claim 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810564835.8A CN108770068B (en) | 2018-06-04 | 2018-06-04 | WIFI frequency band selection method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810564835.8A CN108770068B (en) | 2018-06-04 | 2018-06-04 | WIFI frequency band selection method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108770068A true CN108770068A (en) | 2018-11-06 |
CN108770068B CN108770068B (en) | 2022-10-21 |
Family
ID=64002457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810564835.8A Active CN108770068B (en) | 2018-06-04 | 2018-06-04 | WIFI frequency band selection method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108770068B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109982399A (en) * | 2019-03-04 | 2019-07-05 | 成都小步创想慧联科技有限公司 | Improve the method and router of router 5G frequency range utilization rate |
CN110166073A (en) * | 2019-06-14 | 2019-08-23 | Oppo广东移动通信有限公司 | Radio circuit and electronic equipment |
CN110190860A (en) * | 2019-06-14 | 2019-08-30 | Oppo广东移动通信有限公司 | Radio circuit and electronic equipment |
CN110266333A (en) * | 2019-06-14 | 2019-09-20 | Oppo广东移动通信有限公司 | Radio circuit and electronic equipment |
CN110913450A (en) * | 2019-11-28 | 2020-03-24 | 宇龙计算机通信科技(深圳)有限公司 | Control method and device for mobile hotspot, mobile terminal and storage medium |
CN111123191A (en) * | 2020-03-26 | 2020-05-08 | 芯海科技(深圳)股份有限公司 | Electric energy meter, electric energy meter calibration device, meter calibration stand and electric energy meter calibration method |
CN111148182A (en) * | 2019-12-30 | 2020-05-12 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
CN113099422A (en) * | 2021-03-10 | 2021-07-09 | 惠州Tcl移动通信有限公司 | P2P connection compatibility method, intelligent terminal and computer readable storage medium |
WO2021213320A1 (en) * | 2020-04-20 | 2021-10-28 | 中兴通讯股份有限公司 | Wifi hotspot management method, electronic device, and storage medium |
CN114095920A (en) * | 2020-07-29 | 2022-02-25 | 阿里巴巴集团控股有限公司 | Communication method, system, apparatus, device and storage medium |
CN114286424A (en) * | 2021-12-24 | 2022-04-05 | 西安闻泰信息技术有限公司 | Method for switching connection, terminal equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105898813A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Frequency band switching method based on wireless device and wireless device |
US20160302125A1 (en) * | 2013-11-13 | 2016-10-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and Arrangement in a Telecommunication System |
CN107708119A (en) * | 2017-09-26 | 2018-02-16 | 广东欧珀移动通信有限公司 | A kind of distribution method of communication equipment and its communications band, readable storage medium storing program for executing |
-
2018
- 2018-06-04 CN CN201810564835.8A patent/CN108770068B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160302125A1 (en) * | 2013-11-13 | 2016-10-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and Arrangement in a Telecommunication System |
CN105898813A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Frequency band switching method based on wireless device and wireless device |
CN107708119A (en) * | 2017-09-26 | 2018-02-16 | 广东欧珀移动通信有限公司 | A kind of distribution method of communication equipment and its communications band, readable storage medium storing program for executing |
Non-Patent Citations (1)
Title |
---|
RENO: "R4-1610076:CR on Bluetooth Wifi requirement for indoor positioning", 《3GPP TSG_RAN\WG4_RADIO》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109982399A (en) * | 2019-03-04 | 2019-07-05 | 成都小步创想慧联科技有限公司 | Improve the method and router of router 5G frequency range utilization rate |
CN110266333B (en) * | 2019-06-14 | 2021-08-24 | Oppo广东移动通信有限公司 | Radio frequency circuit and electronic equipment |
CN110190860A (en) * | 2019-06-14 | 2019-08-30 | Oppo广东移动通信有限公司 | Radio circuit and electronic equipment |
CN110266333A (en) * | 2019-06-14 | 2019-09-20 | Oppo广东移动通信有限公司 | Radio circuit and electronic equipment |
CN110166073A (en) * | 2019-06-14 | 2019-08-23 | Oppo广东移动通信有限公司 | Radio circuit and electronic equipment |
CN110913450A (en) * | 2019-11-28 | 2020-03-24 | 宇龙计算机通信科技(深圳)有限公司 | Control method and device for mobile hotspot, mobile terminal and storage medium |
CN110913450B (en) * | 2019-11-28 | 2022-06-07 | 宇龙计算机通信科技(深圳)有限公司 | Control method and device for mobile hotspot, mobile terminal and storage medium |
CN111148182A (en) * | 2019-12-30 | 2020-05-12 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
WO2021136039A1 (en) * | 2019-12-30 | 2021-07-08 | Oppo广东移动通信有限公司 | Device control method and apparatus, storage medium and electronic device |
CN111148182B (en) * | 2019-12-30 | 2022-02-22 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
CN111123191A (en) * | 2020-03-26 | 2020-05-08 | 芯海科技(深圳)股份有限公司 | Electric energy meter, electric energy meter calibration device, meter calibration stand and electric energy meter calibration method |
EP4087325A4 (en) * | 2020-04-20 | 2023-06-21 | ZTE Corporation | Wifi hotspot management method, electronic device, and storage medium |
WO2021213320A1 (en) * | 2020-04-20 | 2021-10-28 | 中兴通讯股份有限公司 | Wifi hotspot management method, electronic device, and storage medium |
CN114095920A (en) * | 2020-07-29 | 2022-02-25 | 阿里巴巴集团控股有限公司 | Communication method, system, apparatus, device and storage medium |
CN113099422A (en) * | 2021-03-10 | 2021-07-09 | 惠州Tcl移动通信有限公司 | P2P connection compatibility method, intelligent terminal and computer readable storage medium |
CN114286424A (en) * | 2021-12-24 | 2022-04-05 | 西安闻泰信息技术有限公司 | Method for switching connection, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108770068B (en) | 2022-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108770068A (en) | A kind of WIFI Frequency Band Selections method, apparatus, storage medium and electronic equipment | |
US9467518B2 (en) | System, a method and a computer program product for automated remote control | |
CN110890970B (en) | Method and device for creating group, storage medium and electronic equipment | |
US8799398B2 (en) | Remote system and remote operation method for terminal | |
US10548003B2 (en) | Electronic device for controlling an external device using a number and method thereof | |
US8621571B2 (en) | Online service providing system, method, server and mobile device thereof, and computer program product | |
CN103988195A (en) | Method and apparatus for sharing contents between devices | |
EP3487201B1 (en) | Electronic device for controlling an external device using a number and method thereof | |
US8682965B2 (en) | Remote support system and remote support method for terminal | |
CN110457621B (en) | Page display method, device and medium for hybrid application | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN112346751B (en) | Application program installation method and device, electronic equipment and storage medium | |
CN104679239B (en) | A kind of terminal input method | |
CN105808042B (en) | A kind of information processing method and electronic equipment | |
CN106790743A (en) | Information transferring method, device and mobile terminal | |
CN112328492A (en) | Interaction control method and device between anchor and electronic equipment | |
CN106027631A (en) | Data transmission method and device | |
CN108574733A (en) | Network agent method and device, storage medium and electronic equipment | |
CN103970814A (en) | Indicating Organization Of Visitor On User Interface Of User Engaged In Collaborative Activity With Visitor | |
CN107896256A (en) | Information-pushing method, device, mobile terminal, server and readable storage medium storing program for executing | |
CN108494851B (en) | Application program recommended method, device and server | |
CN109753148A (en) | A kind of control method, device and the controlling terminal of VR equipment | |
CN107743304B (en) | A kind of device identification method and relevant device | |
CN107930126A (en) | Reservation data of playing processing method, device and mobile terminal | |
CN107743151A (en) | Content delivery method, device, mobile terminal and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |