WO2021036711A1 - 网络控制方法及相关产品 - Google Patents

网络控制方法及相关产品 Download PDF

Info

Publication number
WO2021036711A1
WO2021036711A1 PCT/CN2020/106843 CN2020106843W WO2021036711A1 WO 2021036711 A1 WO2021036711 A1 WO 2021036711A1 CN 2020106843 W CN2020106843 W CN 2020106843W WO 2021036711 A1 WO2021036711 A1 WO 2021036711A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
network
frequency band
network module
network interface
Prior art date
Application number
PCT/CN2020/106843
Other languages
English (en)
French (fr)
Inventor
林进全
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP20859315.2A priority Critical patent/EP4021062A4/en
Publication of WO2021036711A1 publication Critical patent/WO2021036711A1/zh
Priority to US17/665,306 priority patent/US20220159777A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • H04W40/16Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality based on interference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/005Multiple registrations, e.g. multihoming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • H04W76/36Selective release of ongoing connections for reassigning the resources associated with the released connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/14Spectrum sharing arrangements between different networks
    • 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
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/04Interfaces between hierarchically different network devices
    • H04W92/10Interfaces between hierarchically different network devices between terminal device and access point, i.e. wireless air interface

Definitions

  • This application relates to the field of communication technology, and specifically relates to a network control method and related products.
  • electronic devices can realize the function of connecting two wireless fidelity (WiFi) networks at the same time.
  • WiFi wireless fidelity
  • the electronic device is in dual WiFi working mode. If the electronic device also has other networks
  • the module performs network data transmission, the two WiFis may interfere with other network modules. Therefore, how to avoid the problem of interference to other network modules when the electronic device is in the dual WiFi working mode needs to be solved urgently.
  • the embodiments of the present application provide a network control method and related products, which can avoid interference to the second network module when the first network module of the electronic device is in the dual WiFi working mode.
  • an embodiment of the present application provides a network control method applied to an electronic device.
  • the electronic device includes a first network module and a second network module, and the first network module includes a first WiFi and a second WiFi.
  • the working frequency band of the first WiFi is a first frequency band
  • the working frequency band of the second WiFi is a second frequency band
  • the method includes:
  • the second network module When the second network module is turned on, if the first network module is connected to the first WiFi and the second WiFi at the same time, determine the target frequency band where the first network module interferes with the second network module ;
  • the target WiFi network interface is at least one of the following WiFi network interfaces: a first WiFi network interface of the first WiFi and a second WiFi network interface of the second WiFi;
  • the network connection is performed through the second network module.
  • the embodiments of the present application provide a network control device, which is applied to an electronic device.
  • the electronic device includes a first network module and a second network module.
  • the first network module includes a first WiFi and a second WiFi.
  • the working frequency band of the first WiFi is a first frequency band
  • the working frequency band of the second WiFi is a second frequency band
  • the network control device includes:
  • the determining unit is configured to determine that when the second network module is turned on, if the first network module is connected to the first WiFi and the second WiFi at the same time, determine that the first network module is opposite to the second network module The target frequency band causing interference;
  • the processing unit is configured to release a target WiFi network interface corresponding to the target frequency band, where the target WiFi network interface is at least one of the following WiFi network interfaces: a first WiFi network interface of the first WiFi and a second WiFi network interface of the second WiFi 2. WiFi network interface;
  • connection unit is used for network connection through the second network module.
  • an embodiment of the present application provides an electronic device, including: a processor, a memory, and a communication interface; and one or more programs, and the one or more programs are stored in the memory and configured
  • the program is executed by the processor, and the program includes instructions for some or all of the steps described in the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute the same as the first aspect of the embodiment of the present application. Instructions for some or all of the steps described in.
  • the embodiments of the present application provide 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 execute Part or all of the steps described in the first aspect of the application embodiment.
  • the computer program product may be a software installation package.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1B is a schematic flowchart of a network control method provided by an embodiment of the present application.
  • FIG. 1C is a schematic diagram of an interface for setting a WIFI network function provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another network control method provided by an embodiment of the present application.
  • 3A is a schematic flowchart of another network control method provided by an embodiment of the present application.
  • FIG. 3B is a schematic flowchart of another network control method provided by an embodiment of the present application.
  • 3C is a schematic flowchart of another network control method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • FIG. 5A is a schematic structural diagram of a network control device provided by an embodiment of the present application.
  • FIG. 5B is a modified structure of the network control device shown in FIG. 5A provided by an embodiment of the present application;
  • FIG. 6 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of this application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (user equipment).
  • equipment UE
  • mobile station mobile station
  • terminal device terminal device
  • FIG. 1A is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • the above-mentioned electronic device 100 includes a housing 110, a circuit board 120 disposed in the housing 110, and the circuit board A processor 121, a first network module 123, a second network module 124, and a memory 122 are provided on the 120, and the processor 121 is connected to the first network module 123, the second network module 124, and the memory 122, respectively.
  • FIG. 1B is a schematic flowchart of a network control method provided by an embodiment of the present application.
  • the network control method described in this embodiment is applied to the electronic device shown in FIG. 1A, and the electronic device includes A first network module and a second network module, the first network module includes a first WiFi and a second WiFi, the working frequency band of the first WiFi is a first frequency band, and the working frequency band of the second WiFi is a second frequency band ,
  • the network control method includes:
  • the second network module When the second network module is turned on, if the first network module is connected to the first WiFi and the second WiFi at the same time, determine the target frequency band where the WiFi network interferes with the second network module .
  • the working frequency bands of the first WiFi and the second WiFi are different.
  • the working frequency band of the first WiFi may be the 5G working frequency band, and the working frequency range corresponding to the 5G working frequency band is generally 5.15G-5.85Ghz;
  • the working frequency band of the second WiFi It can be the 2.4G working frequency band, and the working frequency range corresponding to the 2.4G working frequency band is generally 2.4G-2.4835Ghz.
  • the first WiFi and the second WiFi in the electronic device can work independently or at the same time.
  • the first WiFi and the second WiFi can be turned on first.
  • WiFi the WiFi function with higher working frequency is connected to the network.
  • the WiFi network For example, in the 2.4G WiFi network and 5G WiFi network, you can choose to turn on the 5G WiFi network to work alone. In this way, the WiFi network that runs separately can be guaranteed The network speed is faster.
  • the network connection rate of the electronic device can be made higher.
  • the second network module refers to other network modules besides the two WiFi networks.
  • the second network module may be a Bluetooth network module or a mobile data network module.
  • the electronic device can also run two WiFi networks and a second network module other than the WiFi network at the same time.
  • Signal interference occurs between the network modules. Therefore, when the function of the second network module is turned on, it can be determined whether the first WiFi and the second WiFi are both in the working state. If the first WiFi and the second WiFi are both in the working state, That is, the electronic device is in the dual WiFi working mode, and the target frequency band that interferes with the second network module in the first frequency band and the second frequency band can be determined.
  • determining the target frequency band where the first network module causes interference to the second network module may include the following steps:
  • the target WiFi network interface is at least one of the following WiFi network interfaces: a first WiFi network interface of the first WiFi and a second WiFi network of the second WiFi interface.
  • the WiFi network that interferes with the second network module can be temporarily closed. Specifically, if the target frequency band is the first frequency band, the first WiFi network can be released. The first WiFi network interface can disconnect the first WiFi network connection; if the target frequency band is the second frequency band, the second WiFi network interface of the second WiFi can be released, so that the second WiFi network connection can be disconnected, Therefore, it can be ensured that there will be no interference generated by the WiFi network when the second network module is working.
  • the dual WiFi working mode of the electronic device is in the off state.
  • the network connection can be made through the second network module to make the second network
  • the module performs network data transmission, so that interference to the second network module can be avoided when the electronic device is in the dual WiFi working mode.
  • the second network module is a Bluetooth network module
  • the first WiFi is connected to a 5G WiFi network
  • the second WiFi is connected to a 2.4G WiFi network.
  • the Bluetooth network module can detect whether the electronic device is in the dual WiFi working mode. If so, turn off the function of the second WiFi of 2.4G, that is The second WiFi network interface of the second WiFi is released, thereby ensuring that the operation of the Bluetooth network module is not disturbed.
  • the function of the second network module is closed, and the creation of the target WiFi network interface corresponding to the released target frequency band is resumed.
  • the aforementioned data transmission task may include at least one of the following: audio data caching, voice call, incoming call search, call dialing, etc., which are not limited here.
  • the second network module performs network connection, and the data transmission task performed takes precedence over the network transmission task performed by the first network module through the WiFi network. Therefore, the dual WiFi function can be disabled when the second network module is working , It is possible to keep only the WiFi networks in the first WiFi and the second WiFi that do not interfere with the second network module to work, and after the second network module performs the data transmission task, for example, the audio data cache task of the electronic device After the end or the call ends, the second network module does not need to continue to work. At this time, the function of the second network module can be turned off to resume the creation of the WiFi network interface corresponding to the released target frequency band, so that the closed WiFi network can resume network connection . In this way, the electronic device can automatically restore the dual WiFi working mode when the second network module is not needed.
  • control the first network module to simultaneously connect to the first WiFi and the second WiFi.
  • the dual WiFi working mode of the electronic device when the dual WiFi working mode of the electronic device is activated, it can be determined whether the second network module is in working state. If the second network module is already in working state at this time, the first WiFi and the said The function of the WiFi network that interferes with the second network module in the second WiFi. In this way, the dual WiFi working mode can avoid the interference of the working second network module. If the second network module is not in the working state at this time, you can Control the first network module to simultaneously connect to the first WiFi and the second WiFi.
  • controlling the first network module to simultaneously connect to the first WiFi and the second WiFi may include the following steps:
  • the first WiFi is already connected, create the second WiFi network interface corresponding to the second WiFi, so that the first network module works in the second frequency band through the second WiFi network interface;
  • controlling the first network module to connect to the first WiFi and the second WiFi at the same time may include two situations: first, if the first WiFi is already connected, at this time, Then turn on the second WiFi function. Specifically, the second WiFi network interface corresponding to the second WiFi can be created, so that the first network module can work in the second frequency band through the second WiFi network interface, so that the electronic device can enter Dual WiFi working mode improves the network speed of electronic devices. Second, if the first WiFi and the second WiFi are not connected, the first WiFi network interface corresponding to the first WiFi can be created in parallel, and the second WiFi network interface corresponding to the second WiFi can be created, so that the first WiFi network interface is created.
  • a network module works in the first frequency band through the first WiFi network interface, so that the first network module works in the second frequency band through the second WiFi network interface.
  • the first network module can be connected to the first WiFi and the second WiFi at the same time, thereby increasing the network connection rate of the electronic device and improving the user's Internet experience.
  • the first control operation is used to create the first WiFi network interface corresponding to the first WiFi, and make the first network module work in the first WiFi network interface through the first WiFi network interface
  • the second control operation is used to create the second WiFi network interface corresponding to the second WiFi, and make the first network module work in the second WiFi network interface through the second WiFi network interface Frequency band; or,
  • the electronic device can receive the user's control operation, and the electronic device can turn on the dual WiFi working mode according to the control operation.
  • the electronic device can display the setting interface of the WiFi network, and the user The first control operation can be performed.
  • the user can click the first virtual button to turn on the first WiFi and the second virtual button of the second WiFi in the setting interface.
  • the electronic device can determine to turn on the first With WiFi, after receiving the second control operation, the electronic device can determine to enable the function of the second WiFi.
  • the electronic device receives the preset first control operation and the second control operation, it can be determined that the mode of the first WiFi and the second WiFi working at the same time is Activate.
  • the first WiFi is already connected, if a preset second control operation is received, it can be determined that the mode in which the first WiFi and the second WiFi work at the same time is activated.
  • the electronic device when the first WiFi is already connected, can also obtain the network connection rate of the first WiFi. Specifically, it can preset the frequency to detect the network connection rate of the first WiFi. If the network connection rate is low The preset network connection rate indicates that the electronic device may need to turn on the second WiFi function to accelerate the network performed by the first WiFi. At this time, the electronic device can automatically turn on the second WiFi function. When the WiFi network connection rate is low, the electronic device is automatically controlled to enter the dual WiFi working mode.
  • the network control method described in the embodiment of this application is applied to an electronic device.
  • the electronic device includes a first network module and a second network module.
  • the first network module includes a first WiFi and a second WiFi.
  • the working frequency band of the second WiFi is the first frequency band
  • the second WiFi working frequency is the second frequency band.
  • the target WiFi network interface is at least one of the following WiFi network interfaces: the first WiFi network interface of the first WiFi and the second WiFi of the second WiFi
  • the network interface is used for network connection through the second network module. In this way, interference to the second network module can be avoided when the electronic device is in the dual WiFi mode.
  • FIG. 2 is a schematic flowchart of another network control method provided by an embodiment of the present application.
  • the network control method described in this embodiment is applied to an electronic device, and the electronic device includes a first network module and The second network module, the first network module includes a first WiFi and a second WiFi, the working frequency band of the first WiFi is a first frequency band, and the working frequency band of the second WiFi is a second frequency band.
  • the method may include The following steps:
  • the function of the second network module is turned on and the first network module is connected to the first WiFi and the second WiFi at the same time, if the working frequency bands of the first frequency band and the second network module are different There is an overlapping area between them, it is determined that the first WiFi network interface of the first WiFi in the first network module interferes with the second network module, and it is determined that the target frequency band is the first frequency band.
  • the target WiFi network interface is at least one of the following WiFi network interfaces: a first WiFi network interface of the first WiFi and a second WiFi network of the second WiFi interface.
  • the network control method described in the embodiment of this application is applied to an electronic device.
  • the electronic device includes a first network module and a second network module.
  • the first network module includes a first WiFi and a second WiFi.
  • the working frequency band of the second WiFi is the first frequency band
  • the working frequency band of the second WiFi is the second frequency band.
  • the target WiFi network interface of the second WiFi in the first network module interferes with the second network module, and the target frequency band is determined to be the second frequency band, and the target WiFi corresponding to the target frequency band is released Network interface, the target WiFi network interface is at least one of the following WiFi network interfaces: the first WiFi network interface of the first WiFi and the second WiFi network interface of the second WiFi, the network connection is performed through the second network module, so that it can be avoided When the electronic device is in the dual WiFi mode, it interferes with the second network module.
  • FIG. 3A is a schematic flowchart of another network control method provided by an embodiment of this application.
  • the network control method described in this embodiment is applied to an electronic device, and the electronic device includes a first A network module and a second network module, the first network module includes a first WiFi and a second WiFi, the working frequency band of the first WiFi is a first frequency band, and the working frequency band of the second WiFi is a second frequency band.
  • the method may include the following steps:
  • control the first network module to simultaneously connect to the first WiFi and the second WiFi.
  • the second network module is a Bluetooth network module
  • the first WiFi is a 5G WiFi network
  • the second WiFi is a 2.4G WiFi network.
  • the dual WiFi of the electronic device When the working mode is activated, it can be determined whether the Bluetooth network module is working; if not, it can be determined whether the first WiFi is connected; if it is, the second WiFi network interface corresponding to the second WiFi can be created; if not, the first WiFi network interface can be created.
  • a first WiFi network interface corresponding to WiFi, and a second WiFi network interface corresponding to second WiFi is created. In this way, it is possible to prevent the dual WiFi working mode from interfering with the working second network module. If the second network module is not in the working state at this time, the first network module can be controlled to connect to the first WiFi and the first WiFi at the same time.
  • the second WiFi is to increase the WiFi network connection rate, thereby improving the user experience of surfing the Internet through WiFi.
  • the second network module When the second network module is turned on, if the first network module is connected to the first WiFi and the second WiFi at the same time, it is determined that the first network module interferes with the second network module Target frequency band.
  • the target WiFi network interface is at least one of the following WiFi network interfaces: a first WiFi network interface of the first WiFi and a second WiFi network of the second WiFi interface.
  • steps 301-305 please refer to the corresponding descriptions in steps 101-103, which will not be repeated here.
  • the electronic device can turn on Bluetooth
  • the electronic device can actively connect to the Bluetooth network module of other electronic devices.
  • the user can click on the Bluetooth network interface of the electronic device.
  • the electronic device After the electronic device receives the user's click operation, it can actively send a Bluetooth network connection request; , The electronic device can determine whether it is in the dual WiFi working mode; if so, it releases the second WiFi network interface of the 2.4GWiFi second WiFi; finally, it can start to connect to the Bluetooth network.
  • the electronic device can receive a Bluetooth network connection request sent by another electronic device; then, the electronic device can receive a control operation from the user whether to agree to connect to the Bluetooth network; if the electronic device receives a control operation agreeing to connect to the Bluetooth network, it can determine whether It is in dual WiFi working mode; if it is, the second WiFi network interface of the second WiFi of 2.4GWiFi is released; finally, it can start to connect to the Bluetooth network.
  • the network control method described in the embodiment of this application is applied to an electronic device.
  • the electronic device includes a first network module and a second network module.
  • the first network module includes a first WiFi and a second WiFi.
  • the working frequency band of the second WiFi is the first frequency band
  • the working frequency band of the second WiFi is the second frequency band. If the mode in which the first WiFi and the second WiFi work at the same time is activated, it is determined whether the second network module is in working state, and if not, the second network module is controlled.
  • a network module is connected to the first WiFi and the second WiFi at the same time. When the function of the second network module is turned on, if both the first WiFi and the second WiFi are in working state, it is determined that the first and second frequency bands are compatible with the second WiFi.
  • the target frequency band where the network module causes interference If the target frequency band is the first frequency band, the first WiFi network interface corresponding to the first frequency band is released; if the target frequency band is the second frequency band, the second WiFi network interface corresponding to the second frequency band is released, and the second WiFi network interface corresponding to the second frequency band is released.
  • the second network module is connected to the network. In this way, the function of the WiFi network corresponding to the target frequency band that interferes with the second network module can be turned off, thereby avoiding interference to the second network module when the electronic device is in the dual WiFi mode .
  • the following is a device for implementing the above-mentioned network control method, which is specifically as follows:
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device includes: a first network module 440, a second network module 450, a processor 410, and a communication interface 430 and a memory 420; and one or more programs 421, the one or more programs 421 are stored in the memory 420 and configured to be executed by the processor, and the first network module includes a first WiFi and second WiFi, the working frequency band of the first WiFi is the first frequency band, and the working frequency band of the second WiFi is the second frequency band, and the program 421 includes instructions for executing the following steps:
  • the second network module When the second network module is turned on, if the first network module is connected to the first WiFi and the second WiFi at the same time, determine the target frequency band where the first network module interferes with the second network module ;
  • the target WiFi network interface is at least one of the following WiFi network interfaces: a first WiFi network interface of the first WiFi and a second WiFi network interface of the second WiFi;
  • the network connection is performed through the second network module.
  • the program 421 includes instructions for executing the following steps:
  • the second WiFi network interface of the second WiFi in the first network module interferes with the second network module, and Determine that the target frequency band is the second frequency band.
  • the program 421 further includes instructions for executing the following steps:
  • the function of the second network module is closed, and the creation of the target WiFi network interface corresponding to the released target frequency band is resumed.
  • the program 421 further includes instructions for executing the following steps:
  • control the first network module to simultaneously connect to the first WiFi and the second WiFi.
  • the program 421 includes instructions for executing the following steps:
  • the first WiFi is already connected, creating the second WiFi network interface corresponding to the second WiFi, so that the first network module works in the second frequency band through the second WiFi network interface;
  • the first WiFi network interface corresponding to the first WiFi is created, so that the first network module can work at all through the first WiFi network interface.
  • the program 421 further includes instructions for executing the following steps:
  • the first control operation and the second control operation determine that the mode in which the first WiFi and the second WiFi work at the same time is activated; wherein, the first control operation is used to create the first WiFi corresponding to the first WiFi A WiFi network interface, through which the first WiFi network interface makes the first network module work in the first frequency band; the second control operation is used to create the second WiFi corresponding to the second WiFi A network interface, and enable the first network module to work in the second frequency band through the second WiFi network interface;
  • the program 421 further includes instructions for executing the following steps:
  • the network connection rate is lower than the preset network connection rate, it is determined that the mode in which the first WiFi and the second WiFi work at the same time is activated.
  • FIG. 5A is a schematic structural diagram of a network control device provided by this embodiment.
  • the network control device is applied to an electronic device.
  • the electronic device includes a first network module and a second network module.
  • a network module includes a first WiFi and a second WiFi, the working frequency band of the first WiFi is a first frequency band, and the working frequency band of the second WiFi is a second frequency band, and the network control device includes a determining unit 501 and a processing unit 502 and a connecting unit 503, in which,
  • the determining unit 501 is configured to, when the second network module is turned on, if the first network module is simultaneously connected to the first WiFi and the second WiFi, determine that the first network module is 2.
  • the processing unit 502 is configured to release a target WiFi network interface corresponding to the target frequency band, and the target WiFi network interface is at least one of the following WiFi network interfaces: the first WiFi network interface of the first WiFi and the second WiFi network interface The second WiFi network interface of WiFi;
  • the connection unit 503 is configured to perform network connection through the second network module.
  • the determining unit 501 is specifically configured to:
  • the second WiFi network interface of the second WiFi in the first network module interferes with the second network module, and Determine that the target frequency band is the second frequency band.
  • the determining unit is further configured to:
  • the processing unit 502 is further configured to:
  • the function of the second network module is closed, and the creation of the target WiFi network interface corresponding to the released target frequency band is resumed.
  • the determining unit 501 is further configured to determine whether the second network module is in a working state when the mode in which the first WiFi and the second WiFi work at the same time is activated;
  • the processing unit 502 is further configured to control the first network module to simultaneously connect to the first WiFi and the second WiFi when the second network module is not in a working state.
  • the processing unit 502 is specifically configured to:
  • the first WiFi is already connected, creating the second WiFi network interface corresponding to the second WiFi, so that the first network module works in the second frequency band through the second WiFi network interface;
  • the first WiFi network interface corresponding to the first WiFi is created, so that the first network module can work at all through the first WiFi network interface.
  • the determining unit 501 is further configured to:
  • the first control operation is used to create the first WiFi network interface corresponding to the first WiFi, and make the first network module work in the first WiFi network interface through the first WiFi network interface Frequency band
  • the second control operation is used to create the second WiFi network interface corresponding to the second WiFi, and make the first network module work in the second frequency band through the second WiFi network interface
  • FIG. 5B is a modified structure of the network control device shown in FIG. 5A. Compared with FIG. 5A, it may further include: an obtaining unit 504, wherein:
  • the acquiring unit 504 is configured to acquire the network connection rate of the first WiFi when the first WiFi is already connected;
  • the determining unit 501 is further configured to determine that the simultaneous working mode of the first WiFi and the second WiFi is activated if the network connection rate is lower than a preset network connection rate.
  • the network control device described in the embodiment of the present application is applied to electronic equipment.
  • the electronic equipment includes a first network module and a second network module.
  • the first network module includes a first WiFi and a second WiFi.
  • the working frequency band of the second WiFi is the first frequency band
  • the second WiFi working frequency is the second frequency band.
  • the target WiFi network interface is at least one of the following WiFi network interfaces: the first WiFi network interface of the first WiFi and the second WiFi of the second WiFi
  • the network interface is used for network connection through the second network module. In this way, interference to the second network module can be avoided when the electronic device is in the dual WiFi mode.
  • the acquiring unit is specifically configured to:
  • the embodiment of the present application also provides another electronic device. As shown in FIG. 6, for convenience of description, only the part related to the embodiment of the present application is shown. For specific technical details that are not disclosed, please refer to the method of the embodiment of the present application. section.
  • the electronic device can be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales, sales terminal), a car computer, etc., taking the electronic device as a mobile phone as an example:
  • FIG. 6 shows a block diagram of a part of the structure of a mobile phone related to an electronic device provided in an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (Wi-Fi) module 970, a processing 980 and power supply 990 and other components.
  • RF radio frequency
  • the RF circuit 910 can be used for receiving and sending information.
  • the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 910 can also communicate with the network and other devices through wireless communication.
  • the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), Email, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • Email Short Messaging Service
  • the memory 920 may be used to store software programs and modules.
  • the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function, and the like; the data storage area may store data created according to the use of a mobile phone, etc.
  • the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 930 may be used to receive inputted digital or character information, and generate key signal input related to user settings and function control of the mobile phone.
  • the input unit 930 may include a fingerprint recognition module 931 and other input devices 932.
  • the fingerprint identification module 931 can collect the fingerprint data of the user on it.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of touch screen, physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, etc.
  • the display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 940 may include a display screen 941.
  • the display screen 941 may be configured in the form of a liquid crystal display (LCD), an organic or inorganic light-emitting diode (OLED), etc.
  • the mobile phone may further include at least one sensor 950, where the sensor includes an environmental sensor, and the environmental sensor may include a temperature sensor, a humidity sensor, and an ambient light sensor.
  • the sensor 950 may also include other sensors 952, such as a motion sensor, a pressure sensor, and so on.
  • the ambient light sensor can also adjust the backlight brightness of the mobile phone according to the brightness of the ambient light, thereby adjusting the brightness of the display screen 941, and the proximity sensor can turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary.
  • the audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 960 can transmit the electric signal converted from the received audio data to the speaker 961, and the speaker 961 converts it into a sound signal for playback; on the other hand, the microphone 962 converts the collected sound signal into an electric signal, and the audio circuit 960 converts the collected sound signal into an electric signal. After being received, it is converted into audio data, and then processed by the audio data playback processor 980, and then sent to, for example, another mobile phone via the RF circuit 910, or the audio data is played to the memory 920 for further processing.
  • the wireless network module 970 may include a first network module and a second network module.
  • the first network module may include a first WiFi and a second WiFi.
  • the second network module may include, for example, a Bluetooth network module. The module enables the mobile phone to realize wireless network connection and perform tasks such as network data transmission.
  • the processor 980 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes by running or executing software programs and/or modules stored in the memory 920, and calling data stored in the memory 920. Various functions and processing data of the mobile phone can be used to monitor the mobile phone as a whole.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 980.
  • the mobile phone also includes a power source 990 (such as a battery) for supplying power to various components.
  • a power source 990 such as a battery
  • the power source can be logically connected to the processor 980 through a power management system, so that functions such as charging, discharging, and power management can be managed through the power management system.
  • the mobile phone may also include a camera, which is used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.
  • a camera which is used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.
  • the mobile phone may also include a Bluetooth module, etc., which will not be repeated here.
  • the method flow of each step can be implemented based on the structure of the mobile phone.
  • An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute any of the above-mentioned network control method embodiments.
  • the above-mentioned computer includes an electronic device.
  • the embodiments of the present application also provide a computer program product.
  • the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the network control method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory.
  • a number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种网络控制方法及相关产品,应用于电子设备,电子设备包括第一网络模块和第二网络模块,第一网络模块包括第一WiFi和第二WiFi,第一WiFi的工作频段为第一频段,第二WiFi的工作频段为第二频段,该方法包括:通过在开启第二网络模块时,若第一网络模块同时连接第一WiFi和第二WiFi,确定第一网络模块对第二网络模块产生干扰的目标频段,释放目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:第一WiFi的第一WiFi网络接口和第二WiFi的第二WiFi网络接口,通过所述第二网络模块进行网络连接,如此,可避免电子设备处于双WiFi模式下时,对第二网络模块产生干扰。

Description

网络控制方法及相关产品 技术领域
本申请涉及通信技术领域,具体涉及一种网络控制方法及相关产品。
背景技术
随着电子设备(如:手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。
目前,电子设备可实现同时连接两个无线保真(wireless fidelity,WiFi)网络的功能,在电子设备中同时连接两个WiFi时,电子设备处于双WiFi工作模式,若电子设备同时还存在其他网络模块进行网络数据传输,则两个WiFi可能对其他网络模块产生干扰,因此,如何避免电子设备处于双WiFi工作模式下时,对其他网络模块产生的干扰问题亟待解决。
发明内容
本申请实施例提供了一种网络控制方法及相关产品,可避免电子设备的第一网络模块处于双WiFi工作模式时对第二网络模块产生干扰。
第一方面,本申请实施例提供了一种网络控制方法,应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,所述方法包括:
在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段;
释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口;
通过所述第二网络模块进行网络连接。
第二方面,本申请实施例提供了一种网络控制装置,应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,所述网络控制装置包括:
确定单元,用于在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段;
处理单元,用于释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口;
连接单元,用于通过所述第二网络模块进行网络连接。
第三方面,本申请实施例提供了一种电子设备,包括:处理器、存储器和通信接口;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如本申请实施例第一方面中所描述的部分或全部步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤的指令。
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包 括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本申请实施例提供的一种电子设备的结构示意图;
图1B是本申请实施例提供的一种网络控制方法的流程示意图;
图1C是本申请实施例提供的一种设置WIFI网络功能的界面示意图;
图2是本申请实施例提供的另一种网络控制方法的流程示意图;
图3A是本申请实施例提供的另一种网络控制方法的流程示意图;
图3B是本申请实施例提供的另一种网络控制方法的流程示意图;
图3C是本申请实施例提供的另一种网络控制方法的流程示意图;
图4是本申请实施例提供的另一种电子设备的结构示意图;
图5A是本申请实施例提供的一种网络控制装置的结构示意图;
图5B是本申请实施例提供的如图5A所示的网络控制装置的变型结构;
图6是本申请实施例提供的电子设备的另一种结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。
下面对本申请实施例进行详细介绍。
请参阅图1A,图1A是本申请实施例提供的一种电子设备100的结构示意图,上述电子设备100包括:壳体110、设置于所述壳体110内的电路板120,所述电路板120上设置有处理器121、第一网络模块123、第二网络模块124和存储器122,所述处理器121分别与第一网络模块123、第二网络模块124和存储器122连接。
请参阅图1B,图1B是本申请实施例提供的一种网络控制方法的流程示意图,本实施例中所描述的网络控制方法,应用于如图1A所示的电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,该网络控制方法包括:
101、在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述WiFi网络对所述第二网络模块产生干扰的目标频段。
其中,第一WiFi和第二WiFi的工作频段不同,例如,第一WiFi的工作频段可以是5G工作频段,5G工作频段对应的工作频率范围一般是5.15G-5.85Ghz;第二WiFi的工作频段可以是2.4G工作频段,2.4G工作频段对应的工作频率范围一般是2.4G-2.4835Ghz。
本申请实施例中,电子设备中的第一WiFi和第二WiFi可以单独进行工作,也可以同时进行工作,具体实施中,当电子设备只连接一个WiFi网络时,可优先开启第一WiFi和第二WiFi中工作频率较高的WiFi功能进行网络连接,例如,在2.4G的WiFi网络和5G的WiFi网络,可优先选择开启5G的WiFi网络单独进行工作,如此,可保证单独运行的WiFi网络的网络速率更快。当电子设备中的第一WiFi和第二WiFi同时进行工作时,可使电子设备的网络连接速率更高。其中,当电子设备中的第一WiFi和第二WiFi同时进行工作,可确定电子设备处于双WiFi模式。
其中,第二网络模块是指除了两个WiFi网络以外的其他网络模块,例如,第二网络模块可以是蓝牙网络模块或者移动数据网络模块等。
本申请实施例中,电子设备中还可同时运行两个WiFi网络和除了WiFi网络以外的第二网络模块,但是,在具体实施中,可能存在两个WiFi网络中有至少一个WiFi网络与第二网络模块之间产生信号干扰的情况,因此,可在开启第二网络模块的功能时,确定第一WiFi、第二WiFi是否均处于工作状态,若第一WiFi、第二WiFi均处于工作状态,即电子设备处于双WiFi工作模式,可确定第一频段和第二频段中对所述第二网络模块产生干扰的目标频段。
可选地,上述步骤101中,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段,可包括以下步骤:
11、若所述第一频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第一WiFi的第一WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第一频段;
12、若所述第二频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第二WiFi的第二WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第二频段。
本申请实施例中,可确定是第一WiFi和第二WiFi中哪一WiFi网络与第二网络模块之间存在干扰,具体地,可确定第一频段与第二网络模块的工作频段之间是否存在重叠区域,若是,表明第一WiFi与第二网络模块之间存在干扰,即对第二网络模块产生干扰的目标频段为第一频段;若第一频段与第二网络模块的工作频段之间不存在重叠区域,可进一步确定第二频段与第二网络模块的工作频段之间是否存在重叠区域,若是,表明第二WiFi与第二网络模块之间存在干扰,即对第二网络模块产生干扰的目标频段为第二频段。
102、释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口。
本申请实施例中,为了保证第二网络模块优先运行,可暂时关闭对第二网络模块产生干扰的WiFi网络,具体地,若所述目标频段为所述第一频段,可释放第一WiFi的第一WiFi网络接口,从而可断开第一WiFi网络连接;若所述目标频段为所述第二频段,可释放第二 WiFi的第二WiFi网络接口,从而可断开第二WiFi网络连接,从而,可保证第二网络模块在进行工作时不会存在WiFi网络产生的干扰。
可以看出,在释放所述第一WiFi的第一WiFi网络接口,或者,释放所述第二WiFi的第二WiFi网络接口后,电子设备的双WiFi工作模式处于关闭状态。
103、通过所述第二网络模块进行网络连接。
本申请实施例中,在释放所述第一WiFi的第一WiFi网络接口,或者,释放所述第二WiFi的第二WiFi网络接口后,可通过第二网络模块进行网络连接,使第二网络模块进行网络数据传输,如此,可避免电子设备处于双WiFi工作模式下时,对第二网络模块产生干扰。
举例说明,当第二网络模块为蓝牙网络模块时,第一WiFi连接5G的WiFi网络,第二WiFi连接2.4G的WiFi网络,若电子设备的双WiFi工作模式与蓝牙网络模块同时存在,则2.4G的第二WiFi与蓝牙网络模块之间会产生干扰,因此,可在开启蓝牙网络模块时,检测电子设备是否处于双WiFi工作模式,若是,则将2.4G的第二WiFi的功能关闭,即释放第二WiFi的第二WiFi网络接口,从而,可保证蓝牙网络模块的工作不受干扰。
可选地,本申请实施例中,在步骤103通过所述第二网络模块进行网络连接之后,还可包括以下步骤:
31、通过所述第二网络模块执行数据传输任务;
32、在所述第二网络模块执行所述数据传输任务结束后,关闭所述第二网络模块的功能,恢复创建被释放的所述目标频段对应的目标WiFi网络接口。
其中,上述数据传输任务可包括以下至少一种:音频数据缓存、语音通话、来电搜索、通话拨号等等,此处不作限定。
本申请实施例中,第二网络模块进行网络连接,执行的数据传输任务优先于第一网络模块通过WiFi网络进行的网络传输任务,因此,可在第二网络模块进行工作时,禁用双WiFi功能,可仅保留第一WiFi和第二WiFi中对第二网络模块不产生干扰的WiFi网络进行工作,而在第二网络模块执行所述数据传输任务结束后,例如,电子设备的音频数据缓存任务结束,或者通话结束后,第二网络模块不需要继续进行工作,此时,可关闭第二网络模块的功能,恢复创建被释放的目标频段对应的WiFi网络接口,使得关闭的WiFi网络恢复网络连接。如此,可在不需要使用第二网络模块时,使电子设备自动恢复双WiFi工作模式。
可选地,本申请实施例中,在步骤101中开启所述第二网络模块的功能之前,还可包括以下步骤:
1010、若所述第一WiFi和所述第二WiFi同时工作的模式被激活,确定所述第二网络模块是否处于工作状态;
1020、若否,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
本申请实施例中,在电子设备的双WiFi工作模式被激活时,可确定第二网络模块是否处于工作状态,若第二网络模块此时已经处于工作状态,可暂时禁止第一WiFi和所述第二WiFi中对第二网络模块产生干扰的WiFi网络的功能,如此,可避免双WiFi工作模式对正在工作的第二网络模块产生干扰,若第二网络模块此时不处于工作状态,则可以控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
可选地,上述步骤1020中,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,可包括以下步骤:
1021、若所述第一WiFi已经连接,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段;
1022、若所述第一WiFi和所述第二WiFi均未连接,创建所述第一WiFi对应的所述第一WiFi网络接口,使所述第一网络模块通过所述第一WiFi网络接口工作在所述第一频段, 以及,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段。
本申请实施例中,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,具体地,可包括两种情况:第一,若第一WiFi已经连接,此时,需要再开启第二WiFi的功能,具体地,可创建第二WiFi对应的所述第二WiFi网络接口,使第一网络模块通过第二WiFi网络接口工作在第二频段,如此,可使电子设备进入双WiFi工作模式,使电子设备的网络速率得到提高。第二,若所述第一WiFi和所述第二WiFi均未连接,可并行地创建第一WiFi对应的第一WiFi网络接口,以及,创建第二WiFi对应的第二WiFi网络接口,使第一网络模块通过第一WiFi网络接口工作在第一频段,使第一网络模块通过第二WiFi网络接口工作在第二频段。如此,可在第二网络模块此时不处于工作状态时,使第一网络模块同时连接第一WiFi和第二WiFi,提高电子设备的网络连接速率,提高用户的上网体验。
可选地,本申请实施例中,上述步骤1010之前,还可包括以下步骤:
1030、在所述第一WiFi和所述第二WiFi均未连接时,若接收到预设的第一控制操作和第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活;其中,所述第一控制操作用于创建所述第一WiFi对应的所述第一WiFi网络接口,并通过所述第一WiFi网络接口使所述第一网络模块工作在所述第一频段;所述第二控制操作用于创建所述第二WiFi对应的所述第二WiFi网络接口,并通过所述第二WiFi网络接口使所述第一网络模块工作在所述第二频段;或者,
1040、在所述第一WiFi已经处于工作状态时,若接收到预设的所述第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
其中,在上述步骤1010之前,电子设备可接收用户的控制操作,电子设备可根据该控制操作开启双WiFi工作模式,具体地,如图1C所示,电子设备可显示WiFi网络的设置界面,用户可执行第一控制操作,例如,用户可点击设置界面中开启第一WiFi的第一虚拟按钮和第二WiFi的第二虚拟按钮,电子设备在接收到第一控制操作后,可确定开启第一WiFi,电子设备在接收到第二控制操作后,可确定开启第二WiFi的功能。如此,可在第一WiFi和第二WiFi均未连接时,若电子设备接收到预设的第一控制操作和第二控制操作,可确定第一WiFi和所述第二WiFi同时工作的模式被激活,在第一WiFi已经连接时,若接收到预设的第二控制操作,可确定第一WiFi和第二WiFi同时工作的模式被激活。
可选地,本申请实施例中,上述步骤1010之前,还可包括以下步骤:
1050、在所述第一WiFi已经连接时,获取所述第一WiFi的网络连接速率;
1060、若所述网络连接速率低于预设网络连接速率,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
本申请实施例中,在第一WiFi已经连接的情况下,电子设备还可获取第一WiFi的网络连接速率,具体地,可以预设频率检测第一WiFi的网络连接速率,若网络连接速率低于预设网络连接速率,表明电子设备可能需要开启第二WiFi的功能,对第一WiFi进行的网络进行加速,此时,可电子设备可自动开启第二WiFi的功能,如此,可在第一WiFi的网络连接速率较低时,自动控制电子设备进入双WiFi工作模式。
可以看出,本申请实施例中所描述的网络控制方法,应用于电子设备,电子设备包括第一网络模块和第二网络模块,第一网络模块包括第一WiFi和第二WiFi,第一WiFi的工作频段为第一频段,第二WiFi的工作频段为第二频段,通过在开启第二网络模块时,若第一网络模块同时连接第一WiFi和第二WiFi,确定第一网络模块对第二网络模块产生干扰的目标频段,释放目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:第一WiFi的第一WiFi网络接口和第二WiFi的第二WiFi网络接口, 通过所述第二网络模块进行网络连接,如此,可避免电子设备处于双WiFi模式下时,对第二网络模块产生干扰。
请参阅图2,图2是本申请实施例提供的另一种网络控制方法的流程示意图,本实施例中所描述的网络控制方法,应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,该方法可包括以下步骤:
201、在开启第二网络模块的功能,且所述第一网络模块同时连接所述第一WiFi和所述第二WiFi时,若所述第一频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第一WiFi的第一WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第一频段。
202、若所述第二频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第二WiFi的第二WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第二频段。
203、释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口。
204、通过所述第二网络模块进行网络连接。
其中,上述步骤201-204的具体实现过程可参照步骤101-103中相应的描述,在此不再赘述。
可以看出,本申请实施例中所描述的网络控制方法,应用于电子设备,电子设备包括第一网络模块和第二网络模块,第一网络模块包括第一WiFi和第二WiFi,第一WiFi的工作频段为第一频段,第二WiFi的工作频段为第二频段,通过在开启第二网络模块,且第一网络模块同时连接第一WiFi和第二WiFi时,若第一频段与第二网络模块的工作频段之间存在重叠区域,确定第一网络模块中第一WiFi的第一WiFi网络接口对第二网络模块产生干扰,并确定目标频段为第一频段,若第二频段与第二网络模块的工作频段之间存在重叠区域,确定第一网络模块中第二WiFi的第二WiFi网络接口对第二网络模块产生干扰,并确定目标频段为第二频段,释放目标频段对应的目标WiFi网络接口,目标WiFi网络接口为以下至少一个WiFi网络接口:第一WiFi的第一WiFi网络接口和第二WiFi的第二WiFi网络接口,通过所述第二网络模块进行网络连接,如此,可避免电子设备处于双WiFi模式下时,对第二网络模块产生干扰。
与上述一致地,请参阅图3A,为本申请实施例提供的另一种网络控制方法的流程示意图,本实施例中所描述的网络控制方法,应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,该方法可包括以下步骤:
301、若所述第一WiFi和所述第二WiFi同时工作的模式被激活,确定所述第二网络模块是否处于工作状态。
302、若否,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
举例说明,请参阅图3B,如图3B所示,当第二网络模块为蓝牙网络模块,第一WiFi为5G的WiFi网络,第二WiFi为2.4G的WiFi网络,首先,电子设备的双WiFi工作模式被激活时,可确定蓝牙网络模块是否处于工作状态;若否,可确定第一WiFi是否已经连接;若是,可创建第二WiFi对应的第二WiFi网络接口;若否,可创建第一WiFi对应的第一WiFi网络接口,以及,创建第二WiFi对应的第二WiFi网络接口。如此,可避免双WiFi 工作模式对正在工作的第二网络模块产生干扰,若第二网络模块此时不处于工作状态,则可以控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,提高WiFi网络连接速率,从而提高用户通过WiFi上网的体验。
303、在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段。
304、释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口。
305、通过所述第二网络模块进行网络连接。
其中,步骤301-305的具体实现过程可参见步骤101-103中相应的描述,在此不再赘述。
举例说明,请参阅图3C,如图3C所示,当第二网络模块为蓝牙网络模块,第一WiFi为5G的WiFi网络,第二WiFi为2.4G的WiFi网络,首先,电子设备可开启蓝牙网络模块的功能,电子设备可主动连接其他电子设备的蓝牙网络模块,具体地,用户可点击电子设备的蓝牙网络界面,电子设备接收到用户的点击操作后,可主动发送蓝牙网络连接请求;然后,电子设备可确定是否处于双WiFi工作模式;若是,则释放2.4GWiFi的第二WiFi的第二WiFi网络接口;最后,可开始连接蓝牙网络。或者,电子设备可接收其他电子设备发送的蓝牙网络连接请求;然后,电子设备可接收用户发出的是否同意连接蓝牙网络的控制操作;若电子设备接收到同意连接蓝牙网络的控制操作,可确定是否处于双WiFi工作模式;若是,则释放2.4GWiFi的第二WiFi的第二WiFi网络接口;最后,可开始连接蓝牙网络。
可以看出,本申请实施例中所描述的网络控制方法,应用于电子设备,电子设备包括第一网络模块和第二网络模块,第一网络模块包括第一WiFi和第二WiFi,第一WiFi的工作频段为第一频段,第二WiFi的工作频段为第二频段,通过若第一WiFi和第二WiFi同时工作的模式被激活,确定第二网络模块是否处于工作状态,若否,控制第一网络模块同时连接第一WiFi和第二WiFi,在开启第二网络模块的功能时,若第一WiFi、第二WiFi均处于工作状态,确定第一频段和第二频段中对所述第二网络模块产生干扰的目标频段,若目标频段为第一频段,释放第一频段对应的第一WiFi网络接口,若目标频段为第二频段,释放第二频段对应的第二WiFi网络接口,通过第二网络模块进行网络连接,如此,可将对第二网络模块产生干扰的目标频段对应的WiFi网络的功能进行关闭,从而,可避免电子设备处于双WiFi模式下时,对第二网络模块产生干扰。
以下是实施上述网络控制方法的装置,具体如下:
与上述一致地,请参阅图4,图4是本申请实施例提供的一种电子设备的结构示意图,该电子设备包括:第一网络模块440、第二网络模块450、处理器410、通信接口430和存储器420;以及一个或多个程序421,所述一个或多个程序421被存储在所述存储器420中,并且被配置成由所述处理器执行,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,所述程序421包括用于执行以下步骤的指令:
在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段;
释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口;
通过所述第二网络模块进行网络连接。
在一个可能的示例中,在所述确定所述第一网络模块对所述第二网络模块产生干扰的目标频段方面,所述程序421包括用于执行以下步骤的指令:
若所述第一频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第一WiFi的第一WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第一频段;
若所述第二频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第二WiFi的第二WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第二频段。
在一个可能的示例中,所述通过所述第二网络模块进行网络连接之后,所述程序421还包括用于执行以下步骤的指令:
通过所述第二网络模块执行数据传输任务;
在所述第二网络模块执行所述数据传输任务结束后,关闭所述第二网络模块的功能,恢复创建被释放的所述目标频段对应的目标WiFi网络接口。
在一个可能的示例中,所述程序421还包括用于执行以下步骤的指令:
若所述第一WiFi和所述第二WiFi同时工作的模式被激活,确定所述第二网络模块是否处于工作状态;
若否,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
在一个可能的示例中,在所述控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi方面,所述程序421包括用于执行以下步骤的指令:
若所述第一WiFi已经连接,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段;
若所述第一WiFi和所述第二WiFi均未连接,创建所述第一WiFi对应的所述第一WiFi网络接口,使所述第一网络模块通过所述第一WiFi网络接口工作在所述第一频段,以及,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段。
在一个可能的示例中,所述程序421还包括用于执行以下步骤的指令:
在所述第一WiFi和所述第二WiFi均未处于工作状态时,若接收到预设的第一在所述第一WiFi和所述第二WiFi均未连接时,若接收到预设的第一控制操作和第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活;其中,所述第一控制操作用于创建所述第一WiFi对应的所述第一WiFi网络接口,并通过所述第一WiFi网络接口使所述第一网络模块工作在所述第一频段;所述第二控制操作用于创建所述第二WiFi对应的所述第二WiFi网络接口,并通过所述第二WiFi网络接口使所述第一网络模块工作在所述第二频段;
或者,在所述第一WiFi已经处于工作状态时,若接收到预设的所述第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活
在一个可能的示例中,所述程序421还包括用于执行以下步骤的指令:
在所述第一WiFi已经连接时,获取所述第一WiFi的网络连接速率;
若所述网络连接速率低于预设网络连接速率,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
请参阅图5A,图5A是本实施例提供的一种网络控制装置的结构示意图,所述网络控制装置应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,所述网络控制装置包括确定单元501、处理单元502和连接单元 503,其中,
所述确定单元501,用于在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段;
所述处理单元502,用于释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口;
所述连接单元503,用于通过所述第二网络模块进行网络连接。
可选地,在所述确定所述第一网络模块对所述第二网络模块产生干扰的目标频段方面,所述确定单元501具体用于:
若所述第一频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第一WiFi的第一WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第一频段;
若所述第二频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第二WiFi的第二WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第二频段。
可选地,所述确定单元还用于:
若所述第一频段与所述第二网络模块的工作频段之间不存在重叠区域,所述第二频段与所述第二网络模块的工作频段之间是否存在重叠区域。
可选地,所述通过所述第二网络模块进行网络连接之后,所述处理单元502还用于:
通过所述第二网络模块执行数据传输任务;
在所述第二网络模块执行所述数据传输任务结束后,关闭所述第二网络模块的功能,恢复创建被释放的所述目标频段对应的目标WiFi网络接口。
可选地,所述通过所述第二网络模块进行网络连接之后,
所述确定单元501,还用于在所述第一WiFi和所述第二WiFi同时工作的模式被激活时,确定所述第二网络模块是否处于工作状态;
所述处理单元502,还用于在所述第二网络模块不处于工作状态时,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
可选地,在所述控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi方面,所述处理单元502具体用于:
若所述第一WiFi已经连接,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段;
若所述第一WiFi和所述第二WiFi均未连接,创建所述第一WiFi对应的所述第一WiFi网络接口,使所述第一网络模块通过所述第一WiFi网络接口工作在所述第一频段,以及,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段。
可选地,所述确定单元501还用于:
在所述第一WiFi和所述第二WiFi均未连接时,若接收到预设的第一控制操作和第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活;其中,所述第一控制操作用于创建所述第一WiFi对应的所述第一WiFi网络接口,并通过所述第一WiFi网络接口使所述第一网络模块工作在所述第一频段;所述第二控制操作用于创建所述第二WiFi对应的所述第二WiFi网络接口,并通过所述第二WiFi网络接口使所述第一网络模块工作在所述第二频段;
或者,在所述第一WiFi已经处于工作状态时,若接收到预设的所述第二控制操作,确 定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
可选地,如图5B所示,图5B为图5A所示的网络控制装置的变型结构,其与图5A相比较,还可以包括:获取单元504,其中,
所述获取单元504,用于在所述第一WiFi已经连接时,获取所述第一WiFi的网络连接速率;
所述确定单元501,还用于若所述网络连接速率低于预设网络连接速率,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
可以看出,本申请实施例中所描述的网络控制装置,应用于电子设备,电子设备包括第一网络模块和第二网络模块,第一网络模块包括第一WiFi和第二WiFi,第一WiFi的工作频段为第一频段,第二WiFi的工作频段为第二频段,通过在开启第二网络模块时,若第一网络模块同时连接第一WiFi和第二WiFi,确定第一网络模块对第二网络模块产生干扰的目标频段,释放目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:第一WiFi的第一WiFi网络接口和第二WiFi的第二WiFi网络接口,通过所述第二网络模块进行网络连接,如此,可避免电子设备处于双WiFi模式下时,对第二网络模块产生干扰。
可选地,所述获取单元具体用于:
以预设频率检测所述第一WiFi的网络连接速率。
可以理解的是,本实施例的网络控制装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本申请实施例还提供了另一种电子设备,如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(personal digital assistant,个人数字助理)、POS(point of sales,销售终端)、车载电脑等任意终端设备,以电子设备为手机为例:
图6示出的是与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,Wi-Fi)模块970、处理器980以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器 件、或其他易失性固态存储器件。
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机或无机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。
手机还可包括至少一种传感器950,其中,传感器包括环境传感器,环境传感器可包括温度传感器、湿度传感器和环境光传感器。除了环境传感器951,传感器950还可以包括其他传感器952,比如运动传感器、压力传感器等等。其中,环境光传感器还可根据环境光线的明暗来调节手机的背光亮度,进而调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。
无线网络模块970,无线网络模块970可包括第一网络模块和第二网络模块,第一网络模块可包括第一WiFi和第二WiFi,第二网络模块例如可以包括蓝牙网络模块,其中,无线网络模块可使手机实现无线网络连接,执行网络数据传输等任务。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
手机还可以包括摄像头,摄像头用于拍摄图像与视频,并将拍摄的图像和视频传输到处理器980进行处理。
手机还可以包括蓝牙模块等,在此不再赘述。
前述图1B、图2和图3A所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
本申请实施例还提供一种计算机可读存储介质,其中,该计算机可读存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述网络控制方法实施例 中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一网络控制方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种网络控制方法,其特征在于,应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,所述方法包括:
    在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段;
    释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口;
    通过所述第二网络模块进行网络连接。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述第一网络模块对所述第二网络模块产生干扰的目标频段,包括:
    若所述第一频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第一WiFi的第一WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第一频段;
    若所述第二频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第二WiFi的第二WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第二频段。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若所述第一频段与所述第二网络模块的工作频段之间不存在重叠区域,所述第二频段与所述第二网络模块的工作频段之间是否存在重叠区域。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述通过所述第二网络模块进行网络连接之后,所述方法还包括:
    通过所述第二网络模块执行数据传输任务;
    在所述第二网络模块执行所述数据传输任务结束后,关闭所述第二网络模块的功能,恢复创建被释放的所述目标频段对应的目标WiFi网络接口。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    若所述第一WiFi和所述第二WiFi同时工作的模式被激活,确定所述第二网络模块是否处于工作状态;
    若否,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
  6. 根据权利要求5所述的方法,其特征在于,所述控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,包括:
    若所述第一WiFi已经连接,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段;
    若所述第一WiFi和所述第二WiFi均未连接,创建所述第一WiFi对应的所述第一WiFi网络接口,使所述第一网络模块通过所述第一WiFi网络接口工作在所述第一频段,以及,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段。
  7. 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:
    在所述第一WiFi和所述第二WiFi均未连接时,若接收到预设的第一控制操作和第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活;其中,所述第一控制操作用于创建所述第一WiFi对应的所述第一WiFi网络接口,并通过所述第一WiFi网络接口使所述第一网络模块工作在所述第一频段;所述第二控制操作用于创建所述第二WiFi对应的所述第二WiFi网络接口,并通过所述第二WiFi网络接口使所述第一网络模块工作在所述第二频段;
    或者,在所述第一WiFi已经处于工作状态时,若接收到预设的所述第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
  8. 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:
    在所述第一WiFi已经连接时,获取所述第一WiFi的网络连接速率;
    若所述网络连接速率低于预设网络连接速率,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
  9. 根据权利要求8所述的方法,其特征在于,所述获取所述第一WiFi的网络连接速率,包括:
    以预设频率检测所述第一WiFi的网络连接速率。
  10. 一种网络控制装置,其特征在于,应用于电子设备,所述电子设备包括第一网络模块和第二网络模块,所述第一网络模块包括第一WiFi和第二WiFi,所述第一WiFi的工作频段为第一频段,所述第二WiFi的工作频段为第二频段,所述网络控制装置包括:
    确定单元,用于在开启所述第二网络模块时,若所述第一网络模块同时连接所述第一WiFi和所述第二WiFi,确定所述第一网络模块对所述第二网络模块产生干扰的目标频段;
    处理单元,用于释放所述目标频段对应的目标WiFi网络接口,所述目标WiFi网络接口为以下至少一个WiFi网络接口:所述第一WiFi的第一WiFi网络接口和所述第二WiFi的第二WiFi网络接口;
    连接单元,用于通过所述第二网络模块进行网络连接。
  11. 根据权利要求10所述的装置,其特征在于,在所述确定所述第一网络模块对所述第二网络模块产生干扰的目标频段方面,所述确定单元具体用于:
    若所述第一频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第一WiFi的第一WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第一频段;
    若所述第二频段与所述第二网络模块的工作频段之间存在重叠区域,确定所述第一网络模块中第二WiFi的第二WiFi网络接口对所述第二网络模块产生干扰,并确定所述目标频段为所述第二频段。
  12. 根据权利要求11所述的装置,其特征在于,所述确定单元还用于:
    若所述第一频段与所述第二网络模块的工作频段之间不存在重叠区域,所述第二频段与所述第二网络模块的工作频段之间是否存在重叠区域。
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述通过所述第二网络模 块进行网络连接之后,所述处理单元还用于:
    通过所述第二网络模块执行数据传输任务;
    在所述第二网络模块执行所述数据传输任务结束后,关闭所述第二网络模块的功能,恢复创建被释放的所述目标频段对应的目标WiFi网络接口。
  14. 根据权利要求13所述的装置,其特征在于,所述通过所述第二网络模块进行网络连接之后,
    所述确定单元,还用于在所述第一WiFi和所述第二WiFi同时工作的模式被激活时,确定所述第二网络模块是否处于工作状态;
    所述处理单元,还用于在所述第二网络模块不处于工作状态时,控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi。
  15. 根据权利要求14所述的装置,其特征在于,在所述控制所述第一网络模块同时连接所述第一WiFi和所述第二WiFi方面,所述处理单元具体用于:
    若所述第一WiFi已经连接,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段;
    若所述第一WiFi和所述第二WiFi均未连接,创建所述第一WiFi对应的所述第一WiFi网络接口,使所述第一网络模块通过所述第一WiFi网络接口工作在所述第一频段,以及,创建所述第二WiFi对应的所述第二WiFi网络接口,使所述第一网络模块通过所述第二WiFi网络接口工作在所述第二频段。
  16. 根据权利要求14或15所述的装置,其特征在于,所述确定单元还用于:
    在所述第一WiFi和所述第二WiFi均未连接时,若接收到预设的第一控制操作和第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活;其中,所述第一控制操作用于创建所述第一WiFi对应的所述第一WiFi网络接口,并通过所述第一WiFi网络接口使所述第一网络模块工作在所述第一频段;所述第二控制操作用于创建所述第二WiFi对应的所述第二WiFi网络接口,并通过所述第二WiFi网络接口使所述第一网络模块工作在所述第二频段;
    或者,在所述第一WiFi已经处于工作状态时,若接收到预设的所述第二控制操作,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
  17. 根据权利要求14或15所述的装置,其特征在于,还可以包括:获取单元504,其中,
    所述获取单元,用于在所述第一WiFi已经连接时,获取所述第一WiFi的网络连接速率;
    所述确定单元,还用于若所述网络连接速率低于预设网络连接速率,确定所述第一WiFi和所述第二WiFi同时工作的模式被激活。
  18. 根据权利要求17所述的装置,其特征在于,所述获取单元具体用于:
    以预设频率检测所述第一WiFi的网络连接速率。
  19. 一种电子设备,其特征在于,包括:处理器、存储器和通信接口;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如权利要求1-9任一项所述的方法的指令。
  20. 一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2020/106843 2019-08-30 2020-08-04 网络控制方法及相关产品 WO2021036711A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20859315.2A EP4021062A4 (en) 2019-08-30 2020-08-04 NETWORK CONTROL METHOD AND ASSOCIATED PRODUCT
US17/665,306 US20220159777A1 (en) 2019-08-30 2022-02-04 Method for network control and related products

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910815573.2A CN110430592B (zh) 2019-08-30 2019-08-30 网络控制方法及相关产品
CN201910815573.2 2019-08-30

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/665,306 Continuation US20220159777A1 (en) 2019-08-30 2022-02-04 Method for network control and related products

Publications (1)

Publication Number Publication Date
WO2021036711A1 true WO2021036711A1 (zh) 2021-03-04

Family

ID=68416804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106843 WO2021036711A1 (zh) 2019-08-30 2020-08-04 网络控制方法及相关产品

Country Status (4)

Country Link
US (1) US20220159777A1 (zh)
EP (1) EP4021062A4 (zh)
CN (1) CN110430592B (zh)
WO (1) WO2021036711A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109803325B (zh) * 2019-02-12 2020-12-22 Oppo广东移动通信有限公司 数据分流方法、装置、移动终端及存储介质
CN110401938B (zh) 2019-08-16 2023-04-07 Oppo广东移动通信有限公司 无线高保真Wi-Fi连接控制方法及相关产品
CN110430592B (zh) * 2019-08-30 2022-10-28 Oppo广东移动通信有限公司 网络控制方法及相关产品
CN112449401B (zh) * 2019-08-31 2022-03-08 Oppo广东移动通信有限公司 WiFi漫游方法、装置、移动终端及存储介质
CN113490291B (zh) * 2021-06-16 2022-05-17 荣耀终端有限公司 数据下载方法、装置和终端设备
US20230089923A1 (en) * 2021-09-22 2023-03-23 Qualcomm Incorporated Physical uplink channel handling based on channel security

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1489788A2 (en) * 2003-06-19 2004-12-22 Microsoft Corporation Wireless transmission interference avoidance on a device capable of carrying out wireless network communications
CN107231159A (zh) * 2017-05-31 2017-10-03 广东欧珀移动通信有限公司 一种射频干扰处理方法、装置、存储介质和终端
CN108377157A (zh) * 2018-01-31 2018-08-07 维沃移动通信有限公司 一种Wi-Fi天线的控制方法及装置
CN109547058A (zh) * 2019-01-15 2019-03-29 维沃移动通信有限公司 一种射频电路、信号干扰规避方法及终端设备
CN110430592A (zh) * 2019-08-30 2019-11-08 Oppo广东移动通信有限公司 网络控制方法及相关产品

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105848231B (zh) * 2015-01-14 2019-05-24 中兴通讯股份有限公司 Wifi设备及其中wifi芯片的工作方法、装置
CN108430094B (zh) * 2018-04-20 2019-05-28 Oppo广东移动通信有限公司 减小wifi和lte相互干扰的方法、装置和终端
CN109041240A (zh) * 2018-08-09 2018-12-18 维沃移动通信有限公司 一种改善信号干扰的方法和移动终端
CN109743712A (zh) * 2018-12-29 2019-05-10 Oppo广东移动通信有限公司 数据传输控制方法及相关产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1489788A2 (en) * 2003-06-19 2004-12-22 Microsoft Corporation Wireless transmission interference avoidance on a device capable of carrying out wireless network communications
CN107231159A (zh) * 2017-05-31 2017-10-03 广东欧珀移动通信有限公司 一种射频干扰处理方法、装置、存储介质和终端
CN108377157A (zh) * 2018-01-31 2018-08-07 维沃移动通信有限公司 一种Wi-Fi天线的控制方法及装置
CN109547058A (zh) * 2019-01-15 2019-03-29 维沃移动通信有限公司 一种射频电路、信号干扰规避方法及终端设备
CN110430592A (zh) * 2019-08-30 2019-11-08 Oppo广东移动通信有限公司 网络控制方法及相关产品

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4021062A4 *

Also Published As

Publication number Publication date
CN110430592B (zh) 2022-10-28
EP4021062A1 (en) 2022-06-29
US20220159777A1 (en) 2022-05-19
EP4021062A4 (en) 2022-10-12
CN110430592A (zh) 2019-11-08

Similar Documents

Publication Publication Date Title
WO2021036711A1 (zh) 网络控制方法及相关产品
WO2017206916A1 (zh) 处理器中内核运行配置的确定方法以及相关产品
WO2021243884A1 (zh) 一种网元确定方法和装置
US20160105418A1 (en) Method, system, device, and terminal for network initialization of multimedia playback device
WO2020259446A1 (zh) 通信控制方法、装置及电子设备
WO2018161353A1 (zh) 一种分享照片的方法和装置
WO2018120905A1 (zh) 终端中消息提示的方法和终端
US10675541B2 (en) Control method of scene sound effect and related products
WO2020156123A1 (zh) 信息处理方法及终端设备
US20200092476A1 (en) Mobile terminal-based dual camera power supply control method, system and mobile terminal
WO2017215661A1 (zh) 一种场景音效的控制方法、及电子设备
JP7324949B2 (ja) アプリケーション共有方法、第1電子機器及びコンピュータ可読記憶媒体
CN109766119B (zh) 恢复分区升级方法、终端和计算机可读存储介质
WO2019120190A1 (zh) 拨号方法及移动终端
WO2014094600A1 (zh) 移动终端及其降低功耗的方法
CN110418003B (zh) 一种亮度调节方法、亮度调节装置及移动终端
CN107704287B (zh) 程序应用免安装方法、移动终端及计算机可读存储介质
CN107770449B (zh) 连拍方法、电子设备及存储介质
WO2017000495A1 (zh) 一种添加联系人的方法及设备
CN107566631B (zh) 一种音量控制方法、移动终端及计算机可读存储介质
WO2015078349A1 (zh) 麦克风收音状态的切换方法和装置
CN109947617B (zh) 一种监听应用界面显示内容的方法、终端及可读存储介质
CN111885591A (zh) 一种网络连接方法、装置、存储介质及终端
CN108304302B (zh) 一种接口合并方法、设备及计算机可读存储介质
CN108307531B (zh) 通话控制方法、装置、用户终端及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20859315

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020859315

Country of ref document: EP

Effective date: 20220322