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

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

Info

Publication number
CN112492568A
CN112492568A CN202011233565.6A CN202011233565A CN112492568A CN 112492568 A CN112492568 A CN 112492568A CN 202011233565 A CN202011233565 A CN 202011233565A CN 112492568 A CN112492568 A CN 112492568A
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.)
Granted
Application number
CN202011233565.6A
Other languages
Chinese (zh)
Other versions
CN112492568B (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

Images

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)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first duration and/or a second duration; the first duration is: the mobile terminal is used as a station device to scan the time length of an access point device in a wireless network; the second duration is: and the access duration of the mobile terminal serving as 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 and device, mobile terminal and storage medium
Technical Field
The present disclosure relates to the field of network information technologies, and in particular, to a network information processing method and apparatus, a mobile terminal, and a storage medium.
Background
In the related art, it is already possible to let the same mobile terminal simultaneously function as an access point device and a station device of a wireless network. However, the requirements for network performance of a network formed by a mobile terminal as an access point device are different from the requirements for network performance of a network formed by a mobile terminal as a station device. Therefore, how to balance the networking network performance of the mobile terminal under each network mode becomes an urgent technical problem to be solved.
Disclosure of Invention
According to a first aspect of the embodiments 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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first duration and/or a second duration; the first duration is: the mobile terminal is used as a station device to scan the duration of access point devices in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the access duration of the station equipment.
Optionally, the configuring, according to the network mode in which the mobile terminal is located, the scanning duration of the mobile terminal includes:
when the mobile terminal is in a station mode, configuring the scanning duration of the mobile terminal as a first duration; and/or the presence of a gas in the gas,
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 following steps:
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 starting information of the mobile terminal;
the determining the network mode of the mobile terminal includes:
and when the network opening information indicates that the hot spot of the mobile terminal is opened, determining that the network mode of the mobile terminal 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 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: a constant or a variable.
Optionally, the method further comprises:
determining a target scanning duration in a network mode where the mobile terminal is located;
the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises:
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;
and 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:
a first determination module 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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first duration and/or a second duration; the first duration is: the mobile terminal is used as a station device to scan the duration of access point devices in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the access duration of the station 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 presence of a gas in the gas,
a second configuration submodule configured to configure a 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 device further comprises:
a second determining module 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 starting information of the mobile terminal;
the first determining module is further configured to determine that the network mode in which the mobile terminal is located is the access point mode when the network start information indicates that the hotspot of the mobile terminal is started.
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: a constant or a variable.
Optionally, the apparatus further comprises:
the second determination module is configured to determine a target scanning duration in a network mode where the mobile terminal is located;
the configuration module 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;
and 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 the embodiments of the present disclosure, there is provided a mobile terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: and when the method is executed, the steps of any one of the screen locking display control methods are realized.
In a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, where instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform steps implementing any one of the above-mentioned lock screen display control methods.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, firstly, a network mode where the mobile terminal is located is determined; 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 lengths, and the scanning time length comprises a first scanning time length and/or a second scanning time length; the first scanning duration refers to the duration of scanning access point equipment in a wireless network by using the mobile terminal as station equipment; the second scanning duration is duration for the mobile terminal to access as an access point device for the station device. Therefore, under different network modes of the mobile terminal, the configured scanning duration can be adapted to the current network mode by dynamically configuring different scanning durations, so that the mobile terminal can have better scanning duration under the current network mode, and further can help the mobile terminal to obtain better network environment under the current network mode based on the scanning duration, and network performance under each network mode is optimized. In summary, the network performance in each network mode is ensured by dynamically configuring the scanning duration in different network modes, thereby balancing the network performance of the mobile terminal in each network mode.
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 flow diagram illustrating a method of network information processing in accordance with an exemplary embodiment;
FIG. 2 is another schematic diagram of a network information processing method according to an example embodiment;
FIG. 3 is a diagram illustrating a network information processing method in accordance with an exemplary embodiment;
FIG. 4 is a detailed flow diagram illustrating a method for network information processing in accordance with an exemplary embodiment;
FIG. 5 is another detailed flow chart diagram illustrating a method of network information processing in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a network information processing apparatus in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a mobile terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended 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, and includes the following steps:
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; wherein, wearable equipment can be smart watch or intelligent bracelet etc.. It is understood that the method can be applied to any mobile terminal having two or more network modes.
The method of the disclosed embodiment is applied to a wireless network. It will be appreciated that different network modes for the mobile terminal may indicate different networking objects for the mobile terminal in the wireless network. It will be appreciated that the required network performance parameters vary from network mode to network mode. For example, when the mobile terminal is in one 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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first scan duration and/or a second scan duration; the first scanning duration is as follows: the mobile terminal is used as a station device to scan the duration of access point devices in a wireless network; the second scanning duration is as follows: and the mobile terminal is used as access point equipment for the access duration of the station equipment.
It should be understood that an Access Point (AP) device, hereinafter referred to as an AP device, is a device providing a wireless Access service in a wireless network, and is capable of providing data Access and allowing a wireless terminal to perform Access.
In a wireless network, an STA device does not accept access of the wireless network, but is connected to an AP device, and after connecting with the AP device, the AP provides network services.
It is understood that the AP device is a creator of a wireless network and is a central node of the network, and the STA device is each terminal connected to the wireless network, such as a laptop, a tablet, and other user devices that can be networked may be referred to as an STA device.
It is added that in the wireless network field, the STA device needs to scan different communication channels to discover the existence of the AP device and perform network connection with the AP device. Here, the scanning duration actually refers to a stay duration for the STA device to scan 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 the AP device in the wireless network as the STA device; and if the mobile terminal is used as the AP device, the scanning duration refers to a duration for the STA device to access when the mobile terminal is used as the AP device. 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 cause a network connection failure; the scanning time is too long, which may cause the STA device to stay in the communication channel after scanning the AP device and occupy the communication channel, resulting in the reduction of network throughput and the influence on network performance.
In the above embodiment, different scanning durations are dynamically configured according to different network modes, so that the configured scanning duration can be adapted to the current network mode, and thus 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, thereby optimizing network performance in each network mode.
As another optional embodiment, the step 102, namely 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 station mode, configuring the scanning duration of the mobile terminal as a first duration; and/or the presence of a gas in the gas,
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 for the mobile terminal may indicate different networking objects for 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 station mode is a network mode in which the mobile terminal serves as an STA device and an AP device to construct a network; and the access point mode is a network mode in which the mobile terminal is used as an AP device to construct a network with an STA device.
The first time period here means: the mobile terminal is used as a time length for the STA device to scan the AP device in the wireless network, that is, the first time length is a time length for the mobile terminal to be used as the STA device to describe at least 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 mobile terminal for the network performance in the wireless network. And the second duration here is: the mobile terminal is used as the AP device for the STA device to access, that is, the second duration here is a duration that the mobile terminal can be used as the AP device to at least allow the STA device to scan and access, so that at least one STA device and the mobile terminal can form a network to ensure the scanning duration of the network performance of the mobile terminal in the wireless network.
Therefore, in the embodiment, different scanning durations are configured for the mobile terminal based on different network modes of the mobile terminal to adapt to different network modes, so that the network performance in different network modes is optimized.
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 the station mode and the access point mode simultaneously, although the network channel between the two operating modes is different, the adjacent channel interference cannot be avoided. For this situation, it can be understood that, currently, when the access point mode and the station mode coexist for the mobile terminal, a smaller scanning duration is set, so as to ensure the network performance of the mobile terminal in the access point mode. However, this small duration may result in that the AP device may not be scanned occasionally when the mobile terminal is used as an 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, 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 a site mode, configuring the scanning duration of the mobile terminal to be a third duration, wherein the third duration is less than the first duration.
Here, the third duration is a duration for balancing that the mobile terminal scans for an access point device in a wireless network as a station device and the mobile terminal is provided for the station device to access as the access point device, where a time length 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 45 ms. Therefore, the networking network performance constructed by the mobile terminal as the STA equipment and the networking network performance constructed by the AP equipment can be balanced, and the network performance of the whole network system is ensured.
As another optional embodiment, the station 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 station 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 default mode, i.e., the station mode, i.e., 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 station mode, so that the configuration of the first duration is not required when the mobile terminal is started next time and enters the default mode, and the functions of the mobile terminal are saved.
As another alternative, please refer to fig. 2, as shown in fig. 2, the method further includes:
step 201: monitoring network starting information of the mobile terminal;
the step 101, determining the network mode of the mobile terminal, includes step 1011:
and when the network opening information indicates that the hot spot of the mobile terminal is opened, determining that the network mode of the mobile terminal is the access point mode.
Here, the network start information refers to network start status information based on user settings, which is monitored by the system during operation. Specifically, if network on is performed based on the user input, the network on information may be presented in the form of a character "01" in the system process, and if network off is performed based on the user input, the network on information may be presented in the form of a character "00" in the system process. Therefore, whether the mobile terminal starts the network or not can be determined by monitoring the network starting information of the mobile terminal, and what kind of network is started, so that a basis is provided for determining the network mode of the mobile terminal.
Further, when the network opening information indicates that the hotspot of the mobile terminal is opened, determining that the network mode in which the mobile terminal is located is the access point mode.
It can be understood that after the hotspot is opened, the mobile terminal can be used as an AP device for the STA device to access, so that after the hotspot is opened, it is indicated that the mobile terminal is used for the STA device to access to form a network using the mobile terminal as the AP device. Therefore, under the condition that the hotspot of the mobile terminal is opened, the network mode in which the mobile terminal is located can be determined to be the access point mode.
Based on this, 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 start 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 start information is started, and the detection process of the network mode is saved.
As another optional 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 wifi of the mobile terminal can be used for searching for the AP device within the preset distance range to access the AP device to form a networking using the mobile terminal as the STA device, and therefore, under the condition that wifi of the mobile terminal is turned on, it can be determined that the network mode where the mobile terminal is located is the site mode.
Based on this, in this embodiment, the network mode in which the mobile terminal is located is determined to be the site mode based on the network start information, and the scanning duration is dynamically configured to be the first duration, so that the networking network in the automatic optimization site mode can be started based on wifi indicated by the network start information, and processes such as detection of the network mode are saved.
It is added that the current scan duration is usually pre-configured, and if the scan duration needs to be modified, the procedure may need to be modified, so the configuration is not easy enough.
Based on this, as another optional embodiment, before 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: a constant or a variable.
That is to say, 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 a constant to a variable, and thus, the scanning duration may be configured dynamically in different network modes. Thereby enabling the program to execute by itself without human intervention.
Further, based on automatic configuration, the embodiment of the present disclosure further provides a verification mechanism. Specifically, as another optional embodiment, the method further includes:
determining a target scanning duration in a network mode where the mobile terminal is located;
the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises:
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;
and 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 scanning duration refers to a scanning duration that needs to be configured in a 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 the access point mode, and 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 obtaining of the current scanning duration may be performed by the following instructions, specifically, the obtaining 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 the 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 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 of the mobile terminal 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 opening state information of the hot spot in the network opening 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.
Therefore, the verification mechanism can be automatically executed through the opening and closing of the hot spot, so that the networking network performance of the mobile terminal as the AP equipment under the condition of opening the hot spot and the networking network performance of the mobile terminal as the STA equipment under the condition of closing the hot spot are ensured.
Further, the present disclosure provides a specific embodiment to further understand the network information processing method provided by the embodiment 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 can function as AP device in the traditional sense, and is called networking owning end, and the other STA becomes networking client, where the networking client is connected to the networking owning end just like the AP device is connected. Thus, the networking formed between the mobile terminals may be composed of the following network modes:
the first method comprises the following steps: an STA site mode and an STA site mode;
and the second method comprises the following steps: SAT site mode and soft AP mode;
and the third is that: SAT site mode and P2P mode;
and fourthly: PAP mode and soft-station mode.
In this embodiment, taking a form of the mobile terminal forming the second network as an example, specifically, referring to fig. 3, as shown in fig. 3, the network mode of the mobile terminal may be a station mode in which the mobile terminal is an STA device, or an access point mode in which the mobile terminal is an AP device. And both network modes may coexist. That is to say, the mobile terminal may be accessed to the AP device connected to the internet as the STA device, or may be simultaneously accessed by the STA device as the AP device (when the soft AP is turned on, that is, when the hotspot is turned on), so as to share the network of the mobile terminal.
However, when the two network modes coexist, performance between the networking network configured by the mobile terminal as the STA device and the networking network configured by the mobile terminal as the AP device may be affected. Based on this, in the related art, the scanning duration described in the above embodiment is set as a compromise and fixed duration, however, if the scanning duration is longer, the throughput of the whole system may be reduced, and if the scanning duration is shorter, the situation may occur that the AP device cannot be scanned when the mobile terminal is used as the SAT device.
In this embodiment, the configuration of the scan duration may be configured through an ioctl instruction. Here, the ioctl instruction is dedicated to a system call for a device input-output operation, which calls into a device-dependent request code, the function of which depends entirely on the request code. Therefore, in this embodiment, the request code may be a request code configured based on the scanning duration.
Thus, an embodiment of the present disclosure provides a specific network information processing method, please refer to fig. 4, as shown in fig. 4, the method includes:
step 41: defaulting the scanning duration to the first duration;
in fact, the default network mode of the mobile terminal is the STA mode, and therefore, the scanning duration may be set as the first duration by default, so that when the mobile terminal is turned on, the AP device is scanned by the first duration by default, so as to ensure that the AP device can be scanned, and thus the network performance in the STA mode is ensured. Here, the first time period may be set to a somewhat longer time period, for example, 80 ms.
Specifically, the default setting of the scan duration to 80ms may 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: configuring attribute information of the scanning time length, and modifying the data type of the scanning time length from a constant to a variable.
Specifically, in the wireless lan drive, the attribute information (active _ dwell _2g) of the scanning duration is modified from a constant (REG _ VARIABLE) to a VARIABLE (REG _ DYNAMIC _ VARIABLE).
Step 43: the scanning duration is dynamically configured by turning on and off the soft AP.
It should be noted that, the turning on and off of the soft AP in this embodiment may be understood as turning on and off the hot spot in the above embodiment.
Specifically, referring to fig. 5, as shown in fig. 5, the method for dynamically configuring the scanning duration through turning on and off of the soft AP includes:
step 431: detecting the wifi starting;
step 432: configuring a scanning duration as a first duration;
step 433: detecting that the softAP is started;
step 434: configuring the scanning duration as a third duration;
here, the third time period is shorter than the first time period, and may be 40ms, for example.
Step 435: and if the softAP is detected to be closed, returning to the step 432.
On this basis, the embodiment is further configured with a checking mechanism, and the checking mechanism is configured to detect whether the configured scanning duration is configured successfully. It is to be understood that the above described scheme for implementing the described checking mechanism. Specifically, if it is required to detect whether the configuration is successful in the case of the first duration, that is, the configuration is 40ms, the following procedure may be implemented:
#iwpriv wlan0 setConfig active_max_channel_time_2g=40
#iwpriv wlan0 getConfig
#dmesg|grep active_max_channel_time_2g
in the embodiment of the present disclosure, by dynamically configuring the scanning parameters, the scanning parameters are set to a longer time duration, such as 80ms, when the mobile terminal operates in the STA-only mode, and after the mobile terminal starts the soft AP, that is, when the mobile terminal operates in the STA mode and the AP mode coexists, the scanning parameters are turned down, so that the problem that the network performance in the STA mode is affected if the mobile terminal operates in the STA-only mode and may not scan the AP device for a shorter scanning time duration, and when the mobile terminal operates in the STA mode and the AP mode coexists, the network throughput may be reduced if a longer scanning time duration is used can be effectively solved. Therefore, the scanning duration is dynamically configured based on different network modes, and how to balance the network performance of the mobile terminal between the network formed as the station equipment and the network formed as the access point equipment is balanced.
Further, the embodiment of the disclosure also provides a lock screen display control device. Fig. 6 is a view illustrating a lock screen 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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first duration and/or a second duration; the first duration is: the mobile terminal is used as a station device to scan the duration of access point devices in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the access duration of the station 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 presence of a gas in the gas,
a second configuration submodule configured to configure a 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 optional embodiment, the station mode is a default mode of the mobile terminal; the device further comprises:
a second determining module configured to determine that the mobile terminal enters the site mode when the mobile terminal exits the access point mode.
As an optional embodiment, the apparatus further comprises:
the monitoring module is configured to monitor network starting information of the mobile terminal;
the first determining module is further configured to determine that the network mode in which the mobile terminal is located is the access point mode when the network start information indicates that the hotspot of the mobile terminal is started.
As an optional 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 optional 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: a constant or a variable.
As an optional embodiment, the apparatus further comprises:
the second determination module is configured to determine a target scanning duration in a network mode where the mobile terminal is located;
the configuration module 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;
and if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a mobile terminal 700 according to an example embodiment. For example, the mobile terminal 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, 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.
Processing component 702 generally controls overall operation of mobile terminal 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may 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 mobile terminal 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile 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 disks.
Power component 706 provides power to various components of mobile terminal 700. The 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 the mobile terminal 700.
The multimedia component 707 includes a screen providing an output interface between the mobile terminal 700 and a 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect 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 a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 may include 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 signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 714 includes one or more sensors for providing various aspects of state assessment for the mobile terminal 700. For example, sensor assembly 714 may detect an open/closed state of mobile terminal 700, the relative positioning of components, such as a display and keypad of mobile terminal 700, sensor assembly 714 may also detect a change in position of mobile terminal 700 or a component of terminal 700, the presence or absence of user contact with mobile terminal 700, orientation or acceleration/deceleration of mobile terminal 700, and a change in temperature of mobile terminal 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communications between the mobile terminal 700 and other devices in a wired or wireless manner. 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 an exemplary embodiment, the communication component 716 receives a broadcast signal 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as the memory 704 including instructions, executable by the processor 720 of the mobile terminal 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform the page display method according to the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (16)

1. A network information processing method is applied to a mobile terminal and 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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first duration and/or a second duration; the first duration is: the mobile terminal is used as a station device to scan the duration of access point devices in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the access duration of the station equipment.
2. The method according to claim 1, wherein the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises:
when the mobile terminal is in a station mode, configuring the scanning duration of the mobile terminal as a first duration; and/or the presence of a gas in the gas,
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.
3. The method of claim 2, wherein the site mode is a default mode of the mobile terminal; the method further comprises the following steps:
and when the mobile terminal exits the access point mode, determining that the mobile terminal enters the site mode.
4. The method of claim 2, further comprising:
monitoring network starting information of the mobile terminal;
the determining the network mode of the mobile terminal includes:
and when the network opening information indicates that the hot spot of the mobile terminal is opened, determining that the network mode of the mobile terminal is the access point mode.
5. The method of claim 3, further comprising:
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.
6. The method according to claim 1, wherein before 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: a constant or a variable.
7. The method of claim 1, further comprising:
determining a target scanning duration in a network mode where the mobile terminal is located;
the configuring the scanning duration of the mobile terminal according to the network mode of the mobile terminal comprises:
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;
and if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
8. A network information processing device, applied to a mobile terminal, includes:
a first determination module 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; different network modes have different corresponding scanning durations; wherein the scan duration comprises: a first duration and/or a second duration; the first duration is: the mobile terminal is used as a station device to scan the duration of access point devices in a wireless network; the second duration is: and the mobile terminal is used as access point equipment for the access duration of the station equipment.
9. The apparatus of claim 8, 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 presence of a gas in the gas,
a second configuration submodule configured to configure a 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.
10. The apparatus of claim 9, wherein the site mode is a default mode of the mobile terminal; the device further comprises:
a second determining module configured to determine that the mobile terminal enters the site mode when the mobile terminal exits the access point mode.
11. The apparatus of claim 9, further comprising:
the monitoring module is configured to monitor network starting information of the mobile terminal;
the first determining module is further configured to determine that the network mode in which the mobile terminal is located is the access point mode when the network start information indicates that the hotspot of the mobile terminal is started.
12. The apparatus of claim 11, wherein 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.
13. The apparatus of claim 8, 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: a constant or a variable.
14. The apparatus of claim 8, further comprising:
the second determination module is configured to determine a target scanning duration in a network mode where the mobile terminal is located;
the configuration module 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;
and if the current scanning duration is not the target scanning duration, configuring the scanning duration of the mobile terminal as the target scanning duration.
15. 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 7.
16. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the instructions in the storage medium, when executed by a processor of a terminal, enable the mobile terminal to perform the method steps of implementing any of claims 1 to 7.
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 true CN112492568A (en) 2021-03-12
CN112492568B 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)

Cited By (1)

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

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140003405A1 (en) * 2012-06-29 2014-01-02 Microsoft Corporation Determining Availability of an Access Network
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
US20170064595A1 (en) * 2015-08-27 2017-03-02 Ambit Microsystems (Shanghai) Ltd. Method of dynamic frequency selection and an electronic device employing the same
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140003405A1 (en) * 2012-06-29 2014-01-02 Microsoft Corporation Determining Availability of an Access Network
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
US20170064595A1 (en) * 2015-08-27 2017-03-02 Ambit Microsystems (Shanghai) Ltd. Method of dynamic frequency selection and an electronic device employing the same
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

Cited By (1)

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

Also Published As

Publication number Publication date
CN112492568B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US20230300793A1 (en) Method for sending paging cause and method for acquiring paging cause
RU2669007C2 (en) Method and apparatus for establishing connection
EP3873053A1 (en) Device network configuration method and apparatus, and medium
EP3229423A1 (en) Method and device for displaying setting interface of router
CN106454998B (en) Wireless local area network access method, device and terminal
CN105578391B (en) Information processing method, device and system and terminal equipment
CN109041145B (en) Communication method, communication device, terminal and storage medium
CN111277984A (en) Wireless local area network access method and device
US20200067920A1 (en) Method for outputting networking authentication information, networking method, apparatus and storage medium
CN114930937B (en) Wireless sensing resource coordination method, device and storage medium
CN112492568B (en) Network information processing method, device, mobile terminal and storage medium
CN113407427A (en) Verification information processing method and device, terminal equipment and storage medium
CN112702803A (en) Channel determination method and device, terminal equipment and computer readable storage medium
CN107105005B (en) Method and device for synchronizing data
CN106792570B (en) Positioning method and device
CN109451832B (en) Wireless communication method, device and computer readable storage medium
WO2022188067A1 (en) Method and apparatus for sending downlink control channel, method and apparatus for receiving downlink control channel, and device and medium
CN114449542B (en) Cell registration method, device and medium
WO2019153236A1 (en) Method, apparatus and system for establishing connection between terminal and core network to be accessed
US20220104003A1 (en) Random access method and apparatus, and computer readable storage medium
US20240032094A1 (en) Configuration determination method and device, and configuration indication method and device
US20240179761A1 (en) Communication method and device, and storage medium
CN114697944B (en) Device connection method, device connection apparatus, and storage medium
CN115484154B (en) Configuration method, request method, device and storage medium of resource equipment
WO2023102941A1 (en) Method and apparatus for determining random access occasion resource information, and method and apparatus for indicating random access occasion resource information

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