CN110730517B - Network connection control method and related product - Google Patents

Network connection control method and related product Download PDF

Info

Publication number
CN110730517B
CN110730517B CN201911008106.5A CN201911008106A CN110730517B CN 110730517 B CN110730517 B CN 110730517B CN 201911008106 A CN201911008106 A CN 201911008106A CN 110730517 B CN110730517 B CN 110730517B
Authority
CN
China
Prior art keywords
wlan interface
target
function
evaluation value
electronic device
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
CN201911008106.5A
Other languages
Chinese (zh)
Other versions
CN110730517A (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 CN201911008106.5A priority Critical patent/CN110730517B/en
Publication of CN110730517A publication Critical patent/CN110730517A/en
Application granted granted Critical
Publication of CN110730517B publication Critical patent/CN110730517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The embodiment of the application discloses a network connection control method and a related product, which are applied to electronic equipment supporting double Wi-Fi functions, wherein the electronic equipment comprises a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface, and the method comprises the following steps: detecting whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, wherein the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi through the first WLAN interface and accesses a second Wi-Fi through the second WLAN interface; when the P2P function is turned on, releasing a target WLAN interface of the first WLAN interface and the second WLAN interface, and implementing the P2P function through the target WLAN interface, wherein the target WLAN interface is one of the first WLAN interface and the second WLAN interface. The embodiment of the application can solve the coexistence problem between the dual Wi-Fi and the P2P functions.

Description

Network connection control method and related product
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network connection control method and a related product.
Background
The current chip can support the capacity of 2.4G and 5G double-frequency simultaneous working, and based on the hardware capacity, the electronic equipment can be simultaneously connected with two different wireless fidelity (Wi-Fi) hotspots so as to realize accessing two WiFi networks corresponding to the two WiFi hotspots for surfing the internet and further obtain user experiences of higher network speed, lower network delay and the like. The mobile phone has the function of accessing two WiFi networks simultaneously to surf the internet, which is called as 'double WiFi'.
However, in the prior art, when an electronic device (e.g., a mobile phone, a tablet computer, etc.) operates in a dual WiFi mode, that is, two different WiFi networks are connected simultaneously, if the two WiFi networks operate at 2.4G and 5G, respectively, coexistence between the dual Wi-Fi function and the peer-to-peer (P2P) function cannot be achieved.
Disclosure of Invention
The embodiment of the application provides a network connection control method and a related product, which can solve the coexistence problem between the Wi-Fi function and the P2P function.
In a first aspect, an embodiment of the present application provides a network connection control method, which is applied to an electronic device supporting dual Wi-Fi functions, where the electronic device includes a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, and the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface, where the method includes:
detecting whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, wherein the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi through the first WLAN interface and accesses a second Wi-Fi through the second WLAN interface;
when the P2P function is turned on, releasing a target WLAN interface of the first WLAN interface and the second WLAN interface, and implementing the P2P function through the target WLAN interface, wherein the target WLAN interface is one of the first WLAN interface and the second WLAN interface.
In a second aspect, an embodiment of the present application provides a network connection control apparatus, which is applied to an electronic device supporting dual Wi-Fi functions, where the electronic device includes a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, and the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface; the network connection control device comprises a detection unit and an execution unit, wherein,
the detection unit is configured to detect whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, where the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi via the first WLAN interface and accesses a second Wi-Fi via the second WLAN interface;
the execution unit is configured to release a target WLAN interface of the first WLAN interface and the second WLAN interface when the P2P function is turned on, and implement the P2P function through the target WLAN interface, where the target WLAN interface is one of the first WLAN interface and the second WLAN interface.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the network connection control method and related product described in the embodiments of the present application are applied to an electronic device supporting dual Wi-Fi functions, where the electronic device includes a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, the second Wi-Fi module is in an STA mode and corresponds to a second WLAN interface, when the electronic device is in a dual Wi-Fi connection state, the electronic device detects whether a peer-to-peer network P2P function is turned on, the dual Wi-Fi connection state is that the electronic device accesses the first Wi-Fi through the first WLAN interface and accesses the second Wi-Fi through the second WLAN interface, when the P2P function is turned on, a target WLAN interface of the first WLAN interface and the second WLAN interface is released, and the P2P function is implemented through the target WLAN interface, and the target WLAN interface is one of the first WLAN interface and the second WLAN interface, namely, the electronic device in the dual Wi-Fi connection state can release one WLAN interface when the P2P function is turned on, so as to realize the P2P function by using the released WLAN interface, namely, it is ensured that one Wi-Fi is in the connection state, the P2P function is also normally performed, and the coexistence problem between the dual Wi-Fi and the P2P is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1A is a schematic architecture diagram of a communication system according to an embodiment of the present application;
fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a network connection control method according to an embodiment of the present application;
fig. 2B is a schematic flowchart of another network connection control method according to an embodiment of the present application;
fig. 2C is a schematic illustration showing a comparison interface of the electronic device before and after the P2P function is opened according to the embodiment of the present application;
fig. 3 is a schematic flowchart of another network connection control method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram of functional units of a network connection control apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device, the first device, and the second device according to the embodiments of the present application may be electronic devices with communication capabilities, and the electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on.
Referring to fig. 1A, fig. 1A is a communication system provided in an embodiment of the present application, where the communication system includes an electronic device and a plurality of Access Points (APs), and the APs are Access points of a Wi-Fi network. In the embodiment of the application, the electronic device supports dual Wi-Fi functions, that is, two Wi-Fi networks can be accessed, for example, the electronic device accesses the Wi-Fi network 1 through the AP1 and accesses the Wi-Fi network 2 through the AP 2. The form and number of the electronic devices and APs shown in fig. 1A are merely examples, and do not limit the embodiments of the present application.
In the embodiment of the application, the electronic device may include a first Wi-Fi module and a second Wi-Fi module, and the first Wi-Fi module and the second Wi-Fi module may be two separate Wi-Fi modules, or the first Wi-Fi module and the second Wi-Fi module may be integrated together. Of course, one Wi-Fi can be positioned as a main Wi-Fi, and the other Wi-Fi can be positioned as a secondary Wi-Fi.
In the specific implementation, the specific implementation manner of accessing the electronic device to the Wi-Fi network includes: the electronic equipment firstly conducts Wi-Fi scanning to obtain a connectable Wi-Fi network, then sends a Wi-Fi network access request to an AP of the connectable Wi-Fi network, then sends a Wi-Fi network access response to the electronic equipment aiming at the Wi-Fi network access request, and finally receives the Wi-Fi network access response to access the Wi-Fi network.
As shown in fig. 1B, fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device includes a processor, Memory, signal processor, transceiver, display screen, speaker, microphone, Random Access Memory (RAM), camera, sensor, and Wi-Fi module, among others. The storage, the signal processor, the display screen, the loudspeaker, the microphone, the RAM, the camera, the sensor and the Wi-Fi module are connected with the processor, and the transceiver is connected with the signal processor.
The Display screen may be a Liquid Crystal Display (LCD), an Organic or inorganic Light-Emitting Diode (OLED), an Active Matrix/Organic Light-Emitting Diode (AMOLED), or the like.
The camera may be a common camera or an infrared camera, and is not limited herein. The camera may be a front camera or a rear camera, and is not limited herein.
Wherein the sensor comprises at least one of: light-sensitive sensors, gyroscopes, infrared proximity sensors, fingerprint sensors, pressure sensors, etc. Among them, the light sensor, also called an ambient light sensor, is used to detect the ambient light brightness. The light sensor may include a light sensitive element and an analog to digital converter. The photosensitive element is used for converting collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the light sensor may further include a signal amplifier, and the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The processor is a control center of the electronic equipment, various interfaces and lines are used for connecting all parts of the whole electronic equipment, and various functions and processing data of the electronic equipment are executed by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the electronic equipment is monitored integrally.
The processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes various functional applications and data processing of the electronic equipment by operating the software programs and/or modules stored in the memory. The memory mainly comprises a program storage area and a data storage area, wherein the program storage area can store an operating system, a software program required by at least one function and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The Wi-Fi communication module supports double Wi-Fi functions, so that the electronic equipment can work at 2.4G and 5G simultaneously. Through the Wi-Fi module, one electronic end device can access two different Wi-Fi networks at the same time, so that 2 Wi-Fi networks can be used for surfing the internet at the same time to obtain higher transmission rate, lower network delay and the like. The Wi-Fi module may be, for example, a Dual Band Dual Current (DBDC) module, a Dual Band Simultaneouss (DBS) module, or another chip module.
The following describes embodiments of the present application in detail.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a network connection control method provided in an embodiment of the present application, and is applied to an electronic device supporting dual Wi-Fi functions, as shown in fig. 1B, where the electronic device further includes a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, and the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface (for example, two access points are accessed simultaneously); as shown in the figure, the present network connection control method includes the following operations.
201. And when the electronic equipment is in a double Wi-Fi connection state, detecting whether a function of a peer-to-peer network P2P is started, wherein the double Wi-Fi connection state is that the electronic equipment accesses a first Wi-Fi through the first WLAN interface and accesses a second Wi-Fi through the second WLAN interface.
The first working frequency band of the first Wi-Fi may be a 2.4G frequency band, or a 5G frequency band, and the second working frequency band of the second Wi-Fi may be a 2.4G frequency band, or a 5G frequency band, but the first working frequency band and the second working frequency band are different working frequency bands, such as: the first operating frequency band is 2.4G frequency band, and the second operating frequency band is 5G frequency band, as follows: the first working frequency band is 5G frequency band, and the second working frequency band is 2.4G frequency band. In the specific implementation, when the electronic equipment is in a double-Wi-Fi function starting state, the electronic equipment is simultaneously accessed to a first Wi-Fi and a second Wi-Fi, and data transmission can be realized through the first Wi-Fi and the second Wi-Fi by adopting an intelligent link aggregation technology.
In this embodiment, the electronic device may be in a dual Wi-Fi connection state, where the first Wi-Fi module may be in an STA (station) mode, which corresponds to a first Wireless Local Area Network (WLAN) interface, and similarly, the second Wi-Fi module may also be in the STA mode, which corresponds to a second Wi-Fi interface.
In one possible example, the step 201 of detecting whether the peer-to-peer network P2P function is turned on may be implemented as follows:
performing device search to obtain a device identifier list, wherein the device identifier list comprises target identifier information of first devices, and when the target identifier information is selected, determining that the P2P function is started;
alternatively, the first and second electrodes may be,
receiving a connection request sent by a second device for connecting the second device, and determining that the P2P function is opened when the electronic device agrees to access the second device.
In a specific implementation, the target identification information may be at least one of the following: MAC address, IP address, device name, etc., without limitation. The target electronic device may perform a device search to obtain a device identification list, where the device identification list may include identification information of at least one device, and the first device may be any device of the at least one device, and when the target identification information is selected, it is confirmed that the P2P function is turned on.
In addition, the electronic device may also receive a connection request sent by the second device for connecting to the second device, and when the electronic device agrees to access the second device, confirm that the P2P function is turned on.
That is, the peer-to-peer network P2P function is turned on, that is, WLAN direct connection is required, for example, the electronic device actively performs network connection with other electronic devices, or the electronic device serves as an access point for other electronic devices to access the electronic device.
202. When the P2P function is turned on, releasing a target WLAN interface of the first WLAN interface and the second WLAN interface, and implementing the P2P function through the target WLAN interface, wherein the target WLAN interface is one of the first WLAN interface and the second WLAN interface.
In a specific implementation, the target WLAN interface may be any one of the first WLAN interface and the second WLAN interface. When the P2P function is turned on, the electronic device may release any one of the first WLAN interface and the second WLAN interface, that is, the target WLAN interface, for example, the target WLAN interface may be a WLAN interface of secondary Wi-Fi, and implement the P2P function through the target WLAN interface, and specifically, may actively connect to another device through the target WLAN interface or be passively connected to another device through the target WLAN interface. Certainly, in the embodiment of the application, only one WLAN interface with double Wi-Fi functions is released, and the other WLAN interface can still realize the Wi-Fi functions, so that the device can realize both the Wi-Fi functions and the P2P functions, and the coexistence problem between the double Wi-Fi functions and the P2P function is solved.
For example, in the step 202, the electronic device may determine a release priority of each WLAN interface, and release one of the first WLAN interface and the second WLAN interface according to the release priority in descending order.
For another example, in the process of executing step 202, the first Wi-Fi is used to implement the first application, the second Wi-Fi is used to implement the second application, the application priority between the first application and the second application is determined, and the WLAN interface corresponding to the application priority with the low application priority is released.
For example, as shown in fig. 2B, when the electronic device opens the WLAN direct connection, that is, when the P2P function is opened, the WLAN direct connection may include two situations, one is to actively connect another person, that is, click the device that needs to be connected, at this time, one WLAN interface (which may be a secondary Wi-Fi interface) may be released, and when the release is successful, the P2P function may be started; the other is connected by others, namely when a connected request is received, if other equipment is approved to be connected, a WLAN interface (which can be a secondary Wi-Fi interface) can be released, and if the release is successful, the P2P connection can be started to realize the P2P function.
Further, the OPPO mutual transmission can be used as an application of WLAN direct connection, and in a specific implementation, when the electronic device starts the OPPO mutual transmission, one WLAN interface of the dual Wi-Fi is immediately released, the dual Wi-Fi function is temporarily disabled, when the electronic device is in the OPPO mutual transmission use, the Wi-Fi of the released WLAN interface of the dual Wi-Fi is not allowed to be pulled up again, the OPPO mutual transmission use is preferentially met, and when the electronic device is at the end of the OPPO mutual transmission, the disabling is cancelled to ensure that the dual Wi-Fi function can be enabled again.
In one possible example, after the step 202, the following steps may be further included:
disabling the dual Wi-Fi functionality before the P2P functionality is turned off;
alternatively, the first and second electrodes may be,
disabling Wi-Fi functionality corresponding to the target WLAN interface before the P2P functionality is turned off.
In specific implementation, the electronic device may disable the dual Wi-Fi function before the P2P function is turned off, so that the P2P function may be ensured to be normally performed, and similarly, before the P2P function is turned off, the Wi-Fi function corresponding to the target WLAN interface may also be disabled, so that the P2P function is ensured to be normally performed.
Further, in one possible example, the following steps may also be included:
canceling disabling the dual Wi-Fi functionality when the P2P functionality is turned off.
In a specific implementation, the electronic device may disable the dual Wi-Fi function when the P2P function is turned off, so that the dual Wi-Fi function may be performed normally.
In one possible example, the step 202 of releasing the target WLAN interface from the first WLAN interface and the second WLAN interface may include the following steps:
21. determining a first channel evaluation value of the first Wi-Fi;
22. determining a second channel evaluation value of the second Wi-Fi;
23. comparing the first channel evaluation value with the second channel evaluation value to obtain a comparison result;
24. and according to the comparison result, confirming one WLAN interface in the first WLAN interface and the second WLAN interface as a target WLAN interface, and releasing the target WLAN interface.
In this embodiment of the present application, the first channel evaluation value and the second channel evaluation value may be characterized by at least one of the following parameters: the Received Signal Strength Indication (RSSI) (which may also be referred to as a signal strength value), the Reference Signal Received Power (RSRP), and the Reference Signal Received Quality (RSRQ) indicate that, for example, a higher received signal strength indication indicates a larger channel evaluation value, and that, for example, a better received reference signal quality indicates a larger channel evaluation value.
In a specific implementation, the first Wi-Fi may correspond to the first channel, and the electronic device may determine the first channel evaluation value of the first Wi-Fi, for example, the channel evaluation value may be determined according to a signal strength value, such as: the signal strength value is used as a channel evaluation value, and similarly, the second Wi-Fi may correspond to a second channel, the electronic device may determine a second channel evaluation value of the second Wi-Fi in the same manner as the first Wi-Fi, and further, may compare the first channel evaluation value with the second channel evaluation value, and may release the WLAN interface corresponding to the second Wi-Fi if the first channel evaluation value is greater than the second channel evaluation value, or may release the WLAN interface corresponding to the first Wi-Fi if the first channel evaluation value is less than the second channel evaluation value. In the embodiment of the application, the first Wi-Fi may be a primary Wi-Fi, the second Wi-Fi may be a secondary Wi-Fi, and when the first channel evaluation value is equal to the second channel evaluation value, the second WLAN interface corresponding to the second Wi-Fi may be released.
Further, in a possible example, the step 21 of determining the first channel evaluation value of the first Wi-Fi may include the following steps:
211. acquiring a signal intensity curve of the first Wi-Fi in a preset time period;
212. sampling the signal intensity curve to obtain a plurality of signal intensity values;
213. carrying out mean value operation according to the plurality of signal intensity values to obtain a first mean signal intensity value;
214. determining a target signal grade corresponding to the first average signal strength value;
215. determining a target first evaluation value corresponding to the target signal grade according to a mapping relation between a preset signal grade and the first evaluation value;
216. performing mean square error operation according to the plurality of signal strength values to obtain a first mean square error;
217. determining a target second evaluation value corresponding to the first mean square error according to a mapping relation between a preset mean square error and the second evaluation value;
218. determining a target weight pair corresponding to the target signal level according to a mapping relation between a preset signal level and the weight pair, wherein the target weight pair comprises a target first weight and a target second weight, the target first weight is a first weight corresponding to the first evaluation value, and the target second weight is a second weight corresponding to the second evaluation value;
219. and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target first weight and the target second weight to obtain the first channel evaluation value.
In the embodiment of the present application, the preset time period may be set by a user or default by a system. The electronic device may store a mapping relationship between a preset signal level and the first evaluation value, a mapping relationship between a preset mean square error and the second evaluation value, and a mapping relationship between a preset signal level and the weight pair in advance. The weight pair may include a first weight of the first evaluation value and a second weight of the second evaluation value, and a sum of the first weight and the second weight may be 1, and of course, the higher the signal level is, the larger the first weight is, and the lower the signal level is, the smaller the first weight is.
In specific implementation, the electronic device may obtain a signal intensity curve of the first Wi-Fi in a preset time period, and sample the signal intensity curve to obtain a plurality of signal intensity values, where a specific sampling manner may be sampling at preset time intervals or random sampling, and is not limited herein, and the preset time intervals may be set by a user or default to a system.
Further, the electronic device may perform a mean operation according to a plurality of signal strength values to obtain a first mean signal strength value, may further pre-store a mapping relationship between the signal strength value and the signal level in the electronic device, and further may determine a target signal level corresponding to the first mean signal strength value according to the mapping relationship, and may determine a target first evaluation value corresponding to the target signal level according to the mapping relationship between the preset signal level and the first evaluation value, and further perform a mean square error operation according to a plurality of signal strength values to obtain a first mean square error, where the mean square error reflects the fluctuation condition of the signal to a certain extent, and of course, the smaller the mean square error is, the better the signal stability is, and the larger the mean square error is, the worse the signal stability is. The electronic device may determine the target second evaluation value corresponding to the first mean square error according to the preset mapping relationship between the mean square error and the second evaluation value.
Further, the electronic device may determine, according to the preset mapping relationship between the signal level and the weight pair, a target weight pair corresponding to the target signal level, where the target weight pair includes a target first weight and a target second weight, where the target first weight is a first weight corresponding to the first evaluation value, and the target second weight is a second weight corresponding to the second evaluation value, and finally, may perform a weighted operation according to the target first evaluation value, the target second evaluation value, the target first weight, and the target second weight, to obtain the first channel evaluation value, where a specific formula is as follows:
the first channel evaluation value is target first evaluation value and target first weight and target second evaluation value and target second weight
Therefore, in the embodiment of the application, not only is a signal strength curve in a period of time selected, but also an average signal strength value and a mean square error are determined based on the signal strength curve to determine a channel evaluation value, one of which can reflect the stability of a channel in a period of time, the second of which reflects the connection stability, the larger the signal strength, the more stable the communication connection is, the mean square error reflects the channel communication stability, the smaller the mean square error is, the more stable the channel communication is, and the third of which is that, in the channel evaluation process, the weight corresponding to the average signal strength value and the weight corresponding to the mean square error can be dynamically adjusted, so that the channel quality can be accurately evaluated.
Of course, the implementation principle of step 22 is similar to that of step 21, and reference may also be made to steps 211 to 219, which are not described herein again.
For example, as shown in fig. 2C, fig. 2C is a schematic view of an interface demonstration before and after the P2P function is turned on, and it can be seen that before the P2P function is not turned on, that is, the P2P mode is in the off state, the electronic device may be in the dual Wi-Fi mode, that is, the first Wi-Fi and the second Wi-Fi may be connected at the same time, and after the P2P function is turned on, the electronic device may be in the P2P mode, the dual Wi-Fi mode may be disabled, that is, only the first Wi-Fi may be connected, and the second Wi-Fi may be disconnected, that is, only one Wi-Fi is in the connected state, so that the Wi-Fi function may be implemented, the P2P function may be implemented, and the coexistence problem between the P2P function and the dual Wi-Fi function is solved.
It can be seen that the network connection control method described in the embodiment of the present application is applied to an electronic device supporting dual Wi-Fi functionality, the electronic device including a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module being in an STA mode and corresponding to a first WLAN interface, the second Wi-Fi module being in an STA mode and corresponding to a second WLAN interface, when the electronic device is in a dual Wi-Fi connection state, the electronic device detecting whether a peer-to-peer network P2P function is turned on, the dual Wi-Fi connection state being that the electronic device accesses the first Wi-Fi through the first WLAN interface and accesses the second Wi-Fi through the second WLAN interface, when the P2P function is turned on, a target WLAN interface of the first WLAN interface and the second WLAN interface is released and the P2P function is implemented through the target WLAN interface, the target WLAN interface being one of the first WLAN interface and the second WLAN interface, namely, the electronic device in the dual Wi-Fi connection state can release one WLAN interface when the P2P function is turned on, so as to realize the P2P function by using the released WLAN interface, namely, it is ensured that one Wi-Fi is in the connection state, the P2P function is also normally performed, and the coexistence problem between the dual Wi-Fi and the P2P is solved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a network connection control method provided in an embodiment of the present application, and the method is applied to an electronic device supporting dual Wi-Fi functions, where the electronic device includes a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, and the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface.
301. And when the electronic equipment is in a double Wi-Fi connection state, detecting whether a function of a peer-to-peer network P2P is started, wherein the double Wi-Fi connection state is that the electronic equipment accesses a first Wi-Fi through the first WLAN interface and accesses a second Wi-Fi through the second WLAN interface.
302. When the P2P function is turned on, releasing a target WLAN interface of the first WLAN interface and the second WLAN interface, and implementing the P2P function through the target WLAN interface, wherein the target WLAN interface is one of the first WLAN interface and the second WLAN interface.
303. Disabling the dual Wi-Fi functionality before the P2P functionality is turned off.
304. Canceling disabling the dual Wi-Fi functionality when the P2P functionality is turned off.
It can be seen that the network connection control method described in the embodiment of the present application is applied to an electronic device supporting dual Wi-Fi functionality, the electronic device including a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module being in an STA mode and corresponding to a first WLAN interface, the second Wi-Fi module being in an STA mode and corresponding to a second WLAN interface, when the electronic device is in a dual Wi-Fi connection state, the electronic device detecting whether a peer-to-peer network P2P function is turned on, the dual Wi-Fi connection state being that the electronic device accesses the first Wi-Fi through the first WLAN interface and accesses the second Wi-Fi through the second WLAN interface, when the P2P function is turned on, a target WLAN interface of the first WLAN interface and the second WLAN interface is released and the P2P function is implemented through the target WLAN interface, the target WLAN interface being one of the first WLAN interface and the second WLAN interface, the method comprises the steps of disabling the double Wi-Fi functions before the P2P function is closed, canceling the disabling of the double Wi-Fi functions when the P2P function is closed, namely, the electronic equipment in the double Wi-Fi connection state is enabled, releasing a WLAN interface when the P2P function is opened to achieve the P2P function by utilizing the released WLAN interface, namely, ensuring that one Wi-Fi is in the connection state and the P2P function is normally performed, disabling the double Wi-Fi functions in the P2P function stage, and releasing the disabling of the double Wi-Fi functions when the P2 function is finished, so that the coexistence problem between the double Wi-Fi and the P2P is solved, and ensuring that the double Wi-Fi functions and the P2P function can be normally performed.
In accordance with the embodiments shown in fig. 2A and fig. 3, referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device 400 according to an embodiment of the present disclosure, as shown, the electronic device 400 includes an application processor 410, memory 420, a communication interface 430, and one or more programs 421, the electronic device supports dual Wi-Fi functionality, the electronic device can include a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module being in STA mode and corresponding to the first WLAN interface, the second Wi-Fi module being in STA mode and corresponding to the second WLAN interface, wherein the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, the one or more programs 421 include instructions for performing any of the steps of the above-described method embodiments.
Detecting whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, wherein the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi through the first WLAN interface and accesses a second Wi-Fi through the second WLAN interface;
when the P2P function is turned on, releasing a target WLAN interface of the first WLAN interface and the second WLAN interface, and implementing the P2P function through the target WLAN interface, wherein the target WLAN interface is one of the first WLAN interface and the second WLAN interface.
It can be seen that the electronic device described in the embodiments of the present application, which supports dual Wi-Fi functionality, includes a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module being in an STA mode and corresponding to a first WLAN interface, the second Wi-Fi module being in an STA mode and corresponding to a second WLAN interface, the electronic device detects whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, the dual Wi-Fi connection state is that the electronic device accesses the first Wi-Fi through the first WLAN interface and accesses the second Wi-Fi through the second WLAN interface, when the P2P function is turned on, a target WLAN interface of the first WLAN interface and the second WLAN interface is released and the P2P function is implemented through the target WLAN interface, the target WLAN interface is one of the first WLAN interface and the second WLAN interface, namely, the electronic device in the dual Wi-Fi connection state can release one WLAN interface when the P2P function is turned on, so as to realize the P2P function by using the released WLAN interface, namely, it is ensured that one Wi-Fi is in the connection state, the P2P function is also normally performed, and the coexistence problem between the dual Wi-Fi and the P2P is solved.
In one possible example, the instructions in the program are further specifically for performing the following:
disabling the dual Wi-Fi functionality before the P2P functionality is turned off;
alternatively, the first and second electrodes may be,
disabling Wi-Fi functionality corresponding to the target WLAN interface before the P2P functionality is turned off.
In one possible example, the instructions in the program are further specifically for performing the following:
canceling disabling the dual Wi-Fi functionality when the P2P functionality is turned off.
In one possible example, in terms of detecting whether the peer-to-peer network P2P function is turned on, the instructions in the program are specifically configured to:
and searching equipment to obtain an equipment identification list, wherein the equipment identification list comprises target identification information of the first equipment, and when the target identification information is selected, the P2P function is determined to be started.
In one possible example, in terms of detecting whether the peer-to-peer network P2P function is turned on, the instructions in the program are specifically configured to:
receiving a connection request transmitted by a second device for connecting the second device;
determining that the P2P function is turned on when the electronic device agrees to access the second device.
In one possible example, in terms of the releasing the target WLAN interface of the first WLAN interface and the second WLAN interface, the instructions in the program are specifically configured to:
determining a first channel evaluation value of the first Wi-Fi;
determining a second channel evaluation value of the second Wi-Fi;
comparing the first channel evaluation value with the second channel evaluation value to obtain a comparison result;
and according to the comparison result, confirming one WLAN interface in the first WLAN interface and the second WLAN interface as a target WLAN interface, and releasing the target WLAN interface.
In one possible example, in the determining the first channel assessment value for the first Wi-Fi, the instructions in the program are specifically to:
acquiring a signal intensity curve of the first Wi-Fi in a preset time period;
sampling the signal intensity curve to obtain a plurality of signal intensity values;
carrying out mean value operation according to the plurality of signal intensity values to obtain a first mean signal intensity value;
determining a target signal grade corresponding to the first average signal strength value;
determining a target first evaluation value corresponding to the target signal grade according to a mapping relation between a preset signal grade and the first evaluation value;
performing mean square error operation according to the plurality of signal strength values to obtain a first mean square error;
determining a target second evaluation value corresponding to the first mean square error according to a mapping relation between a preset mean square error and the second evaluation value;
determining a target weight pair corresponding to the target signal level according to a mapping relation between a preset signal level and the weight pair, wherein the target weight pair comprises a target first weight and a target second weight, the target first weight is a weight corresponding to the first evaluation value, and the target second weight is a weight corresponding to the second evaluation value;
and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target first weight and the target second weight to obtain the first channel evaluation value.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 5 is a block diagram showing functional units of a network connection control apparatus 500 according to an embodiment of the present application. The network connection control device 500 is applied to an electronic device supporting dual Wi-Fi functions, and the electronic device comprises a first Wi-Fi module and a second Wi-Fi module, wherein the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, and the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface; the network connection control device 500 comprises a detection unit 501 and an execution unit 502. The details will be described below.
The detecting unit 501 is configured to detect whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, where the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi via the first WLAN interface and accesses a second Wi-Fi via the second WLAN interface;
the execution unit 502 is configured to release a target WLAN interface of the first WLAN interface and the second WLAN interface when the P2P function is turned on, and implement the P2P function through the target WLAN interface, where the target WLAN interface is one of the first WLAN interface and the second WLAN interface.
It can be seen that the network connection control apparatus described in the embodiments of the present application is applied to an electronic device supporting dual Wi-Fi functionality, the electronic device including a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module being in an STA mode and corresponding to a first WLAN interface, the second Wi-Fi module being in an STA mode and corresponding to a second WLAN interface, when the electronic device is in a dual Wi-Fi connection state, the electronic device detecting whether a peer-to-peer network P2P function is turned on, the dual Wi-Fi connection state being that the electronic device accesses the first Wi-Fi through the first WLAN interface and accesses the second Wi-Fi through the second WLAN interface, when the P2P function is turned on, a target WLAN interface of the first WLAN interface and the second WLAN interface is released and the P2P function is implemented through the target WLAN interface, the target WLAN interface being one of the first WLAN interface and the second WLAN interface, namely, the electronic device in the dual Wi-Fi connection state can release one WLAN interface when the P2P function is turned on, so as to realize the P2P function by using the released WLAN interface, namely, it is ensured that one Wi-Fi is in the connection state, the P2P function is also normally performed, and the coexistence problem between the dual Wi-Fi and the P2P is solved.
In one possible example, the detection unit 501 is further specifically configured to:
disabling the dual Wi-Fi functionality before the P2P functionality is turned off;
alternatively, the first and second electrodes may be,
disabling Wi-Fi functionality corresponding to the target WLAN interface before the P2P functionality is turned off.
In one possible example, the detection unit 501 is further specifically configured to:
canceling disabling the dual Wi-Fi functionality when the P2P functionality is turned off.
In one possible example, in terms of detecting whether the peer-to-peer network P2P function is turned on, the detecting unit 501 is specifically configured to:
and searching equipment to obtain an equipment identification list, wherein the equipment identification list comprises target identification information of the first equipment, and when the target identification information is selected, the P2P function is determined to be started.
In one possible example, in terms of detecting whether the peer-to-peer network P2P function is turned on, the detecting unit 501 is specifically configured to:
receiving a connection request transmitted by a second device for connecting the second device;
determining that the P2P function is turned on when the electronic device agrees to access the second device.
In one possible example, in terms of the releasing the target WLAN interface of the first WLAN interface and the second WLAN interface, the execution unit 502 is specifically configured to:
determining a first channel evaluation value of the first Wi-Fi;
determining a second channel evaluation value of the second Wi-Fi;
comparing the first channel evaluation value with the second channel evaluation value to obtain a comparison result;
and according to the comparison result, confirming one WLAN interface in the first WLAN interface and the second WLAN interface as a target WLAN interface, and releasing the target WLAN interface.
In one possible example, in terms of determining the first channel evaluation value of the first Wi-Fi, the execution unit 502 is specifically configured to:
acquiring a signal intensity curve of the first Wi-Fi in a preset time period;
sampling the signal intensity curve to obtain a plurality of signal intensity values;
carrying out mean value operation according to the plurality of signal intensity values to obtain a first mean signal intensity value;
determining a target signal grade corresponding to the first average signal strength value;
determining a target first evaluation value corresponding to the target signal grade according to a mapping relation between a preset signal grade and the first evaluation value;
performing mean square error operation according to the plurality of signal strength values to obtain a first mean square error;
determining a target second evaluation value corresponding to the first mean square error according to a mapping relation between a preset mean square error and the second evaluation value;
determining a target weight pair corresponding to the target signal level according to a mapping relation between a preset signal level and the weight pair, wherein the target weight pair comprises a target first weight and a target second weight, the target first weight is a first weight corresponding to the first evaluation value, and the target second weight is a second weight corresponding to the second evaluation value;
and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target first weight and the target second weight to obtain the first channel evaluation value.
The network connection control apparatus 500 may further include a storage unit 503 for storing program codes and data of the electronic device. The execution unit 502 may be a processor, the detection unit 501 may be a touch display screen or a transceiver or a communication module, and the storage unit 503 may be a memory.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A network connection control method is applied to an electronic device supporting dual Wi-Fi functions, the electronic device comprises a first Wi-Fi module and a second Wi-Fi module, the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface, and the method comprises the following steps:
detecting whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, wherein the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi through the first WLAN interface and accesses a second Wi-Fi through the second WLAN interface;
when the P2P function is turned on, releasing a target WLAN interface of the first WLAN interface and the second WLAN interface, and implementing a P2P function through the target WLAN interface, wherein the target WLAN interface is one of the first WLAN interface and the second WLAN interface;
disabling the dual Wi-Fi functionality before the P2P functionality is turned off;
alternatively, the first and second electrodes may be,
disabling Wi-Fi functionality corresponding to the target WLAN interface before the P2P functionality is turned off.
2. The method of claim 1, further comprising:
canceling disabling the dual Wi-Fi functionality when the P2P functionality is turned off.
3. The method according to claim 1 or 2, wherein the detecting whether the peer-to-peer network P2P function is turned on comprises:
and searching equipment to obtain an equipment identification list, wherein the equipment identification list comprises target identification information of the first equipment, and when the target identification information is selected, the P2P function is determined to be started.
4. The method according to claim 1 or 2, wherein the detecting whether the peer-to-peer network P2P function is turned on comprises:
receiving a connection request transmitted by a second device for connecting the second device;
determining that the P2P function is turned on when the electronic device agrees to access the second device.
5. The method of claim 1 or 2, wherein the releasing the target WLAN interface of the first WLAN interface and the second WLAN interface comprises:
determining a first channel evaluation value of the first Wi-Fi;
determining a second channel evaluation value of the second Wi-Fi;
comparing the first channel evaluation value with the second channel evaluation value to obtain a comparison result;
and according to the comparison result, confirming one WLAN interface in the first WLAN interface and the second WLAN interface as a target WLAN interface, and releasing the target WLAN interface.
6. The method of claim 5, wherein the determining the first channel assessment value for the first Wi-Fi comprises:
acquiring a signal intensity curve of the first Wi-Fi in a preset time period;
sampling the signal intensity curve to obtain a plurality of signal intensity values;
carrying out mean value operation according to the plurality of signal intensity values to obtain a first mean signal intensity value;
determining a target signal grade corresponding to the first average signal strength value;
determining a target first evaluation value corresponding to the target signal grade according to a mapping relation between a preset signal grade and the first evaluation value;
performing mean square error operation according to the plurality of signal strength values to obtain a first mean square error;
determining a target second evaluation value corresponding to the first mean square error according to a mapping relation between a preset mean square error and the second evaluation value;
determining a target weight pair corresponding to the target signal level according to a mapping relation between a preset signal level and the weight pair, wherein the target weight pair comprises a target first weight and a target second weight, the target first weight is a first weight corresponding to the first evaluation value, and the target second weight is a second weight corresponding to the second evaluation value;
and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target first weight and the target second weight to obtain the first channel evaluation value.
7. The network connection control device is applied to electronic equipment supporting double Wi-Fi functions, and the electronic equipment comprises a first Wi-Fi module and a second Wi-Fi module, wherein the first Wi-Fi module is in an STA mode and corresponds to a first WLAN interface, and the second Wi-Fi module is in the STA mode and corresponds to a second WLAN interface; the network connection control device comprises a detection unit and an execution unit, wherein,
the detection unit is configured to detect whether a peer-to-peer network P2P function is turned on when the electronic device is in a dual Wi-Fi connection state, where the dual Wi-Fi connection state is that the electronic device accesses a first Wi-Fi via the first WLAN interface and accesses a second Wi-Fi via the second WLAN interface;
the execution unit is configured to release a target WLAN interface of the first WLAN interface and the second WLAN interface when the P2P function is turned on, and implement a P2P function through the target WLAN interface, where the target WLAN interface is one of the first WLAN interface and the second WLAN interface;
the detection unit is further specifically configured to disable the dual Wi-Fi functionality before the P2P functionality is turned off; or before the P2P function is closed, the Wi-Fi function corresponding to the target WLAN interface is forbidden.
8. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN201911008106.5A 2019-10-22 2019-10-22 Network connection control method and related product Active CN110730517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911008106.5A CN110730517B (en) 2019-10-22 2019-10-22 Network connection control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911008106.5A CN110730517B (en) 2019-10-22 2019-10-22 Network connection control method and related product

Publications (2)

Publication Number Publication Date
CN110730517A CN110730517A (en) 2020-01-24
CN110730517B true CN110730517B (en) 2021-06-29

Family

ID=69222735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911008106.5A Active CN110730517B (en) 2019-10-22 2019-10-22 Network connection control method and related product

Country Status (1)

Country Link
CN (1) CN110730517B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114158136B (en) * 2020-08-17 2023-06-09 Oppo(重庆)智能科技有限公司 WiFi mode configuration method and device and computer-readable storage medium
CN116991644A (en) * 2020-12-18 2023-11-03 展讯半导体(成都)有限公司 WiFi equipment automatic test method, system and readable storage medium
CN113015264A (en) * 2021-02-22 2021-06-22 斑马网络技术有限公司 Method for realizing connection establishment of double hotspots, electronic equipment and readable storage medium
CN113473356A (en) * 2021-05-24 2021-10-01 杭州涂鸦信息技术有限公司 Positioning method, electronic device and storage device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780672A (en) * 2012-10-22 2014-05-07 三星电子株式会社 Wi-fi p2p communication terminal device and communication method thereof
CN105979607A (en) * 2015-03-11 2016-09-28 摩托罗拉移动有限责任公司 Method for peer-to-peer data transfer using wireless local area network radio equipment
CN106102098A (en) * 2016-05-27 2016-11-09 华为技术有限公司 A kind of method and device accessing WIFI network
CN106792130A (en) * 2016-12-13 2017-05-31 努比亚技术有限公司 The control method of mobile terminal and mobile terminal
CN108307433A (en) * 2017-09-29 2018-07-20 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780672A (en) * 2012-10-22 2014-05-07 三星电子株式会社 Wi-fi p2p communication terminal device and communication method thereof
CN105979607A (en) * 2015-03-11 2016-09-28 摩托罗拉移动有限责任公司 Method for peer-to-peer data transfer using wireless local area network radio equipment
CN106102098A (en) * 2016-05-27 2016-11-09 华为技术有限公司 A kind of method and device accessing WIFI network
CN106792130A (en) * 2016-12-13 2017-05-31 努比亚技术有限公司 The control method of mobile terminal and mobile terminal
CN108307433A (en) * 2017-09-29 2018-07-20 努比亚技术有限公司 Hotspot sharing method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110730517A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN110730517B (en) Network connection control method and related product
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107046696B (en) Communication network switching method and mobile terminal
CN109587747B (en) SIM card switching control method, terminal and computer storage medium
CN108965306B (en) Call processing method and mobile terminal
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
CN108200632B (en) Method for accessing terminal to LTE network and terminal
CN109982402B (en) Terminal voice calling method, mobile terminal and computer readable storage medium
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
CN107959952B (en) Method and terminal for detecting inter-system cell
CN106792819B (en) Method and device for reducing power consumption of mobile terminal
CN108495349B (en) Switching method of operator network and mobile terminal
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN110225462B (en) Method, system and device for preventing network congestion
CN108307433B (en) Wireless hotspot sharing method, mobile terminal and computer readable storage medium
US20220141745A1 (en) Network switching method and terminal
WO2020164592A1 (en) Process method for terminal measurement and terminal
CN111356191B (en) Cell access method and electronic equipment
JP2021521737A (en) Access control method, message broadcasting method and related equipment
CN112770279B (en) Network sharing method, mobile terminal and computer readable storage medium
CN107466081B (en) Wireless switching method and terminal
CN112954755A (en) Method and device for optimizing network switching and computer readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN110209434B (en) Memory management method and device and computer readable storage medium
CN113472474A (en) Information transmission method, user terminal and access network element

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant