CN108337715A - Wireless network connecting method, device, terminal device and storage medium - Google Patents

Wireless network connecting method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108337715A
CN108337715A CN201810097943.9A CN201810097943A CN108337715A CN 108337715 A CN108337715 A CN 108337715A CN 201810097943 A CN201810097943 A CN 201810097943A CN 108337715 A CN108337715 A CN 108337715A
Authority
CN
China
Prior art keywords
connection
terminal device
interference
wireless network
adjusted value
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
Application number
CN201810097943.9A
Other languages
Chinese (zh)
Other versions
CN108337715B (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 CN201810097943.9A priority Critical patent/CN108337715B/en
Publication of CN108337715A publication Critical patent/CN108337715A/en
Application granted granted Critical
Publication of CN108337715B publication Critical patent/CN108337715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The embodiment of the present application discloses a kind of wireless network connecting method, device, terminal device and storage medium, and this method includes when detecting that wireless network connection event is triggered, determining the current interference scene of terminal device;The connection number adjusted value for determining different channels corresponding with the interference scene, is adjusted the routing connection strategy in the wireless network connection event according to the connection number adjusted value;After the router for determining selection connection, routing connection strategy and the router after foundation adjustment are attached.In the present solution, terminal device with consider influence of the different interference scenes to connection procedure in router connection procedure, improve joint efficiency, ensure that network connection success rate.

Description

Wireless network connecting method, device, terminal device and storage medium
Technical field
The invention relates to computer technology more particularly to a kind of wireless network connecting method, device, terminal devices And storage medium.
Background technology
With the raising of terminal device popularity, more and more users' using terminal equipment executes various work( Can be to meet self-demand, such as using terminal equipment reads word, viewing video, listens to music, plays game, is used eventually in user Connection network is frequently necessary to during end equipment to obtain Internet resources, the 4G mobile networks such as provided by mobile operator Or wireless wifi network etc..
In the prior art, when user's using terminal equipment connects wireless wifi network, terminal device meeting basis detects The signal strength of router selects the wherein strongest router of signal strength to be attached, which needs to change Into.
Invention content
The present invention provides a kind of wireless network connecting method, device, terminal device and storage mediums, improve network company Efficiency is connect, ensure that network connection success rate.
In a first aspect, the embodiment of the present application provides a kind of wireless network connecting method, including:
When detecting that wireless network connection event is triggered, the current interference scene of terminal device is determined;
The connection number adjusted value for determining different channels corresponding with the interference scene is adjusted according to the connection number Value is adjusted the routing connection strategy in the wireless network connection event;
After the router for determining selection connection, routing connection strategy and the router after foundation adjustment are connected It connects.
Second aspect, the embodiment of the present application also provides a kind of wireless network connection devices, including:
Determining module is interfered, when for detecting that wireless network connection event is triggered, determining that terminal device is current and doing Disturb scene;
Number determining module is connected, the connection number adjustment for determining different channels corresponding with the interference scene Value;
Setup module, for being connected to the routing in the wireless network connection event according to the connection number adjusted value Strategy is adjusted;
Link block, for after the router for determining selection connection, according to the routing connection strategy and described after adjustment Router is attached.
The third aspect, the embodiment of the present application also provides a kind of terminal devices, including:Processor, memory and storage On a memory and the computer program that can run on a processor, the processor are realized such as when executing the computer program Wireless network connecting method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, institutes Terminal device executable instruction is stated when being executed by terminal device processor for executing the wireless network described in the embodiment of the present application Network connection method.
In the present solution, when detecting that wireless network connection event is triggered, the current interference scene of terminal device is determined, really The connection number adjusted value of fixed different channels corresponding with the interference scene, according to the connection number adjusted value to the nothing Routing connection strategy in gauze network connection event is adjusted, after the router for determining selection connection, after adjustment Routing connection strategy and the router are attached.In the present solution, terminal device with considered in router connection procedure Influence of the different interference scenes to connection procedure, improves joint efficiency, ensure that network connection success rate.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of wireless network connecting method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another wireless network connecting method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another wireless network connecting method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another wireless network connecting method provided by the embodiments of the present application;
Fig. 5 is the flow chart of another wireless network connecting method provided by the embodiments of the present application
Fig. 6 is a kind of structure diagram of wireless network connection device provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
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 for explaining the present invention rather than limitation of the invention.It also should be noted that for the ease of retouching It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of wireless network connecting method provided by the embodiments of the present application, is applicable to set terminal Standby and accessible equipment (such as router) carries out the control of network connection, and this method can be by terminal provided by the embodiments of the present application Equipment executes, and software can be used for the wireless network connection device of the terminal device and/or the mode of hardware is realized, such as Fig. 1 institutes Show, concrete scheme provided in this embodiment is as follows:
When step S101, detecting that wireless network connection event is triggered, the current interference scene of terminal device is determined.
Wireless network (wireless network) is the network realized using wireless communication technique.Wireless network both included Allow terminal device to establish global voice and data network that remote-wireless connects, also includes being carried out near radio connection The infrared technology and radio-frequency technique of optimization, very similar with the purposes of cable network, maximum difference is transmission medium Difference replaces cable using radiotechnics, can backup each other with cable network.
Wherein, wireless network connection event for realizing the connection of terminal device and router so that terminal device access is complete Ball speech and data networks form local area network, and illustratively, which can manually be triggered by user, such as be supervised It measures WLAN controls to be clicked and activate wireless network connection event when accordingly executing control bundle event, can also be that terminal is set It is standby to monitor activation trigger wireless network connection event when network state changes and (such as disconnects network connection).
Illustratively, by taking Android operation system as an example, when detecting that connect () method of WifiManager is adjusted Used time determines the current interference scene of terminal device.Wherein, which is to transmit to generate interference to wireless network data Scene can be the interference scene that terminal device internal interference source generates, and can also be what terminal device external interference source generated Interference scene.For example, the corresponding interference scene in internal interference source can be the interference of 4G network data transmissions, external interference source It can be the corresponding interference of bluetooth equipment (such as bluetooth headset) other Wireless Communication Equipment to generate corresponding interference scene.One In a embodiment, determine the current interference scene of terminal device can be when detecting that wireless network connection event is triggered, The current interference scene of terminal device is determined in real time, can also be the interference scene for obtaining terminal device records as present terminal The interference scene of equipment.
Step S102, the connection number adjusted value of determination and the corresponding different channels of the interference scene, according to the company Number adjusted value is connect to be adjusted the routing connection strategy in the wireless network connection event.
Wherein, channel (also known as frequency range) is the data-signal Transfer pipe using wireless signal as transmission media, such as common IEEE802.11b/g be operated in 2.4~2.4835GHz frequency ranges, these frequency ranges are divided into 11 or 13 channels.It is wherein different Interference scene is different to different channel effect degree, and specific influence degree can be determined by, illustratively, with LTE For 40 interference scenes of B, its interference to different WiFi channels is tested, wherein and LTE (Long Term Evolution, for a long time Evolution) it is by 3GPP (The 3rd Generation Partnership Project, third generation partner program) tissue UMTS (Universal Mobile Telecommunications System, Universal Mobile Communication System) technical bid of formulation Accurate long term evolution, B 40 are the frequency range (2300-2400Mhz) that band 40 refers to its work, and current LTE can support B 1 to B 40 Totally 40 working frequency range, the disturbed condition that different working frequency range generates different WiFi channels is different, according to international standard The WiFi channels of 2.4GHz are divided into 13 channels (span is frequency 2412 to frequency 2472), such as obtain LTE B by test The interference of 40 pairs of 1 channels of WiFi is 4db.
In one embodiment, the transmission of the wireless network data of different channels is surveyed under different interference scenes in advance Examination determines that different interference scenes interfere the signal strength of different channels, is arranged and records corresponding connection number adjusted value, In, connection number adjusted value connects the foundation of number, different dry as being determined during follow-up wireless network connection with router Disturb the connection number adjusted value of the corresponding different channels of scene record storage can work as wireless network in terminal device in a tabular form Network connection event is triggered after the interference scene of determining present terminal equipment, and the table according to the record determines that the interference scene exists The connection number adjusted value of different channels, it is secondary according to the connection when follow-up and routing device is when this channel is communicatively coupled Number adjusted value determines connection number of attempt.Illustratively, specific test process can be:Respectively test have interference and it is noiseless In the case of each channel signal strength, to determine influence of the interference scene to different channels signal strength, and then set and correspond to Connection number adjusted value, wherein the more strong corresponding connection number adjusted value of interference is bigger, and interference is smaller, and corresponding connection is secondary Number adjusted value is smaller, and for example, when interference strength is 4db, corresponding connection number adjusted value can be 5, and interference strength is When 0.2db, connection number adjusted value is 2.
Terminal device can be scanned different Wifi channels during wireless network connection to obtain for connection Router, select the strongest router of signal strength that scan to be attached, or connection preservation optimal router into Row connects, and since the influence of interference source can lead to terminal device and router connection failure in connection procedure, needs to reattempt to Connection, under normal conditions if be attached using the connection number of acquiescence can cause the router that can be successfully connected of script by In attempting, connection number is very few and leads to not successful connection.For example, terminal device 1 scan channels of WiFi can to one Access device simultaneously prepares to access, and according to intrinsic routing connection strategy, terminal device meeting and accessible equipment attempt default number of times Such as 3 times connections, if but terminal device passes the data of 1 channels of Wifi under interference scene (such as 40 scenes of LTE B) at this time The defeated a large amount of interference of generation, can lead to connection failure, therefore in this step, determine different channels corresponding with the interference scene Connect number adjusted value, according to the connection number adjusted value to the routing connection strategy in the wireless network connection event into Row adjustment, illustratively, the connection number adjusted value of 1 channels of WiFi is 5, then routeing connection strategy can accordingly be adjusted to:Silent Recognize on the basis of connection number plus connection number adjusted value as final connection number, or connection number adjusted value is set It sets the new connection number used and replaces default connection number.It in one embodiment, can to routeing the adjustment of connection strategy To be to override original router selection mode, the router connection type for jumping to new setting can also be.
Step S103, after the router for determining selection connection, the routing connection strategy after foundation adjustment and the routing Device is attached.
In one embodiment, after the router for determining selection connection, the routing connection strategy after foundation adjustment and institute State router be attached including:The transmission channel being arranged according to the router determines corresponding connection number adjusted value, according to The connection that corresponding number is carried out according to the connection number adjusted value and the router is attempted.For example, step S101 is determined Interference scene be 40 scenes of LTE B, determine that the connection number adjusted value in corresponding Wifi channels 1 to 13 is followed successively by 5 It is secondary, 2 times, 2 times, 5 times, 4 times, 8 times, 7 times, 9 times, 3 times, 4 times, 4 times, 5 times and 8 times, the adjustable strategies changed in step S102 It is assumed to form of the default connection number (such as 3 times) plus connection number adjusted value, then in each channel and routing in this step When device is attached, it is followed successively by the connection number of channel 1 to channel 13 and router:8 times, 5 times, 5 times, 8 times, 7 times, 11 It is secondary, 10 times, 12 times, 6 times, 7 times, 7 times, 8 times and 11 times.
As shown in the above, terminal device with consider different interference scenes to connecting in router connection procedure The influence of journey, the connection number of dynamic setting and router, improves joint efficiency, ensure that network connection success rate.
It should be noted that the above-mentioned routing connection strategy referred to, which is not limited to default connection number, adds connection number tune Whole value or the mode for setting connection number adjusted value to new connection number, meanwhile, the connection number adjusted value is equally applicable In the reconnection strategy of terminal device and router.
Fig. 2 is the flow chart of another wireless network connecting method provided by the embodiments of the present application, optionally, the determination The current interference scene of terminal device includes:Determine the channel transmitting frequency range that terminal device uses;Correspondingly, the determination and institute The connection number adjusted value for stating the corresponding different channels of interference scene includes:Determine difference corresponding with channel transmitting frequency range The connection number adjusted value of channel.As shown in Fig. 2, technical solution is specific as follows:
When step S201, detecting that wireless network connection event is triggered, the channel transmitting frequency that terminal device uses is determined Section.
Wherein, channel transmitting frequency range is data transmit-receive frequency range when terminal device uses mobile network (such as GSM, 3G, 4G), Terminal device can use mobile network to carry out partial data in couple in router carries out wireless network data transmission process Transmitting-receiving, can generate the scan channel of terminal device channel disturbance, and different channels emits frequency range to different scan channels Signal interference degree is different, can be determined by software test, wherein interference includes adjacent frequency interference, frequency multiplication interference etc..In this step Determine the channel transmitting frequency range (such as using 40 frequency ranges of LTE B in 4G mobile networks) that terminal device uses.
Step S202, the connection number adjusted value of determination and the corresponding different channels of channel transmitting frequency range, according to institute Connection number adjusted value is stated to be adjusted the routing connection strategy in the wireless network connection event.
Wherein, due to the tranmitting frequency difference that different channel transmitting frequency ranges uses, therefore it does different Wifi channels Degree difference is disturbed, and then is provided with different connection number adjusted values.Optionally, storage record has different channels in terminal device The connection number for emitting the corresponding difference Wifi channels of frequency range adjusts value list, when the channel transmitting for determining that terminal device uses The connection number adjusted value that the list determines different Wifi channels is corresponded to after frequency range.Wherein, according to the connection number adjusted value Mode in step S102 can be used to the process that the routing connection strategy in the wireless network connection event is adjusted, this Place repeats no more.
Step S203, after the router for determining selection connection, the routing connection strategy after foundation adjustment and the routing Device is attached.
It can be seen from the above, during terminal device carries out wireless network connection, the mobile communication of equipment itself is interfered Evaded so that terminal device connects into power raising in couple in router.
Fig. 3 is the flow chart of another wireless network connecting method provided by the embodiments of the present application, optionally, described true Before the connection number adjusted value of fixed different channels corresponding with channel transmitting frequency range, further include:It determines in preset time Interior, the terminal device emits the data emission measure of frequency range in the channel;Correspondingly, the determination and channel transmitting frequency The connection number adjusted value of the corresponding different channels of section includes:Emit frequency range according to the channel and the data emission measure is true The connection number adjusted value of fixed corresponding different channels.As shown in figure 3, technical solution is specific as follows:
When step S301, detecting that wireless network connection event is triggered, the channel transmitting frequency that terminal device uses is determined Section.
Step S302, it determines in preset time, the terminal device emits the data emission measure of frequency range in the channel.
In one embodiment, record terminal device uses mobile network in preset time (such as 30 points, 60 points or 120 points) The data volume of network channel bands transmitting.
Step S303, emit frequency range according to the channel and the data emission measure determines the company of corresponding different channels Connect number adjusted value.
In the connection number adjusted value for determining different channels, further combined with end other than considering channel bands above-mentioned End equipment is in the data emission measure of the frequency range, and illustratively, data emission measure is bigger, and connection number adjusted value is bigger, data hair The amount of penetrating is smaller, and connection number adjusted value is smaller.
Step S304, after the router for determining selection connection, the routing connection strategy after foundation adjustment and the routing Device is attached.
It can be seen from the above, during terminal device carries out wireless network connection, to the interference band and number of interference source Comprehensive consideration is carried out according to emission measure and determines influence of the interference source to routing connection, and then uses rational connection number adjusted value, Further improve network connection efficiency.
Fig. 4 is the flow chart of another wireless network connecting method provided by the embodiments of the present application, optionally, the determination The current interference scene of terminal device includes:Determine that terminal device is presently in the air interference source of environment;Correspondingly, described true The connection number adjusted value of different channels corresponding with the interference scene includes calmly:Determination is corresponding with the air interference source The connection number adjusted value of different channels, the air interference source include bluetooth interference source, ZigBee interference sources, WiMax interference At least one of source and microwave interference source.As shown in figure 4, technical solution is specific as follows:
When step S401, detecting that wireless network connection event is triggered, determine that terminal device is presently in the nothing of environment Line interference source.
Wherein, air interference source includes in bluetooth interference source, ZigBee interference sources, WiMax interference sources and microwave interference source At least one.In one embodiment, when detecting that wireless network connection event is triggered, determine that terminal device currently connects The bluetooth equipment connect, or the record sheet of inquiry storage determine whether there is other wireless network interference sources (as record has presence ZigBee interference sources).
Step S402, the connection number adjusted value of the corresponding different channels of determination and the air interference source, according to described in Connection number adjusted value is adjusted the routing connection strategy in the wireless network connection event.
In one embodiment, pre-set not according to different interference source category inquiries after determining interference source With interference source correspond to different channels connection number adjust value list, determine interference source present each channel connection number tune Whole value.The mode being adjusted to the routing connection strategy in the wireless network connection event according to connection number adjusted value can Referring to step S102, details are not described herein again.
Step S403, after the router for determining selection connection, the routing connection strategy after foundation adjustment and the routing Device is attached.
It can be seen from the above, during terminal device carries out wireless network connection, external air interference source is integrated It considers, considers that it is influenced caused by scan channel, improve scan channel efficiency.
Fig. 5 is the flow chart of another wireless network connecting method provided by the embodiments of the present application, optionally, it is described according to According to after adjustment routing connection strategy and after the router is attached, further include:If detecting the terminal device Interference scene change, then according to change after interference scene the routing connection strategy is updated.Such as Fig. 5 institutes Show, technical solution is specific as follows:
When step S501, detecting that wireless network connection event is triggered, the current interference scene of terminal device is determined.
Step S502, the connection number adjusted value of determination and the corresponding different channels of the interference scene.
Step S503, according to the connection number adjusted value to the routing connection strategy in the wireless network connection event It is adjusted.
Step S504, after the router for determining selection connection, the routing connection strategy after foundation adjustment and the routing Device is attached.
Step S505, the interference source of terminal device scan channel is monitored.
Illustratively, by the integrated wireless transmitter (module) of terminal device to the data transmit-receive state of each frequency range It is monitored.
Step S506, judge whether the interference scene of terminal device changes, if it is S507 is thened follow the steps, otherwise Continue to monitor.
Step S507, the routing connection strategy is updated according to the interference scene after changing.
When monitoring that the interference scene of terminal device changes and (increases interference source newly or reduce interference source), according to change Interference scene afterwards is adjusted the routing connection strategy, correspondingly, the routing connection strategy include to terminal device and Router is adjusted in the number for disconnecting reconnection.
It can be seen from the above, during terminal device carries out wireless network connection, so that routing connection number can be with interference Scene flexibly changes, and power is connected into improve.Optionally, after interference scene changes, confirm dry after current variation It disturbs scene and is recorded, directly determined according to the interference scene of record after being triggered for next wireless network connection event Corresponding connection number adjusted value, or the routing connection strategy after the adjustment is recorded, to be directly used in wireless network connection.
Fig. 6 is a kind of structure diagram of wireless network connection device provided by the embodiments of the present application, and the device is for executing The wireless network connecting method that above-described embodiment provides, has the corresponding function module of execution method and advantageous effect.Such as Fig. 6 institutes Show, which specifically includes:Interfere determining module 101, connection number determining module 102, setup module 103 and link block 104, wherein
It interfering determining module 101, when for detecting that wireless network connection event is triggered, determining that terminal device is current Interference scene.
Wherein, wireless network connection event for realizing the connection of terminal device and router so that terminal device access is complete Ball speech and data networks form local area network, and illustratively, which can manually be triggered by user, such as be supervised It measures WLAN controls to be clicked and activate wireless network connection event when accordingly executing control bundle event, can also be that terminal is set It is standby to monitor activation trigger wireless network connection event when network state changes and (such as disconnects network connection).
Illustratively, by taking Android operation system as an example, when detecting that connect () method of WifiManager is adjusted Used time determines the current interference scene of terminal device.Wherein, which is to transmit to generate interference to wireless network data Scene can be the interference scene that terminal device internal interference source generates, and can also be what terminal device external interference source generated Interference scene.For example, the corresponding interference scene in internal interference source can be the interference of 4G network data transmissions, external interference source It can be the corresponding interference of bluetooth equipment (such as bluetooth headset) other Wireless Communication Equipment to generate corresponding interference scene.One In a embodiment, determine the current interference scene of terminal device can be when detecting that wireless network connection event is triggered, The current interference scene of terminal device is determined in real time, can also be the interference scene for obtaining terminal device records as present terminal The interference scene of equipment.
Number determining module 102 is connected, the connection number tune for determining different channels corresponding with the interference scene Whole value;Setup module 103, for being connected to the routing in the wireless network connection event according to the connection number adjusted value Strategy is adjusted.
Wherein, channel (also known as frequency range) is the data-signal Transfer pipe using wireless signal as transmission media, such as common IEEE802.11b/g be operated in 2.4~2.4835GHz frequency ranges, these frequency ranges are divided into 11 or 13 channels.It is wherein different Interference scene is different to different channel effect degree, and specific influence degree can be determined by, illustratively, with LTE For 40 interference scenes of B, its interference to different WiFi channels is tested, wherein and LTE (Long Term Evolution, for a long time Evolution) it is by 3GPP (The 3rd Generation Partnership Project, third generation partner program) tissue UMTS (Universal Mobile Telecommunications System, Universal Mobile Communication System) technical bid of formulation Accurate long term evolution, B 40 are the frequency range (2300-2400Mhz) that band 40 refers to its work, and current LTE can support B 1 to B 40 Totally 40 working frequency range, the disturbed condition that different working frequency range generates different WiFi channels is different, according to international standard The WiFi channels of 2.4GHz are divided into 13 channels (span is frequency 2412 to frequency 2472), such as obtain LTE B by test The interference of 40 pairs of 1 channels of WiFi is 4db.
In one embodiment, the transmission of the wireless network data of different channels is surveyed under different interference scenes in advance Examination determines that different interference scenes interfere the signal strength of different channels, is arranged and records corresponding connection number adjusted value, In, connection number adjusted value connects the foundation of number, different dry as being determined during follow-up wireless network connection with router Disturb the connection number adjusted value of the corresponding different channels of scene record storage can work as wireless network in terminal device in a tabular form Network connection event is triggered after the interference scene of determining present terminal equipment, and the table according to the record determines that the interference scene exists The connection number adjusted value of different channels, it is secondary according to the connection when follow-up and routing device is when this channel is communicatively coupled Number adjusted value determines connection number of attempt.Illustratively, specific test process can be:Respectively test have interference and it is noiseless In the case of each channel signal strength, to determine influence of the interference scene to different channels signal strength, and then set and correspond to Connection number adjusted value, wherein the more strong corresponding connection number adjusted value of interference is bigger, and interference is smaller, and corresponding connection is secondary Number adjusted value is smaller, and for example, when interference strength is 4db, corresponding connection number adjusted value can be 5, and interference strength is When 0.2db, connection number adjusted value is 2.
Terminal device can be scanned different Wifi channels during wireless network connection to obtain for connection Router, select the strongest router of signal strength that scan to be attached, or connection preservation optimal router into Row connects, and since the influence of interference source can lead to terminal device and router connection failure in connection procedure, needs to reattempt to Connection, under normal conditions if be attached using the connection number of acquiescence can cause the router that can be successfully connected of script by In attempting, connection number is very few and leads to not successful connection.For example, terminal device 1 scan channels of WiFi can to one Access device simultaneously prepares to access, and according to intrinsic routing connection strategy, terminal device meeting and accessible equipment attempt default number of times Such as 3 times connections, if but terminal device passes the data of 1 channels of Wifi under interference scene (such as 40 scenes of LTE B) at this time The defeated a large amount of interference of generation, can lead to connection failure, therefore in this step, determine different channels corresponding with the interference scene Connect number adjusted value, according to the connection number adjusted value to the routing connection strategy in the wireless network connection event into Row adjustment, illustratively, the connection number adjusted value of 1 channels of WiFi is 5, then routeing connection strategy can accordingly be adjusted to:Silent Recognize on the basis of connection number plus connection number adjusted value as final connection number, or connection number adjusted value is set It sets the new connection number used and replaces default connection number.It in one embodiment, can to routeing the adjustment of connection strategy To be to override original router selection mode, the router connection type for jumping to new setting can also be.
Link block 104, for determine selection connection router after, according to adjustment after routing connection strategy and institute Router is stated to be attached.
In one embodiment, after the router for determining selection connection, the routing connection strategy after foundation adjustment and institute State router be attached including:The transmission channel being arranged according to the router determines corresponding connection number adjusted value, according to The connection that corresponding number is carried out according to the connection number adjusted value and the router is attempted.For example, step S101 is determined Interference scene be 40 scenes of LTE B, determine that the connection number adjusted value in corresponding Wifi channels 1 to 13 is followed successively by 5 It is secondary, 2 times, 2 times, 5 times, 4 times, 8 times, 7 times, 9 times, 3 times, 4 times, 4 times, 5 times and 8 times, the adjustable strategies changed in step S102 It is assumed to form of the default connection number (such as 3 times) plus connection number adjusted value, then in each channel and routing in this step When device is attached, it is followed successively by the connection number of channel 1 to channel 13 and router:8 times, 5 times, 5 times, 8 times, 7 times, 11 It is secondary, 10 times, 12 times, 6 times, 7 times, 7 times, 8 times and 11 times.
As shown in the above, terminal device with consider different interference scenes to connecting in router connection procedure The influence of journey, the connection number of dynamic setting and router, improves joint efficiency, ensure that network connection success rate.
In a possible embodiment, the interference determining module 101 is additionally operable to:
Before the connection number adjusted value of the determination and the corresponding different channels of the interference scene, in disturbance The transmission of the wireless network data of different channels is tested under scene, determines that corresponding connection number adjusts according to test result Value.
In a possible embodiment, the interference determining module 101 is specifically used for:
Determine the channel transmitting frequency range that terminal device uses;
The connection number determining module 102 is specifically used for:
Determine the connection number adjusted value of different channels corresponding with channel transmitting frequency range.
In a possible embodiment, the interference determining module 101 is additionally operable to:
Before the connection number adjusted value of the determination and the corresponding different channels of channel transmitting frequency range, determine In preset time, the terminal device emits the data emission measure of frequency range in the channel;
The connection number determining module 102 is specifically used for:
Emit frequency range according to the channel and the data emission measure determines the connection number tune of corresponding different channels Whole value.
In a possible embodiment, the interference determining module 101 is specifically used for:
Determine that terminal device is presently in the air interference source of environment;
The connection number determining module 102 is specifically used for:
Determine the connection number adjusted value of different channels corresponding with the air interference source, the air interference source includes At least one of bluetooth interference source, ZigBee interference sources, WiMax interference sources and microwave interference source.
In a possible embodiment, the link block 104 is specifically used for:
The transmission channel being arranged according to the router determines corresponding connection number adjusted value, according to the connection number The connection that adjusted value and the router carry out corresponding number is attempted.
In a possible embodiment, further include update module 105, in the routing connection according to after adjustment After the tactful and described router is attached, if detecting that the interference scene of the terminal device changes, foundation Interference scene after change is updated the routing connection strategy.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 7 is that the embodiment of the present application carries The structural schematic diagram of a kind of terminal device supplied, as shown in fig. 7, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loud speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, Wifi Other input/control devicess 210 of module 213 and outside port 204, these components pass through one or more communication bus or letter Number line 207 communicates.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device of the rights management provided in this embodiment for more opening application is described in detail below, should Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be by access such as CPU202, Peripheral Interfaces 203, and the memory 201 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch screen 212 With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystems 209 may include 2091 He of display controller One or more input controllers 2092 for controlling other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 2092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 2091 in I/O subsystems 209 receives electric signal from touch screen 212 or is sent out to touch screen 212 Electric signals.Touch screen 212 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 2091 The interaction of user interface object on touch screen 212, that is, realize human-computer interaction, the user interface being shown on touch screen 212 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 205 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 205 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 205 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 211.
Loud speaker 211, the voice signal for receiving mobile phone from wireless network by RF circuits 205, is reduced to sound And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of the wireless network connection device and terminal device of the terminal device provided in above-described embodiment appoints The wireless network connecting method of terminal device that meaning embodiment is provided has and executes the corresponding function module of this method and beneficial Effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to the terminal that any embodiment of the present invention is provided is set Standby wireless network connecting method.
The embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of wireless network connecting method, this method includes:
When detecting that wireless network connection event is triggered, the current interference scene of terminal device is determined;
The connection number adjusted value for determining different channels corresponding with the interference scene is adjusted according to the connection number Value is adjusted the routing connection strategy in the wireless network connection event;
After the router for determining selection connection, routing connection strategy and the router after foundation adjustment are connected It connects.
In a possible embodiment, in the connection number of the determination and the corresponding different channels of the interference scene Before adjusted value, further include:
The transmission of the wireless network data of different channels is tested under different interference scenes, is determined according to test result Corresponding connection number adjusted value.
In a possible embodiment, the current interference scene of the determining terminal device includes:
Determine the channel transmitting frequency range that terminal device uses;
Correspondingly, the connection number adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the connection number adjusted value of different channels corresponding with channel transmitting frequency range.
In a possible embodiment, in the connection of the determination and the corresponding different channels of channel transmitting frequency range Before number adjusted value, further include:
It determines in preset time, the terminal device emits the data emission measure of frequency range in the channel;
Correspondingly, the connection number adjusted value of the determination and the corresponding different channels of channel transmitting frequency range includes:
Emit frequency range according to the channel and the data emission measure determines the connection number tune of corresponding different channels Whole value.
In a possible embodiment, the current interference scene of the determining terminal device includes:
Determine that terminal device is presently in the air interference source of environment;
Correspondingly, the connection number adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the connection number adjusted value of different channels corresponding with the air interference source, the air interference source includes At least one of bluetooth interference source, ZigBee interference sources, WiMax interference sources and microwave interference source.
In a possible embodiment, the routing connection strategy according to after adjustment and the router are attached Including:
The transmission channel being arranged according to the router determines corresponding connection number adjusted value, according to the connection number The connection that adjusted value and the router carry out corresponding number is attempted.
In a possible embodiment, connected in the routing connection strategy according to after adjustment and the router After connecing, further include:
If detecting that the interference scene of the terminal device changes, according to the interference scene after changing to described Routing connection strategy is updated.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location (such as in different computer systems by wireless network connection) two A or more storage medium.Storage medium can store can be (such as specific by program instruction that one or more processors execute It is embodied as computer program).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The wireless network connecting method operation that executable instruction is not limited to the described above, can also be performed any embodiment of the present invention and is carried Relevant operation in the wireless network connecting method of confession.
Note that 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 present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention 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 May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. wireless network connecting method, which is characterized in that including:
When detecting that wireless network connection event is triggered, the current interference scene of terminal device is determined;
The connection number adjusted value for determining different channels corresponding with the interference scene, according to the connection number adjusted value pair Routing connection strategy in the wireless network connection event is adjusted;
After the router for determining selection connection, routing connection strategy and the router after foundation adjustment are attached.
2. according to the method described in claim 1, it is characterized in that, in the corresponding different letters of the determination and the interference scene Before the connection number adjusted value in road, further include:
The transmission of the wireless network data of different channels is tested under different interference scenes, is determined and is corresponded to according to test result Connection number adjusted value.
3. according to the method described in claim 1, it is characterized in that, the current interference scene of the determining terminal device includes:
Determine the channel transmitting frequency range that terminal device uses;
Correspondingly, the connection number adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the connection number adjusted value of different channels corresponding with channel transmitting frequency range.
4. according to the method described in claim 3, it is characterized in that, corresponding not in the determination and channel transmitting frequency range Before the connection number adjusted value of cochannel, further include:
It determines in preset time, the terminal device emits the data emission measure of frequency range in the channel;
Correspondingly, the connection number adjusted value of the determination and the corresponding different channels of channel transmitting frequency range includes:
Emit frequency range according to the channel and the data emission measure determines the connection number adjusted value of corresponding different channels.
5. according to the method described in claim 1, it is characterized in that, the current interference scene of the determining terminal device includes:
Determine that terminal device is presently in the air interference source of environment;
Correspondingly, the connection number adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the connection number adjusted value of different channels corresponding with the air interference source, the air interference source includes bluetooth At least one of interference source, ZigBee interference sources, WiMax interference sources and microwave interference source.
6. method according to any one of claims 1-5, which is characterized in that the routing according to after adjustment connects plan Slightly and the router be attached including:
The transmission channel being arranged according to the router determines corresponding connection number adjusted value, is adjusted according to the connection number The connection that value and the router carry out corresponding number is attempted.
7. according to the method described in claim 6, it is characterized in that, in the routing connection strategy and described according to after adjustment After router is attached, further include:
If detecting that the interference scene of the terminal device changes, according to the interference scene after changing to the routing Connection strategy is updated.
8. wireless network connection device, which is characterized in that including:
Determining module being interfered, when for detecting that wireless network connection event is triggered, determining the current interference field of terminal device Scape;
Number determining module is connected, the connection number adjusted value for determining different channels corresponding with the interference scene;
Setup module is used for according to the connection number adjusted value to the routing connection strategy in the wireless network connection event It is adjusted;
Link block, for determine selection connection router after, according to adjustment after routing connection strategy and the routing Device is attached.
9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7 institutes The wireless network connecting method stated.
10. a kind of storage medium including terminal device executable instruction, which is characterized in that the terminal device executable instruction When being executed by terminal device processor for executing the wireless network connecting method as described in any one of claim 1-7.
CN201810097943.9A 2018-01-31 2018-01-31 Wireless network connection method, device, terminal equipment and storage medium Active CN108337715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810097943.9A CN108337715B (en) 2018-01-31 2018-01-31 Wireless network connection method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810097943.9A CN108337715B (en) 2018-01-31 2018-01-31 Wireless network connection method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108337715A true CN108337715A (en) 2018-07-27
CN108337715B CN108337715B (en) 2021-01-15

Family

ID=62927622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810097943.9A Active CN108337715B (en) 2018-01-31 2018-01-31 Wireless network connection method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108337715B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613269A (en) * 2021-07-14 2021-11-05 无锡宇宁智能科技有限公司 Method for improving wifi connectivity, mobile terminal and readable storage medium
CN113660122A (en) * 2021-08-16 2021-11-16 珠海格力电器股份有限公司 NB (NB) equipment distribution network adjusting method, device, controller, medium and NB equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123552A (en) * 2007-09-20 2008-02-13 杭州华三通信技术有限公司 An access point and wireless scanning method for this access point
CN101491017A (en) * 2006-07-13 2009-07-22 卢森特技术有限公司 Managing overload of an access medium for a communication system
CN103916979A (en) * 2012-12-28 2014-07-09 佳能株式会社 Information Processing Apparatus And Control Method Thereof
CN104080164A (en) * 2013-03-28 2014-10-01 宏碁股份有限公司 Method of setting attach attempt counter value, user equipment using the same, and network control entity using the same
CN104216739A (en) * 2014-08-22 2014-12-17 广州金山网络科技有限公司 Method, device and terminal for download processing
CN106211354A (en) * 2015-05-29 2016-12-07 苹果公司 The dynamic initiative management of cellular connectivity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491017A (en) * 2006-07-13 2009-07-22 卢森特技术有限公司 Managing overload of an access medium for a communication system
CN101123552A (en) * 2007-09-20 2008-02-13 杭州华三通信技术有限公司 An access point and wireless scanning method for this access point
CN103916979A (en) * 2012-12-28 2014-07-09 佳能株式会社 Information Processing Apparatus And Control Method Thereof
CN104080164A (en) * 2013-03-28 2014-10-01 宏碁股份有限公司 Method of setting attach attempt counter value, user equipment using the same, and network control entity using the same
CN104216739A (en) * 2014-08-22 2014-12-17 广州金山网络科技有限公司 Method, device and terminal for download processing
CN106211354A (en) * 2015-05-29 2016-12-07 苹果公司 The dynamic initiative management of cellular connectivity

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613269A (en) * 2021-07-14 2021-11-05 无锡宇宁智能科技有限公司 Method for improving wifi connectivity, mobile terminal and readable storage medium
CN113660122A (en) * 2021-08-16 2021-11-16 珠海格力电器股份有限公司 NB (NB) equipment distribution network adjusting method, device, controller, medium and NB equipment
CN113660122B (en) * 2021-08-16 2022-09-09 珠海格力电器股份有限公司 NB (NB) equipment distribution network adjusting method, device, controller, medium and NB equipment

Also Published As

Publication number Publication date
CN108337715B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN108055687A (en) Wireless network connecting method, device, terminal device and storage medium
US10939490B2 (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
US11012970B2 (en) Method for processing radio frequency interference and electronic device
CN111093259B (en) Bluetooth power adjustment method and device, storage medium and terminal
CN109379498B (en) Electromagnetic interference control method and related device
WO2020063069A1 (en) Audio playing method and apparatus, electronic device and computer-readable medium
WO2021179184A1 (en) Method for determining uplink transmission parameter, and terminal device
CN116684514A (en) Sound masking method and device and terminal equipment
US20220232445A1 (en) Communications System Switching Method and Terminal Device
CN111148137B (en) Data transmission method and device, storage medium and terminal
US20140307574A1 (en) Communication connection control method and electronic apparatus supporting the same
US20220338289A1 (en) Device control method, apparatus, storage medium and electronic device
CN110856209A (en) Method, apparatus and storage medium for displaying network sign
CN108307485A (en) wireless network scanning method, device, terminal device and storage medium
CN108337719A (en) wireless network scanning method, device, terminal device and storage medium
CN108337715A (en) Wireless network connecting method, device, terminal device and storage medium
CN108832944B (en) Power compensation method, device, terminal equipment and storage medium
CN109600791B (en) Signal strength reporting method and device, storage medium and mobile terminal
CN113286335B (en) Frequency point switching method and device, storage medium and access point
CN108055706A (en) wireless network connection control method, device, storage medium and terminal device
CN113079536A (en) Updating method and device of timing advance and mobile terminal
CN108307447B (en) Wireless network transmission control method, device, storage medium and terminal equipment
CN108337718A (en) wireless network scanning method, device, terminal device and storage medium
CN108366396A (en) Wireless network transmissions method of rate control, device, terminal device and storage medium
CN114915511B (en) Control method and device of split equipment

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
CB02 Change of applicant information

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant