CN114158136A - WiFi mode configuration method and device and computer readable storage medium - Google Patents

WiFi mode configuration method and device and computer readable storage medium Download PDF

Info

Publication number
CN114158136A
CN114158136A CN202010825401.6A CN202010825401A CN114158136A CN 114158136 A CN114158136 A CN 114158136A CN 202010825401 A CN202010825401 A CN 202010825401A CN 114158136 A CN114158136 A CN 114158136A
Authority
CN
China
Prior art keywords
wifi
mode
target
wifi mode
network usage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010825401.6A
Other languages
Chinese (zh)
Other versions
CN114158136B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010825401.6A priority Critical patent/CN114158136B/en
Publication of CN114158136A publication Critical patent/CN114158136A/en
Application granted granted Critical
Publication of CN114158136B publication Critical patent/CN114158136B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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/18Network planning tools
    • H04W16/20Network planning tools for indoor coverage or short range network deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a WiFi mode configuration method, a WiFi mode configuration device and a computer readable storage medium, wherein the WiFi mode configuration method comprises the following steps: selecting a target WiFi mode from the supported plurality of WiFi modes after establishing a bluetooth connection with the associated device; acquiring a target WLAN interface corresponding to a target WiFi mode; configuring a target WiFi mode through a target WLAN interface. Through the implementation of the scheme, the electronic device automatically controls the configuration of the target WiFi mode based on the Bluetooth connection with the external equipment, and the convenience and the flexibility of the configuration of the WiFi mode are effectively improved.

Description

WiFi mode configuration method and device and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a WiFi mode configuration method, apparatus, and computer readable storage medium.
Background
With the rapid development of electronic technology, electronic devices such as mobile phones, tablet computers, smart watches, etc. are becoming more and more popular in the life of users. At present, an electronic device is usually configured with a WiFi function, on one hand, the electronic device can work in a wireless Station mode (Station mode) to access to an Access Point (AP); on the other hand, the electronic apparatus may also operate in a wireless access point mode (SoftAP mode) to serve as a wireless AP for access by other electronic apparatuses. Because the electronic device supports multiple WiFi modes, in practical applications, a user usually has diversified WiFi mode configuration requirements, however, at present, the WiFi mode that the electronic device needs to work usually needs to be manually set by the user, which results in poor convenience and flexibility of WiFi mode configuration.
Disclosure of Invention
The embodiment of the application provides a WiFi mode configuration method, a WiFi mode configuration device and a computer-readable storage medium, and at least the problem that in the related art, the WiFi mode configuration is poor in convenience and flexibility due to the fact that the WiFi mode of an electronic device is manually configured can be solved.
A first aspect of an embodiment of the present application provides a WiFi mode configuration method, which is applied to an electronic device configured with a WLAN interface that supports a wireless workstation mode and a wireless access point mode, and includes:
selecting a target WiFi mode from the supported plurality of WiFi modes after establishing a bluetooth connection with the associated device;
acquiring a target WLAN interface corresponding to the target WiFi mode;
configuring the target WiFi mode through the target WLAN interface.
A second aspect of the embodiments of the present application provides a WiFi mode configuration device, which is applied to an electronic device configured with a WLAN interface supporting a wireless workstation mode and a wireless access point mode, respectively, and includes:
a selection module for selecting a target WiFi mode from the supported plurality of WiFi modes after establishing a bluetooth connection with the associated device;
an acquisition module for acquiring a target WLAN interface corresponding to the target WiFi mode;
a configuration module to configure the target WiFi mode via the target WLAN interface.
A third aspect of embodiments of the present application provides an electronic apparatus, including: the WiFi mode configuration method includes, by the apparatus, a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the WiFi mode configuration method provided in the first aspect of the embodiments of the present application.
A fourth aspect of the present embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the WiFi mode configuration method provided in the first aspect of the present embodiment.
As can be seen from the above, according to the WiFi mode configuration method, apparatus, and computer-readable storage medium provided in the present application, after the electronic apparatus configured with the WLAN interface supporting the wireless workstation mode and the wireless access point mode respectively establishes a bluetooth connection with the associated device, a target WiFi mode is selected from the supported multiple WiFi modes; acquiring a target WLAN interface corresponding to a target WiFi mode; configuring a target WiFi mode of the electronic device through the target WLAN interface. Through the implementation of the scheme, the electronic device automatically controls the configuration of the target WiFi mode based on the Bluetooth connection with the external equipment, and the convenience and the flexibility of the configuration of the WiFi mode are effectively improved.
Drawings
Fig. 1 is a schematic basic flowchart of a WiFi mode configuration method according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a WiFi mode switching method according to a first embodiment of the present application;
fig. 3 is a flowchart illustrating a WiFi mode selection method according to a first embodiment of the present application;
fig. 4 is a flowchart illustrating a WiFi mode recovery method according to a first embodiment of the present disclosure;
fig. 5 is a schematic flowchart of a WiFi mode configuration method according to a second embodiment of the present application;
fig. 6 is a schematic diagram of program modules of a WiFi mode configuration apparatus according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. 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.
In order to solve the defect of poor convenience and flexibility of WiFi mode configuration caused by manually configuring a WiFi mode of an electronic device in the related art, a first embodiment of the present application provides a WiFi mode configuration method, which is applied to an electronic device configured with WLAN interfaces supporting a wireless workstation mode and a wireless access point mode, respectively, a wireless chip supporting the wireless workstation mode and the wireless access point mode is installed on the electronic device, and the two WLAN interfaces may be bridged to implement data communication.
As shown in fig. 1, which is a basic flowchart of a WiFi mode configuration method provided in this embodiment, the WiFi mode configuration method includes the following steps:
step 101, after establishing a bluetooth connection with an associated device, selects a target WiFi mode from a plurality of supported WiFi modes.
Specifically, in this embodiment, the associated device is a device interconnected with the home terminal electronic device through bluetooth, and taking the home terminal electronic device as an example of a smart watch, the associated device may be a mobile phone worn by the user for the smart watch. It should be noted that the electronic device of this embodiment supports multiple WiFi modes, and since the wireless chip supports a wireless workstation mode and a wireless access point mode, the WiFi modes in actual use may include: the wireless access point wireless communication system comprises a single working mode, a double working mode and a non-WiFi working mode, wherein the single working mode can be divided into a wireless working station mode or a wireless access point mode, the double working mode is the combination of the wireless working station mode and the wireless access point mode, and the non-WiFi working mode is that the wireless working station mode and the wireless access point mode are both in an off state.
It should be further noted that, in this embodiment, after the local electronic device and the opposite-end associated device complete the bluetooth pairing connection to establish the data path, the current usage status of the associated device may be sensed, and the selection of the WiFi mode is automatically triggered.
Step 102, a target WLAN interface corresponding to a target WiFi mode is acquired.
Specifically, unlike the prior art in which the electronic device is configured with only a single WLAN interface for supporting a single WiFi mode, the present embodiment adds WiFi dual mode logic and modifies the WiFi service related configuration of the system, so that the system has two WLAN interfaces, one WLAN interface is used as the Station mode and the other WLAN interface is used as the SoftAP mode.
Step 103, configuring a target WiFi mode through the target WLAN interface.
Specifically, in this embodiment, when the target WiFi mode is configured, in an implementation manner, the electronic device may not turn on any WiFi mode before, so that the target WiFi mode is currently started; in another implementation, the electronic device may be in a specific WiFi mode before, and currently, the WiFi mode that was activated before is kept or switched to the target WiFi mode.
It should be understood that the present embodiment controls the configuration of the WiFi mode of the electronic device by binding the electronic device and the associated equipment via bluetooth, establishing a data path. When the Bluetooth connection is paired, the related working mode of controlling WiFi by the Bluetooth network can be realized, and the free configuration of the mode is realized. When the electronic apparatus and the associated device are paired, a binding mode may be selected: the method comprises the steps of only starting a WiFi Station mode, only starting a WiFi SoftAp mode, stopping WiFi service, or simultaneously starting the WiFi Station mode and the WiFi SoftAp mode. Therefore, the connection pairing of the Bluetooth is achieved to control the double working modes or the single working mode, or the WiFi working mode is not in any WiFi working mode, and the flexibility and the convenience of WiFi mode configuration are improved.
In some embodiments of this embodiment, selecting the target WiFi mode from the supported plurality of WiFi modes includes: identifying a first network usage requirement of an associated device; a target WiFi mode is selected from the supported plurality of WiFi modes based on the first network usage requirement.
Specifically, in this embodiment, a target WiFi mode that the electronic device needs to be configured currently is associated with a network usage requirement of the associated device, and whether the associated device needs to use a WiFi network currently may be sensed through the network usage requirement of the associated device, for example, when the associated device is sensed to need to use a WiFi network, the target WiFi mode may be determined to be a wireless access point mode or a dual operation mode.
Further, in some implementations of this embodiment, identifying the first network usage requirement of the associated device includes: acquiring system operation data of associated equipment; a first network usage requirement corresponding to the associated device is identified based on the system operational data.
Specifically, in this embodiment, in order to improve the intelligence of the network usage requirement awareness of the associated device, the system operation data of the associated device may be requested to be acquired from the associated device, and then the current network usage requirement of the associated device may be analyzed through the system operation data. It should be noted that the system operation data of the present embodiment may include: the type of the currently running application, the current system resource occupancy rate, and the like, wherein the system resource occupancy rate may include the occupancy rates of the CPU and the memory.
Further, in some embodiments of this embodiment, before selecting the target WiFi mode from the supported multiple WiFi modes based on the first network usage requirement, the method further includes: and acquiring the current second network use requirement of the electronic device. Correspondingly, selecting the target WiFi mode from the supported plurality of WiFi modes based on the first network usage requirement includes: a target WiFi mode is selected from the supported plurality of WiFi modes in conjunction with the first network usage requirement and the second network usage requirement.
Specifically, the present embodiment may further determine the target WiFi mode according to network usage requirements of both the electronic device and the associated device, for example, when both have WiFi network usage requirements, the dual-operation mode may be determined as the target WiFi mode, and if only one of the two has WiFi network usage requirements, the corresponding single-operation mode may be determined as the target WiFi mode.
Furthermore, in some embodiments of this embodiment, when both the first network usage requirement and the second network usage requirement require to use a WiFi network, WiFi usage requirement levels of the first network usage requirement and the second network usage requirement may be obtained, and then a target WiFi mode may be selected from the supported WiFi modes by combining a difference between the WiFi usage requirement levels of the first network usage requirement and the second network usage requirement. For example, when the WiFi use requirement levels of the two WiFi devices are close to each other, the double working modes are determined as target WiFi modes so as to meet the WiFi network use requirements of the two WiFi devices at the same time; when the WiFi use demand levels of the first network and the second network are greatly different, the method further includes two situations, one of which is that the WiFi use demand level corresponding to the first network use demand is larger than the second network use demand, the WiFi Station mode can be determined as the target WiFi mode, otherwise, the WiFi SoftAp mode is determined as the target WiFi mode, that is, when the WiFi use demand levels are greatly different, the single working mode is adopted to intensively supply the WiFi network resources to the demand end, so as to improve the network service quality.
As shown in fig. 2, which is a flowchart illustrating a WiFi mode switching method provided in this embodiment, further, in another embodiment of this embodiment, after selecting a target WiFi mode from multiple supported WiFi modes in combination with a first network usage requirement and a second network usage requirement, the method further includes the following steps:
step 201, detecting a change index of a first network use requirement and/or a second network use requirement in real time;
step 202, when the change index exceeds a preset threshold value, selecting a WiFi mode to be switched from a plurality of WiFi modes;
and 203, configuring the WiFi mode to be switched through the WLAN interface corresponding to the WiFi mode to be switched.
Specifically, in the embodiment, it is considered that the network usage requirement of the electronic device and/or the associated device changes during the usage process, and for better adaptability of the WiFi mode to the actual usage scenario, when the network usage requirement of the electronic device and/or the associated device changes significantly, since the target WiFi mode configured before may no longer adapt to the current usage scenario, the WiFi mode to be switched is further determined according to the network usage requirement change index, and then the electronic device is controlled to switch the target WiFi mode configured before.
As shown in fig. 3, which is a flowchart of a WiFi mode selection method provided in this embodiment, in another implementation manner of this embodiment, an implementation manner for selecting a target WiFi mode from multiple supported WiFi modes specifically includes the following steps:
301, acquiring authority authentication information of associated equipment;
step 302, determining a corresponding WiFi access authority level based on the authority authentication information;
and step 303, selecting a target WiFi mode from the supported multiple WiFi modes according to the WiFi access authority level.
Specifically, the authorization authentication information of this embodiment may be device identification information of the associated device, and in this embodiment, in consideration of different sources of different associated devices, for example, the associated device may be an associated device owned by the electronic apparatus itself, or an associated device owned by another person, in this embodiment, corresponding WiFi access authorization levels are respectively configured for different associated devices, for example, the associated device owned by the electronic apparatus itself may be set as the highest access authorization, the associated device owned by a friend or a parent may be set as the medium access authorization, the unknown source associated device may be set as the low access authorization, and then the target WiFi mode is selected based on the WiFi access authorization level, for example, the WiFi SoftAp mode is determined as the target WiFi mode at the high access authorization level, so that limited supply of WiFi resources to the associated device is ensured; determining the double working modes as target WiFi modes under the medium access permission level, and simultaneously meeting the WiFi use requirements of the electronic device and associated equipment; and the WiFi Station mode is determined as the target WiFi mode under the low access permission level, so that unnecessary occupation of WiFi resources by equipment with unknown sources is avoided.
Of course, in some embodiments of the present embodiment, selecting the target WiFi mode from the supported plurality of WiFi modes includes: acquiring equipment identification information of associated equipment; determining a WiFi mode adopted when Bluetooth connection is established with the associated equipment last time based on the equipment identification information; determining the determined WiFi mode as a target WiFi mode.
Specifically, in this embodiment, in the historical use process of the electronic apparatus, when the bluetooth connection is established with the associated device each time, the device identification information of the associated device and the WiFi mode correspondingly adopted by the electronic apparatus may be stored, so that when the WiFi mode is configured subsequently, the WiFi mode adopted in the historical connection process may be directly queried based on the device identification information of the associated device connected, and thus the processing efficiency for determining the WiFi mode may be effectively improved.
As shown in fig. 4, which is a schematic flow chart of a WiFi mode restoring method provided in this embodiment, in some embodiments of this embodiment, after configuring a target WiFi mode through a target WLAN interface, the method further includes the following steps:
step 401, detecting a Bluetooth connection state in real time;
step 402, when the bluetooth connection state is a disconnection state, acquiring a WLAN interface corresponding to a default WiFi mode;
step 403, configure a default WiFi mode through the WLAN interface corresponding to the default WiFi mode.
Specifically, in this embodiment, the bluetooth connection state of associated equipment and electronic device is monitored, and when both disconnection, control electronic device is automatic to restore to acquiescence wiFi mode, promotes the intelligence of wiFi mode configuration.
Based on the technical scheme of the embodiment of the application, after the electronic device provided with the WLAN interfaces respectively supporting the wireless workstation mode and the wireless access point mode establishes Bluetooth connection with the associated equipment, a target WiFi mode is selected from multiple supported WiFi modes; acquiring a target WLAN interface corresponding to a target WiFi mode; configuring a target WiFi mode of the electronic device through the target WLAN interface. Through the implementation of the scheme, the electronic device automatically controls the configuration of the target WiFi mode based on the Bluetooth connection with the external equipment, and the convenience and the flexibility of the configuration of the WiFi mode are effectively improved.
The method in fig. 5 is a refined WiFi mode configuration method provided in a second embodiment of the present application, and is applied to an electronic device configured with a WLAN interface supporting a wireless workstation mode and a wireless access point mode, where the WiFi mode configuration method includes:
step 501, after the bluetooth connection is established with the associated device, a first network usage requirement of the current associated device and a second network usage requirement of the electronic apparatus are obtained.
Specifically, the associated device of this embodiment is a device that is interconnected with the home terminal electronic device through bluetooth, and taking the home terminal electronic device as an example of a smart watch, the associated device may be a mobile phone that a user holds for the smart watch. In addition, the network use requirement of the embodiment is used for characterizing whether the WiFi network needs to be used currently.
Step 502, selecting a target WiFi mode from the supported plurality of WiFi modes in combination with the first network usage requirement and the second network usage requirement.
Specifically, the target WiFi mode is determined according to network usage requirements of both the electronic device and the associated device, for example, when both have WiFi network usage requirements, the dual-operation mode may be determined as the target WiFi mode, and if only one of the two has WiFi network usage requirements, the corresponding single-operation mode may be determined as the target WiFi mode.
Step 503, obtain the target WLAN interface corresponding to the target WiFi mode.
Specifically, in the present embodiment, WiFi dual mode logic is added and WiFi service related configuration of the system is modified, so that the system has two WLAN interfaces, one is used as a Station mode and the other is used as a SoftAP mode.
Step 504, configure the target WiFi mode through the target WLAN interface.
Specifically, the WiFi mode of this embodiment may include: the wireless access point wireless communication system comprises a single working mode, a double working mode and a non-WiFi working mode, wherein the single working mode can be divided into a wireless working station mode or a wireless access point mode, the double working mode is the combination of the wireless working station mode and the wireless access point mode, and the non-WiFi working mode is that the wireless working station mode and the wireless access point mode are both in an off state.
And 505, detecting the change index of the first network use requirement and/or the second network use requirement in real time.
And step 506, when the change index exceeds a preset threshold value, selecting a WiFi mode to be switched from the plurality of WiFi modes.
And 507, configuring the WiFi mode to be switched through the WLAN interface corresponding to the WiFi mode to be switched.
Specifically, in this embodiment, when the network usage requirement of the electronic device and/or the associated device changes significantly, since the target WiFi mode configured before may no longer be adapted to the current usage scenario, the WiFi mode to be switched is further determined according to the network usage requirement change index, and then the electronic device is controlled to switch the target WiFi mode configured before, so as to ensure the adaptability of the WiFi mode to the actual usage scenario.
It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.
The embodiment of the application discloses a WiFi mode configuration method, which comprises the steps that after Bluetooth connection is established between associated equipment and electronic devices, a target WiFi mode is selected from multiple supported WiFi modes according to network use requirements of the associated equipment and the electronic devices; acquiring a target WLAN interface corresponding to a target WiFi mode; configuring a target WiFi mode through a target WLAN interface; and when the change of the network use requirement exceeds a preset threshold value, determining the WiFi mode to be switched according to the index of the change of the network use requirement, and configuring the WiFi mode to be switched through the corresponding WLAN interface. Through the implementation of the scheme, the electronic device automatically controls the configuration of the target WiFi mode based on the Bluetooth connection with the external equipment, and the convenience and the flexibility of the configuration of the WiFi mode are effectively improved.
Fig. 6 is a WiFi mode configuration apparatus according to a third embodiment of the present application. The WiFi mode configuration apparatus may be used to implement the WiFi mode configuration method in the foregoing embodiments. As shown in fig. 6, the WiFi mode configuration apparatus mainly includes:
a selecting module 601, configured to select a target WiFi mode from the supported multiple WiFi modes after establishing a bluetooth connection with an associated device;
an obtaining module 602, configured to obtain a target WLAN interface corresponding to a target WiFi mode;
a configuration module 603 configured to configure the target WiFi mode through the target WLAN interface.
In some embodiments of this embodiment, the selecting module 601 is specifically configured to: identifying a first network usage requirement of an associated device; a target WiFi mode is selected from the supported plurality of WiFi modes based on the first network usage requirement.
Further, in some embodiments of this embodiment, when identifying the first network usage requirement of the associated device, the selecting module 601 is specifically configured to: acquiring system operation data of associated equipment; a first network usage requirement corresponding to the associated device is identified based on the system operational data.
Further, in other embodiments of the present embodiment, the obtaining module 602 is further configured to: prior to selecting a target WiFi mode from the supported plurality of WiFi modes based on the first network usage requirement, obtaining a current second network usage requirement of the electronic device itself. Correspondingly, when the selection module 601 selects the target WiFi mode from the supported multiple WiFi modes based on the first network usage requirement, it is specifically configured to: a target WiFi mode is selected from the supported plurality of WiFi modes in conjunction with the first network usage requirement and the second network usage requirement.
Further, in some embodiments of the present embodiment, the WiFi mode configuring apparatus further includes: the detection module is used for detecting the change index of the first network use requirement and/or the second network use requirement in real time after a target WiFi mode is selected from the supported multiple WiFi modes by combining the first network use requirement and the second network use requirement. Correspondingly, the selecting module 601 is further configured to: when the change index exceeds a preset threshold value, selecting a WiFi mode to be switched from a plurality of WiFi modes; the configuration module 603 is further configured to: and configuring the WiFi mode to be switched through the WLAN interface corresponding to the WiFi mode to be switched.
In some embodiments of this embodiment, the selecting module 601 is specifically configured to: acquiring authority authentication information of associated equipment; determining a corresponding WiFi access authority level based on the authority authentication information; and selecting a target WiFi mode from the supported multiple WiFi modes according to the WiFi access authority level.
In some implementations of this embodiment, the detection module is further to: and detecting the Bluetooth connection state in real time. Correspondingly, the obtaining module 602 is further configured to: when the Bluetooth connection state is a disconnection state, acquiring a WLAN interface corresponding to a default WiFi mode; the configuration module 603 is further configured to: the default WiFi mode is configured through a WLAN interface corresponding to the default WiFi mode.
It should be noted that, the WiFi mode configuration methods in the first and second embodiments can be implemented based on the WiFi mode configuration device provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the WiFi mode configuration device described in this embodiment may refer to the corresponding process in the foregoing method embodiment, and details are not described here again.
According to the WiFi mode configuration apparatus provided in this embodiment, after the electronic apparatus configured with the WLAN interfaces respectively supporting the wireless workstation mode and the wireless access point mode establishes a bluetooth connection with the associated device, a target WiFi mode is selected from a plurality of supported WiFi modes; acquiring a target WLAN interface corresponding to a target WiFi mode; configuring a target WiFi mode of the electronic device through the target WLAN interface. Through the implementation of the scheme, the electronic device automatically controls the configuration of the target WiFi mode based on the Bluetooth connection with the external equipment, and the convenience and the flexibility of the configuration of the WiFi mode are effectively improved.
Referring to fig. 7, fig. 7 is an electronic device according to a fourth embodiment of the present disclosure. The electronic device can be used for implementing the WiFi mode configuration method in the foregoing embodiments. As shown in fig. 7, the electronic device mainly includes:
a memory 701, a processor 702, a bus 703 and a computer program stored on the memory 701 and executable on the processor 702, the memory 701 and the processor 702 being connected by the bus 703. The processor 702, when executing the computer program, implements the WiFi mode configuration method in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 701 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 701 is used for storing executable program code, and the processor 702 is coupled with the memory 701.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 7.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the WiFi mode configuration method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules 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 through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes 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 method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present 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 above 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.
The foregoing is a description of the WiFi mode configuration method, apparatus and computer readable storage medium provided by the present application, and for those skilled in the art, there may be variations in the specific implementation and application scope according to the ideas of the embodiments of the present application, and the content of the present specification should not be construed as limiting the present application.

Claims (10)

1. A WiFi mode configuration method is applied to an electronic device configured with WLAN interfaces supporting a wireless workstation mode and a wireless access point mode respectively, and is characterized by comprising the following steps:
selecting a target WiFi mode from the supported plurality of WiFi modes after establishing a bluetooth connection with the associated device;
acquiring a target WLAN interface corresponding to the target WiFi mode;
configuring the target WiFi mode through the target WLAN interface.
2. The WiFi mode configuration method of claim 1, wherein said selecting a target WiFi mode from the supported plurality of WiFi modes comprises:
identifying a first network usage requirement of the associated device;
selecting a target WiFi mode from the supported plurality of WiFi modes based on the first network usage requirement.
3. The WiFi mode configuration method of claim 2 wherein said identifying a first network usage requirement of said associated device comprises:
acquiring system operation data of the associated equipment;
a first network usage requirement corresponding to the associated device is identified based on the system operational data.
4. The WiFi mode configuration method of claim 2, wherein before selecting a target WiFi mode from the supported plurality of WiFi modes based on the first network usage requirement, further comprising:
acquiring a current second network use requirement of the electronic device;
the selecting a target WiFi mode from a plurality of supported WiFi modes based on the first network usage requirement comprises:
selecting a target WiFi mode from the plurality of supported WiFi modes in conjunction with the first network usage requirement and the second network usage requirement.
5. The WiFi mode configuration method of claim 4, wherein after selecting a target WiFi mode from the supported plurality of WiFi modes in combination with the first network usage requirement and the second network usage requirement, further comprising:
detecting a change index of the first network usage demand and/or the second network usage demand in real time;
when the change index exceeds a preset threshold value, selecting a WiFi mode to be switched from the plurality of WiFi modes;
and configuring the WiFi mode to be switched through the WLAN interface corresponding to the WiFi mode to be switched.
6. The WiFi mode configuration method of claim 1, wherein said selecting a target WiFi mode from the supported plurality of WiFi modes comprises:
acquiring authority authentication information of the associated equipment;
determining a corresponding WiFi access authority level based on the authority authentication information;
and selecting a target WiFi mode from the supported multiple WiFi modes according to the WiFi access authority level.
7. The WiFi mode configuration method of any of claims 1 to 6, further comprising after configuring the target WiFi mode through the target WLAN interface:
detecting the Bluetooth connection state in real time;
when the Bluetooth connection state is a disconnection state, acquiring a WLAN interface corresponding to a default WiFi mode;
configuring the default WiFi mode through the WLAN interface corresponding to the default WiFi mode.
8. A WiFi mode configuration device applied to an electronic device configured with WLAN interfaces supporting a wireless workstation mode and a wireless access point mode respectively, comprising:
a selection module for selecting a target WiFi mode from the supported plurality of WiFi modes after establishing a bluetooth connection with the associated device;
an acquisition module for acquiring a target WLAN interface corresponding to the target WiFi mode;
a configuration module to configure the target WiFi mode via the target WLAN interface.
9. An electronic device, comprising: a memory, a processor, and a bus;
the bus is used for realizing connection communication between the memory and the processor;
the processor is configured to execute a computer program stored on the memory;
the processor, when executing the computer program, performs the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010825401.6A 2020-08-17 2020-08-17 WiFi mode configuration method and device and computer-readable storage medium Active CN114158136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010825401.6A CN114158136B (en) 2020-08-17 2020-08-17 WiFi mode configuration method and device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010825401.6A CN114158136B (en) 2020-08-17 2020-08-17 WiFi mode configuration method and device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN114158136A true CN114158136A (en) 2022-03-08
CN114158136B CN114158136B (en) 2023-06-09

Family

ID=80460456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010825401.6A Active CN114158136B (en) 2020-08-17 2020-08-17 WiFi mode configuration method and device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114158136B (en)

Citations (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005024543A2 (en) * 2003-09-05 2005-03-17 Bergs Magnus H Method and device for setting up links between communication terminals and data and communication networks comprising wireless transmission paths
US7245913B1 (en) * 2004-11-08 2007-07-17 Sprint Communications Company L.P. Handset mode selection based on user preferences
US20080076393A1 (en) * 2006-09-22 2008-03-27 Amit Khetawat Method and apparatus for securing communication between an access point and a network controller
US20080151845A1 (en) * 2006-12-20 2008-06-26 Nokia Corporation Co-existence management of multiple radios
US20090257379A1 (en) * 2008-04-11 2009-10-15 Robinson Michael A Methods and apparatus for network capacity enhancement for wireless device coexistence
WO2011069092A1 (en) * 2009-12-04 2011-06-09 Interdigital Patent Holdings, Inc. Extended local ip access for a converged gateway in a hybrid network
CN102811464A (en) * 2011-05-31 2012-12-05 株式会社Ntt都科摩 Mobile Internet access nodes (MiANs), and method and system for converging bandwidths of MiANs
US20140068719A1 (en) * 2012-09-04 2014-03-06 Nokia Corporation Method, apparatus, and computer program product for sharing wireless network configurations
CN103716903A (en) * 2012-09-28 2014-04-09 三星电子株式会社 Image forming apparatus to support wi-fi direct and method of wi-fi direct connecting thereof
CN104221456A (en) * 2012-04-04 2014-12-17 高通股份有限公司 Wireless channelization
US20160135120A1 (en) * 2014-11-06 2016-05-12 Intel Corporation Apparatus, system and method of selecting a mobility mode of a user equipment (ue)
US20160183313A1 (en) * 2014-12-23 2016-06-23 Intel Corporation MECHANISM TO SELECT APPROPRIATE S2a CONNECTIVITY MODE FOR TRUSTED WLAN
WO2016109921A1 (en) * 2015-01-05 2016-07-14 华为技术有限公司 Data transmission method, station, access point and access controller
CN106506862A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of working mode of mobile terminal changing method and mobile terminal
US9614919B1 (en) * 2016-01-26 2017-04-04 Ale International Service delivery through wireless access systems
US20170135147A1 (en) * 2015-11-11 2017-05-11 Apple Inc. Radio Resource Aggregation with Suspend/Resume Support
US20170171782A1 (en) * 2014-07-14 2017-06-15 Convida Wireless, Llc Network-initiated handover in integrated small cell and wifi networks
US20170257750A1 (en) * 2016-03-07 2017-09-07 Time Warner Cable Enterprises Llc Apparatus and methods for dynamic open-access networks
CN107276866A (en) * 2017-07-28 2017-10-20 美的智慧家居科技有限公司 Home appliance match somebody with somebody network method, device and home appliance
WO2017219673A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Vowifi network access method and system, and terminal
CN107666726A (en) * 2017-09-06 2018-02-06 广州艾考教育科技有限公司 A kind of electronic building blocks control method
CN108601066A (en) * 2018-06-20 2018-09-28 上海连尚网络科技有限公司 Wireless access point connection, joint efficiency computational methods, device, equipment and medium
CN109803360A (en) * 2019-02-13 2019-05-24 Oppo广东移动通信有限公司 WiFi dormancy control method, device, electronic equipment and storage medium
CN110087283A (en) * 2018-05-25 2019-08-02 东莞市骁卫物联科技有限公司 A kind of intelligent lock system application method and device based on multi-mode wireless transmission mode
CN110164441A (en) * 2019-06-17 2019-08-23 上海庆科信息技术有限公司 Intelligent sound controls equipment, method, apparatus, readable storage medium storing program for executing and system
CN110430604A (en) * 2019-08-02 2019-11-08 深圳市康冠商用科技有限公司 A kind of network control method, system and electronic equipment and storage medium
CN110730517A (en) * 2019-10-22 2020-01-24 Oppo广东移动通信有限公司 Network connection control method and related product

Patent Citations (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005024543A2 (en) * 2003-09-05 2005-03-17 Bergs Magnus H Method and device for setting up links between communication terminals and data and communication networks comprising wireless transmission paths
US7245913B1 (en) * 2004-11-08 2007-07-17 Sprint Communications Company L.P. Handset mode selection based on user preferences
US20080076393A1 (en) * 2006-09-22 2008-03-27 Amit Khetawat Method and apparatus for securing communication between an access point and a network controller
US20080151845A1 (en) * 2006-12-20 2008-06-26 Nokia Corporation Co-existence management of multiple radios
US20090257379A1 (en) * 2008-04-11 2009-10-15 Robinson Michael A Methods and apparatus for network capacity enhancement for wireless device coexistence
WO2011069092A1 (en) * 2009-12-04 2011-06-09 Interdigital Patent Holdings, Inc. Extended local ip access for a converged gateway in a hybrid network
CN102811464A (en) * 2011-05-31 2012-12-05 株式会社Ntt都科摩 Mobile Internet access nodes (MiANs), and method and system for converging bandwidths of MiANs
CN104221456A (en) * 2012-04-04 2014-12-17 高通股份有限公司 Wireless channelization
US20140068719A1 (en) * 2012-09-04 2014-03-06 Nokia Corporation Method, apparatus, and computer program product for sharing wireless network configurations
CN103716903A (en) * 2012-09-28 2014-04-09 三星电子株式会社 Image forming apparatus to support wi-fi direct and method of wi-fi direct connecting thereof
US20170171782A1 (en) * 2014-07-14 2017-06-15 Convida Wireless, Llc Network-initiated handover in integrated small cell and wifi networks
US20160135120A1 (en) * 2014-11-06 2016-05-12 Intel Corporation Apparatus, system and method of selecting a mobility mode of a user equipment (ue)
US20160183313A1 (en) * 2014-12-23 2016-06-23 Intel Corporation MECHANISM TO SELECT APPROPRIATE S2a CONNECTIVITY MODE FOR TRUSTED WLAN
WO2016109921A1 (en) * 2015-01-05 2016-07-14 华为技术有限公司 Data transmission method, station, access point and access controller
US20170135147A1 (en) * 2015-11-11 2017-05-11 Apple Inc. Radio Resource Aggregation with Suspend/Resume Support
US9614919B1 (en) * 2016-01-26 2017-04-04 Ale International Service delivery through wireless access systems
US20170257750A1 (en) * 2016-03-07 2017-09-07 Time Warner Cable Enterprises Llc Apparatus and methods for dynamic open-access networks
WO2017219673A1 (en) * 2016-06-21 2017-12-28 中兴通讯股份有限公司 Vowifi network access method and system, and terminal
CN106506862A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of working mode of mobile terminal changing method and mobile terminal
CN107276866A (en) * 2017-07-28 2017-10-20 美的智慧家居科技有限公司 Home appliance match somebody with somebody network method, device and home appliance
CN107666726A (en) * 2017-09-06 2018-02-06 广州艾考教育科技有限公司 A kind of electronic building blocks control method
CN110087283A (en) * 2018-05-25 2019-08-02 东莞市骁卫物联科技有限公司 A kind of intelligent lock system application method and device based on multi-mode wireless transmission mode
CN108601066A (en) * 2018-06-20 2018-09-28 上海连尚网络科技有限公司 Wireless access point connection, joint efficiency computational methods, device, equipment and medium
CN109803360A (en) * 2019-02-13 2019-05-24 Oppo广东移动通信有限公司 WiFi dormancy control method, device, electronic equipment and storage medium
CN110164441A (en) * 2019-06-17 2019-08-23 上海庆科信息技术有限公司 Intelligent sound controls equipment, method, apparatus, readable storage medium storing program for executing and system
CN110430604A (en) * 2019-08-02 2019-11-08 深圳市康冠商用科技有限公司 A kind of network control method, system and electronic equipment and storage medium
CN110730517A (en) * 2019-10-22 2020-01-24 Oppo广东移动通信有限公司 Network connection control method and related product

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
H. TABRIZI, G. FARHADI AND J. CIOFFI: "An intelligent power save mode mechanism for IEEE 802.11 WLAN", 2012 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM) *
H. YOMO, Y. KONDO, N. MIYAMOTO, S. TANG, M. IWAI AND T. ITO: "Receiver design for realizing on-demand WiFi wake-up using WLAN signals", 2012 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM) *
宋健健: "智能操作系统通讯模块的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Also Published As

Publication number Publication date
CN114158136B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN110621047A (en) Operator network switching method and device and computer readable storage medium
CN111542081B (en) Communication switching method and device and Internet of things communication module
CN104426583A (en) Data transmission method based on near field communication and device thereof and near field communication equipment
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN104378729A (en) Mobile communication network service implementation method and mobile terminal system
CN105323816A (en) Information processing method and electronic device
US20200233712A1 (en) Data Processing Method, Apparatus, Storage Medium, Processor, and System
US11212666B2 (en) Device of managing and scheduling sim card resource, communication terminal and system
CN112333727A (en) Method and device for controlling equipment, storage medium, processor and terminal
CN111542130A (en) Method and device for controlling household appliance and terminal equipment
CN215897719U (en) SIM card switching device and electronic equipment
CN108337743B (en) Terminal equipment of double-card double-system and communication method thereof
EP2945298B1 (en) Communication method and apparatus for nfc device, and nfc device
CN104871610A (en) Method and device for controlling emission power
CN104618990A (en) Access control method and access control device
CN105577905B (en) A kind of method and terminal of switch data service card
EP3048858B1 (en) Wireless customer premise equipment and accessing method therefor
CN105138107A (en) Mobile terminal downloading method and device and mobile terminal
EP3046371B1 (en) Method for exchanging information between a group of emitter receiver devices
CN114158136A (en) WiFi mode configuration method and device and computer readable storage medium
JP6254303B2 (en) User identification module protocol switching
CN113518021A (en) Method, system, device and equipment for binding user account
CN105430727A (en) Communication terminal and carrier aggregation mode setting method thereof
CN105682076A (en) Dual-card automatic configuration method and system for dual-card dual-standby terminal
CN110278003B (en) Method for reducing interference between antennas, electronic device and storage medium

Legal Events

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