CN112492568B - Network information processing method, device, mobile terminal and storage medium - Google Patents

Network information processing method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN112492568B
CN112492568B CN202011233565.6A CN202011233565A CN112492568B CN 112492568 B CN112492568 B CN 112492568B CN 202011233565 A CN202011233565 A CN 202011233565A CN 112492568 B CN112492568 B CN 112492568B
Authority
CN
China
Prior art keywords
mobile terminal
duration
network
mode
scanning
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
CN202011233565.6A
Other languages
Chinese (zh)
Other versions
CN112492568A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011233565.6A priority Critical patent/CN112492568B/en
Publication of CN112492568A publication Critical patent/CN112492568A/en
Application granted granted Critical
Publication of CN112492568B publication Critical patent/CN112492568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode 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

Landscapes

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

Abstract

The disclosure relates to a network information processing method, a device, a mobile terminal and a storage medium, which are applied to the mobile terminal, wherein the method comprises the following steps: determining a network mode of the mobile terminal; configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal; scanning time lengths corresponding to different network modes are different; wherein, the scanning duration includes: a first time period and/or a second time period; the first duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second duration is: and the mobile terminal is used as the time length for accessing the access point equipment. Therefore, under different network modes of the mobile terminal, the configured scanning time length can be adapted to the current network mode by dynamically configuring different scanning time lengths, so that the mobile terminal obtains a better network environment under the current network mode, and the network performance under each network mode is optimized.

Description

Network information processing method, device, mobile terminal and storage medium
Technical Field
The disclosure relates to the technical field of network information, and in particular relates to a network information processing method, a device, a mobile terminal and a storage medium.
Background
In the related art, the same mobile terminal can be used as both an access point device and a station device of a wireless network. However, when the mobile terminal is used as the access point device, the network performance requirement of the network is different from the network performance requirement of the network of the mobile terminal as the site device. Therefore, how to balance the networking performance of the mobile terminal in each network mode is a technical problem that needs to be solved.
Disclosure of Invention
According to a first aspect of an embodiment of the present disclosure, there is provided a network information processing method, applied to a mobile terminal, including:
determining a network mode of the mobile terminal;
configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal; scanning time lengths corresponding to different network modes are different; wherein, the scanning duration includes: a first time period and/or a second time period; the first duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the duration of access of the site equipment.
Optionally, the configuring the scanning duration of the mobile terminal according to the network mode in which the mobile terminal is located includes:
when the mobile terminal is in a site mode, configuring the scanning duration of the mobile terminal as a first duration; and/or the number of the groups of groups,
when the mobile terminal is in an access point mode, configuring the scanning duration of the mobile terminal as a second duration; wherein the second duration is less than the first duration.
Optionally, the site mode is a default mode of the mobile terminal; the method further comprises the steps of:
and when the mobile terminal exits the access point mode, determining that the mobile terminal enters the site mode.
Optionally, the method further comprises:
monitoring network opening information of the mobile terminal;
the determining the network mode of the mobile terminal comprises the following steps:
and when the network starting information indicates that the hot spot of the mobile terminal is started, determining that the network mode in which the mobile terminal is positioned is the access point mode.
Optionally, the method further comprises:
and when the network opening information indicates that the wireless fidelity wifi of the mobile terminal is opened, determining that the network mode of the mobile terminal is the site mode.
Optionally, before the configuring the scanning duration of the mobile terminal, the method further includes:
configuring attribute information of the scanning duration according to a network mode of the mobile terminal; the attribute information indicates that the data type corresponding to the scanning duration is: constant or variable.
Optionally, the method further comprises:
determining a target scanning duration of the mobile terminal in a network mode;
the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises the following steps:
acquiring the current scanning duration of the mobile terminal in the network mode according to the network mode of the mobile terminal;
determining whether the current scanning duration is the target scanning duration;
if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
According to a second aspect of the embodiments of the present disclosure, there is provided a network information processing apparatus applied to a mobile terminal, including:
the first determining module is configured to determine a network mode in which the mobile terminal is located;
the configuration module is configured to configure the scanning duration of the mobile terminal according to the network mode of the mobile terminal; scanning time lengths corresponding to different network modes are different; wherein, the scanning duration includes: a first time period and/or a second time period; the first duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the duration of access of the site equipment.
Optionally, the configuration module includes:
the first configuration submodule is configured to configure the scanning duration of the mobile terminal to be a first duration when the mobile terminal is in a site mode; and/or the number of the groups of groups,
the second configuration submodule is configured to configure the scanning duration of the mobile terminal to be a second duration when the mobile terminal is in an access point mode; wherein the second duration is less than the first duration.
Optionally, the site mode is a default mode of the mobile terminal; the apparatus further comprises:
and the second determining module is configured to determine that the mobile terminal enters the site mode when the mobile terminal exits the access point mode.
Optionally, the apparatus further comprises:
the monitoring module is configured to monitor network opening information of the mobile terminal;
the first determining module is further configured to determine that a network mode in which the mobile terminal is located is the access point mode when the network start information indicates that a hotspot of the mobile terminal is open.
Optionally, the first determining module is further configured to:
and when the network opening information indicates that the wireless fidelity wifi of the mobile terminal is opened, determining that the network mode of the mobile terminal is the site mode.
Optionally, the first determining module is further configured to:
configuring attribute information of the scanning duration according to a network mode of the mobile terminal; the attribute information indicates that the data type corresponding to the scanning duration is: constant or variable.
Optionally, the apparatus further comprises:
the second determining module is configured to determine a target scanning duration in a network mode where the mobile terminal is located;
the configuration module is further configured to:
acquiring the current scanning duration of the mobile terminal in the network mode according to the network mode of the mobile terminal;
determining whether the current scanning duration is the target scanning duration;
if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
According to a third aspect of embodiments of the present disclosure, there is provided a mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: and the step of realizing any one of the lock screen display control methods is implemented during execution.
In a fourth aspect of the disclosed embodiments, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform steps for implementing any one of the above-described lock screen display control methods.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the embodiment of the disclosure, firstly, determining a network mode in which the mobile terminal is located; then configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal; wherein, different network modes correspond to different scanning time durations, and the scanning time durations comprise a first scanning time duration and/or a second scanning time duration; the first scanning duration refers to the duration that the mobile terminal is used as site equipment to scan access point equipment in a wireless network; the second scanning duration refers to a duration that the mobile terminal is used as access point equipment for accessing by site equipment. In this way, under different network modes of the mobile terminal, the configured scanning time length can be adapted to the current network mode by dynamically configuring different scanning time lengths, so that the mobile terminal can have better scanning time length under the current network mode, and further, the mobile terminal can be helped to obtain better network environment under the current network mode based on the scanning time length, and the network performance under each network mode is optimized. In summary, the scanning duration is dynamically configured in different network modes to ensure the network performance in each network mode, so that the network performance of the mobile terminal in each network mode is balanced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flowchart illustrating a network information processing method according to an exemplary embodiment;
FIG. 2 is another schematic diagram of a network information processing method according to an exemplary embodiment;
FIG. 3 is a scene graph illustrating a network information processing method according to an example embodiment;
FIG. 4 is a flowchart illustrating a method of network information processing according to an exemplary embodiment;
FIG. 5 is another particular flow diagram of a network information processing method, shown in accordance with an exemplary embodiment;
FIG. 6 is a block diagram of a network information processing apparatus according to an exemplary embodiment;
fig. 7 is a block diagram of a mobile terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Fig. 1 is a flowchart illustrating a network information processing method according to an exemplary embodiment, which is applied to a mobile terminal, as shown in fig. 1, the method comprising the steps of:
step 101: and determining the network mode of the mobile terminal.
Here, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, or a wearable device; the wearable device can be a smart watch or a smart bracelet. It will be appreciated that the method may be applied to any mobile terminal having two or more network modes.
The method of the disclosed embodiments is applied to a wireless network. It will be appreciated that different network modes of the mobile terminal may indicate different networking objects of the mobile terminal in the wireless network. It will be appreciated that the network performance parameters required for different network modes are different. For example, when the mobile terminal is in a certain network mode, the network performance parameter a is required to ensure the network performance, and in another network mode, the network performance parameter B is required to ensure the network performance.
Step 102: configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal; scanning time lengths corresponding to different network modes are different; wherein, the scanning duration includes: a first scanning duration and/or a second scanning duration; the first scanning duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second scanning duration is as follows: and the mobile terminal is used as access point equipment for the duration of access of the site equipment.
It should be understood that an Access Point (AP) device, hereinafter referred to as an AP device, is a device for providing a wireless Access service in a wireless network, and is capable of providing data Access and allowing a wireless terminal to Access.
A Station (STA) device, hereinafter referred to as STA device, in a wireless network, the STA device itself does not accept access of the wireless network, but is connected to an AP device, and after the STA device is connected to the AP device, the AP provides its network service.
It will be appreciated that the AP device is a creator of the wireless network, is a central node of the network, and the STA devices are terminals each connected to the wireless network, such as notebook computers, tablet computers, and other user devices that can be networked may be referred to as a STA device.
It should be added that in the wireless network field, STA devices need to scan on different communication channels to discover the existence of an AP device and make a network connection with the AP device. Here, the scanning duration actually refers to a stay duration of the STA device scanning the AP device in the communication channel in the wireless network. In the embodiment of the present disclosure, if the mobile terminal is used as the STA device, the scanning duration refers to a duration for the mobile terminal to scan for the AP device in the wireless network as the STA device; and if the mobile terminal is used as the AP equipment, the scanning time length refers to the time length of the mobile terminal used as the AP equipment for the STA equipment to access. That is, the scanning duration may be used as a parameter of network performance, and if the scanning duration is too short, the STA device may not scan the AP device and may cause network connection failure; the scanning time is too long, and the STA device still stays in the communication channel after scanning the AP device, so as to occupy the communication channel, resulting in reduced network throughput and affecting network performance.
In the above embodiment, different scanning durations are dynamically configured according to different network modes, so that the configured scanning durations are adapted to the current network mode, so that the mobile terminal can have a better scanning duration in the current network mode, and further, the mobile terminal can be helped to obtain a better network environment in the current network mode based on the scanning duration, so that the network performance in each network mode is optimized.
As another optional embodiment, the step 102, that is, the configuring the scanning duration of the mobile terminal according to the network mode in which the mobile terminal is located, includes:
when the mobile terminal is in a site mode, configuring the scanning duration of the mobile terminal as a first duration; and/or the number of the groups of groups,
when the mobile terminal is in an access point mode, configuring the scanning duration of the mobile terminal as a second duration; wherein the second duration is less than the first duration.
It will be appreciated that different network modes of the mobile terminal may indicate different networking objects of the mobile terminal in the wireless network. Here, the network mode of the mobile terminal may include, but is not limited to, a station mode and an access point mode.
Here, the site mode refers to a network mode in which the mobile terminal is used as STA equipment to construct a network with AP equipment; and the access point mode refers to a network mode in which the mobile terminal is used as an AP device to construct a network with the STA device.
The first duration here refers to: the first time length is a time length that the mobile terminal can be used as the STA device to scan the AP device in the wireless network at least to describe the AP device in the wireless network, so that at least one AP device and the mobile terminal can be networked to ensure the scanning time length of the network performance of the mobile terminal in the wireless network. And the second time period here is: the second duration is a duration that the mobile terminal can be used as the AP device to enable the STA device to scan and access, so that at least one STA device and the mobile terminal can be networked to ensure the network performance of the mobile terminal in the wireless network.
In this way, in this embodiment, different scanning durations are configured for the mobile terminal based on different network modes of the mobile terminal, so as to adapt to different network modes, thereby optimizing network performance in different network modes.
Indeed, in other embodiments, the mobile terminal may operate not only in a station mode but also in an access point mode. When the mobile terminal operates in both the station mode and the access point mode, although the network channels between the two modes of operation are different, adjacent channel interference cannot be avoided. In this case, it can be understood that a smaller scanning duration is currently set for the mobile terminal when the access point mode and the station mode coexist, so as to ensure the network performance of the mobile terminal in the access point mode. However, this smaller duration may result in the situation that the AP device is not scanned occasionally when the mobile terminal is used as the STA device, thereby affecting the network performance of the mobile terminal in the station mode.
Based on this, in the embodiment of the present disclosure, the configuring the scanning duration of the mobile terminal according to the network mode in which the mobile terminal is located may further include:
when the mobile terminal is in an access point mode and in a site mode, configuring the scanning time length of the mobile terminal to be a third time length, wherein the third time length is smaller than the first time length.
Here, the third duration is a duration for balancing the mobile terminal as a site device to scan for the access point device in the wireless network and the mobile terminal as the access point device for the site device to access, where the time duration of the third duration may be a compromise duration between the first duration and the second duration, for example, if the first duration is 80ms and the second duration is 10ms, the third duration may be 45ms. Therefore, the networking network performance constructed by the mobile terminal serving as the STA device and the networking network performance constructed by the mobile terminal serving as the AP device can be balanced, and the network performance of the whole network system is ensured.
As another optional embodiment, the site mode is a default mode of the mobile terminal, and the method further includes:
and when the mobile terminal exits the access point mode, determining that the mobile terminal enters the site mode.
In this embodiment, since the site mode is set as the default mode of the mobile terminal, when the mobile terminal exits from the access point mode, the first duration can be automatically configured for the site mode in the default mode, that is, the scanning duration of the mobile terminal is automatically changed from the second duration in the original access point mode to the first duration in the site mode, so that the configuration of the first duration is not required when the mobile terminal is started to enter the default mode next time, and the functions of the mobile terminal are saved.
As another alternative embodiment, referring to fig. 2, as shown in fig. 2, the method further includes:
step 201: monitoring network opening information of the mobile terminal;
the step 101, the determining the network mode of the mobile terminal includes step 1011:
and when the network starting information indicates that the hot spot of the mobile terminal is started, determining that the network mode in which the mobile terminal is positioned is the access point mode.
Here, the network opening information refers to the condition information of network opening based on user setting, which is monitored in the running process of the system. Specifically, if the network is turned on based on the user input, the network-on information may be presented in the form of character "01" in the system process, and if the network is turned off based on the user input, the network-on information may be presented in the form of character "00" in the system process. Therefore, by monitoring the network opening information of the mobile terminal, whether the mobile terminal opens a network or not can be determined, and what kind of network is opened, thereby providing a basis for determining the network mode of the mobile terminal.
Further, when the network opening information indicates that the hot spot of the mobile terminal is opened, determining that the network mode in which the mobile terminal is positioned is the access point mode.
It can be understood that after the hot spot is opened, the mobile terminal can be used as an AP device for accessing the STA device, so after the hot spot is opened, the mobile terminal is indicated to be accessed by the STA device to form a network using the mobile terminal as the AP device. Therefore, under the condition that the hot spot of the mobile terminal is opened, the network mode in which the mobile terminal is positioned can be determined to be an access point mode.
Based on the above, in this embodiment, the network mode in which the mobile terminal is located is determined to be the access point mode based on the network opening information, and the scanning duration is dynamically configured to be the second duration, so that the networking network in the access point mode can be automatically optimized when the hotspot indicated by the network opening information is opened, and the detection process of the network mode is saved.
As another alternative embodiment, the method further comprises:
and when the network opening information indicates that the wireless fidelity wifi of the mobile terminal is opened, determining that the network mode of the mobile terminal is the site mode.
It can be understood that when wifi of the mobile terminal is turned on, the method can be used for searching the AP device within the preset distance range to access the AP device to form a network with the mobile terminal as the STA device, so that under the condition that wifi of the mobile terminal is turned on, it can be determined that the network mode in which the mobile terminal is located is a site mode.
Based on the above, in this embodiment, by determining, based on the network opening information, that the network mode in which the mobile terminal is located is the site mode and dynamically configuring the scanning duration to be the first duration, the networking network in the site mode can be automatically optimized based on wifi opening indicated by the network opening information, so that processes such as detection of the network mode are saved.
It should be added that the current scanning time length is usually preconfigured, and if the scanning time length needs to be modified, the program may need to be modified, so that the configuration is not simple.
Based on this, as another optional embodiment, before the configuring the scanning duration of the mobile terminal, the method further includes:
configuring attribute information of the scanning duration according to a network mode of the mobile terminal; the attribute information indicates that the data type corresponding to the scanning duration is: constant or variable.
That is, in this embodiment, the attribute information of the scanning duration may be modified first, so that the attribute of the scanning duration is changed from the constant to the variable, and thus, the scanning duration may be dynamically configured in determining different network modes. Therefore, the program can be executed by itself without manual intervention.
Further, based on the automatic configuration, the embodiment of the disclosure also sets a verification mechanism. Specifically, as another optional embodiment, the method further includes:
determining a target scanning duration of the mobile terminal in a network mode;
the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises the following steps:
acquiring the current scanning duration of the mobile terminal in the network mode according to the network mode of the mobile terminal;
determining whether the current scanning duration is the target scanning duration;
if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
Here, the target scan duration refers to a scan duration that needs to be configured in the corresponding network mode. For example, when the mobile terminal is in the station mode, the first duration is a target scanning duration, and when the mobile terminal is in the access point mode, the second duration is a target scanning duration, and when the mobile terminal is in the station mode and coexists with the access point mode, the third duration is a target scanning duration.
Here, the current scanning duration refers to a scanning duration actually used by the mobile terminal in the current network mode. Here, the acquisition of the current scanning duration may be performed by the following instructions, specifically, the acquisition instruction of the current scanning duration is:
#dmesg|grep active_max_channel_time_2g
further, if the obtained current scanning duration is not the target scanning duration to be configured in the network mode, the scanning duration in the current network mode needs to be reconfigured to ensure the network performance of networking in the current network mode, so that the target scanning duration can be configured as the scanning duration.
In this embodiment, the current scanning duration is obtained, the scanning duration in the current network mode is verified, whether the current scanning duration is the target scanning duration is determined, and when the current scanning duration is not the target duration, the scanning duration is reconfigured to be the target scanning duration, so that the network performance is further ensured.
In other embodiments, the method further comprises:
determining whether a network mode of the mobile terminal is changed;
the determining the target scanning duration in the network mode where the mobile terminal is located includes:
when the network mode of the mobile terminal is changed, triggering and determining the target scanning duration in the network mode of the mobile terminal.
Here, the determining whether the network mode of the mobile terminal is changed may include:
monitoring the starting state information of the hot spot in the network starting information;
when the hotspot opening state information indicates that a hotspot is opened, determining that the network mode of the mobile terminal is changed;
and when the hotspot opening state information indicates that the hotspot is closed, determining that the network mode of the mobile terminal is changed.
In this way, the verification mechanism can be automatically executed through the hot spot opening and closing, so that the networking network performance of the mobile terminal serving as the AP equipment is ensured under the hot spot opening condition, and the networking network performance of the mobile terminal serving as the STA equipment is ensured under the hot spot closing condition.
Further, the present disclosure provides a specific embodiment to further understand the network information processing method provided by the embodiments of the present disclosure.
It should be added that P2P mode is a point-to-point connection technology in Wi-Fi Direct standard, and it can establish TCP/IP link between two STA devices, where one STA device will function as an AP device in a conventional sense, called a networking owner, and the other STA becomes a networking client, where the networking client is connected to the networking owner just like the AP device is connected. Thus, a network formed between mobile terminals may be composed of several network modes:
First kind: an STA site mode and an STA site mode;
second kind: SAT site mode and soft AP mode;
third kind: SAT site mode and P2P mode;
fourth kind: PAP mode and soft site mode.
In this embodiment, taking a form of the mobile terminal in the second network composition as an example, specifically referring to fig. 3, as shown in fig. 3, the network mode in which the mobile terminal is located may be a station mode in which the mobile terminal is used as an STA device, or an access point mode in which the mobile terminal is used as an AP device. And both network modes may coexist. That is, the mobile terminal may be used as an STA device to access to an AP device connected to the internet, or may be used as an AP device (when a soft AP, that is, a hot spot, is turned on) at the same time for the STA device to access, so as to share the network of the mobile terminal.
In the case where two network modes coexist, the performance between the networking network configured by the mobile terminal as STA device and the networking network configured by the mobile terminal as AP device may be affected. Based on this, in the related art, the scanning duration described in the above embodiment is set to a compromise and fixed duration, however, if the scanning duration is long, the throughput of the whole system may be reduced, and if the scanning time is short, a situation that the AP device cannot be scanned when the mobile terminal is used as the SAT device may occur.
In this embodiment, the configuration of the scanning duration described above may be configured by an ioctl instruction. Here, the ioctl instruction is dedicated to a system call for device input-output operations, which call is passed into a request code associated with the device, the function of the system call being entirely dependent on the request code. Thus, in this embodiment, the request code may be a request code configured based on the scanning period.
In this way, the embodiment of the present disclosure provides a specific network information processing method, referring to fig. 4, as shown in fig. 4, the method includes:
step 41: default setting the scanning duration as the first duration;
in fact, the default network mode of the mobile terminal is the STA mode, so that the scanning duration can be set to be the first duration by default, so that when the mobile terminal is started, the AP device is scanned by default by the first duration, thereby ensuring that the AP device can be scanned, and further ensuring network performance in the STA mode. Here, the first time period may be set to a longer time period, for example, 80ms.
Specifically, the above-described setting of the scanning duration to 80ms by default can be accomplished using the following procedure.
#max time for active 2G channel scan.
#if set to zero,gActiveMaxChannelTime is used for 2G channel scan.
active_max_channel_time_2g=80.
Step 42: and configuring attribute information of the scanning time length, and modifying the data type of the scanning time length from constant to variable.
Specifically, the attribute information (active_dwell_2g) of the scanning duration is modified from a constant (reg_variable) to a VARIABLE (reg_dynamic_variable) in the wireless lan driver.
Step 43: the scanning duration is dynamically configured by the turning on and off of the softap.
It should be noted that, here, the turning on and off of the soft AP may be understood as the turning on and off of the hot spot in the foregoing embodiment.
Specifically, referring to fig. 5, as shown in fig. 5, the method for dynamically configuring the scanning duration by turning on and off the soft AP includes:
step 431: detecting wifi opening;
step 432: configuring the scanning time length as a first time length;
step 433: detecting that the softAP is started;
step 434: the scanning time length is configured to be a third time length;
the third duration is smaller than the first duration, and may be, for example, 40ms.
Step 435: the softAP is detected to be closed, then step 432 is returned.
On the basis of this, the present embodiment is also configured with a checking mechanism for detecting whether the configured scanning period is configured successfully. It is understood that the above scheme for implementing the checking mechanism is implemented. Specifically, if it is necessary to detect whether the first duration, i.e. the configuration is successful in the case of 40ms, this can be achieved by the following procedure:
#iwpriv wlan0 setConfig active_max_channel_time_2g=40
#iwpriv wlan0 getConfig
#dmesg|grep active_max_channel_time_2g
In the embodiment of the disclosure, by dynamically configuring the scanning parameters, the scanning parameters are set to a longer duration, such as 80ms, when the mobile terminal is operating in the STA-only mode, and the scanning parameters are adjusted to be smaller after the mobile terminal turns on the soft AP, that is, when the mobile terminal is operating in the STA-mode and the AP-mode coexist, the problem that the AP device cannot be scanned in the STA-only mode if the mobile terminal is operating in the STA-mode with a smaller scanning duration, thereby affecting the network performance in the STA-mode, and the network throughput may be reduced if a longer scanning duration is used in the case that the mobile terminal is operating in the STA-mode and the AP-mode coexist can be effectively solved. Thus, by dynamically configuring the scan duration based on different network modes, it balances how the mobile terminal balances network performance between the network formed as a site device and the network formed as an access point device.
Further, the embodiment of the disclosure also provides a lock screen display control device. Fig. 6 is a screen-lock display control apparatus according to an exemplary embodiment, and referring to fig. 6, the apparatus includes:
a first determining module 61 configured to determine a network mode in which the mobile terminal is located;
A configuration module 62, configured to configure a scanning duration of the mobile terminal according to a network mode in which the mobile terminal is located; scanning time lengths corresponding to different network modes are different; wherein, the scanning duration includes: a first time period and/or a second time period; the first duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the duration of access of the site equipment.
As an alternative embodiment, the configuration module 62 includes:
the first configuration submodule is configured to configure the scanning duration of the mobile terminal to be a first duration when the mobile terminal is in a site mode; and/or the number of the groups of groups,
the second configuration submodule is configured to configure the scanning duration of the mobile terminal to be a second duration when the mobile terminal is in an access point mode; wherein the second duration is less than the first duration.
As an alternative embodiment, the site mode is a default mode of the mobile terminal; the apparatus further comprises:
and the second determining module is configured to determine that the mobile terminal enters the site mode when the mobile terminal exits the access point mode.
As an alternative embodiment, the apparatus further comprises:
the monitoring module is configured to monitor network opening information of the mobile terminal;
the first determining module is further configured to determine that a network mode in which the mobile terminal is located is the access point mode when the network start information indicates that a hotspot of the mobile terminal is open.
As an alternative embodiment, the first determining module is further configured to:
and when the network opening information indicates that the wireless fidelity wifi of the mobile terminal is opened, determining that the network mode of the mobile terminal is the site mode.
As an alternative embodiment, the first determining module 61 is further configured to:
configuring attribute information of the scanning duration according to a network mode of the mobile terminal; the attribute information indicates that the data type corresponding to the scanning duration is: constant or variable.
As an alternative embodiment, the apparatus further comprises:
the second determining module is configured to determine a target scanning duration in a network mode where the mobile terminal is located;
the configuration module is further configured to:
acquiring the current scanning duration of the mobile terminal in the network mode according to the network mode of the mobile terminal;
Determining whether the current scanning duration is the target scanning duration;
if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram of a mobile terminal 700, according to an example embodiment. For example, the mobile terminal 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, a mobile terminal 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 707, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the mobile terminal 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 707 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the mobile terminal 700. Examples of such data include instructions for any application or method operating on the mobile terminal 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 706 provides power to the various components of the mobile terminal 700. Power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for mobile terminal 700.
The multimedia component 707 includes a screen that provides an output interface between the mobile terminal 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the mobile terminal 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the mobile terminal 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects for the mobile terminal 700. For example, the sensor assembly 714 may detect an on/off state of the mobile terminal 700, a relative positioning of the components, such as a display and keypad of the mobile terminal 700, a change in position of the mobile terminal 700 or a component of the terminal 700, the presence or absence of user contact with the mobile terminal 700, an orientation or acceleration/deceleration of the mobile terminal 700, and a change in temperature of the mobile terminal 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the mobile terminal 700 and other devices, either wired or wireless. The mobile terminal 700 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile terminal 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, including instructions executable by processor 720 of mobile terminal 700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal, enables the terminal to perform the page display method described in the above embodiments.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (18)

1. A network information processing method, which is applied to a mobile terminal, comprising:
determining a network mode of the mobile terminal;
Configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal; scanning time lengths corresponding to different network modes are different; the scanning duration of the corresponding network mode comprises the following steps: a third period of time; wherein, the third duration is: the mobile terminal is used as site equipment and used as scanning time length of access point equipment; the third duration is smaller than the scanning duration of the mobile terminal serving as site equipment.
2. The method of claim 1, wherein the scan duration of the corresponding network mode further comprises: a first time period and/or a second time period;
the first duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second duration is: the mobile terminal is used as access point equipment for the duration of access of site equipment;
wherein the second duration is less than the first duration.
3. The method of claim 2, wherein the configuring the scanning duration of the mobile terminal according to the network mode in which the mobile terminal is located includes:
when the mobile terminal is in a site mode, configuring the scanning duration of the mobile terminal as a first duration; and/or the number of the groups of groups,
When the mobile terminal is in an access point mode, configuring the scanning duration of the mobile terminal as a second duration; and/or the number of the groups of groups,
when the mobile terminal is in an access point mode and in a site mode, configuring the scanning duration of the mobile terminal as a third duration;
the second time period is smaller than the first time period, and the third time period is smaller than the first time period.
4. A method according to claim 3, wherein the site mode is a default mode of the mobile terminal; the method further comprises the steps of:
and when the mobile terminal exits the access point mode, determining that the mobile terminal enters the site mode.
5. The method according to claim 2, wherein the method further comprises:
monitoring network opening information of the mobile terminal;
the determining the network mode of the mobile terminal comprises the following steps:
and when the network opening information indicates that the hot spot of the mobile terminal is opened, determining that the network mode in which the mobile terminal is positioned is an access point mode.
6. The method according to claim 4, wherein the method further comprises:
and when the network opening information indicates that the wireless fidelity wifi of the mobile terminal is opened, determining that the network mode of the mobile terminal is the site mode.
7. The method of claim 2, wherein prior to said configuring the scan duration of the mobile terminal, the method further comprises:
configuring attribute information of the scanning duration according to a network mode of the mobile terminal; the attribute information indicates that the data type corresponding to the scanning duration is: constant or variable.
8. The method according to claim 2, wherein the method further comprises:
determining a target scanning duration of the mobile terminal in a network mode;
the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises the following steps:
acquiring the current scanning duration of the mobile terminal in the network mode according to the network mode of the mobile terminal;
determining whether the current scanning duration is the target scanning duration;
if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
9. A network information processing apparatus, which is applied to a mobile terminal, comprising:
the first determining module is configured to determine a network mode in which the mobile terminal is located;
The configuration module is configured to configure the scanning duration of the mobile terminal according to the network mode of the mobile terminal; scanning time lengths corresponding to different network modes are different; the scanning duration of the corresponding network mode comprises the following steps: a third period of time; wherein, the third duration is: the mobile terminal is used as site equipment and used as scanning time length of access point equipment; the third duration is smaller than the scanning duration of the mobile terminal serving as site equipment.
10. The apparatus of claim 9, wherein the configuration module is further configured to: a first time period and/or a second time period;
the first duration is as follows: the mobile terminal is used as site equipment to scan the duration of access point equipment in a wireless network; the second duration is: the mobile terminal is used as access point equipment for the duration of access of site equipment;
wherein the second duration is less than the first duration.
11. The apparatus of claim 10, wherein the configuration module comprises:
the first configuration submodule is configured to configure the scanning duration of the mobile terminal to be a first duration when the mobile terminal is in a site mode; and/or the number of the groups of groups,
The second configuration submodule is configured to configure the scanning duration of the mobile terminal to be a second duration when the mobile terminal is in an access point mode; wherein the second duration is less than the first duration; and/or the number of the groups of groups,
a third configuration submodule, configured to configure a scanning duration of the mobile terminal to be a third duration when the mobile terminal is in an access point mode and in a site mode; the third duration is less than the first duration.
12. The apparatus of claim 11, wherein the site mode is a default mode of the mobile terminal; the apparatus further comprises:
and the second determining module is configured to determine that the mobile terminal enters the site mode when the mobile terminal exits the access point mode.
13. The apparatus of claim 11, wherein the apparatus further comprises:
the monitoring module is configured to monitor network opening information of the mobile terminal;
the first determining module is further configured to determine that a network mode in which the mobile terminal is located is the access point mode when the network start information indicates that a hotspot of the mobile terminal is open.
14. The apparatus of claim 13, wherein the first determination module is further configured to:
and when the network opening information indicates that the wireless fidelity wifi of the mobile terminal is opened, determining that the network mode of the mobile terminal is the site mode.
15. The apparatus of claim 10, the first determination module further configured to:
configuring attribute information of the scanning duration according to a network mode of the mobile terminal; the attribute information indicates that the data type corresponding to the scanning duration is: constant or variable.
16. The apparatus of claim 10, wherein the apparatus further comprises:
the second determining module is configured to determine a target scanning duration in a network mode where the mobile terminal is located;
the configuration module is further configured to:
acquiring the current scanning duration of the mobile terminal in the network mode according to the network mode of the mobile terminal;
determining whether the current scanning duration is the target scanning duration;
if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
17. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the method steps of implementing any of claims 1 to 8.
18. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable a mobile terminal to perform the method steps of implementing any of claims 1 to 8.
CN202011233565.6A 2020-11-06 2020-11-06 Network information processing method, device, mobile terminal and storage medium Active CN112492568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011233565.6A CN112492568B (en) 2020-11-06 2020-11-06 Network information processing method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011233565.6A CN112492568B (en) 2020-11-06 2020-11-06 Network information processing method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112492568A CN112492568A (en) 2021-03-12
CN112492568B true CN112492568B (en) 2023-08-22

Family

ID=74928673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011233565.6A Active CN112492568B (en) 2020-11-06 2020-11-06 Network information processing method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112492568B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113365372B (en) * 2021-06-23 2023-03-24 Oppo广东移动通信有限公司 Ad hoc network method and device, computer readable medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104488325A (en) * 2012-07-09 2015-04-01 德克萨斯仪器股份有限公司 Systems and methods for channel scanning for multirole device
CN105813171A (en) * 2014-12-30 2016-07-27 展讯通信(上海)有限公司 Intersected service set scanning method, system, and mobile terminal
CN106332265A (en) * 2015-07-08 2017-01-11 中兴通讯股份有限公司 Content synchronization method, WLAN (Wireless Local Area Network) device and vehicle-mounted mobile Internet device
CN106412898A (en) * 2016-09-30 2017-02-15 上海斐讯数据通信技术有限公司 Flow supervising method and system based on Portal authentication time management
CN107920376A (en) * 2016-10-10 2018-04-17 深圳市中兴微电子技术有限公司 A kind of gateway automatic switching method and device
WO2019029066A1 (en) * 2017-08-11 2019-02-14 深圳光峰科技股份有限公司 Screen interactive connection method, projection device, mobile terminal and system
CN110234152A (en) * 2019-06-03 2019-09-13 Oppo广东移动通信有限公司 Channel scanning method, device, storage medium and electronic equipment
CN111328064A (en) * 2020-02-18 2020-06-23 展讯通信(上海)有限公司 Scanning processing method for equipment, mobile equipment, device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201211565D0 (en) * 2012-06-29 2012-08-15 Microsoft Corp Determining availability of an acess network
TWI581646B (en) * 2015-08-27 2017-05-01 鴻海精密工業股份有限公司 A method with dynamic frequency selection and an electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104488325A (en) * 2012-07-09 2015-04-01 德克萨斯仪器股份有限公司 Systems and methods for channel scanning for multirole device
CN105813171A (en) * 2014-12-30 2016-07-27 展讯通信(上海)有限公司 Intersected service set scanning method, system, and mobile terminal
CN106332265A (en) * 2015-07-08 2017-01-11 中兴通讯股份有限公司 Content synchronization method, WLAN (Wireless Local Area Network) device and vehicle-mounted mobile Internet device
CN106412898A (en) * 2016-09-30 2017-02-15 上海斐讯数据通信技术有限公司 Flow supervising method and system based on Portal authentication time management
CN107920376A (en) * 2016-10-10 2018-04-17 深圳市中兴微电子技术有限公司 A kind of gateway automatic switching method and device
WO2019029066A1 (en) * 2017-08-11 2019-02-14 深圳光峰科技股份有限公司 Screen interactive connection method, projection device, mobile terminal and system
CN110234152A (en) * 2019-06-03 2019-09-13 Oppo广东移动通信有限公司 Channel scanning method, device, storage medium and electronic equipment
CN111328064A (en) * 2020-02-18 2020-06-23 展讯通信(上海)有限公司 Scanning processing method for equipment, mobile equipment, device and storage medium

