CN104125605B - A kind of implementation method and device for asking to set up WIFI connections - Google Patents

A kind of implementation method and device for asking to set up WIFI connections Download PDF

Info

Publication number
CN104125605B
CN104125605B CN201410385021.XA CN201410385021A CN104125605B CN 104125605 B CN104125605 B CN 104125605B CN 201410385021 A CN201410385021 A CN 201410385021A CN 104125605 B CN104125605 B CN 104125605B
Authority
CN
China
Prior art keywords
management frame
threshold
wifi
frame transmission
terminal
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.)
Expired - Fee Related
Application number
CN201410385021.XA
Other languages
Chinese (zh)
Other versions
CN104125605A (en
Inventor
刘合东
仇磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410385021.XA priority Critical patent/CN104125605B/en
Publication of CN104125605A publication Critical patent/CN104125605A/en
Application granted granted Critical
Publication of CN104125605B publication Critical patent/CN104125605B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of implementation method and device for asking to set up WIFI connections.This method includes:After Wireless Fidelity WIFI link orders are got, whether the current geographic position of terminal is in default scene where identification;Detect the beacon number of frames from destination router received in setting time section;According to recognition result and testing result, management frame transmission speed is determined, and transmission rate sends probe request to the destination router based on determined by, to ask to set up WIFI connections.The technical scheme that the present embodiment is provided can improve terminal and carry out speed and success rate that WIFI is connected with router.

Description

A kind of implementation method and device for asking to set up WIFI connections
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of implementation method for asking to set up WIFI connections and Device.
Background technology
With the development of computer technology, various terminals (such as notebook computer, tablet personal computer, smart mobile phone, individual number The electronic equipments such as word assistant) to swarm and show, the live and work given people brings great convenience.For example, people can lead to Smart mobile phone is crossed to be conversed, taken pictures, listened music, play game, positioning etc..
Radio network technique is a kind of technology that can wirelessly interconnect different terminals.WIFI (Wireless Fidelity, Wireless Fidelity), as a kind of radio network technique therein, can be carried out by radio wave Networking, has the advantages that data transmission bauds is fast, is not connected up, safe.For the various terminals with WIFI functions, all It can be set up and be connected with the wireless router using WIFI connected modes in the effective range that the electric wave of wireless router is covered, So as to realize networking.
In the prior art, terminal is all the minimum management frame transmission rate 1Mbps based on 80211.b agreements with acquiescence Give out a contract for a project to router, to ask WIFI to connect.But, under some public arenas with free WIFI, it will usually have many User simultaneously by the terminal of oneself to router send WIFI connection request bags, but router can not receive simultaneously and These request bags are handled, therefore packet loss or jam can be caused, so as to easily lead to the WIFI that some terminals are this time initiated Failure occurs for connection or connection speed is slow.
The content of the invention
The embodiment of the present invention provides a kind of implementation method and device for asking to set up WIFI connections, to improve terminal and route Device carries out the speed and success rate of WIFI connections.
In a first aspect, the embodiments of the invention provide a kind of implementation method for asking to set up WIFI connections, this method includes:
After Wireless Fidelity WIFI link orders are got, whether the current geographic position of terminal is default where identification In scene;
Detect the beacon number of frames from destination router received in setting time section;
According to recognition result and testing result, determine management frame transmission speed, and based on determined by transmission rate to institute State destination router and send probe request, to ask to set up WIFI connections.
Second aspect, the embodiment of the present invention additionally provide it is a kind of ask that sets up WIFI connections to realize device, the device bag Include:
Scene Recognition unit, for after Wireless Fidelity WIFI link orders are got, recognizing the current position of place terminal Position is managed whether in default scene;
Beacon frame detection unit, for detecting the beacon frame number from destination router received in setting time section Amount;
Connection request transmitting element, for according to recognition result and testing result, determining management frame transmission speed, and is based on Identified transmission rate sends probe request to the destination router, to ask to set up WIFI connections.
In embodiments of the present invention, after WIFI link orders are got, not using the minimum management frame transmission of acquiescence Speed is received to router solicitation WIFI connections in concrete scene and certain period of time with reference to residing for present terminal Beacon number of frames both factors arrived, to be dynamically determined management frame transmission speed, so as to being the public of setting in scene In the case of occasion and beacon frame negligible amounts, that is, be considered as current router load it is more, when there occurs jam, set Larger management frame transmission speed carries out the speed that WIFI is connected to router solicitation WIFI connections to improve terminal and router And success rate;In other cases, that is, it is considered as current router load less, when easily establishing WIFI connections, based on less Management frame transmission speed is to router solicitation WIFI connections, to avoid because transmission rate is excessive and expends compared with multiple resource and to terminal Other functions of WIFI are affected greatly.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention one is provided;
Fig. 2 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention two is provided;
Fig. 3 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention three is provided;
Fig. 4 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention four is provided;
Fig. 5 is the structure chart for realizing device that WIFI connections are set up in a kind of request that the embodiment of the present invention five is provided.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is the flow chart for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention one is provided.This reality Apply example to be applicable to after WIFI link orders are got, the situation of WIFI connection requests is initiated to router.The present embodiment institute The method of offer can be set up WIFI connections by request and realize device to perform, and described device is realized by software and/or hardware, It can be purchased in the terminal.Wherein, the terminal can be the smart mobile phone with WIFI functions, tablet personal computer, individual digital The electronic equipments such as assistant.Referring to Fig. 1, this method specifically includes following operation:
Operate 110, after WIFI link orders are got, whether the current geographic position of terminal is default where identification In scene.
In the present embodiment, it can previously generate and show the human-computer interaction interface for including WIFI connection buttons.And in real time Monitor terminal user whether there is the trigger action to the WIFI connection buttons in the human-computer interaction interface, if it is, judging Get WIFI link orders.
, can be to the current geographic position of place terminal whether in default scene after WIFI link orders are got It is identified.Wherein, the current geographic position of place terminal refers to the end realized where device for asking to set up WIFI connections Hold the place under current time;Default scene can be airport, dining room, station or some other public arena.Pre- If scene in, exist all multi-users simultaneously by the terminal of oneself to destination router send WIFI connection request bags possibility Property it is larger, destination router load it is many, easily there is connection request jam, so as to cause WIFI connection failures or delay. The present embodiment is after WIFI link orders are got, and be may determine that by scene Recognition in present terminal local environment is It is no to have more serious WIFI connection failures or delay phenomenon.
In the present embodiment, to the current geographic position of place terminal whether the mistake being identified in default scene Journey, may particularly include:
It is determined that the current geographic coordinate information of place terminal;
The geographic coordinate information is sent to map server, to indicate the map server according to the geographical coordinate Information returns to corresponding place, or each geographic coordinate information is corresponding with each place to close according to being locally stored for describing The mapping table of system, determines the place corresponding to current geographic coordinate information;
Judge the place whether in default scene location.
If it should be noted that place terminal built-in has positioner, can also directly obtain positioner according to current The place that geographic coordinate information is determined, and then judge the place whether in default scene location.Wherein, geographic coordinate information Can be the longitude and latitude at present position.
Certainly, whether the current geographic position of terminal is in default scene where can also recognizing otherwise. For example, after WIFI link orders are got, opening voice acquisition device, the voice messaging of acquisition terminal user input, and lead to Cross speech recognition algorithm and the voice messaging is converted into text information;Using the text information being converted to as current location with Each default scene location is matched;If current location can match with one of scene location, recognize The current geographic position of terminal is in default scene where going out.
The beacon number of frames from destination router that operation 120, detection are received in setting time section.
In the present embodiment, destination router every the set time can with broadcast mode to neighbouring other equipment (for example Above-mentioned place terminal) beacon frame is sent, to state the presence of wireless network.Accordingly, other equipment is by receiving the beacon Frame can learn the presence of the wireless network, and parameter necessary to the network is accessed so as to adjust.But, in all multi-users simultaneously WIFI connection request bags are sent to destination router by the terminal of oneself so that the wireless network is more busy, target road In the case that device load is more, the other equipment can not normally receive the beacon frame transmitted by destination router.For example, Destination router outwards broadcasts 10 beacon frames in 1 second, but place terminal only receives 3 beacon frames.
Therefore, the present embodiment can enter to the beacon number of frames from destination router received in setting time section Row detection, to determine the loading condition of destination router;And then, judged according to testing result be in present terminal local environment It is no to there is more serious WIFI connection failures or delay phenomenon.Wherein, the setting time section should be greater than destination router pair The broadcast cycle of beacon frame, i.e., more than the above-mentioned set time;Detected beacon number of frames is smaller, shows destination router Load is more.
Operate 130, according to recognition result and testing result, determine management frame transmission speed, and the transmission based on determined by Speed sends probe request to destination router, to ask to set up WIFI connections.
In embodiments of the present invention, probe request is a kind of management frame, by sending probe requests thereby to destination router Frame, WIFI connection requests are initiated to destination router.The probe request includes:Network name corresponding to destination router and The data frame transfer speed that place terminal is supported.Destination router can extract data therein after probe request is received Frame transmission rate, judges itself whether support the speed, and returns to terminal according to judged result generation probing response frame.
Terminal where identification current geographic position whether in default scene, and detect setting time section in After the beacon number of frames from destination router received, recognition result and testing result can be combined, to determine management frame Transmission rate.
In the prior art, using acquiescence minimum management frame transmission rate to by the way of router solicitation WIFI connections, Easily occur WIFI connection failures or delay phenomenon.Also, connect into improve WIFI and power and avoid delay phenomenon, if The loading condition for being presently in scene and destination router is not judged, but passed all the time using the maximum management frame of acquiescence Defeated speed can cause the waste of resource, reduction terminal WIFI other functions to router solicitation WIFI connections.
In the present embodiment, determine that the process of management frame transmission speed may particularly include:
If the current geographic position of place terminal is in default scene, and beacon number of frames is less than given threshold, i.e., Identify that current goal router load is more, easily get congestion phenomenon, then based on larger management frame transmission speed to target Router sends probe request to ask WIFI to connect, and carries out what WIFI was connected so as to improve terminal and destination router Speed and success rate;
Otherwise, identify that current goal router load is less, be not susceptible to jam, then based on less management frame Transmission rate sends probe request to destination router and can avoided to ask WIFI to connect, so because transmission rate is excessive Expend compared with multiple resource and other functions are affected greatly to terminal WIFI.
It should be noted that the instantiation of technical scheme described in the present embodiment only as the embodiment of the present invention Illustrate.In embodiments of the present invention, to operating the execution sequence of 110 and operation 120 and being not specifically limited, operation 120 Also it can be performed prior to operation 110.Certainly, it will be recognized by one of ordinary skill in the art that can also create two different threads Operation 120 and operation 110 are performed respectively, and described two threads are run simultaneously.
The technical scheme that the present embodiment is provided, after WIFI link orders are got, not using the minimum management of acquiescence Frame transmission rate is to router solicitation WIFI connections, but in concrete scene and certain period of time with reference to residing for present terminal Received both factors of beacon number of frames, it is such to be advantageous in that to be dynamically determined management frame transmission speed:Can root Current Management Frame transmission rate is adjusted accordingly according to the load requests of different scene and destination router, that can carry High terminal is with the premise of the router progress WIFI speed being connected and success rate, avoiding because transmission rate is excessive and expends as far as possible The drawbacks of compared with multiple resource and terminal WIFI other functions being impacted.
Embodiment two
Fig. 2 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention two is provided. The present embodiment further before Wireless Fidelity WIFI link orders are got, is added pre- on the basis of above-described embodiment one The operation of corresponding relation between each threshold range and the transmission rate of each probe request is first determined, and it is increased to be based on institute This operation is further optimized to the operation 130 in embodiment one.Fig. 2 is participated in, this method specifically includes following operation:
Operate 210, before WIFI link orders are got, predefine and each threshold value at least two threshold ranges Scope distinguishes corresponding management frame transmission speed;
Operate 220, after WIFI link orders are got, whether the current geographic position of terminal is default where identification In scene;
The beacon number of frames from destination router that operation 230, detection are received in setting time section;
If the current geographic position of 240, place terminal is operated in default scene, in default at least two threshold The threshold range residing for detected beacon number of frames is searched in value scope;
Operation 250, acquisition management frame transmission speed corresponding with the threshold range found;
Operation 260, based on acquired management frame transmission speed to destination router send probe request, with ask build Vertical WIFI connections.
In the present embodiment, before WIFI link orders are got, it is pre-established with each threshold range and is managed with each Corresponding relation between frame transmission rate.Specifically, can be according to the standard beacon frame number that should be received in setting time section Amount divides different threshold ranges.Wherein, the standard beacon number of frames can developer be rule of thumb worth to, It can be obtained based on substantial amounts of experiment statisticses.Under normal circumstances, if setting time section is 1 second, standard beacon Number of frames is 10.
In a kind of embodiment of this implementation, predefine and each threshold value model at least two threshold ranges Corresponding management frame transmission speed respectively is enclosed, including:
Four threshold ranges are divided in advance:First threshold scope, Second Threshold scope, the 3rd threshold range and the 4th threshold value Scope;Wherein, first threshold scope is more than or equal to 0 and less than T1, and Second Threshold scope is more than or equal to T1 and less than T2, the 3rd threshold It is worth scope and is more than or equal to T2 and less than T3, the 4th threshold range is more than or equal to T3, and T1, T2 and T3 are the integer more than 0;
It is determined that management frame transmission speed corresponding with first threshold scope is 1Mbps, pipe corresponding with Second Threshold scope Reason frame transmission rate is 2Mbps, and management frame transmission speed corresponding with the 3rd threshold range is 5.5Mbps, with the 4th threshold value model Corresponding management frame transmission speed is enclosed for 11Mbps.
It is preferred that, the setting time section is 1 second, and T1 is that 3, T2 is that 5, T3 is 10.
Certainly, it can also determine otherwise corresponding between each threshold range and each management frame transmission speed Relation.For example, the number range that will be greater than being equal to 0.8*N sets the corresponding management of the threshold range as a threshold range The minimum management frame transmission rate 1Mbps that frame transmission rate is allowed by destination router and place terminal;By less than 0.8*N's Number range is as another threshold range, and it is destination router and institute to set the corresponding management frame transmission speed of the threshold range The maximum management frame transmission rate 11Mbps allowed in terminal.Wherein, N is standard beacon number of frames.
, can if the current geographic position of place terminal is in default scene after WIFI link orders are got The threshold range residing for detected beacon number of frames is searched in default at least two threshold range first, then basis The corresponding relation of determination, searches management frame transmission speed corresponding with the threshold range found.For example, where identifying The current geographic position of terminal is in default scene, and detected beacon number of frames is 8, then based on above-mentioned specific implementation Corresponding relation determined by under mode, it is the 3rd threshold range that can find the threshold range residing for beacon number of frames:It is more than Equal to 5, and less than 10;And then management frame transmission speed corresponding with the 3rd threshold range can be further searched for be 5.5Mbps。
The technical scheme that the present embodiment is provided, different from the prior art all the time using fixed management frame transmission speed to Destination router initiates WIFI connection requests, but is correspondingly arranged different management frame transmission speed for different threshold ranges in advance Rate, after WIFI link orders are got, if the current geographic position of terminal, can in default scene where identifying Passed with the management frame that threshold range where being determined according to the corresponding relation pre-set with the beacon number of frames detected is corresponding Defeated speed, and current management frame transmission speed is set to the transmission rate.Therefore, if corresponding to less beacon frame number The threshold range of amount sets larger management frame transmission speed, to set smaller corresponding to the threshold range of more beacon number of frames Management frame transmission speed, then can be after the beacon frame negligible amounts from destination router be detected, based on larger management Frame transmission rate to router solicitation WIFI connections, so as to improve terminal and router carry out speed that WIFI is connected and into Power;Can detect the beacon number of frames from destination router it is more after, based on less management frame transmission speed to road WIFI connections are asked by device, so as to avoid because transmission rate is excessive and expends compared with multiple resource and to other functions of terminal WIFI Affect greatly.
Embodiment three
Fig. 3 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention three is provided. The present embodiment is optimized on the basis of above-described embodiment one to the operation 110 in embodiment one.Participate in Fig. 3, this method tool Body includes following operation:
Operate 310, after Wireless Fidelity WIFI link orders are got, the current institute of positioner where obtaining in terminal The geographical location information of generation;
At least one scene keyword that operation 320, traversal are locally prestored, judges that the scene currently traversed is closed Whether keyword is comprised in the geographical location information;
If it is, performing operation 330, operation 340 is otherwise performed;
The current geographic position of terminal is in default scene where operation 330, identification;
The current geographic position of terminal is not in default scene where operation 340, identification;
The beacon number of frames from destination router that operation 350, detection are received in setting time section;
Operate 360, according to recognition result and testing result, determine management frame transmission speed, and the transmission based on determined by Speed sends probe request to destination router, to ask to set up WIFI connections.
In the present embodiment, after Wireless Fidelity WIFI link orders are got, control instruction can be sent to positioner, Then place that positioner generated according to the control instruction is obtained as the geographical location information of place terminal.Positioner exists Receive after control instruction, the current geographic coordinate information of terminal where detection, and send it to map server, to indicate Map server returns to corresponding place according to the geographic coordinate information, or geographical for describing each according to being locally stored The mapping table of coordinate information and each ground point correspondence, determines the place corresponding to current geographic coordinate information.
In the present embodiment, at least one scene keyword has been locally stored.Scene keyword can be that terminal user is led to Cross that human-computer interaction interface input is obtained or that developer pre-sets, it can be stored as configuration parameter In configuration file.When performing the present embodiment methods described each scene key can be got by reading the configuration file Word.In the present embodiment, at least one described scene keyword can be some public fields such as " airport ", " dining room ", " station " Close any number of combination in title.
It is one by one that the place and at least one scene locally prestored is crucial behind the place of terminal where getting Word is matched, to judge whether that some scene keyword is comprised in acquired place.
If it is, the current geographic position of terminal where identification is in default scene, terminal where otherwise recognizing Current geographic position is not in default scene.For example, being locally previously stored with four scene keywords:" airport ", " dining room ", " station ", " market ", the place of the place terminal got be " Beijing Capital International Airport " after, one by one by the place with Four scene keywords are matched, and judge that " airport " this scene keyword is comprised in acquired place " north In capital Captical International Airport ", so as to recognize the current geographic position for obtaining place terminal in default scene.
It is local by traversal after the technical scheme that the present embodiment is provided, the geographical location information of terminal where getting Whether at least one the scene keyword prestored, the scene keyword that judgement is currently traversed is comprised in acquired In geographical location information, to carry out scene Recognition.Because scene keyword is typically a very extensive, more upper place word Language, and the terminal seat point inquired is a more specific the next place, so the present embodiment is not using simple Inquiry operation confirm locally to whether there is the geographical location information, but each scene keyword and terminal sites are carried out Match somebody with somebody, to distinguish the inclusion relation of the two, carry out scene Recognition accordingly, can greatly improve the accuracy rate of scene Recognition, so that Current Management Frame transmission rate can be adjusted accordingly according to the load requests of different scene and destination router, with Terminal can be improved with the premise of the router progress WIFI speed being connected and success rate, avoiding because transmission rate is excessive as far as possible And the drawbacks of expend compared with multiple resource and terminal WIFI other functions are impacted.
Example IV
Fig. 4 is the schematic flow sheet for the implementation method that WIFI connections are set up in a kind of request that the embodiment of the present invention four is provided. The present embodiment can there is provided a kind of preferred embodiment based on above-described embodiment.Referring to Fig. 4, this method specifically includes as follows Operation:
410 are operated, before Wireless Fidelity WIFI link orders are got, in predetermined and at least two threshold ranges Each threshold range distinguishes corresponding management frame transmission speed;
Operate 420, after Wireless Fidelity WIFI link orders are got, the current institute of positioner where obtaining in terminal The geographical location information of generation;
At least one scene keyword that operation 430, traversal are locally prestored, judges that the scene currently traversed is closed Whether keyword is comprised in geographical location information;
If it is, performing operation 460, operation 440 is otherwise performed;
The current geographic position of terminal is not in default scene where operation 440, identification;Perform operation 450;
Operation 450, the minimum management frame transmission rate based on acquiescence, send probe request, to ask to destination router Ask and set up WIFI connections, terminate;
The current geographic position of terminal is in default scene where operation 460, identification;Perform operation 470-490;
The beacon number of frames from destination router that operation 470, detection are received in setting time section;
Operation 480, search in default at least two threshold range threshold value residing for detected beacon number of frames Scope, obtains management frame transmission speed corresponding with the threshold range found;
Operation 490, based on acquired management frame transmission speed to destination router send probe request, with ask build Vertical WIFI connections.
In the present embodiment, after WIFI link orders are got, not using the minimum management frame transmission rate of acquiescence It is received to router solicitation WIFI connections, but in concrete scene and certain period of time with reference to residing for present terminal Both factors of beacon number of frames, to be dynamically determined management frame transmission speed.So as to scene for setting public arena, And in the case of beacon frame negligible amounts, that is, be considered as current router load it is more, when there occurs jam, set it is larger Management frame transmission speed is to router solicitation WIFI connections, to improve terminal and router carries out speed that WIFI is connected and successfully Rate;It is less under the public arena of non-setting, that is, to be considered as current router load in scene, when easily establishing WIFI connections, base In less management frame transmission speed to router solicitation WIFI connections, to avoid because transmission rate is excessive and expends compared with multiple resource Affected greatly with other functions to terminal WIFI.The present embodiment is initiated to mesh based on the management frame transmission speed being dynamically determined The connection request of router is marked, WIFI connection competitiveness can be improved, it is preferential to obtain WIFI connections.
Embodiment five
Fig. 5 is the structure chart for realizing device that WIFI connections are set up in a kind of request that the embodiment of the present invention five is provided.This reality Apply example to be applicable to after WIFI link orders are got, the situation of WIFI connection requests is initiated to router., should referring to Fig. 5 The concrete structure of device is as follows:
Scene Recognition unit 510, for after Wireless Fidelity WIFI link orders are got, terminal to be current where identification Whether geographical position is in default scene;
Beacon frame detection unit 520, for detecting the beacon from destination router received in setting time section Number of frames;
Connection request transmitting element 530, for according to recognition result and testing result, determining management frame transmission speed, and Probe request is sent to the destination router based on identified transmission rate, to ask to set up WIFI connections.
Further, the device also includes:
Corresponding relation determining unit 500, for before Wireless Fidelity WIFI link orders are got, predefining and at least Each threshold range in two threshold ranges distinguishes corresponding management frame transmission speed;
The then connection request transmitting element 530, specifically for:
If the current geographic position of place terminal is in default scene, in default at least two threshold range Search the threshold range residing for detected beacon number of frames;
Obtain management frame transmission speed corresponding with the threshold range found;
Probe request is sent to the destination router based on acquired management frame transmission speed, to ask to set up WIFI connections.
Further, the corresponding relation determining unit 500, specifically for:
Four threshold ranges are divided in advance:First threshold scope, Second Threshold scope, the 3rd threshold range and the 4th threshold value Scope;Wherein, the first threshold scope is more than or equal to 0 and less than T1, and the Second Threshold scope is more than or equal to T1 and is less than T2, the 3rd threshold range is more than or equal to T2 and less than T3, and the 4th threshold range is more than or equal to T3, described T1, T2 and T3 is the integer more than 0;
It is determined that management frame transmission speed corresponding with first threshold scope is 1Mbps, pipe corresponding with Second Threshold scope Reason frame transmission rate is 2Mbps, and management frame transmission speed corresponding with the 3rd threshold range is 5.5Mbps, with the 4th threshold value model Corresponding management frame transmission speed is enclosed for 11Mbps.
Further, the setting time section is 1 second, and the T1 is that 3, T2 is that 5, T3 is 10.
On the basis of above-mentioned technical proposal, the scene Recognition unit 510, specifically for:
The geographical location information that positioner where obtaining in terminal is currently generated;
At least one the scene keyword locally prestored is traveled through, whether is the scene keyword that judgement is currently traversed It is comprised in the geographical location information;
If it is, the current geographic position of terminal where identification is in default scene, terminal where otherwise recognizing Current geographic position is not in default scene.
The said goods can perform the method that any embodiment of the present invention is provided, and possess the corresponding functional module of execution method And beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of implementation method for asking to set up WIFI connections, it is characterised in that including:
After Wireless Fidelity WIFI link orders are got, whether the current geographic position of terminal is in default scene where identification In, the place terminal sets up the terminal realized where device of WIFI connections for request;
Detect the beacon number of frames from destination router received in setting time section;
According to recognition result and testing result, determine management frame transmission speed, and based on determined by transmission rate to the mesh Mark router and send probe request, to ask to set up WIFI connections.
2. the implementation method according to claim 1 for asking to set up WIFI connections, it is characterised in that also include:
Before Wireless Fidelity WIFI link orders are got, predefine and each threshold range at least two threshold ranges The corresponding management frame transmission speed of difference;
It is then described according to recognition result and testing result, determine management frame transmission speed, and based on determined by transmission rate to The destination router sends probe request, to ask to set up WIFI connections, including:
If the current geographic position of place terminal is in default scene, searched in default at least two threshold range Threshold range residing for detected beacon number of frames;
Obtain management frame transmission speed corresponding with the threshold range found;
Probe request is sent to the destination router based on acquired management frame transmission speed, connected with asking to set up WIFI Connect.
3. according to claim 2 ask to set up the implementation methods of WIFI connections, it is characterised in that it is described predefine and Each threshold range at least two threshold ranges distinguishes corresponding management frame transmission speed, including:
Four threshold ranges are divided in advance:First threshold scope, Second Threshold scope, the 3rd threshold range and the 4th threshold value model Enclose;Wherein, the first threshold scope is more than or equal to 0 and less than T1, and the Second Threshold scope is more than or equal to T1 and less than T2, 3rd threshold range is more than or equal to T2 and less than T3, and the 4th threshold range is more than or equal to T3, and described T1, T2 and T3 are equal For the integer more than 0;
It is determined that management frame transmission speed corresponding with first threshold scope is 1Mbps, management frame corresponding with Second Threshold scope Transmission rate is 2Mbps, and management frame transmission speed corresponding with the 3rd threshold range is 5.5Mbps, with the 4th threshold range pair The management frame transmission speed answered is 11Mbps.
4. the implementation method according to claim 3 for asking to set up WIFI connections, it is characterised in that the setting time section For 1 second, the T1 was that 3, T2 is that 5, T3 is 10.
5. the implementation method of WIFI connections is set up in the request according to any one of claim 1-4, it is characterised in that described The current geographic position of place terminal is recognized whether in default scene, including:
The geographical location information that positioner where obtaining in terminal is currently generated;
At least one the scene keyword locally prestored is traveled through, judges whether the scene keyword currently traversed is wrapped It is contained in the geographical location information;
If it is, the current geographic position of terminal where identification is in default scene, otherwise terminal where identification is current Geographical position is not in default scene.
6. a kind of ask that sets up WIFI connections to realize device, it is characterised in that including:
Scene Recognition unit, the current geographic position for after Wireless Fidelity WIFI link orders are got, recognizing place terminal Put whether in default scene;
Beacon frame detection unit, for detecting the beacon number of frames from destination router received in setting time section;
Connection request transmitting element, for according to recognition result and testing result, determining management frame transmission speed, and based on institute really Fixed transmission rate sends probe request to the destination router, to ask to set up WIFI connections.
7. according to claim 6 ask that sets up WIFI connections to realize device, it is characterised in that also includes:
Corresponding relation determining unit, for before Wireless Fidelity WIFI link orders are got, predefining and at least two thresholds The each threshold range being worth in scope distinguishes corresponding management frame transmission speed;
The then connection request transmitting element, specifically for:
If the current geographic position of place terminal is in default scene, searched in default at least two threshold range Threshold range residing for detected beacon number of frames;
Obtain management frame transmission speed corresponding with the threshold range found;
Probe request is sent to the destination router based on acquired management frame transmission speed, connected with asking to set up WIFI Connect.
8. according to claim 7 ask that sets up WIFI connections to realize device, it is characterised in that the corresponding relation is true Order member, specifically for:
Four threshold ranges are divided in advance:First threshold scope, Second Threshold scope, the 3rd threshold range and the 4th threshold value model Enclose;Wherein, the first threshold scope is more than or equal to 0 and less than T1, and the Second Threshold scope is more than or equal to T1 and less than T2, 3rd threshold range is more than or equal to T2 and less than T3, and the 4th threshold range is more than or equal to T3, and described T1, T2 and T3 are equal For the integer more than 0;
It is determined that management frame transmission speed corresponding with first threshold scope is 1Mbps, management frame corresponding with Second Threshold scope Transmission rate is 2Mbps, and management frame transmission speed corresponding with the 3rd threshold range is 5.5Mbps, with the 4th threshold range pair The management frame transmission speed answered is 11Mbps.
9. according to claim 8 ask that sets up WIFI connections to realize device, it is characterised in that the setting time section For 1 second, the T1 was that 3, T2 is that 5, T3 is 10.
What 10. WIFI connections were set up in the request according to any one of claim 6-9 realizes device, it is characterised in that institute Scene Recognition unit is stated, specifically for:
The geographical location information that positioner where obtaining in terminal is currently generated;
At least one the scene keyword locally prestored is traveled through, judges whether the scene keyword currently traversed is wrapped It is contained in the geographical location information;
If it is, the current geographic position of terminal where identification is in default scene, otherwise terminal where identification is current Geographical position is not in default scene.
CN201410385021.XA 2014-08-06 2014-08-06 A kind of implementation method and device for asking to set up WIFI connections Expired - Fee Related CN104125605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410385021.XA CN104125605B (en) 2014-08-06 2014-08-06 A kind of implementation method and device for asking to set up WIFI connections

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410385021.XA CN104125605B (en) 2014-08-06 2014-08-06 A kind of implementation method and device for asking to set up WIFI connections

Publications (2)

Publication Number Publication Date
CN104125605A CN104125605A (en) 2014-10-29
CN104125605B true CN104125605B (en) 2017-07-28

Family

ID=51770837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410385021.XA Expired - Fee Related CN104125605B (en) 2014-08-06 2014-08-06 A kind of implementation method and device for asking to set up WIFI connections

Country Status (1)

Country Link
CN (1) CN104125605B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108702705B (en) * 2017-02-22 2021-04-09 华为技术有限公司 Information transmission method and equipment
CN111954192B (en) * 2020-07-27 2022-08-30 新华三技术有限公司 Message sending method and device
CN113347711B (en) * 2021-08-06 2021-11-09 杭州控客信息技术有限公司 Terminal self-adaption method and system in personnel positioning system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711220A (en) * 2012-04-25 2012-10-03 华为终端有限公司 Wireless network finding method and device
CN103442351A (en) * 2013-08-14 2013-12-11 福州瑞芯微电子有限公司 Method for protecting wireless network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2755411B1 (en) * 2013-01-09 2021-06-30 Samsung Electronics Co., Ltd. Apparatus and method for providing integrated device information on a wireless device supporting Wi-Fi Direct and Bluetooth communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711220A (en) * 2012-04-25 2012-10-03 华为终端有限公司 Wireless network finding method and device
CN103442351A (en) * 2013-08-14 2013-12-11 福州瑞芯微电子有限公司 Method for protecting wireless network

Also Published As

Publication number Publication date
CN104125605A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN104702406B (en) Auth method and device
CN105554876B (en) A kind of mobile terminal locating method and mobile terminal
US11036922B2 (en) Route information interaction method, electronic device, and computer storage medium
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
NO20080689L (en) Tradlo's internet network for large, local and personal networks
CN110113744A (en) Communication means, device, equipment and storage medium
CN104580534B (en) Information processing method, device and electronic equipment
JP2021166394A (en) Method, mobile device and non-transitory computer-readable storage medium for utilizing machine-readable codes for testing communication network
CN103916435B (en) Judge the method and apparatus of information authenticity
CN106357758A (en) Positioning method, positioning system and terminal
CN104125605B (en) A kind of implementation method and device for asking to set up WIFI connections
CN105072015A (en) Voice information processing method, server, and terminal
CN106375488A (en) Position based information push method and system
CN102868969A (en) Mobile terminal with automatic location function and automatic location method of mobile terminal
CN102331578A (en) Navigation information transmission method as well as navigation server and position service terminal
CN110381439A (en) A kind of localization method, device, server, storage medium and terminal
CN104038900A (en) Locating method and equipment
CN105050048B (en) A kind of network access point location information prompt method, terminal and server
CN103379623A (en) WIFI positioning method in travel
US9532167B2 (en) Mobile terminal, location information related content providing server, content panel display method, and mobile terminal program
CN104010269A (en) Method and device for sending file in communication terminal
US9516468B2 (en) Mobile terminal, content panel display method, and mobile terminal program
CN101303235A (en) Navigation method, system and apparatus based on common mobile phone
CN103516750A (en) System for position information sharing of cloud server and cloud server
CN106888496B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170728

CF01 Termination of patent right due to non-payment of annual fee