CN108337715B - Wireless network connection method, device, terminal equipment and storage medium - Google Patents

Wireless network connection method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN108337715B
CN108337715B CN201810097943.9A CN201810097943A CN108337715B CN 108337715 B CN108337715 B CN 108337715B CN 201810097943 A CN201810097943 A CN 201810097943A CN 108337715 B CN108337715 B CN 108337715B
Authority
CN
China
Prior art keywords
connection
interference
determining
wireless network
router
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.)
Active
Application number
CN201810097943.9A
Other languages
Chinese (zh)
Other versions
CN108337715A (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

Images

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 application discloses a wireless network connection method, a wireless network connection device, terminal equipment and a storage medium, wherein the method comprises the steps of determining the current interference scene of the terminal equipment when a wireless network connection event is triggered; determining connection time adjustment values of different channels corresponding to the interference scene, and adjusting a routing connection strategy in the wireless network connection event according to the connection time adjustment values; and after determining the router for selecting connection, connecting with the router according to the adjusted route connection strategy. In the scheme, the influence of different interference scenes on the connection process is considered in the connection process of the terminal equipment and the router, so that the connection efficiency is improved, and the success rate of network connection is ensured.

Description

Wireless network connection method, device, terminal equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a wireless network connection method, an apparatus, a terminal device, and a storage medium.
Background
With the increase of the popularity of the terminal device, more and more users use the terminal device to execute various functions to meet their own needs, such as reading text, watching video, listening to music, playing games, etc., and often need to connect to a network to obtain network resources in the process of using the terminal device, such as a 4G mobile network or a wireless wifi network provided by a mobile operator.
In the prior art, when a user uses a terminal device to connect a wireless wifi network, the terminal device selects a router with the strongest signal strength to connect according to the detected signal strength of the router.
Disclosure of Invention
The invention provides a wireless network connection method, a wireless network connection device, terminal equipment and a storage medium, which improve the network connection efficiency and ensure the network connection success rate.
In a first aspect, an embodiment of the present application provides a wireless network connection method, including:
when detecting that a wireless network connection event is triggered, determining a current interference scene of terminal equipment;
determining connection time adjustment values of different channels corresponding to the interference scene, and adjusting a routing connection strategy in the wireless network connection event according to the connection time adjustment values;
and after determining the router for selecting connection, connecting with the router according to the adjusted route connection strategy.
In a second aspect, an embodiment of the present application further provides a wireless network connection apparatus, including:
the interference determining module is used for determining the current interference scene of the terminal equipment when detecting that the wireless network connection event is triggered;
a connection frequency determining module, configured to determine connection frequency adjustment values of different channels corresponding to the interference scenario;
the setting module is used for adjusting the route connection strategy in the wireless network connection event according to the connection time adjustment value;
and the connection module is used for connecting with the router according to the adjusted route connection strategy after determining the router selected for connection.
In a third aspect, an embodiment of the present application further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the wireless network connection method as described in the embodiments of the present application when executing the computer program.
In a fourth aspect, the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are executed by a terminal device processor to perform the wireless network connection method according to the present application.
According to the scheme, when a wireless network connection event is detected to be triggered, the current interference scene of the terminal equipment is determined, connection time adjustment values of different channels corresponding to the interference scene are determined, a route connection strategy in the wireless network connection event is adjusted according to the connection time adjustment values, and after a connected router is determined, connection is carried out with the router according to the adjusted route connection strategy. In the scheme, the influence of different interference scenes on the connection process is considered in the connection process of the terminal equipment and the router, so that the connection efficiency is improved, and the success rate of network connection is ensured.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a wireless network connection method according to an embodiment of the present application;
fig. 2 is a flowchart of another wireless network connection method provided in an embodiment of the present invention;
fig. 3 is a flowchart of another wireless network connection method provided in an embodiment of the present application;
fig. 4 is a flowchart of another wireless network connection method provided in an embodiment of the present application;
fig. 5 is a flowchart of another wireless network connection method according to an embodiment of the present application
Fig. 6 is a block diagram illustrating a wireless network connection device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a wireless network connection method provided in an embodiment of the present application, which is applicable to control of network connection between a terminal device and an accessible device (such as a router), where the method may be executed by the terminal device provided in the embodiment of the present application, and a wireless network connection apparatus of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
step S101, when detecting that a wireless network connection event is triggered, determining a current interference scene of the terminal equipment.
A wireless network (wireless network) is a network implemented using wireless communication technology. The wireless network comprises a global voice and data network allowing the terminal equipment to establish long-distance wireless connection, and also comprises an infrared technology and a radio frequency technology which are optimized for short-distance wireless connection, the purpose of the wireless network is very similar to that of a wired network, the biggest difference lies in the difference of transmission media, the wireless technology is used for replacing a network cable, and the wireless network and the wired network can be mutually backed up.
The wireless network connection event may be triggered manually by a user, for example, the wireless network connection event is activated when it is detected that the WLAN control is clicked and a control binding event is executed correspondingly, or the wireless network connection event is activated and triggered when the terminal device detects that a network state changes (for example, network connection is disconnected).
Exemplarily, taking an Android operating system as an example, when it is detected that a connect () method of WifiManager is called, a current interference scenario of the terminal device is determined. The interference scenario is a scenario that interference is generated to wireless network data transmission, and may be an interference scenario generated by an internal interference source of the terminal device, or an interference scenario generated by an external interference source of the terminal device. For example, the interference scenario corresponding to the internal interference source may be data transmission interference of a 4G network, and the interference scenario corresponding to the external interference source may be interference corresponding to other wireless network devices such as a bluetooth device (e.g., a bluetooth headset). In an embodiment, the determining of the current interference scenario of the terminal device may be determining the current interference scenario of the terminal device in real time when it is detected that the wireless network connection event is triggered, or acquiring the interference scenario recorded by the terminal device as the interference scenario of the current terminal device.
Step S102, determining connection times adjusting values of different channels corresponding to the interference scene, and adjusting the route connection strategy in the wireless network connection event according to the connection times adjusting values.
The channel (also called frequency band) is a data signal transmission channel using wireless signals as transmission media, for example, the commonly used ieee802.11b/g works in the frequency band of 2.4 to 2.4835GHz, and these frequency bands are divided into 11 or 13 channels. Where different interference scenarios have different degrees of impact on different channels, the specific degree of impact may be determined by testing, which may be, for example, taking LTE B40 interference scenario as an example, test its interference to different WiFi channels, wherein, LTE (Long Term Evolution) is The Long Term Evolution of UMTS (Universal Mobile Telecommunications System) technical standard organized by 3GPP (The 3rd Generation Partnership Project), B40, i.e. band 40, refers to The operating frequency band (2300 + 2400Mhz), currently, LTE can support 40 working bands from B1 to B40, and different working bands generate different interference situations for different WiFi channels, WiFi channels at 2.4GHz according to international standard are divided into 13 channels (spanning frequency 2412 to frequency 2472), the interference of the LTE B40 to the WiFi 1 channel is 4db as obtained through the test.
In one embodiment, wireless network data transmission of different channels is tested in advance under different interference scenarios, signal strength interference of the different interference scenarios on the different channels is determined, and corresponding connection time adjustment values are set and recorded, wherein the connection time adjustment values serve as bases for determining connection times with a router in a subsequent wireless network connection process, the connection time adjustment values of the different channels corresponding to the different interference scenarios can be recorded and stored in a terminal device in a table form, when a wireless network connection event is triggered to determine an interference scenario of a current terminal device, connection time adjustment values of the interference scenario on the different channels are determined according to the recorded table, and when a subsequent wireless network connection with a router device is in communication connection with the channel, connection attempt times are determined according to the connection time adjustment values. For example, the specific test procedure may be: respectively testing the signal strength of each channel under the interference and non-interference conditions to determine the influence of an interference scene on the signal strength of different channels, and further setting a corresponding connection time adjustment value, wherein the stronger the interference, the larger the corresponding connection time adjustment value, the smaller the interference, and the smaller the corresponding connection time adjustment value, for example, when the interference strength is 4db, the corresponding connection time adjustment value may be 5, and when the interference strength is 0.2db, the connection time adjustment value is 2.
The method comprises the steps that terminal equipment scans different Wifi channels in the wireless network connection process to obtain a router which can be connected, the scanned router with the strongest signal intensity is selected to be connected, or the best router which is stored in the connection process is connected, connection failure between the terminal equipment and the router is caused due to the influence of an interference source in the connection process, connection needs to be retried, and normally, if connection is performed by adopting the default connection times, the router which can be successfully connected originally cannot be successfully connected due to the fact that the connection attempts are too few in times. For example, the terminal device scans an accessible device on a WiFi 1 channel and prepares for access, and according to an inherent routing connection policy, the terminal device may attempt a connection with the accessible device for a default number of times, for example, 3 times, but at this time, if the terminal device generates a large amount of interference on data transmission of the WiFi 1 channel in an interference scenario (for example, an LTE B40 scenario), which may cause a connection failure, in this step, a connection number adjustment value of a different channel corresponding to the interference scenario is determined, and the routing connection policy in the wireless network connection event is adjusted according to the connection number adjustment value, for example, if the connection number adjustment value of the WiFi 1 channel is 5, the routing connection policy may be correspondingly adjusted as follows: and adding a connection time adjustment value on the basis of the default connection time as the final connection time, or setting the connection time adjustment value as a new used connection time to replace the default connection time. In one embodiment, the adjustment of the routing connection policy may be to override the original router selection manner, or to jump to a new set router connection manner.
And step S103, after the router selected for connection is determined, connecting with the router according to the adjusted route connection strategy.
In one embodiment, after determining to select a router for connection, connecting with the router according to the adjusted routing connection policy includes: and determining a corresponding connection time adjustment value according to a transmission channel set by the router, and performing connection attempts of corresponding times according to the connection time adjustment value and the router. For example, the interference scenario determined in step S101 is an LTE B40 scenario, the connection number adjustment values in the corresponding Wifi channels 1 to 13 are determined to be 5 times, 2 times, 5 times, 4 times, 8 times, 7 times, 9 times, 3 times, 4 times, 5 times, and 8 times in sequence, and the adjustment policy modified in step S102 is assumed to be a form of adding the connection number adjustment value to the default connection number (for example, 3 times), so that in this step, when each channel and router are connected, the connection numbers of the channels 1 to 13 and the router are sequentially: 8, 5, 8, 7, 11, 10, 12, 6, 7, 8 and 11 times.
According to the above content, the influence of different interference scenes on the connection process is considered in the connection process of the terminal equipment and the router, the connection frequency of the terminal equipment and the router is dynamically set, the connection efficiency is improved, and the success rate of network connection is ensured.
It should be noted that the above-mentioned routing connection policy is not limited to the default connection times plus the connection times adjustment value or the connection times adjustment value is set as the new connection times, and meanwhile, the connection times adjustment value is also applicable to the reconnection policy of the terminal device and the router.
Fig. 2 is a flowchart of another wireless network connection method provided in the embodiment of the present application, where optionally, the determining a current interference scenario of a terminal device includes: determining a channel transmitting frequency band used by the terminal equipment; correspondingly, the determining the connection time adjustment value of the different channels corresponding to the interference scenario includes: and determining the connection times adjusting values of different channels corresponding to the channel transmitting frequency band. As shown in fig. 2, the technical solution is as follows:
step S201, when detecting that the wireless network connection event is triggered, determining a channel transmission frequency band used by the terminal equipment.
The channel transmitting frequency band is a data transmitting and receiving frequency band when the terminal device uses a mobile network (such as GSM, 3G and 4G), the terminal device can use the mobile network to transmit and receive partial data simultaneously in the wireless network data transmission process of the access router, channel scanning of the terminal device can generate channel interference, different channel transmitting frequency bands have different interference degrees on different channel scanning signals, and the interference can be determined through software testing, wherein the interference comprises adjacent channel interference, frequency multiplication interference and the like. In this step, the channel transmission frequency band used by the terminal device (for example, the LTE B40 frequency band in the 4G mobile network is used) is determined.
Step S202, determining connection times adjusting values of different channels corresponding to the channel transmitting frequency bands, and adjusting the route connection strategy in the wireless network connection event according to the connection times adjusting values.
The transmitting frequencies used by different channel transmitting frequency bands are different, so that the interference degrees of the different Wifi channels are different, and different connection frequency adjusting values are set. Optionally, the terminal device stores and records a list of connection times adjustment values of different Wifi channels corresponding to different channel transmission frequency bands, and determines connection times adjustment values of different Wifi channels corresponding to the list after determining the channel transmission frequency band used by the terminal device. The process of adjusting the routing connection policy in the wireless network connection event according to the connection number adjustment value may adopt the method in step S102, and details are not described here.
And step S203, after the router selected for connection is determined, connecting with the router according to the adjusted route connection strategy.
Therefore, in the process of wireless network connection of the terminal equipment, mobile communication interference of the equipment is avoided, so that the power of the terminal equipment is improved when the terminal equipment is connected into the router.
Fig. 3 is a flowchart of another wireless network connection method provided in this embodiment, and optionally, before determining the connection time adjustment value of different channels corresponding to the channel transmission frequency band, the method further includes: determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time; correspondingly, the determining the connection time adjustment value of the different channels corresponding to the channel transmission frequency band includes: and determining corresponding connection times adjusting values of different channels according to the channel transmitting frequency band and the data transmitting quantity. As shown in fig. 3, the technical solution is as follows:
step S301, when detecting that the wireless network connection event is triggered, determining a channel transmitting frequency band used by the terminal equipment.
Step S302, determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time.
In one embodiment, the amount of data transmitted by the terminal device using the mobile network channel frequency band within a preset time (e.g., 30 minutes, 60 minutes, or 120 minutes) is recorded.
Step S303, determining corresponding connection times adjusting values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
When determining the connection time adjustment values of different channels, in addition to considering the aforementioned channel frequency band, the data transmission amount of the terminal device in the frequency band is further combined, and illustratively, the larger the data transmission amount is, the larger the connection time adjustment value is, the smaller the data transmission amount is, and the smaller the connection time adjustment value is.
And step S304, after the router for connection is determined to be selected, connecting with the router according to the adjusted route connection strategy.
Therefore, in the process of wireless network connection of the terminal equipment, the influence of the interference source on the route connection is determined by comprehensively considering the interference frequency band of the interference source and the data transmission quantity, and then a reasonable connection time adjustment value is used, so that the network connection efficiency is further improved.
Fig. 4 is a flowchart of another wireless network connection method provided in the embodiment of the present application, where optionally, the determining a current interference scenario of a terminal device includes: determining a wireless interference source of the current environment of the terminal equipment; correspondingly, the determining the connection time adjustment value of the different channels corresponding to the interference scenario includes: and determining a connection frequency adjustment value of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source. As shown in fig. 4, the technical solution is as follows:
step S401, when detecting that the wireless network connection event is triggered, determining a wireless interference source of the environment where the terminal device is currently located.
The wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source. In one embodiment, when a wireless network connection event is detected to be triggered, the Bluetooth device currently connected with the terminal device is determined, or a stored record table is inquired to determine whether other wireless network interference sources exist (such as ZigBee interference sources are recorded).
Step S402, determining connection times adjusting values of different channels corresponding to the wireless interference source, and adjusting the route connection strategy in the wireless network connection event according to the connection times adjusting values.
In one embodiment, after the interference source is determined, a preset connection frequency adjustment value list of different channels corresponding to different interference sources is queried according to different interference source types, and a connection frequency adjustment value of the current interference source in each channel is determined. The manner of adjusting the routing connection policy in the wireless network connection event according to the connection number adjustment value may refer to step S102, which is not described herein again.
And S403, after determining the router to be connected, connecting with the router according to the adjusted route connection strategy.
Therefore, in the process of wireless network connection of the terminal equipment, the external wireless interference source is comprehensively considered, the influence of the external wireless interference source on channel scanning is considered, and the channel scanning efficiency is improved.
Fig. 5 is a flowchart of another wireless network connection method provided in the embodiment of the present application, and optionally, after the connecting with the router according to the adjusted routing connection policy, the method further includes: and if the change of the interference scene of the terminal equipment is detected, updating the route connection strategy according to the changed interference scene. As shown in fig. 5, the technical solution is as follows:
step S501, when detecting that a wireless network connection event is triggered, determining a current interference scene of the terminal equipment.
Step S502, determining connection times adjusting values of different channels corresponding to the interference scene.
Step S503, adjusting the route connection strategy in the wireless network connection event according to the connection number adjustment value.
And step S504, after the router for connection selection is determined, connecting with the router according to the adjusted route connection strategy.
And step S505, monitoring the interference source scanned by the terminal equipment channel.
Illustratively, the data transceiving state of each frequency band is monitored through a wireless transceiving device (module) integrated with the terminal device.
And step S506, judging whether the interference scene of the terminal equipment is changed, if so, executing step S507, otherwise, continuing to monitor.
And step S507, updating the route connection strategy according to the changed interference scene.
When the interference scene of the terminal equipment is monitored to be changed (an interference source is newly added or reduced), the routing connection strategy is adjusted according to the changed interference scene, and correspondingly, the routing connection strategy comprises the adjustment of the disconnection and reconnection times of the terminal equipment and the router.
Therefore, in the process of wireless network connection of the terminal equipment, the route connection times can be flexibly changed along with an interference scene so as to improve the connection power. Optionally, after the interference scenario changes, the currently changed interference scenario is confirmed and recorded, so that a corresponding connection time adjustment value is directly determined according to the recorded interference scenario after a next wireless network connection event is triggered, or the adjusted route connection policy is recorded, so as to be directly used for wireless network connection.
Fig. 6 is a block diagram of a wireless network connection device according to an embodiment of the present application, where the wireless network connection device is configured to execute the wireless network connection method according to the embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus specifically includes: an interference determination module 101, a connection number determination module 102, a setting module 103 and a connection module 104, wherein,
the interference determining module 101 is configured to determine a current interference scenario of the terminal device when detecting that the wireless network connection event is triggered.
The wireless network connection event may be triggered manually by a user, for example, the wireless network connection event is activated when it is detected that the WLAN control is clicked and a control binding event is executed correspondingly, or the wireless network connection event is activated and triggered when the terminal device detects that a network state changes (for example, network connection is disconnected).
Exemplarily, taking an Android operating system as an example, when it is detected that a connect () method of WifiManager is called, a current interference scenario of the terminal device is determined. The interference scenario is a scenario that interference is generated to wireless network data transmission, and may be an interference scenario generated by an internal interference source of the terminal device, or an interference scenario generated by an external interference source of the terminal device. For example, the interference scenario corresponding to the internal interference source may be data transmission interference of a 4G network, and the interference scenario corresponding to the external interference source may be interference corresponding to other wireless network devices such as a bluetooth device (e.g., a bluetooth headset). In an embodiment, the determining of the current interference scenario of the terminal device may be determining the current interference scenario of the terminal device in real time when it is detected that the wireless network connection event is triggered, or acquiring the interference scenario recorded by the terminal device as the interference scenario of the current terminal device.
A connection frequency determining module 102, configured to determine connection frequency adjustment values of different channels corresponding to the interference scenario; a setting module 103, configured to adjust the routing connection policy in the wireless network connection event according to the connection number adjustment value.
The channel (also called frequency band) is a data signal transmission channel using wireless signals as transmission media, for example, the commonly used ieee802.11b/g works in the frequency band of 2.4 to 2.4835GHz, and these frequency bands are divided into 11 or 13 channels. Where different interference scenarios have different degrees of impact on different channels, the specific degree of impact may be determined by testing, which may be, for example, taking LTE B40 interference scenario as an example, test its interference to different WiFi channels, wherein, LTE (Long Term Evolution) is The Long Term Evolution of UMTS (Universal Mobile Telecommunications System) technical standard organized by 3GPP (The 3rd Generation Partnership Project), B40, i.e. band 40, refers to The operating frequency band (2300 + 2400Mhz), currently, LTE can support 40 working bands from B1 to B40, and different working bands generate different interference situations for different WiFi channels, WiFi channels at 2.4GHz according to international standard are divided into 13 channels (spanning frequency 2412 to frequency 2472), the interference of the LTE B40 to the WiFi 1 channel is 4db as obtained through the test.
In one embodiment, wireless network data transmission of different channels is tested in advance under different interference scenarios, signal strength interference of the different interference scenarios on the different channels is determined, and corresponding connection time adjustment values are set and recorded, wherein the connection time adjustment values serve as bases for determining connection times with a router in a subsequent wireless network connection process, the connection time adjustment values of the different channels corresponding to the different interference scenarios can be recorded and stored in a terminal device in a table form, when a wireless network connection event is triggered to determine an interference scenario of a current terminal device, connection time adjustment values of the interference scenario on the different channels are determined according to the recorded table, and when a subsequent wireless network connection with a router device is in communication connection with the channel, connection attempt times are determined according to the connection time adjustment values. For example, the specific test procedure may be: respectively testing the signal strength of each channel under the interference and non-interference conditions to determine the influence of an interference scene on the signal strength of different channels, and further setting a corresponding connection time adjustment value, wherein the stronger the interference, the larger the corresponding connection time adjustment value, the smaller the interference, and the smaller the corresponding connection time adjustment value, for example, when the interference strength is 4db, the corresponding connection time adjustment value may be 5, and when the interference strength is 0.2db, the connection time adjustment value is 2.
The method comprises the steps that terminal equipment scans different Wifi channels in the wireless network connection process to obtain a router which can be connected, the scanned router with the strongest signal intensity is selected to be connected, or the best router which is stored in the connection process is connected, connection failure between the terminal equipment and the router is caused due to the influence of an interference source in the connection process, connection needs to be retried, and normally, if connection is performed by adopting the default connection times, the router which can be successfully connected originally cannot be successfully connected due to the fact that the connection attempts are too few in times. For example, the terminal device scans an accessible device on a WiFi 1 channel and prepares for access, and according to an inherent routing connection policy, the terminal device may attempt a connection with the accessible device for a default number of times, for example, 3 times, but at this time, if the terminal device generates a large amount of interference on data transmission of the WiFi 1 channel in an interference scenario (for example, an LTE B40 scenario), which may cause a connection failure, in this step, a connection number adjustment value of a different channel corresponding to the interference scenario is determined, and the routing connection policy in the wireless network connection event is adjusted according to the connection number adjustment value, for example, if the connection number adjustment value of the WiFi 1 channel is 5, the routing connection policy may be correspondingly adjusted as follows: and adding a connection time adjustment value on the basis of the default connection time as the final connection time, or setting the connection time adjustment value as a new used connection time to replace the default connection time. In one embodiment, the adjustment of the routing connection policy may be to override the original router selection manner, or to jump to a new set router connection manner.
And the connection module 104 is configured to, after determining to select a connected router, connect with the router according to the adjusted route connection policy.
In one embodiment, after determining to select a router for connection, connecting with the router according to the adjusted routing connection policy includes: and determining a corresponding connection time adjustment value according to a transmission channel set by the router, and performing connection attempts of corresponding times according to the connection time adjustment value and the router. For example, the interference scenario determined in step S101 is an LTE B40 scenario, the connection number adjustment values in the corresponding Wifi channels 1 to 13 are determined to be 5 times, 2 times, 5 times, 4 times, 8 times, 7 times, 9 times, 3 times, 4 times, 5 times, and 8 times in sequence, and the adjustment policy modified in step S102 is assumed to be a form of adding the connection number adjustment value to the default connection number (for example, 3 times), so that in this step, when each channel and router are connected, the connection numbers of the channels 1 to 13 and the router are sequentially: 8, 5, 8, 7, 11, 10, 12, 6, 7, 8 and 11 times.
According to the above content, the influence of different interference scenes on the connection process is considered in the connection process of the terminal equipment and the router, the connection frequency of the terminal equipment and the router is dynamically set, the connection efficiency is improved, and the success rate of network connection is ensured.
In one possible embodiment, the interference determination module 101 is further configured to:
and before determining the connection time adjustment values of different channels corresponding to the interference scene, testing the wireless network data transmission of the different channels in the different interference scenes, and determining the corresponding connection time adjustment values according to the test result.
In a possible embodiment, the interference determination module 101 is specifically configured to:
determining a channel transmitting frequency band used by the terminal equipment;
the connection number determining module 102 is specifically configured to:
and determining the connection times adjusting values of different channels corresponding to the channel transmitting frequency band.
In one possible embodiment, the interference determination module 101 is further configured to:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time before determining the connection frequency adjustment values of different channels corresponding to the channel transmission frequency band;
the connection number determining module 102 is specifically configured to:
and determining corresponding connection times adjusting values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
In a possible embodiment, the interference determination module 101 is specifically configured to:
determining a wireless interference source of the current environment of the terminal equipment;
the connection number determining module 102 is specifically configured to:
and determining a connection frequency adjustment value of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
In a possible embodiment, the connection module 104 is specifically configured to:
and determining a corresponding connection time adjustment value according to a transmission channel set by the router, and performing connection attempts of corresponding times according to the connection time adjustment value and the router.
In a possible embodiment, the method further includes an updating module 105, configured to, after the connection is performed with the router according to the adjusted routing connection policy, if it is detected that an interference scenario of the terminal device changes, update the routing connection policy according to the changed interference scenario.
In this embodiment, a terminal device is provided on the basis of the foregoing embodiments, and fig. 7 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 7, the terminal device 200 includes: memory 201, processor (CPU) 202, peripheral interfaces 203, RF (Radio Frequency) circuitry 205, audio circuitry 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, Wifi module 213, other input/control devices 210, and external port 204, which communicate via one or more communication buses or signal lines 207.
It should be understood that the illustrated terminal device 200 is only one example of a terminal device, and that the terminal device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 201, the memory 201 being accessible by the CPU202, the peripheral interface 203, and the like, the memory 201 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 203, said peripheral interface 203 may connect input and output peripherals of the device to the CPU202 and the memory 201.
An I/O subsystem 209, the I/O subsystem 209 may connect input and output peripherals on the device, such as a touch screen 212 and other input/control devices 210, to the peripheral interface 203. The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling the other input/control devices 210. Where one or more input controllers 2092 receive electrical signals from or transmit electrical signals to other input/control devices 210, the other input/control devices 210 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 2092 may be coupled to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 212, the touch screen 212 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 2091 within the I/O subsystem 209 receives electrical signals from the touch screen 212 or transmits electrical signals to the touch screen 212. The touch screen 212 detects a contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 212, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 212 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 205 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 205 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203, convert the audio data into an electric signal, and transmit the electric signal to the speaker 211.
And a speaker 211 for reproducing the voice signal received by the handset from the wireless network through the RF circuit 205 into sound and playing the sound to the user.
And the power management chip 208 is used for supplying power and managing power to the hardware connected with the CPU202, the I/O subsystem and the peripheral interface.
The wireless network connection device of the terminal device and the terminal device provided in the above embodiments may execute the wireless network connection method of the terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For details of the wireless network connection method of the terminal device, reference may be made to the embodiments of the present invention.
Embodiments of the present application further provide a storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform a wireless network connection method, where the method includes:
when detecting that a wireless network connection event is triggered, determining a current interference scene of terminal equipment;
determining connection time adjustment values of different channels corresponding to the interference scene, and adjusting a routing connection strategy in the wireless network connection event according to the connection time adjustment values;
and after determining the router for selecting connection, connecting with the router according to the adjusted route connection strategy.
In a possible embodiment, before the determining the connection number adjustment value of the different channel corresponding to the interference scenario, the method further includes:
and testing wireless network data transmission of different channels in different interference scenes, and determining corresponding connection time adjustment values according to the test results.
In a possible embodiment, the determining the current interference scenario of the terminal device includes:
determining a channel transmitting frequency band used by the terminal equipment;
correspondingly, the determining the connection time adjustment value of the different channels corresponding to the interference scenario includes:
and determining the connection times adjusting values of different channels corresponding to the channel transmitting frequency band.
In a possible embodiment, before the determining the adjustment value of the connection times of different channels corresponding to the channel transmission frequency bands, the method further includes:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time;
correspondingly, the determining the connection time adjustment value of the different channels corresponding to the channel transmission frequency band includes:
and determining corresponding connection times adjusting values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
In a possible embodiment, the determining the current interference scenario of the terminal device includes:
determining a wireless interference source of the current environment of the terminal equipment;
correspondingly, the determining the connection time adjustment value of the different channels corresponding to the interference scenario includes:
and determining a connection frequency adjustment value of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
In a possible embodiment, the connecting with the router according to the adjusted routing connection policy includes:
and determining a corresponding connection time adjustment value according to a transmission channel set by the router, and performing connection attempts of corresponding times according to the connection time adjustment value and the router.
In a possible embodiment, after the connecting with the router according to the adjusted routing connection policy, the method further includes:
and if the change of the interference scene of the terminal equipment is detected, updating the route connection strategy according to the changed interference scene.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a wireless network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the wireless network connection method described above, and may also perform related operations in the wireless network connection method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A wireless network connection method, comprising:
when detecting that a wireless network connection event is triggered, determining a current interference scene of terminal equipment; the interference scene comprises an interference scene generated by an internal interference source of the terminal equipment and an interference scene generated by an external interference source of the terminal equipment;
determining connection time adjustment values of different channels corresponding to the interference scene, and adjusting a routing connection strategy in the wireless network connection event according to the connection time adjustment values; the adjustment is to add the default connection times and the connection time adjustment value as final connection times, or set the connection time adjustment value as the final connection times;
and after determining the router for selecting connection, performing connection attempt according to the final connection times in the adjusted route connection strategy and the router.
2. The method of claim 1, wherein before determining the connection number adjustment value of the different channels corresponding to the interference scenario, the method further comprises:
and testing wireless network data transmission of different channels in different interference scenes, and determining corresponding connection time adjustment values according to the test results.
3. The method of claim 1, wherein the determining the current interference scenario of the terminal device comprises:
determining a channel transmitting frequency band used by the terminal equipment;
correspondingly, the determining the connection time adjustment value of the different channels corresponding to the interference scenario includes:
and determining the connection times adjusting values of different channels corresponding to the channel transmitting frequency band.
4. The method of claim 3, wherein before determining the adjustment value of the connection times of different channels corresponding to the channel transmission frequency bands, the method further comprises:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time;
correspondingly, the determining the connection time adjustment value of the different channels corresponding to the channel transmission frequency band includes:
and determining corresponding connection times adjusting values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
5. The method of claim 1, wherein the determining the current interference scenario of the terminal device comprises:
determining a wireless interference source of the current environment of the terminal equipment;
correspondingly, the determining the connection time adjustment value of the different channels corresponding to the interference scenario includes:
and determining a connection frequency adjustment value of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
6. The method according to any of claims 1-5, wherein said attempting a connection with said router in accordance with said final number of connections in said adjusted routing connection policy comprises:
and determining the corresponding final connection times according to the transmission channel set by the router, and performing connection attempts of corresponding times according to the final connection times and the router.
7. The method according to claim 6, further comprising, after the connecting with the router according to the final connection number in the adjusted routing connection policy, the following:
and if the change of the interference scene of the terminal equipment is detected, updating the route connection strategy according to the changed interference scene.
8. A wireless networking apparatus, comprising:
the interference determining module is used for determining the current interference scene of the terminal equipment when detecting that the wireless network connection event is triggered; the interference scene comprises an interference scene generated by an internal interference source of the terminal equipment and an interference scene generated by an external interference source of the terminal equipment;
a connection frequency determining module, configured to determine connection frequency adjustment values of different channels corresponding to the interference scenario;
the setting module is used for adjusting the route connection strategy in the wireless network connection event according to the connection time adjustment value; the adjustment is to add the default connection times and the connection time adjustment value as final connection times, or set the connection time adjustment value as the final connection times;
and the connection module is used for performing connection attempt according to the final connection times in the adjusted route connection strategy and the router after determining the router for selecting connection.
9. A terminal device, comprising: processor and memory, the memory having stored thereon a computer program operable on the processor, characterized in that the processor, when executing the computer program, implements the wireless network connection method according to any of claims 1-7.
10. A storage medium containing a computer program executable by a terminal device, the computer program executable by the terminal device being adapted to perform the wireless network connection method according to any one of claims 1-7 when executed by a terminal device processor.
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 CN108337715A (en) 2018-07-27
CN108337715B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613269B (en) * 2021-07-14 2022-06-24 无锡宇宁智能科技有限公司 Method for improving wifi connectivity, mobile terminal and readable storage medium
CN113660122B (en) * 2021-08-16 2022-09-09 珠海格力电器股份有限公司 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

Also Published As

Publication number Publication date
CN108337715A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN108055687B (en) Wireless network connection method and device and terminal equipment
CN109548075B (en) Measurement report reporting method, device, storage medium and mobile terminal
US10764898B2 (en) Media access control (MAC) address identification
CN107889092B (en) Bluetooth device communication control method, device, terminal device and storage medium
WO2020063761A1 (en) Data transmitting method and system
US9369858B2 (en) Wi-Fi P2P communication terminal device and communication method thereof
KR20220140606A (en) DATA TRANSMISSION METHOD AND DATA TRANSMISSION APPARATUS
CN106230492B (en) Terminal antenna switching method and device and mobile terminal
CN109379498B (en) Electromagnetic interference control method and related device
CN108093444B (en) Wireless network transmission rate control method and device, terminal equipment and storage medium
CN109450851B (en) Device connection method, electronic device, and computer-readable medium
EP4002780B1 (en) Wireless high-fidelity wi-fi connection control method and related product
US9992614B2 (en) Wireless device pairing management
US20230171586A1 (en) Automated Subscription Management for Wireless Devices Having Multiple Subscription Profiles
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US20220338289A1 (en) Device control method, apparatus, storage medium and electronic device
EP3182787A1 (en) Communication method and device
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
CN106874131B (en) Broadcast queue adjusting method and device and terminal equipment
CN108832944B (en) Power compensation method, device, terminal equipment and storage medium
CN108833033B (en) Method and device for determining radio frequency calibration parameters, storage medium and mobile terminal
CN108307447B (en) Wireless network transmission control method, device, storage medium and terminal equipment
CN108337718B (en) Wireless network scanning method and device, terminal equipment and storage medium

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