Also Published As

Publication number Publication date
CN112492568A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
RU2649777C2 (en) Bank transfer processing method and device
US20200401286A1 (en) Method, apparatus and medium for switching application interfaces
EP3174027B1 (en) Method and apparatus for connecting with controlled smart device, computer program and recording medium
EP3188520A1 (en) Method and device for enabling virtual subscriber identity module card
RU2669007C2 (en) Method and apparatus for establishing connection
EP3229423B1 (en) Method and device for displaying setting interface of router
KR20170126389A (en) Method and apparatus for accessing wireless access point
WO2016127669A1 (en) Method and apparatus for accessing wireless network by terminal device
CN106454998B (en) Wireless local area network access method, device and terminal
EP3553672B1 (en) Information interaction method and device and computer readable storage medium thereof
CN107094094B (en) Application networking method and device and terminal
CN105163290B (en) roaming prompting method and device
CN111294881A (en) Network link switching method and device, client and computer readable storage medium
US11197192B2 (en) Network connection management method, device and system
US20220408238A1 (en) Verification information processing method and apparatus, terminal device and storage medium
CN111277984A (en) Wireless local area network access method and device
CN112492568B (en) Network information processing method, device, mobile terminal and storage medium
CN108401536B (en) Communication control method and communication control device
CN114449542B (en) Cell registration method, device and medium
CN107105005B (en) Method and device for synchronizing data
CN106792570B (en) Positioning method and device
US10182133B2 (en) Method and device for starting application
CN107396415B (en) Communication method of dual-card intelligent terminal and terminal
CN107294983B (en) Network connection method and device, user equipment and terminal
WO2019153236A1 (en) Method, apparatus and system for establishing connection between terminal and core network to be accessed

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