CN111314900B - Wireless connection method, wireless connection device and mobile terminal - Google Patents

Wireless connection method, wireless connection device and mobile terminal Download PDF

Info

Publication number
CN111314900B
CN111314900B CN202010206873.3A CN202010206873A CN111314900B CN 111314900 B CN111314900 B CN 111314900B CN 202010206873 A CN202010206873 A CN 202010206873A CN 111314900 B CN111314900 B CN 111314900B
Authority
CN
China
Prior art keywords
mobile terminal
wireless connection
wireless
current scene
request
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
CN202010206873.3A
Other languages
Chinese (zh)
Other versions
CN111314900A (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 CN202010206873.3A priority Critical patent/CN111314900B/en
Publication of CN111314900A publication Critical patent/CN111314900A/en
Application granted granted Critical
Publication of CN111314900B publication Critical patent/CN111314900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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 is applicable to the technical field of wireless connection, and provides a wireless connection method, a wireless connection device, a mobile terminal and a computer readable storage medium, wherein the wireless connection method comprises the following steps: when a request for establishing wireless connection of a mobile terminal is detected, current scene information of the mobile terminal is acquired; determining wireless roaming parameters corresponding to the wireless connection according to the current scene information; and setting the mobile terminal according to the wireless roaming parameters and establishing wireless connection. By the method, the stability and the usability of the wireless connection of the mobile terminal can be improved.

Description

Wireless connection method, wireless connection device and mobile terminal
Technical Field
The present application relates to the field of wireless connection technologies, and in particular, to a wireless connection method, a wireless connection device, a mobile terminal, and a computer-readable storage medium.
Background
In daily use, a mobile terminal such as a cellular phone is often moved as a person moves. In the coverage area of a wireless network, since signal coverage areas of single wireless Access Point (AP) devices are limited, a situation that the coverage area of one AP spans to another AP often occurs in a moving process. In this case, the mobile terminal can be helped to maintain uninterrupted wireless connection during the moving process through wireless roaming.
However, in some scenarios, when an IP address of a wireless connection is obtained through wireless roaming, repeated switching of wireless signals or failure of the wireless connection due to too frequent requests may occur, which results in poor stability and usability of the wireless connection and affects user experience.
Disclosure of Invention
The embodiment of the application provides a wireless connection method, a wireless connection device, a mobile terminal and a computer readable storage medium, which can improve the stability and the usability of wireless connection of the mobile terminal.
In a first aspect, an embodiment of the present application provides a wireless connection method, including:
when a request for establishing wireless connection of a mobile terminal is detected, current scene information of the mobile terminal is acquired;
determining wireless roaming parameters corresponding to the wireless connection according to the current scene information;
and setting the mobile terminal according to the wireless roaming parameters and establishing wireless connection.
In a second aspect, an embodiment of the present application provides a wireless connection apparatus, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring current scene information of the mobile terminal when a request for establishing wireless connection of the mobile terminal is detected;
a determining module, configured to determine a wireless roaming parameter corresponding to the wireless connection according to the current scene information;
and the connection module is used for setting the mobile terminal according to the wireless roaming parameters and establishing wireless connection.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, a display, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the wireless connection method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the wireless connection method as described in the first aspect.
In a fifth aspect, the present application provides a computer program product, when running on a mobile terminal, causing the mobile terminal to execute the wireless connection method described in the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, when a request for establishing the wireless connection of the mobile terminal is detected, the current scene information of the mobile terminal can be acquired, so that the wireless roaming parameters corresponding to the wireless connection are determined according to the current scene information, and the wireless roaming parameters of the mobile terminal are set in a targeted and flexible manner according to the current scene information, so that the mobile terminal can establish stable wireless connection with better usability, meet the requirements of various application scenes, and provide better use experience for users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a wireless connection method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a wireless connection device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile phone to which a wireless connection method according to an embodiment of the present disclosure is applied.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The wireless connection method provided by the embodiment of the application can be applied to mobile terminals such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, Augmented Reality (AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, Personal Digital Assistants (PDAs), and the like, and the embodiment of the application does not limit the specific types of the mobile terminals at all.
Specifically, fig. 1 shows a flowchart of a wireless connection method provided in an embodiment of the present application, which may be applied to a mobile terminal.
The wireless connection method comprises the following steps:
step S101, when a request for establishing wireless connection of the mobile terminal is detected, current scene information of the mobile terminal is obtained.
In the embodiment of the present application, the wireless connection may be a Wi-Fi connection or the like.
For example, the request for establishing a wireless connection of the mobile terminal may be generated after detecting a wireless access point through scanning of the mobile terminal. In addition, in some embodiments, the request may also be generated after receiving a specific operation of the mobile terminal by the user, and the specific operation may instruct the mobile terminal to perform wireless connection with a specific wireless access point. For example, the specific operation may include a touch operation of a user on a specific virtual key on the display interface. Of course, the specific operation may also be other operations besides the touch operation, and may be determined according to actual situations. For example, the preset operation may be a pressing operation of a physical key of the mobile terminal by the user, or the like.
The current context information may include category information of an environment context in which the mobile terminal is currently located, information of a wireless access point associated with the request, and the like. In some embodiments, the wireless access point information may include signal strength information of the wireless access point, attribute information (e.g., whether encrypted or not), MAC address information corresponding to the wireless access point, and so on.
And step S102, determining wireless roaming parameters corresponding to the wireless connection according to the current scene information.
In the embodiment of the application, the wireless roaming parameters corresponding to the wireless connection can be set in a targeted manner according to the current scene information. The wireless roaming parameter may include one or more of sensitivity, error rate, and specific option of the wireless roaming. The specific options may include, for example, an option indicating whether to perform wireless roaming, an option indicating whether to send a specific request, and the like.
Step S103, the mobile terminal is set according to the wireless roaming parameter, and wireless connection is established.
In the embodiment of the present application, after the wireless roaming parameter is obtained, the mobile terminal may be set according to the wireless roaming parameter, so as to establish a wireless connection. At this time, when the wireless connection is established, the mobile terminal may send a request instruction for performing wireless connection to a device (such as a router) providing wireless connection according to the wireless roaming parameter, and implement the wireless connection according to feedback.
In the embodiment of the application, the wireless roaming parameters corresponding to the wireless connection are determined according to the current scene information, so that the wireless roaming parameters of the mobile terminal are set in a targeted and flexible manner according to the current scene information, and the mobile terminal can establish stable wireless connection with good usability.
In some embodiments, the obtaining current context information of the mobile terminal when detecting a request for wireless connection to the mobile terminal includes:
when a request for wireless connection of a mobile terminal is detected, determining the current scene type of the mobile terminal;
acquiring the number of Media Access Control (MAC) addresses corresponding to the wireless access points associated with the request;
the determining the wireless roaming parameter corresponding to the wireless connection according to the current scene information includes:
and determining wireless roaming parameters corresponding to the wireless connection according to the current scene type and the number of the MAC addresses.
In the embodiment of the present application, the classification of the current scene category may be determined according to the actual application scene needs. For example, the current scene category may include a public scene category, a company scene category, a private scene category, a family scene category, and the like.
The number of Media Access Control (MAC) addresses may reflect an attribute of the wireless Access point, for example, may reflect a possibility that the wireless Access point is a public wireless Access point or a private wireless Access point. For example, in a home wireless network environment, there is often only one MAC address corresponding to a wireless access point to which the mobile terminal is connected; in a public wireless network provided in an airport, a mall, or the like, there are many MAC addresses corresponding to wireless access points to which the mobile terminals are connected.
Therefore, the wireless roaming parameter corresponding to the wireless connection can be determined by determining the condition of the wireless network to which the mobile terminal is currently connected based on the current scene type and the number of the MAC addresses, for example, determining whether the wireless access point connected to the mobile terminal is a wireless access point of a public network or a wireless access point of a private network.
In some embodiments, the determining the current scene category of the mobile terminal when the request for wireless connection to the mobile terminal is detected includes:
when a request for establishing wireless connection of the mobile terminal is detected, displaying reminding information, wherein the reminding information is used for reminding a user to select a current scene type;
and taking the scene category selected by the user as the current scene category.
In the embodiment of the application, when the request is detected, corresponding reminding information can be displayed on a display interface of the mobile terminal, and the current scene type can be determined according to the selection of the user.
In some embodiments, the determining the current scene category of the mobile terminal when the request for wireless connection to the mobile terminal is detected includes:
when a request for establishing wireless connection of a mobile terminal is detected, acquiring current positioning information of the mobile terminal;
and determining the current scene type of the mobile terminal according to the current positioning information.
In the embodiment of the application, because the current location of the mobile terminal can often reflect the current scene of the user, the current scene category of the mobile terminal can be determined according to the current GPS location information of the mobile terminal and the like, and the user does not need to manually select the current scene category, so that the operation efficiency is improved.
In some embodiments, the determining the wireless roaming parameter corresponding to the wireless connection according to the current scenario type and the number of the MAC addresses includes:
and determining a wireless roaming setting mode and/or a Dynamic Host Configuration Protocol (DHCP) acquisition mode corresponding to the wireless connection according to the current scene type and the number of the MAC addresses.
In this embodiment, the wireless roaming setting manner may be used to indicate how the mobile terminal acquires wireless roaming, for example, the wireless roaming setting manner may be used to indicate a setting manner for triggering wireless roaming signal sensitivity corresponding to the wireless roaming, triggering error rate corresponding to the wireless roaming, and the like. The DHCP acquisition mode may be used to instruct the mobile terminal how to acquire the DHCP.
In a conventional configuration, the wireless roaming configuration and/or the dynamic host configuration protocol DHCP acquisition corresponding to the wireless connection are often fixed in advance, for example, the conventional DHCP acquisition often includes a complete acquisition process, that is, the mobile terminal searches for a DHCP server, acquires an IP address provided by at least one DHCP server, selects a certain IP address and sends a corresponding request to the corresponding DHCP server, and receives DHCP ack acknowledgement information including the provided IP address and other settings sent by the DHCP, thereby completing the DHCP acquisition process of the mobile terminal. In addition, parameters such as wireless roaming signal sensitivity are also often fixed.
However, in some scenarios, for example, in complex environments such as airports, etc., due to the fact that the number of connected persons of the public wireless network is large, hot spots and full load often occur, so that the IP address is insufficient, and the mobile terminal frequently drops, fails in connection, and the like. Therefore, the conventional setting method often cannot meet the requirements of variable application scenarios, resulting in poor usability of wireless connection.
In the embodiment of the present application, the wireless roaming setting mode and/or the DHCP obtaining mode may be adjusted according to the current scene type and the number of the MAC addresses, for example, in a public scene such as an airport, the wireless roaming setting mode and/or the DHCP obtaining mode may request to update the lease information for the current IP address without re-obtaining the IP address, so as to avoid situations such as connection failure, and in a company scene, for example, the wireless roaming setting mode and/or the DHCP obtaining mode may reduce the request to update the lease information for the current IP address, so as to improve the sensitivity of the wireless roaming signal, so as to connect to a better hotspot in the surrounding environment, thereby enabling the configuration mode of the wireless connection of the mobile terminal to be more flexible and the performance to be better.
In some embodiments, the determining, according to the current scene type and the number of the MAC addresses, a wireless roaming setting mode and a dynamic host configuration protocol DHCP acquisition mode corresponding to the wireless connection includes:
if the current scene type is a public scene type and the number of the MAC addresses is not less than the preset number, setting the sensitivity of the wireless roaming signal of the mobile terminal as a first sensitivity threshold value, and setting the DHCP acquisition mode as a first acquisition mode, wherein the first acquisition mode is used for indicating the mobile terminal to request to update the lease information of the current IP address;
if the current scene type is a company scene type and the number of the MAC addresses is not less than a preset number, setting the sensitivity of the wireless roaming signal of the mobile terminal to be a second sensitivity threshold value, and setting the DHCP acquisition mode to be a second acquisition mode, wherein the second sensitivity threshold value is greater than the first sensitivity threshold value, and the second acquisition mode is used for indicating the mobile terminal to request to acquire an IP address.
In daily use, in public environments such as airports and the like, due to the fact that the number of people connected to a public wireless network is large, hot spots and full load often occur, and the IP address is insufficient, so that the mobile terminal is frequently disconnected, connection fails and the like. Therefore, the conventional complete DHCP acquisition procedure often fails to meet the needs of the public scenario, resulting in poor availability of the wireless connection.
In this embodiment, if the current scene type is a public scene type and the number of the MAC addresses is not less than a preset number, the sensitivity of the wireless roaming signal of the mobile terminal is set to a first sensitivity threshold, and the DHCP acquisition mode is set to a first acquisition mode, where the first acquisition mode is used to instruct the mobile terminal to request for updating of the lease information for the current IP address. In this case, the preset number may be 2, that is, the number of MAC addresses may be plural. The first sensitivity threshold may be a lower sensitivity, so that the mobile terminal may trigger wireless roaming when the signal strength of the connected wireless signal is lower, and when the allocated IP address is still in the valid period, the mobile terminal requests to update the lease information of the current IP address instead of reacquiring the IP address, so as to save resources and avoid connection failure and the like, thereby improving the stability and availability of the wireless connection of the mobile terminal in a public scene.
However, when the mobile terminal is in the company scene category, if the same setting mode as that in the public scene category is adopted, the wireless roaming of the mobile terminal is insensitive, a better hotspot cannot be selected for connection, and network regulation may exist in the company. In addition, in some embodiments, a Packet Error Rate (PER) of the mobile terminal may be further set as a first error rate threshold, where the first error rate threshold may be a higher error rate threshold.
Therefore, in this embodiment of the present application, if the current scene type is a company scene type and the number of the MAC addresses is not less than a preset number, the sensitivity of the wireless roaming signal of the mobile terminal may be set to a second sensitivity threshold, where the second sensitivity threshold is greater than the first sensitivity threshold, and the DHCP acquisition mode is set to a second acquisition mode. In this case, the second sensitivity threshold may be set to a higher sensitivity, so that the signal strength of the wireless signal corresponding to the mobile terminal triggering the wireless roaming is higher, and the DHCP acquisition mode may instruct the mobile terminal to request to acquire an IP address. In addition, in some embodiments, the DHCP obtaining method may include a complete DHCP obtaining process, that is, instructing the mobile terminal to search for a DHCP server, obtain an IP address provided by at least one DHCP server, select an IP address, send a corresponding request to the corresponding DHCP server, and receive DHCP ack acknowledgement information including the provided IP address and other settings sent by the DHCP, thereby completing the DHCP obtaining process of the mobile terminal.
In some embodiments, the determining, according to the current scene type and the number of the MAC addresses, a wireless roaming setting mode and a dynamic host configuration protocol DHCP acquisition mode corresponding to the wireless connection includes:
and if the number of the MAC addresses is less than the preset number, setting the mobile terminal not to perform wireless roaming, and setting the DHCP acquisition mode as a second acquisition mode, wherein the second acquisition mode is used for indicating the mobile terminal to request to acquire the IP address.
In this embodiment of the application, in some cases, the number of the MAC addresses is small, for example, when the current scene type is a private scene type (e.g., a home type), the number of the MAC addresses corresponding to the wireless connection is often only 1, so that, in order to avoid a risk of wireless connection disconnection caused by switching antennas by triggering wireless roaming and avoid resource waste caused by starting scanning, at this time, the mobile terminal may be set to not perform wireless roaming, and the DHCP acquisition mode may be set to be a second acquisition mode, where the second acquisition mode is used to instruct the mobile terminal to request to acquire an IP address.
In the embodiment of the application, when a request for establishing the wireless connection of the mobile terminal is detected, the current scene information of the mobile terminal can be acquired, so that the wireless roaming parameters corresponding to the wireless connection are determined according to the current scene information, and the wireless roaming parameters of the mobile terminal are set in a targeted and flexible manner according to the current scene information, so that the mobile terminal can establish stable wireless connection with better usability, meet the requirements of various application scenes, and provide better use experience for users.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 2 shows a block diagram of a wireless connection device provided in the embodiment of the present application, which corresponds to the above-described wireless connection method in the above embodiment, and only the relevant parts to the embodiment of the present application are shown for convenience of description.
Referring to fig. 2, the wireless connection device 2 includes:
an obtaining module 201, configured to obtain current scene information of a mobile terminal when a request for establishing a wireless connection of the mobile terminal is detected;
a determining module 202, configured to determine a wireless roaming parameter corresponding to the wireless connection according to the current scene information;
the connection module 203 is configured to set the mobile terminal according to the wireless roaming parameter and establish a wireless connection.
Optionally, the obtaining module 201 specifically includes:
a determining unit, configured to determine a current scene type of a mobile terminal when a request for wireless connection to the mobile terminal is detected;
an obtaining unit, configured to obtain the number of MAC addresses corresponding to the wireless access point associated with the request;
the determining module 202 is specifically configured to:
and determining wireless roaming parameters corresponding to the wireless connection according to the current scene type and the number of the MAC addresses.
Optionally, the determining unit specifically includes:
the display subunit is used for displaying reminding information when a request for establishing wireless connection of the mobile terminal is detected, wherein the reminding information is used for prompting a user to select a current scene type;
and the processing subunit is used for taking the scene category selected by the user as the current scene category.
Optionally, the determining unit specifically includes:
an obtaining subunit, configured to obtain current location information of the mobile terminal when a request for establishing a wireless connection of the mobile terminal is detected;
and the determining subunit is used for determining the current scene type of the mobile terminal according to the current positioning information.
Optionally, the determining module 202 is specifically configured to:
and determining a wireless roaming setting mode and/or a Dynamic Host Configuration Protocol (DHCP) acquisition mode corresponding to the wireless connection according to the current scene type and the number of the MAC addresses.
Optionally, the determining module 202 specifically includes:
a first setting unit, configured to set a sensitivity of a wireless roaming signal of the mobile terminal to a first sensitivity threshold and set the DHCP acquisition mode to a first acquisition mode if the current scene type is a common scene type and the number of the MAC addresses is not less than a preset number, where the first acquisition mode is used to instruct the mobile terminal to request for updating of lease information for a current IP address;
a second setting unit, configured to set a sensitivity of a wireless roaming signal of the mobile terminal to a second sensitivity threshold and set the DHCP acquisition mode to a second acquisition mode if the current scene type is a company scene type and the number of the MAC addresses is not less than a preset number, where the second sensitivity threshold is greater than the first sensitivity threshold, and the second acquisition mode is used to instruct the mobile terminal to request to acquire an IP address.
Optionally, the determining module 202 specifically includes:
a third setting unit, configured to set the mobile terminal not to perform wireless roaming and set the DHCP acquisition mode as a second acquisition mode if the number of the MAC addresses is smaller than a preset number, where the second acquisition mode is used to instruct the mobile terminal to request to acquire an IP address.
In the embodiment of the application, when a request for establishing the wireless connection of the mobile terminal is detected, the current scene information of the mobile terminal can be acquired, so that the wireless roaming parameters corresponding to the wireless connection are determined according to the current scene information, and the wireless roaming parameters of the mobile terminal are set in a targeted and flexible manner according to the current scene information, so that the mobile terminal can establish stable wireless connection with better usability, meet the requirements of various application scenes, and provide better use experience for users.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. As shown in fig. 3, the mobile terminal 3 of this embodiment includes: at least one processor 30 (only one is shown in fig. 3), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 executes the computer program 32 to implement the steps of any of the above-mentioned wireless connection method embodiments.
The mobile terminal 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 3 is only an example of the mobile terminal 3, and does not constitute a limitation of the mobile terminal 3, and may include more or less components than those shown, or combine some of the components, or different components, such as an input-output device, a network access device, etc.
The Processor 30 may be a Central Processing Unit (CPU), and the Processor 30 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the mobile terminal 3, such as a hard disk or a memory of the mobile terminal 3. The memory 31 may be an external storage device of the mobile terminal 3 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the mobile terminal 3. Further, the memory 31 may include both an internal storage unit and an external storage device of the mobile terminal 3. The memory 31 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The above-mentioned memory 31 may also be used to temporarily store data that has been output or is to be output.
Take a mobile terminal as an example. Fig. 4 is a block diagram illustrating a partial structure of a mobile phone according to an embodiment of the present application. Referring to fig. 4, the handset includes: radio Frequency (RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (WiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 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 following describes each component of the mobile phone in detail with reference to fig. 4:
the RF circuit 410 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 480; in addition, the data for designing uplink is 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 410 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 420 may be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 420. The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 420 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 430 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 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also called a touch screen, may collect touch operations of a user on or near the touch panel 431 (e.g., operations of the user on or near the touch panel 431 using any suitable object or accessory such as a finger or a stylus) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 431 may include two parts of 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 480, and receives and executes commands sent from the processor 480. In addition, the touch panel 431 may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch panel 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 440 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 440 may include a Display panel 441, and optionally, the Display panel 441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation on or near the touch panel 431, the touch panel is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although the touch panel 431 and the display panel 441 are shown in fig. 4 as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 431 and the display panel 441 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 400 can also include at least one sensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 441 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 460, speaker 461, microphone 462 may provide an audio interface between the user and the cell phone. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is received by the audio circuit 460 and converted into audio data, which is then processed by the audio data output processor 480 and then transmitted to, for example, another cellular phone via the RF circuit 410, or output to the memory 420 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 470, and provides wireless broadband Internet access for the user. Although fig. 4 shows the WiFi module 470, it is understood that it does not belong to the essential constitution of the handset 400, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 480 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the mobile phone. Optionally, processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.
The handset 400 also includes a power supply 490 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 480 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the cell phone 400 may also include a camera. Optionally, the position of the camera on the mobile phone 400 may be front-located or rear-located, which is not limited in this embodiment of the application.
Optionally, the mobile phone 400 may include a single camera, a dual camera, or a triple camera, which is not limited in this embodiment.
Optionally, when the mobile phone 400 includes a plurality of cameras, the plurality of cameras may be all front-mounted, all rear-mounted, or a part of the cameras front-mounted and another part of the cameras rear-mounted, which is not limited in this embodiment of the present application.
In addition, although not shown, the mobile phone 400 may further include a bluetooth module, etc., which will not be described herein.
In this embodiment, when the processor 30 executes the computer program 32 to implement the steps in any of the foregoing wireless connection method embodiments, when a request for establishing a wireless connection of a mobile terminal is detected, current context information of the mobile terminal may be obtained, so as to determine a wireless roaming parameter corresponding to the wireless connection according to the current context information, and to purposefully and flexibly set the wireless roaming parameter of the mobile terminal according to the current context information, so that the mobile terminal can establish a stable and highly available wireless connection, and adapt to the needs of various application scenarios, thereby providing a better use experience for a user.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/mobile terminal, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunication signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A wireless connection method, comprising:
when a request for establishing wireless connection of a mobile terminal is detected, current scene information of the mobile terminal is acquired;
determining wireless roaming parameters corresponding to the wireless connection according to the current scene information;
setting the mobile terminal according to the wireless roaming parameters and establishing wireless connection;
the determining the wireless roaming parameters corresponding to the wireless connection according to the current scene information includes:
determining wireless roaming parameters corresponding to the wireless connection according to the current scene category and the number of the MAC addresses;
the determining the wireless roaming parameters corresponding to the wireless connection according to the current scene category and the number of the MAC addresses comprises:
and determining a wireless roaming setting mode and/or a Dynamic Host Configuration Protocol (DHCP) acquisition mode corresponding to the wireless connection according to the current scene type and the number of the MAC addresses.
2. The wireless connection method according to claim 1, wherein the obtaining current scene information of the mobile terminal when detecting a request for wireless connection to the mobile terminal comprises:
when a request for wireless connection of a mobile terminal is detected, determining the current scene category of the mobile terminal;
and acquiring the number of the media access control MAC addresses corresponding to the wireless access points associated with the request.
3. The wireless connection method of claim 2, wherein determining the current context category of the mobile terminal when the request for wireless connection to the mobile terminal is detected comprises:
when a request for establishing wireless connection of the mobile terminal is detected, displaying reminding information, wherein the reminding information is used for reminding a user to select a current scene type;
and taking the scene category selected by the user as the current scene category.
4. The wireless connection method of claim 2, wherein determining the current context category of the mobile terminal when the request for wireless connection to the mobile terminal is detected comprises:
when a request for establishing wireless connection of a mobile terminal is detected, acquiring current positioning information of the mobile terminal;
and determining the current scene type of the mobile terminal according to the current positioning information.
5. The wireless connection method according to any one of claims 1 to 4, wherein the determining, according to the current scene type and the number of the MAC addresses, a wireless roaming setting mode and a Dynamic Host Configuration Protocol (DHCP) acquisition mode corresponding to the wireless connection comprises:
if the current scene type is a public scene type and the number of the MAC addresses is not less than the preset number, setting the sensitivity of the wireless roaming signal of the mobile terminal as a first sensitivity threshold value, and setting the DHCP acquisition mode as a first acquisition mode, wherein the first acquisition mode is used for indicating the mobile terminal to request to update the lease information of the current IP address;
if the current scene type is a company scene type and the number of the MAC addresses is not less than the preset number, setting the sensitivity of the wireless roaming signal of the mobile terminal to be a second sensitivity threshold value, and setting the DHCP acquisition mode to be a second acquisition mode, wherein the second sensitivity threshold value is greater than the first sensitivity threshold value, and the second acquisition mode is used for indicating the mobile terminal to request to acquire the IP address.
6. The wireless connection method according to any one of claims 1 to 4, wherein the determining, according to the current scene type and the number of the MAC addresses, a wireless roaming setting mode and a Dynamic Host Configuration Protocol (DHCP) acquisition mode corresponding to the wireless connection comprises:
and if the number of the MAC addresses is less than the preset number, setting the mobile terminal not to perform wireless roaming, and setting the DHCP acquisition mode as a second acquisition mode, wherein the second acquisition mode is used for indicating the mobile terminal to request to acquire the IP address.
7. A wireless connection apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring current scene information of a mobile terminal when a request for establishing wireless connection of the mobile terminal is detected;
a determining module, configured to determine a wireless roaming parameter corresponding to the wireless connection according to the current scene information;
the connection module is used for setting the mobile terminal according to the wireless roaming parameters and establishing wireless connection;
the determining module is further configured to determine a wireless roaming parameter corresponding to the wireless connection according to the current scene type and the number of the MAC addresses;
and determining a wireless roaming setting mode and/or a Dynamic Host Configuration Protocol (DHCP) acquisition mode corresponding to the wireless connection according to the current scene type and the number of the MAC addresses.
8. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the wireless connection method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, implements the wireless connection method according to any one of claims 1 to 6.
CN202010206873.3A 2020-03-23 2020-03-23 Wireless connection method, wireless connection device and mobile terminal Active CN111314900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010206873.3A CN111314900B (en) 2020-03-23 2020-03-23 Wireless connection method, wireless connection device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010206873.3A CN111314900B (en) 2020-03-23 2020-03-23 Wireless connection method, wireless connection device and mobile terminal

Publications (2)

Publication Number Publication Date
CN111314900A CN111314900A (en) 2020-06-19
CN111314900B true CN111314900B (en) 2022-08-09

Family

ID=71162393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010206873.3A Active CN111314900B (en) 2020-03-23 2020-03-23 Wireless connection method, wireless connection device and mobile terminal

Country Status (1)

Country Link
CN (1) CN111314900B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492521B (en) * 2020-11-05 2023-08-08 北京小米移动软件有限公司 WiFi roaming trigger condition determining method and device, mobile terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094128A (en) * 2006-06-22 2007-12-26 中兴通讯股份有限公司 Method for controlling frequent switching in wireless local area network
CN103999511A (en) * 2011-12-08 2014-08-20 苹果公司 Mechanisms to improve mobile device roaming in wireless networks
CN104023374A (en) * 2014-05-27 2014-09-03 美的集团股份有限公司 Wireless local area network access parameter configuration method and system
CN105745971A (en) * 2013-11-22 2016-07-06 高通股份有限公司 Systems and methods for dynamically adjusting roaming parameters
CN106550381A (en) * 2015-09-23 2017-03-29 中兴通讯股份有限公司 A kind of WiFi method for parameter configuration and device
CN106686626A (en) * 2016-12-07 2017-05-17 广东欧珀移动通信有限公司 Setting method for Wi-Fi roaming and terminal equipment
CN107040910A (en) * 2017-04-24 2017-08-11 北京小米移动软件有限公司 Wireless roaming method, radio roaming device and electronic equipment
CN108429628A (en) * 2017-02-13 2018-08-21 中兴通讯股份有限公司 A kind of wireless network configuration method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120170474A1 (en) * 2011-01-04 2012-07-05 General Electric Company System and Method of Adaptive Roaming for WLAN Clients

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094128A (en) * 2006-06-22 2007-12-26 中兴通讯股份有限公司 Method for controlling frequent switching in wireless local area network
CN103999511A (en) * 2011-12-08 2014-08-20 苹果公司 Mechanisms to improve mobile device roaming in wireless networks
CN105745971A (en) * 2013-11-22 2016-07-06 高通股份有限公司 Systems and methods for dynamically adjusting roaming parameters
CN104023374A (en) * 2014-05-27 2014-09-03 美的集团股份有限公司 Wireless local area network access parameter configuration method and system
CN106550381A (en) * 2015-09-23 2017-03-29 中兴通讯股份有限公司 A kind of WiFi method for parameter configuration and device
CN106686626A (en) * 2016-12-07 2017-05-17 广东欧珀移动通信有限公司 Setting method for Wi-Fi roaming and terminal equipment
EP3531737A1 (en) * 2016-12-07 2019-08-28 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for setting wifi roaming and terminal device
CN108429628A (en) * 2017-02-13 2018-08-21 中兴通讯股份有限公司 A kind of wireless network configuration method and device
CN107040910A (en) * 2017-04-24 2017-08-11 北京小米移动软件有限公司 Wireless roaming method, radio roaming device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于无缝漫游的WLAN无感知认证设计与实现;刘哲;《中国优秀硕士学位论文辑》;20170601;全文 *

Also Published As

Publication number Publication date
CN111314900A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN108391025B (en) Network access management method, mobile terminal and computer readable storage medium
US10869250B2 (en) Method for setting Wi-Fi roaming, and related products
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN108900231B (en) Dynamic antenna adjustment method and related product
CN108834132B (en) Data transmission method and equipment and related medium product
CN106879055B (en) Wireless network scanning control method and related equipment
CN107888768B (en) Unlocking control method, terminal and computer readable storage medium
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN106484563B (en) Data migration method and terminal equipment
CN112691363A (en) Cross-terminal switching method and related device for cloud games
CN107466081B (en) Wireless switching method and terminal
CN106851784B (en) network scanning method and terminal equipment
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
WO2019011297A1 (en) Fm channel finding and searching method, mobile terminal and storage apparatus
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN110209434B (en) Memory management method and device and computer readable storage medium
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN107894958B (en) Junk information cleaning method, terminal, server and computer readable storage medium
CN108804434B (en) Message query method, server and terminal equipment
CN107360599B (en) Intelligent wifi networking method and mobile terminal
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal
CN106879046B (en) Network scanning method and terminal equipment
WO2017049930A1 (en) Resource usage method and terminal
CN110012146B (en) Communication sharing method and terminal

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