CN107820301B - Control method, device, terminal and storage medium of wireless local area network switch - Google Patents

Control method, device, terminal and storage medium of wireless local area network switch Download PDF

Info

Publication number
CN107820301B
CN107820301B CN201711240759.7A CN201711240759A CN107820301B CN 107820301 B CN107820301 B CN 107820301B CN 201711240759 A CN201711240759 A CN 201711240759A CN 107820301 B CN107820301 B CN 107820301B
Authority
CN
China
Prior art keywords
base station
station information
local area
area network
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711240759.7A
Other languages
Chinese (zh)
Other versions
CN107820301A (en
Inventor
肖龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711240759.7A priority Critical patent/CN107820301B/en
Publication of CN107820301A publication Critical patent/CN107820301A/en
Application granted granted Critical
Publication of CN107820301B publication Critical patent/CN107820301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • 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

Landscapes

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

Abstract

The application relates to a control method, a device, a terminal and a storage medium of a wireless local area network switch. The method comprises the following steps: acquiring base station information corresponding to all base stations which can provide communication service for the terminal at present to form a current base station information list; comparing the current base station information list with a pre-stored base station information list, and judging whether the current base station information list has base station information in the pre-stored base station information list; wherein each of the pre-stored base station information lists corresponds to an available wireless access point; if not, the wireless local area network switch is controlled to be closed. By the method, the wireless local area network switch can be automatically closed after the wireless local area network switch is far away from the available wireless access point, power consumption of the terminal is reduced, standby time of the terminal is prolonged, and user experience is improved.

Description

Control method, device, terminal and storage medium of wireless local area network switch
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for controlling a wireless local area network switch.
Background
With the development of mobile communication Networks, WLANs (Wireless Local Area Networks) have been widely deployed and used as Local Area communication Networks with convenient access, fast speed and relatively low price. A user needs to manually turn on a WLAN switch on a terminal so that the terminal can connect to an AP (Wireless Access Point). And after the WLAN switch is turned on, the terminal scans regularly to search for available APs. When a user leaves the effective coverage area of the available AP, such as going out for shopping, working, traveling, etc., if the user does not manually turn off the WLAN switch, the terminal will always periodically transmit a signal for scanning, and the scanning process will cause the power consumption of the terminal to increase and the standby time to shorten.
Disclosure of Invention
The embodiment of the application provides a control method, a control device, a terminal and a storage medium for a wireless local area network switch, which can automatically turn on or turn off a WLAN switch and reduce the power consumption of the terminal.
A control method of a wireless local area network switch is applied to a terminal with a mobile communication function to control the wireless local area network switch on the terminal, and the method comprises the following steps:
acquiring base station information corresponding to all base stations which can provide communication service for the terminal at present to form a current base station information list;
comparing the current base station information list with a pre-stored base station information list, and judging whether the current base station information list has base station information in the pre-stored base station information list; wherein each of the pre-stored base station information lists corresponds to an available wireless access point;
if not, controlling the wireless local area network switch to be closed;
and if so, controlling the wireless local area network switch according to a preset switch strategy.
An apparatus for controlling a wireless local area network switch, the apparatus comprising:
an information acquisition module, configured to acquire base station information corresponding to all base stations that can currently provide communication services for the terminal, and form a current base station information list;
the information comparison module is used for comparing the current base station information list with a pre-stored base station information list and judging whether the base station information in the pre-stored base station information list exists in the current base station information list or not; wherein each of the pre-stored base station information lists corresponds to an available wireless access point;
and the switch control module is used for controlling the wireless local area network switch to be switched off and controlling the wireless local area network switch according to a preset switch strategy.
A terminal comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method.
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.
According to the method, the device, the terminal and the storage medium for controlling the wireless local area network switch, the current base station information list is compared with the pre-stored base station information list by acquiring the base station information corresponding to all base stations capable of providing communication service for the terminal, and if the base station information in the pre-stored base station information list does not exist in the current base station information list, the wireless local area network switch is controlled to be closed. The wireless local area network switch can be automatically closed after the wireless local area network switch is far away from the available wireless access point, the power consumption of the terminal is reduced, the standby time of the terminal is prolonged, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a wireless local area network switch control method;
fig. 2 is a schematic diagram of the internal structure of the terminal in one embodiment;
FIG. 3 is a diagram illustrating an internal architecture of a server according to an embodiment;
FIG. 4 is a flow chart illustrating a method for controlling a WLAN switch according to an embodiment;
FIG. 5 is a flowchart illustrating a method for controlling a WLAN switch according to another embodiment;
FIG. 6 is a flow chart illustrating a method for controlling a WLAN switch according to another embodiment;
FIG. 7 is a flowchart illustrating a method for controlling a WLAN switch according to another embodiment;
FIG. 8 is a schematic diagram of signal coverage areas of a base station and an AP in one embodiment;
FIG. 9 is a block diagram showing a configuration of a control device of a WLAN switch according to an embodiment;
fig. 10 is a block diagram of a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an operating environment of a method for controlling a wlan switch according to an embodiment. The working environment relates to various application scenarios, for example, including Universal Mobile Telecommunications System (UMTS), Long Term Evolution (LTE), Global System for Mobile communications (GSM), WLAN, and the like. By way of non-limiting example, the following description relates to a WLAN communication system, but such teachings are equally applicable to other types of systems. As shown in fig. 1, the working environment thereof relates to an intelligent terminal 100, a cloud server 101, base stations 102 and an AP (wireless access point) 103, the intelligent terminal 100 and the base stations 102 can communicate with each other, each base station 102 can communicate with the cloud server 101, the intelligent terminal 100 can also communicate with the cloud server 101 through a related network other than the base station 102, and the intelligent terminal 100 can also communicate with the AP 103 to establish a wireless network connection. Further, in the wireless communication system, the base station 102 receives a reverse link signal from the intelligent terminal 100. The intelligent terminal 100 generally participates in conversations, messaging, and other types of communications. The base station 102 processes each received reverse link signal and transmits the processed signal to the intelligent terminal 100 in the form of a forward link signal. Optionally, the communication channel division manner adopted in the communication process includes, but is not limited to, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), and Code Division Multiple Access (CDMA).
During the application process, the intelligent terminal 100 may communicate with the base station 102 and receive the base station information transmitted from the base station 102. The embodiment of the present application relates to a method for identifying whether base station information received by the intelligent terminal 100 is base station information recorded in an AP 103 directory, that is, a scheme for identifying whether the intelligent terminal 100 is located in a service area of a base station stored in the AP 103 directory. The identification process may be performed in the smart terminal 100 or in the cloud server 101, as to whether the base station information received by the smart terminal 100 is the base station information recorded in the AP 103 directory.
Fig. 2 is a schematic diagram of an internal structure of the terminal in one embodiment. As shown in fig. 2, the terminal includes a processor, a memory, and a network interface connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The memory is used for storing data, programs and the like, and the memory stores at least one computer program which can be executed by the processor to realize the control method of the wireless local area network switch suitable for the terminal provided by the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a method for controlling a wireless local area network switch provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external device. Those skilled in the art will appreciate that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. The terminal may be a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales mobile terminal), a vehicle-mounted computer, a wearable device, or the like.
Fig. 3 is a schematic diagram of an internal structure of a server (or a cloud, etc.) in one embodiment. As shown in fig. 3, the server includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected through a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment. The memory is used to store data, programs, and the like. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and data for implementing a method for controlling a wireless lan switch suitable for a computer device provided in the embodiments of the present application. The internal memory provides a cached execution environment for an operating system in the non-volatile storage medium and a data processing method applicable to the computer device. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external computer device. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. Those skilled in the art will appreciate that the architecture shown in fig. 3 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
As shown in fig. 4, in an embodiment, a method for controlling a wireless local area network switch is provided, and is applied to a terminal with a mobile communication function to control the wireless local area network switch on the terminal, and this embodiment is exemplified by applying the method for controlling the wireless local area network switch to the intelligent terminal 100 in the operating environment in fig. 1, where the intelligent terminal 100 may be a mobile terminal. The control method of the wireless local area network switch specifically comprises the following steps:
step 402: and acquiring base station information corresponding to all base stations which can provide communication service for the terminal currently to form a current base station information list.
Specifically, the Base Station information generally includes a Mobile Country Code (MCC), a Mobile Network Code (MNC), a Location Area Code (LAC), a Base Station Identity (CID), a Base Station Signal Strength (BSSS), and the like. For example, MCC in china is 460, MNC in china mobile is 0, MNC in china unicom is 1, and MNC in china telecom is 2. For each base station, the location area code and the base station number are unique, so that the base station can be uniquely identified by acquiring the base station information, and the area to which the base station belongs can be determined. When the mobile terminal is within the signal coverage of the base station, the mobile terminal can communicate with the base station, and the base station at this time is the base station which can provide communication service for the terminal.
In one embodiment, the mobile terminal automatically acquires surrounding base station information. After the base station information is obtained, the mobile terminal may identify the base station according to the base station information to determine a current location area of the mobile terminal, in other embodiments, the obtained base station information may also be sent to the cloud server, the cloud server identifies the base station according to the base station information, and then the cloud server returns an identification result to the mobile terminal, which is not limited in this embodiment.
Step 404: comparing the current base station information list with a pre-stored base station information list, and judging whether the current base station information list has base station information in the pre-stored base station information list; if not, go to step 406; if yes, go to step 408.
The mobile terminal stores a series of base station information in advance. After the mobile terminal is connected with the wireless access point, the mobile terminal stores the receivable base station information to a base station information list corresponding to the wireless access point within the coverage range of the wireless access point, wherein each pre-stored base station information list corresponds to one available wireless access point. The current base station information list is compared with a prestored base station information list, so that whether the base station information currently acquired by the mobile terminal is the base station information recorded in the prestored base station information list can be judged, namely whether the mobile terminal leaves or approaches a connectable wireless access point area is judged by identifying the base station information acquired by the mobile terminal.
Step 406: and controlling the wireless local area network switch to be closed.
Specifically, when the base station information in the pre-stored base station information list does not exist in the acquired current base station information list, that is, the mobile terminal is far away from the coverage of the available wireless access point at this time, the state of the wireless local area network switch is detected at this time, and if the wireless local area network switch is in an on state at this time, the wireless local area network switch is turned off.
Step 408: and controlling the wireless local area network switch according to a preset switch strategy.
In one embodiment, when the number of the current base station information list is greater than a preset number value, the wireless local area network switch is controlled to be turned on.
Specifically, when the base station information in the pre-stored base station information list exists in the acquired current base station information list, and the same number of the base station information in the current base station information list as that in the pre-stored base station information list is greater than a preset number value, for example, the same number of the base station information in the current base station information list as that in the pre-stored base station information list is greater than 3, that is, at least 3 base stations same as that in the pre-stored information list exist in the current base station information list. The mobile terminal can be judged to be close to the coverage range of the available wireless access point at the moment, the state of the wireless local area network switch is detected at the moment, and if the wireless local area network switch is in the closed state at the moment, the wireless local area network switch is turned on.
In the method for controlling the wireless local area network switch, the base station information corresponding to all base stations which can provide communication service for the terminal is acquired, the current base station information list is compared with the pre-stored base station information list, and if the base station information in the pre-stored base station information list does not exist in the current base station information list, the wireless local area network switch is controlled to be closed. The wireless local area network switch can be automatically closed after the wireless local area network switch is far away from the available wireless access point, the power consumption of the terminal is reduced, the standby time of the terminal is prolonged, and the user experience is improved.
As shown in fig. 5, in an embodiment, before obtaining base station information corresponding to all base stations that can provide communication service for the terminal, the method for controlling the wlan switch further includes a step of pre-storing a base station information list, including:
step 502: when the terminal is connected with the wireless access point, base station information corresponding to all base stations which can provide communication service for the terminal is recorded.
Where a mobile network typically employs a cellular topology, there may be multiple serving mobile base stations at one location point. Within the coverage area of one radio access point, base station information corresponding to a plurality of base stations that can provide communication service for the terminal can be received.
Step 504: and storing the base station information into a base station information list corresponding to the wireless access point.
In practical applications, after the user starts the WLAN function, the user scans the available hot spots nearby, connects to the hot spots and inputs the password to connect to the WLAN network. After the mobile terminal is connected with the wireless access point, a storage directory of the wireless access point is established under a preset storage path, and a base station information list is stored under the storage directory.
In one embodiment, when the mobile terminal is connected to an AP, the mobile terminal automatically records information of all base stations that can currently provide services in the surrounding and stores the information of the base stations in the directory of the AP. When the mobile terminal moves in the area covered by the AP, the mobile station capable of providing service may change, and at this time, all the received base station information is recorded in the AP directory, that is, all the mobile station information capable of providing service in the area covered by the AP is stored in the directory.
In one embodiment, when a plurality of available wireless access points exist, the available wireless access points are connected in sequence to form a base station information list corresponding to the plurality of available wireless access points.
In one embodiment, the base station information at least includes a base station signal strength, and before the recording base station information corresponding to all base stations that can provide communication service for the terminal, the method further includes: and detecting the signal intensity of the base station capable of providing the communication service for the terminal, and recording the base station information corresponding to the base station capable of providing the communication service for the terminal if the signal intensity of the base station is greater than a preset signal intensity threshold value.
Step 506: and acquiring the coverage area of the wireless local area network of the wireless access point.
After the mobile terminal is connected with the wireless access point, a wireless local area network is formed, and the coverage area of the wireless local area network refers to the signal radiation range of the wireless local area network, and usually radiates a plurality of distances to the periphery by taking the wireless access point as a center.
Step 508: and updating the base station information list corresponding to the wireless access point if new base station information corresponding to a base station which can provide communication service for the terminal is acquired when the terminal moves in the coverage area.
In one embodiment, when the mobile terminal is connected to the AP, the mobile terminal continuously compares the information of the currently available serving base station with the information of the base stations stored in the AP directory, and if a new available serving base station is added, the new available serving base station is automatically updated to the AP directory, for example, when a new base station appears in the coverage area of the AP, the information of the base station corresponding to the new base station is recorded in the AP directory.
In one embodiment, as shown in fig. 8, the signal coverage areas of the base station and the AP are illustrated, where an area inside a dotted circle is an AP signal coverage area, a coverage area of a mobile base station intersecting with the AP signal coverage area is an automatic WLAN on area, and an area outside the dotted circle is an automatic WLAN off area. Because the mobile terminal carries out the information interaction with the mobile base station at any time, the mobile terminal can judge whether the mobile terminal is close to or far away from the position of the available AP according to the base station information acquired in real time, and further realize the function of automatically switching on and off the WLAN.
According to the control method of the wireless local area network switch provided by the embodiment, the directory of the wireless access point capable of storing the base station information is established, and when the base station information corresponding to all the new base stations capable of providing the communication service for the terminal is obtained, the base station information stored in the storage directory of the wireless access point is updated, so that the accuracy of determining the area of the wireless access point by identifying the base station information is improved, the wireless local area network switch can be automatically turned on when the mobile terminal is close to the wireless access point, and the wireless local area network switch can be automatically turned off after the mobile terminal is far away from the wireless access point.
As shown in fig. 6, in an embodiment, a method for controlling a wireless local area network switch is further provided, where the method for controlling a wireless local area network switch specifically includes the following steps:
step 602: the mobile terminal acquires base station information.
Step 604: judging whether the base station which can provide service currently comprises a base station under an available AP directory, if so, executing the operation of the step 610; if not, go to step 606.
Step 606: detecting whether the current WLAN is in an on state, if so, performing the operation of step 608; if not, go to step 602.
Step 608: the WLAN is turned off.
Step 610: the WLAN is turned on.
In this embodiment, after the mobile terminal leaves the service area of the base station stored in the AP directory, the mobile terminal automatically turns off the WLAN; when the mobile terminal enters the service area of any storage base station under the AP directory again, the WLAN is automatically started; and circulating in turn. The automatic switching of the WLAN is realized by acquiring the base station information, so that the power consumption of the WLAN of the mobile terminal in scanning when no AP is available is saved, and the radiation to a human body is reduced.
As shown in fig. 7, in an embodiment, a method for controlling a wireless local area network switch is further provided, where the method for controlling a wireless local area network switch specifically includes the following steps:
step 702: and when receiving a starting instruction of the wireless local area network switch, starting the wireless local area network switch.
After the wireless local area network switch is turned on, the mobile terminal detects the connection state of a wireless network, if the wireless network is detected to be connected with a new wireless access point, the step of establishing the storage directory of the connected wireless access point is executed, and the acquired base station information is stored in the storage directory of the new wireless access point within the coverage range of the new wireless access point. Therefore, the mobile terminal can automatically control the wireless local area network switch according to the area information of the new wireless access point.
Step 704: and starting timing after the wireless local area network switch is turned on, waiting for a preset time, and turning off the wireless local area network switch if the wireless local area network is detected to be in an idle state.
In one embodiment, when the user needs to connect to a new AP in the WLAN auto-off area, the user only needs to manually turn on the WLAN, and the mobile terminal starts to count time and waits for a period of time t. If the mobile terminal is not connected to the new AP within the waiting time, the mobile terminal automatically closes the WLAN; and if the new AP is connected, performing the operation and recording the base station information in the coverage area of the new AP.
In the method for controlling the wireless lan switch provided in this embodiment, after the user manually turns on the wireless lan switch, if the wireless access point is not connected to the wireless network within a preset time, the wireless lan switch is automatically turned off; if the wireless network is connected to the new wireless access point, the mobile terminal can automatically control the wireless local area network switch according to the area information of the new wireless access point, the intelligence of automatically switching the wireless local area network is increased, and the user experience is improved.
As shown in fig. 9, in one embodiment, there is provided a control apparatus of a wireless local area network switch, the apparatus including: an information acquisition module 901, an information comparison module 902 and a switch control module 903.
The information obtaining module 901 is configured to obtain base station information corresponding to all base stations that can currently provide communication services for the terminal, and form a current base station information list.
The information comparison module 902 is configured to compare the current base station information list with a pre-stored base station information list, and determine whether the current base station information list includes base station information in the pre-stored base station information list; wherein each of said pre-stored lists of base station information corresponds to an available wireless access point.
The switch control module 903 is configured to control the wireless lan switch to be turned off, and is further configured to control the wireless lan switch according to a preset switch policy.
In an embodiment, the switch control module 903 is further configured to detect a state of the wireless lan switch when the obtained base station information is different from the base station information recorded in the storage directory of the wireless access point, and close the wireless lan switch if the wireless lan switch is in an on state at this time.
In an embodiment, the switch control module 903 is further configured to detect a state of the wireless local area network switch when the obtained base station information is the same as the base station information recorded in the wireless access point storage directory and a similarity between the base station information in the current base station information list and the base station information in the pre-stored base station information list is greater than a preset threshold, and turn on the wireless local area network switch if the wireless local area network switch is in a turn-off state at this time.
In one embodiment, the control device of the wireless lan switch further comprises: the device comprises a storage module and an updating module.
The terminal comprises a storage module, a wireless access point and a communication module, wherein the storage module is used for recording base station information corresponding to all base stations which can provide communication service for the terminal when the terminal is connected with the wireless access point, and forming and storing a base station information list corresponding to the wireless access point;
and the updating module is used for updating the base station information list corresponding to the wireless access point if new base station information corresponding to a base station which can provide communication service for the terminal is acquired in the coverage range of the wireless access point.
In one embodiment, the control device of the wireless lan switch further comprises: the device comprises an instruction execution module and a timing detection module.
And the instruction execution module is used for starting the wireless local area network switch when receiving a starting instruction of the wireless local area network switch.
And the timing detection module is used for starting timing after the wireless local area network switch is started, waiting for a preset time length, and closing the wireless local area network switch if the wireless network is detected to be in an unconnected state.
In one embodiment, the information obtaining module 901 is further configured to receive the base station information sent by the base station through a wireless channel.
In one embodiment, the base station information includes at least one of a country code, a mobile network number, a location area code, a base station number, and a base station signal strength.
The control device of the wireless local area network switch obtains the base station information corresponding to all base stations which can provide communication service for the terminal, compares the current base station information list with the pre-stored base station information list, and controls the wireless local area network switch to be closed if the base station information in the pre-stored base station information list does not exist in the current base station information list. The wireless local area network switch can be automatically closed after the wireless local area network switch is far away from the available wireless access point, the power consumption of the terminal is reduced, the standby time of the terminal is prolonged, and the user experience is improved.
The division of each module in the control device of the wireless lan switch is only for illustration, and in other embodiments, the control device of the wireless lan switch may be divided into different modules as needed to complete all or part of the functions of the control device of the wireless lan switch.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform a method of controlling a wireless local area network switch as described in the embodiments above.
The embodiment of the application also provides a computer program product. A computer program product containing instructions which, when run on a computer, cause the computer to perform the method of controlling a wireless local area network switch described in the embodiments above.
Fig. 10 is a block diagram of a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 10, the cellular phone includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (WiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 1010 may be configured to receive and transmit signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the received downlink information to the processor 1080; the uplink data may also be transmitted to the base station. Typically, the RF circuitry 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. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1000. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, which may also be referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 1031 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The display unit 1040 may include a display panel 1041. In one embodiment, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 1031 can overlay the display panel 1041, and when the touch panel 1031 detects a touch operation on or near the touch panel 1031, the touch operation is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 10, the touch panel 1031 and the display panel 1041 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1000 may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
Audio circuitry 1060, speaker 1061, and microphone 1062 may provide an audio interface between a user and a cell phone. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and the audio data is processed by the audio data output processor 1080 and then transmitted to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1070, it is to be understood that it does not belong to the essential constitution of the handset 1000 and may be omitted as needed.
The processor 1080 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. In one embodiment, processor 1080 may include one or more processing units. In one embodiment, processor 1080 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset 1000 also includes a power supply 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system that may be configured to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 1000 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor 1080 included in the mobile terminal implements the method for controlling the wireless lan switch described in the above embodiments when executing the computer program stored in the memory.
When the computer program running on the processor is executed, the WLAN switch is automatically turned on or turned off, the power consumption of the terminal is reduced, the standby time of the terminal is prolonged, and the user experience is improved.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A control method of a wireless local area network switch is applied to a terminal with a mobile communication function to control the wireless local area network switch on the terminal, and the method comprises the following steps:
when a terminal is connected with a wireless access point, acquiring the base station signal intensity of all base stations which can provide communication service for the terminal; when the signal intensity of the base station is greater than a preset signal intensity threshold value, recording base station information corresponding to a base station which can provide communication service for the terminal; storing the base station information into a base station information list corresponding to the wireless access point;
acquiring base station information corresponding to all base stations which can provide communication service for the terminal at present to form a current base station information list;
comparing the current base station information list with a pre-stored base station information list, and judging whether the current base station information list has base station information in the pre-stored base station information list; wherein each of the pre-stored base station information lists corresponds to an available wireless access point;
if not, controlling the wireless local area network switch to be closed;
if yes, when the number of the current base station information list is larger than a preset number value, the wireless local area network switch is controlled to be turned on.
2. The method of claim 1, further comprising, after storing the base station information in a base station information list corresponding to the wireless access point:
acquiring a coverage area of a wireless local area network of the wireless access point;
and updating the base station information list corresponding to the wireless access point if new base station information corresponding to a base station which can provide communication service for the terminal is acquired when the terminal moves in the coverage area.
3. The method of claim 1, wherein the pre-storing the list of base station information further comprises:
when a plurality of available wireless access points exist, the available wireless access points are connected in sequence to form a base station information list corresponding to the available wireless access points.
4. The method of claim 1, further comprising:
when receiving a starting instruction of a wireless local area network switch, starting the wireless local area network switch;
and starting timing after the wireless local area network switch is turned on, waiting for a preset time, and turning off the wireless local area network switch if the wireless local area network is detected to be in an idle state.
5. An apparatus for controlling a wireless local area network switch, the apparatus comprising:
the terminal comprises a storage module, a wireless access point and a communication module, wherein the storage module is used for acquiring the base station signal intensity of all base stations which can provide communication service for the terminal when the terminal is connected with the wireless access point; when the signal intensity of the base station is greater than a preset signal intensity threshold value, recording base station information corresponding to a base station which can provide communication service for the terminal; storing the base station information into a base station information list corresponding to the wireless access point;
the information acquisition module is used for acquiring base station information corresponding to all base stations which can provide communication service for the terminal at present and forming a current base station information list;
the information comparison module is used for comparing the current base station information list with a pre-stored base station information list and judging whether the base station information in the pre-stored base station information list exists in the current base station information list or not; wherein each of the pre-stored base station information lists corresponds to an available wireless access point;
the switch control module is used for controlling the wireless local area network switch to be closed if the current base station information list does not have the base station information in the pre-stored base station information list; and if the current base station information list does not have the base station information in the prestored base station information list, controlling the wireless local area network switch to be switched on when the same number of the base station information of the current base station information list and the prestored base station information list is larger than a preset number value.
6. The apparatus of claim 5, further comprising an updating module configured to obtain a coverage area of a wireless local area network of the wireless access point; and updating the base station information list corresponding to the wireless access point if new base station information corresponding to a base station which can provide communication service for the terminal is acquired when the terminal moves in the coverage area.
7. The apparatus of claim 5, wherein the storage module is further configured to, when there are multiple available wireless access points, sequentially connect the available wireless access points to form a base station information list corresponding to the multiple available wireless access points.
8. The apparatus of claim 5, further comprising:
the instruction execution module is used for starting the wireless local area network switch when receiving a starting instruction of the wireless local area network switch;
and the timing detection module is used for starting timing after the wireless local area network switch is started, waiting for a preset time length, and closing the wireless local area network switch if the wireless local area network is detected to be in an idle state.
9. A terminal comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of any one of claims 1 to 4.
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 according to any one of claims 1 to 4.
CN201711240759.7A 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch Active CN107820301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711240759.7A CN107820301B (en) 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711240759.7A CN107820301B (en) 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch

Publications (2)

Publication Number Publication Date
CN107820301A CN107820301A (en) 2018-03-20
CN107820301B true CN107820301B (en) 2021-02-02

Family

ID=61606373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711240759.7A Active CN107820301B (en) 2017-11-30 2017-11-30 Control method, device, terminal and storage medium of wireless local area network switch

Country Status (1)

Country Link
CN (1) CN107820301B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418327B (en) * 2018-04-27 2022-05-31 ***通信有限公司研究院 Wireless control method and device, base station and storage medium
CN112335275B (en) * 2018-07-13 2023-02-10 华为技术有限公司 Access right control method of terminal
CN112449305B (en) * 2019-09-05 2023-03-31 中兴通讯股份有限公司 WiFi connection method, control method, mobile terminal, equipment and server
CN113473568B (en) * 2020-03-31 2022-11-15 深圳市万普拉斯科技有限公司 Device position judging method and device, computer device and storage medium
CN112135302B (en) * 2020-09-02 2023-08-01 深圳市艾伯通信有限公司 Control method and device for base station topology information and computer readable storage medium
CN112770419B (en) * 2020-12-22 2022-11-01 南昌黑鲨科技有限公司 Network card closing method, radio frequency module, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208627A (en) * 2014-06-24 2015-12-30 振江传讯有限公司 Method for automatically accessing wireless local area network
CN105357378A (en) * 2015-10-20 2016-02-24 广东欧珀移动通信有限公司 Method and mobile terminal for automatically opening WIFI (Wireless Fidelity) list and connecting WIFI
CN106028286A (en) * 2016-07-12 2016-10-12 努比亚技术有限公司 Wireless local area network access device and method
CN106714275A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Wi-Fi connection method and mobile terminal
CN107124751A (en) * 2017-04-26 2017-09-01 努比亚技术有限公司 A kind of terminal and terminal control method
CN107197470A (en) * 2017-05-24 2017-09-22 努比亚技术有限公司 Wireless network connecting method, mobile terminal and computer-readable recording medium
CN107222898A (en) * 2017-08-07 2017-09-29 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7697549B2 (en) * 2002-08-07 2010-04-13 Extricom Ltd. Wireless LAN control over a wired network
US9622161B1 (en) * 2015-10-23 2017-04-11 Belden, Inc. Systems and methods for obtaining available channels for fast channel switching

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208627A (en) * 2014-06-24 2015-12-30 振江传讯有限公司 Method for automatically accessing wireless local area network
CN105357378A (en) * 2015-10-20 2016-02-24 广东欧珀移动通信有限公司 Method and mobile terminal for automatically opening WIFI (Wireless Fidelity) list and connecting WIFI
CN106028286A (en) * 2016-07-12 2016-10-12 努比亚技术有限公司 Wireless local area network access device and method
CN106714275A (en) * 2016-12-07 2017-05-24 广东欧珀移动通信有限公司 Wi-Fi connection method and mobile terminal
CN107124751A (en) * 2017-04-26 2017-09-01 努比亚技术有限公司 A kind of terminal and terminal control method
CN107197470A (en) * 2017-05-24 2017-09-22 努比亚技术有限公司 Wireless network connecting method, mobile terminal and computer-readable recording medium
CN107222898A (en) * 2017-08-07 2017-09-29 广东欧珀移动通信有限公司 Method for switching network, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN107820301A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN107820301B (en) Control method, device, terminal and storage medium of wireless local area network switch
CN107820331B (en) Call method, device, computer equipment and readable storage medium
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN109962719B (en) Antenna control method and system, electronic device, and computer-readable storage medium
CN107949040B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN107820302B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN107846723B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN112040533B (en) Network searching control method and device for terminal equipment and terminal equipment
CN108040357B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN107820303B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN107743305B (en) Method and device for loading configuration information and computer equipment
CN107682910B (en) Traffic resource sharing method and device, mobile terminal and storage medium
CN107172702B (en) Mobile terminal and WiFi transmission power adjusting method and device thereof
CN109445917B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN108495349B (en) Switching method of operator network and mobile terminal
CN110300420B (en) Quick network searching method, mobile terminal and storage medium
CN107969025B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN108012304B (en) Wireless local area network scanning method and device, computer equipment and storage medium
US10708882B2 (en) UE camping method and apparatus, paging method and apparatus, and storage medium
CN106604277B (en) Wireless network access method and mobile terminal
CN111050373A (en) Cell reselection method, cell reselection device, electronic equipment and computer-readable storage medium
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN110740454B (en) Non-independent networking residence method, equipment and computer readable storage medium
CN110677842B (en) Network searching method, device, terminal equipment and storage medium
CN107896381B (en) Mobile terminal wireless local area network scanning method and device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant