CN113873617B - Mobile terminal networking method and device, computer equipment and storage medium - Google Patents

Mobile terminal networking method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113873617B
CN113873617B CN202111019793.8A CN202111019793A CN113873617B CN 113873617 B CN113873617 B CN 113873617B CN 202111019793 A CN202111019793 A CN 202111019793A CN 113873617 B CN113873617 B CN 113873617B
Authority
CN
China
Prior art keywords
mobile terminal
application program
state information
behavior type
endc
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
CN202111019793.8A
Other languages
Chinese (zh)
Other versions
CN113873617A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111019793.8A priority Critical patent/CN113873617B/en
Publication of CN113873617A publication Critical patent/CN113873617A/en
Application granted granted Critical
Publication of CN113873617B publication Critical patent/CN113873617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal networking method, a mobile terminal networking device, computer equipment and a storage medium, which are applied to the technical field of mobile terminal networking, and the method comprises the following steps: monitoring the behavior type of an application program running on a mobile terminal when the mobile terminal is in a screen awakening state; turning on or off an ENDC switch based on the behavior type and state information of the modem. According to the scheme provided by the embodiment of the invention, the ENDC switch is determined to be turned on or turned off based on the behavior type of the application program and the state information of the modem, so that a UI operation interface for manually turning on or turning off the ENDC switch by a user is omitted in the networking process of the mobile terminal, the UI design is simplified, and the user experience is improved; the ENDC switch is automatically switched on and off based on the behavior type of the application program and the current state of the modem, and the user experience in a high-rate transmission scene is maintained while the battery endurance time of the mobile terminal is prolonged.

Description

Mobile terminal networking method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of mobile terminal networking technologies, and in particular, to a mobile terminal networking method and apparatus, a computer device, and a storage medium.
Background
SA (Stand-Alone) and NSA (None-Stand-Alone) are two networking modes of the fifth Generation Mobile Communication Technology (5 th Generation Mobile Communication Technology, abbreviated as 5G). In the existing NSA networking mode, an EUTRA-NR (Dual Connectivity) switch, abbreviated as an endec switch, is generally set on the mobile terminal side, and the endec switch controls the network Dual Connectivity to be turned on and off. For example, when the state of the endec switch is on, the mobile terminal simultaneously establishes a network connection with the LTE base station and the NR base station for data transmission, that is, supports establishment of a network dual connection; and when the state of the ENDC switch is closed, only the LTE base station is used for data transmission, namely the network dual connection is not supported to be established. When network dual connection needs to be established, a user opens an ENDC switch and issues a 5G measurement request through a 4G network, and based on a measurement result reported to a 5G cell, the mobile communication network determines whether to establish a data channel of an NR base station for transmitting data. In the prior art, the judgment of whether the ENDC switch is started is handed to the user, so that the operation is too complicated when the mobile terminal is networked, the user experience is poor, and in addition, a non-professional person is difficult to judge whether the ENDC switch needs to be started, and the networking difficulty of the mobile terminal is high.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the user experience is poor due to the fact that the mobile terminal is frequently connected, and the mobile terminal is difficult to connect to the network for non-professionals.
In order to solve the technical problem, the invention provides a mobile terminal networking method, which comprises the following steps:
monitoring the behavior type of an application program running on a mobile terminal when the mobile terminal is in a screen awakening state;
turning on or off an ENDC switch based on the behavior type and state information of the modem.
Optionally, before the step of monitoring the behavior type of the application running on the mobile terminal when the mobile terminal is in the screen wake-up state, the method further includes:
detecting whether the mobile terminal is in a screen awakening state or not;
in response to the fact that the mobile terminal is not in a screen awakening state, closing the ENDC switch and establishing network connection between the mobile terminal and the LTE base station;
and responding to the mobile terminal in the screen awakening state, and executing the step of monitoring the behavior type of the application program running on the mobile terminal when the mobile terminal is in the screen awakening state.
Optionally, the turning on or off an endec switch based on the behavior type and the state information of the modem includes:
and if the behavior type of the application program running on the mobile terminal is the preset low data rate requirement behavior, closing the ENDC switch.
Optionally, the turning on or off an endec switch based on the behavior type and the state information of the modem includes:
if the behavior type of the application program running on the mobile terminal is a preset high data rate demand behavior, acquiring current state information of a modem;
turning on or off an ENDC switch based on current state information of the modem.
Optionally, the turning on or turning off an endec switch based on the current state information of the modem includes:
acquiring current state information of the modem;
judging whether the mobile terminal is in a healthy state or not based on the current state information;
opening the ENDC switch in response to the mobile terminal being in a healthy state;
turning off the ENDC switch in response to the mobile terminal not being in a healthy state.
Optionally, the step of monitoring the behavior type of the application running on the mobile terminal includes:
if the socket opening of the application program is not monitored, the behavior type of the application program is a preset low data rate requirement behavior; wherein the socket comprises at least one of a TCP socket or a UDP socket.
Optionally, the step of monitoring the behavior type of the application running on the mobile terminal includes:
if the application program opens a TCP socket and the data size of a core TCP cache data queue of the mobile terminal is not lower than the preset ratio of a data sending window, the behavior type of the application program is a preset high data rate requirement behavior;
and if the application program is monitored to open the UDP socket, the behavior type of the application program is a preset low data rate requirement behavior.
Optionally, the determining whether the mobile terminal is in a healthy state based on the current state information includes:
and acquiring state information of a physical layer, an L2 layer, an RRC layer and an NAS layer of the NR base station, wherein if the state information of each layer meets corresponding preset conditions, the mobile terminal is in a healthy state.
Optionally, the step of monitoring the behavior type of the application running on the mobile terminal includes:
if the application program is monitored to open a TCP socket and the data size of a kernel TCP cache data queue of the mobile terminal is not lower than the preset duty ratio of a data sending window, judging whether the CPU load, the core temperature, the battery power and the cruising time meet respective preset conditions at the same time;
and if the CPU load, the core temperature, the battery power and the cruising time simultaneously meet respective preset conditions, the behavior type of the application program is a preset high data rate requirement behavior.
In order to solve the above technical problem, the present invention provides a mobile terminal networking device, including:
the monitoring module is used for monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state;
and the control module is used for opening or closing the ENDC switch based on the behavior type and the state information of the modem.
Optionally, the method further comprises: a detection module and an execution module; wherein the content of the first and second substances,
the detection module is used for detecting whether the mobile terminal is in a screen awakening state or not before the monitoring module monitors the behavior type of the application program running on the mobile terminal;
the execution module is used for responding to the situation that the mobile terminal is not in a screen awakening state, closing the ENDC switch and establishing network connection between the mobile terminal and the LTE base station; and in response to the fact that the mobile terminal is in the screen awakening state, triggering the monitoring module to monitor the behavior type of the application program running on the mobile terminal when the mobile terminal is in the screen awakening state.
Optionally, the control module is specifically configured to turn off the endec switch when the behavior type of the application running on the mobile terminal is a preset low data rate requirement behavior.
Optionally, the control module is specifically configured to, when a behavior type of an application running on the mobile terminal is a preset high data rate requirement behavior, obtain current state information of the modem; turning on or off an ENDC switch based on current state information of the modem.
Optionally, the control module is specifically configured to obtain current state information of the modem when a behavior type of an application running on the mobile terminal is a preset high data rate requirement behavior; judging whether the mobile terminal is in a healthy state or not based on the current state information;
the execution module is specifically configured to open the endec switch in response to the mobile terminal being in a healthy state; turning off the ENDC switch in response to the mobile terminal not being in a healthy state.
Optionally, the monitoring module is specifically configured to determine that the behavior type of the application program is a preset low data rate requirement behavior when the application program is not monitored to open a socket; wherein the socket comprises at least one of a TCP socket or a UDP socket.
Optionally, the monitoring module is specifically configured to determine that the behavior type of the application program is a preset high data rate demand behavior when it is monitored that the application program opens a TCP socket and the data size of a core TCP cache data queue of the mobile terminal is not lower than a preset duty ratio of a data sending window; and when the application program is monitored to open the UDP socket, the behavior type of the application program is a preset low data rate requirement behavior.
Optionally, the control module is specifically configured to, when the behavior type of the application running on the mobile terminal is a preset high data rate requirement behavior, obtain state information of a physical layer, an L2 layer, an RRC layer, and an NAS layer of the NR base station, and if the state information of each layer meets a corresponding preset condition, the mobile terminal is in a healthy state.
Optionally, the monitoring module is specifically configured to, when the mobile terminal is in a screen wakeup state, determine whether a CPU load, a core temperature, a battery power level, and a cruising time simultaneously satisfy respective preset conditions if it is monitored that the application opens a TCP socket and the size of data in a core TCP cache data queue of the mobile terminal is not less than a preset duty ratio of a data sending window; and if the CPU load, the core temperature, the battery power and the cruising time simultaneously meet respective preset conditions, the behavior type of the application program is a preset high data rate requirement behavior.
In order to solve the above technical problem, the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
To solve the above technical problem, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method.
Compared with the prior art, one or more embodiments in the scheme can have the following advantages or beneficial effects:
by applying the mobile terminal networking method, the mobile terminal networking device, the computer equipment and the storage medium, the behavior type of an application program running on the mobile terminal is monitored when the mobile terminal is in a screen awakening state; turning on or off the ENDC based on the behavior type and the state information of the modem.
Therefore, the scheme provided by the embodiment of the invention determines whether to turn on the ENDC switch or not based on the behavior type of the application program running on the mobile terminal and the state information of the modem, and hides the setting of the ENDC on the UI operation interface, so that the UI operation interface for manually turning on or off the ENDC switch by a user is omitted in the networking process of the mobile terminal, the UI design is simplified, and the user experience is improved. In addition, the ENDC switch can be automatically turned on or off based on the behavior type of an application running on the mobile terminal and the state information of the modem, so that the user experience in a high-rate transmission scenario (such as video, audio, downloading and the like) is maintained while the battery life of the mobile terminal is prolonged.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart of a mobile terminal networking method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a mobile terminal networking method according to an embodiment of the present invention;
fig. 3 is a third flowchart of a mobile terminal networking method according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a mobile terminal networking method according to an embodiment of the present invention;
fig. 5 is a fifth flowchart of a mobile terminal networking method according to an embodiment of the present invention;
fig. 6 is a first flowchart of a mobile terminal networking device according to an embodiment of the present invention;
fig. 7 is a second flowchart of a mobile terminal networking device according to an embodiment of the present invention;
fig. 8 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a mobile terminal networking method, a mobile terminal networking device, computer equipment and a storage medium, and aims to solve the problems that in the prior art, the mobile terminal networking operation is too frequent, so that the user experience is poor, and the mobile terminal networking difficulty is high for non-professionals.
The following describes a mobile terminal networking method provided in an embodiment of the present invention.
Example one
As shown in fig. 1, a first flowchart of a method for connecting a mobile terminal to a network according to an embodiment of the present invention may include the following steps:
step S101: and monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state.
In one case, when the screen of the mobile terminal is bright, it indicates that the screen of the mobile terminal is in an awakening state.
From the perspective of data transmission by a mobile terminal, the behavior types of the application program running on the mobile terminal are divided into: a low data rate demand behavior and a high data rate demand behavior. In one case, if the application program is not monitored to open the socket, the behavior type of the application program is a preset low data rate requirement behavior; wherein the socket comprises at least one of a TCP socket or a UDP socket. In another situation, if it is monitored that the application program opens a TCP socket and the size of the data in the core TCP cache data queue of the mobile terminal is not lower than a preset duty ratio (for example, 20% to 100%) of a data sending window, the behavior type of the application program is a preset high data rate demand behavior; and if the application program is monitored to open the UDP socket, the behavior type of the application program is a preset low data rate requirement behavior.
In an embodiment of the present invention, if it is monitored that the application opens a TCP socket, and the size of the data in the core TCP cache data queue of the mobile terminal is not less than the preset duty ratio of the data sending window, the behavior type of the application may be further determined according to the CPU load, the core temperature, the battery power, and the cruising time of the mobile terminal, and therefore, the step of monitoring the behavior type of the application running on the mobile terminal may include:
if the application program is monitored to open a TCP socket and the data size of a kernel TCP cache data queue of the mobile terminal is not lower than the preset duty ratio of a data sending window, judging whether the CPU load, the core temperature, the battery power and the cruising time meet respective preset conditions at the same time;
and if the CPU load, the core temperature, the battery power and the cruising time simultaneously meet respective preset conditions, the behavior type of the application program is a preset high data rate requirement behavior.
For example, the predetermined condition of the CPU load includes that the CPU load is greater than 80%, the predetermined condition of the core temperature includes that the CPU load is greater than 50 ℃, the predetermined condition of the battery power includes that the battery power is greater than 20%, the predetermined condition of the cruising time includes that the cruising time is greater than 1 hour, and when the CPU load is greater than 80% (the range of the desirable value is 70% to 90%), the core temperature is greater than 50 ℃ (the range of the desirable value is 45 ℃ to 55 ℃), the battery power is greater than 20% (the range of the desirable value is 10% to 50%), and the cruising time is greater than 1 hour (the range of the desirable value is 1 hour to 5 hours), the behavior type of the application program can be considered as the predetermined high data rate demand behavior.
The setting of the preset ratio may be set based on an empirical value in the field, or may be determined based on experimental data, and the present invention is not limited to a specific setting method. In addition, the invention also does not limit the specific numerical values of the CPU load, the core temperature, the battery power and the cruising time, and the technical personnel in the field can carry out reasonable setting according to the specific conditions in the practical application.
Step S102: turning on or off an ENDC switch based on the behavior type and state information of the modem.
In one case, the status information may be monitored based on a physical layer status of the modem, a MAC (Media Access Control), an RLC (Radio Link Control), a PDCP (Packet Data Convergence Protocol), an RRC (Radio Resource Control), and an NAS (Non-Access Stratum) layer status.
By applying the scheme provided by the embodiment of the invention, whether the ENDC switch is turned on or not is determined based on the behavior type of the application program running on the mobile terminal and the state information of the modem, and the setting of the ENDC on the UI operation interface is hidden, so that the UI operation interface for manually turning on or off the ENDC switch by a user is saved in the networking process of the mobile terminal, the UI design is simplified, and the user experience is improved. In addition, the ENDC switch can be automatically turned on or off based on behavior types of applications running on the mobile terminal and state information of the modem, so that the user experience in high-rate transmission scenes (such as videos, audios, downloads and the like) is maintained while the battery endurance of the mobile terminal is improved.
Example two
As shown in fig. 2, a second flowchart of a method for connecting a mobile terminal to a network according to an embodiment of the present invention may include the following steps:
step S201: and detecting whether the mobile terminal is in a screen awakening state.
The screen of the mobile terminal can be detected in real time in one situation, can be detected periodically based on a preset time interval in another situation, and can be detected based on the historical use habits, such as frequency, duration and the like of the user on the mobile terminal in still another situation. It should be noted that the three cases given here are only specific implementations for detecting the screen state of the mobile terminal, and other implementations are certainly possible.
Step S202: and in response to the fact that the mobile terminal is not in the screen awakening state, closing the ENDC switch and establishing network connection between the mobile terminal and the LTE base station.
It can be understood that when the mobile terminal is not in the screen wake-up state, it indicates that there is no high data rate requirement behavior for data transmission of the mobile terminal by the user, and at this time, the endec switch does not need to be turned on, so that the user needs to be satisfied only by establishing a network connection between the mobile terminal and the LTE base station.
Step S203: in response to the mobile terminal being in the screen wake-up state, step 204 is performed.
Step S204: and monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state.
Step S205: turning on or off an ENDC switch based on the behavior type and state information of the modem.
It should be noted that step S204 and step S205 in the method embodiment shown in fig. 2 are similar to step S101 and step S102 in the method embodiment shown in fig. 1, and please refer to the embodiment shown in fig. 1 for relevant points, which is not described again here.
It should be noted that the method embodiment shown in fig. 2 has all the advantages of the method embodiment shown in fig. 1, in addition, the method embodiment shown in fig. 2 can also detect the screen of the mobile terminal, and automatically control the on or off of the endec switch for the situation that the screen of the mobile terminal is in the screen wake-up state or not in the screen wake-up state, thereby improving the operation experience of the user.
EXAMPLE III
As shown in fig. 3, a third flowchart of a method for connecting a mobile terminal to a network according to an embodiment of the present invention may include the following steps:
step S301: and monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state.
Step S302: and if the behavior type of the application program running on the mobile terminal is the preset low data rate requirement behavior, closing the ENDC switch.
It should be noted that the method embodiment shown in fig. 3 has all the advantages of the method embodiment shown in fig. 1, in addition, the method embodiment shown in fig. 3 provides a control method for the endec switch when the behavior type of the application program is the preset low data rate requirement behavior, so that the control on the endec switch better meets the actual data transmission requirement of the user, and better mobile terminal networking experience is provided for the user.
Example four
As shown in fig. 4, a fourth flowchart of a method for connecting a mobile terminal to a network according to an embodiment of the present invention is shown, where the method includes the following steps:
step S401: and monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state.
Step S402: and if the behavior type of the application program running on the mobile terminal is a preset high data rate demand behavior, acquiring the current state information of the modem.
Step S403: turning on or off an ENDC switch based on current state information of the modem.
It should be noted that the method embodiment shown in fig. 4 has all the advantages of the method embodiment shown in fig. 1, in addition, the method embodiment shown in fig. 4 gives a control manner for the endec switch when the behavior type of the application program is the preset high data rate demand behavior, so that the control for the endec switch better meets the actual data transmission demand of the user, and better mobile terminal networking experience is provided for the user.
EXAMPLE five
As shown in fig. 5, a fifth flowchart of a method for connecting a mobile terminal to a network according to an embodiment of the present invention may include the following steps:
step S501: and monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state.
Step S502: and if the behavior type of the application program running on the mobile terminal is a preset high data rate demand behavior, acquiring the current state information of the modem.
Step S503: and acquiring the current state information of the modem.
Step S504: and judging whether the mobile terminal is in a healthy state or not based on the current state information, if so, executing the step S505, otherwise, executing the step S506.
Step S505: opening the ENDC switch in response to the mobile terminal being in a healthy state.
Step S506: turning off the ENDC switch in response to the mobile terminal not being in a healthy state.
As described in the embodiment of the method shown in fig. 1, the status information may be monitored based on the physical layer status of the modem, the MAC (Media Access Control), the RLC (Radio Link Control), the PDCP (Packet Data Convergence Protocol), the RRC (Radio Resource Control), and the NAS (Non-Access Stratum) layer status.
In one case, whether the mobile terminal is in a healthy state may be determined as follows: and acquiring state information of a physical layer, an L2 layer (comprising an MAC layer, an RLC layer and a PDCP layer) and an L3 layer (comprising an RRC layer and an NAS layer) of the NR base station, wherein if the state information of each layer meets corresponding preset conditions, the mobile terminal is in a healthy state.
Under another situation, the state information of the physical layer of the NR base station is firstly acquired, if the state information meets corresponding preset conditions, the state information of the L2 layer is continuously acquired, otherwise, the mobile terminal is in an unhealthy state, and the state information of the L2 layer and the L3 layer is not acquired any more for judgment; if the state information of the L2 layer meets the corresponding preset conditions, the state information of the L3 layer is continuously acquired, otherwise, the mobile terminal is in an unhealthy state and does not acquire the state information of the L3 layer any more for judgment; and if the state information of the L3 layer meets the corresponding preset condition, the mobile terminal is in a healthy state, otherwise, the mobile terminal is in an unhealthy state.
In one embodiment of the invention, for the physical layer, the physical layer state is considered to be healthy when the RSRP is greater than a first threshold value of-110 dbm and the SINR is greater than or equal to a second threshold value of 0db, wherein the second threshold value can be between-25 db and 30 db. For the L2 layer, statistical information of each of the MAC layer, the RLC layer, and the PDCP layer is detected, for example, packet loss and retransmission times in the past one minute account for the total data times exceeding a third threshold of 10%, where the third threshold may be a value between 0 and 100%, if none of the values exceeds the third threshold, the L2 layer is considered healthy, otherwise, the L2 layer is considered unhealthy. For the L3 layer, on the one hand, for the judgment of the RRC layer state, according to the current RRC connected state in the 3GPP specification, the RRC connected state is considered as healthy RRC state, and other states are considered as unhealthy; on the other hand, for the judgment of the state of the NAS layer, according to the current NAS state in the 3GPP specification, if the state is a registration state, the state is considered to be healthy, and other states are considered to be unhealthy.
It should be noted that the specific values or value ranges of the first threshold, the second threshold, and the third threshold mentioned above are all specific implementation manners given in the embodiment of the present invention, and should not be construed as limitations of the present invention.
It should be noted that the method embodiment shown in fig. 5 has all the advantages of the method embodiment shown in fig. 4, in addition, the method embodiment shown in fig. 4 may also determine whether the mobile terminal is in a healthy state based on the current state information of the modem, so that the networking experience of the mobile terminal used by the user is improved, and meanwhile, the security of the mobile terminal in the network connection can be improved.
EXAMPLE six
The following describes a mobile terminal networking device provided in an embodiment of the present invention.
As shown in fig. 6, a first structure diagram of a mobile terminal networking device provided in the embodiment of the present invention includes a monitoring module 610 and a control module 620.
The monitoring module 610 is configured to monitor a behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen wakeup state;
and a control module 620 for turning on or off the ENDC switch based on the behavior type and the state information of the modem.
By applying the scheme provided by the embodiment of the invention, whether the ENDC switch is turned on or not is determined based on the behavior type of the application program running on the mobile terminal and the state information of the modem, and the setting of the ENDC on the UI operation interface is hidden, so that the UI operation interface for manually turning on or off the ENDC switch by a user is saved in the networking process of the mobile terminal, the UI design is simplified, and the user experience is improved. In addition, the ENDC switch can be automatically turned on or off based on the behavior type of the application program running on the mobile terminal and based on the state information of the modem, so that the user experience in a high-rate transmission scene (such as video, audio, downloading and the like) is maintained while the battery endurance of the mobile terminal is improved.
In one embodiment of the present invention, as shown in fig. 7, the apparatus further includes a detection module 630 and an execution module 640.
The detecting module 630 is configured to detect whether the mobile terminal is in a screen wake-up state before the monitoring module 610 monitors the behavior type of the application running on the mobile terminal;
the execution module 640 is configured to, in response to that a mobile terminal is not in a screen wakeup state, close the endec switch, and establish a network connection between the mobile terminal and an LTE base station; and in response to the fact that the mobile terminal is in the screen awakening state, triggering the monitoring module 610 to monitor the behavior type of the application program running on the mobile terminal when the mobile terminal is in the screen awakening state.
In one case, the control module 620 is specifically configured to turn off the endec switch when the behavior type of the application running on the mobile terminal is a preset low data rate requirement behavior.
In another case, the control module 620 is specifically configured to obtain current state information of the modem when the behavior type of the application running on the mobile terminal is a preset high data rate requirement behavior; turning on or off an ENDC switch based on current state information of the modem.
In one implementation, the control module 620 is specifically configured to obtain current state information of the modem when a behavior type of an application running on the mobile terminal is a preset high data rate requirement behavior; judging whether the mobile terminal is in a healthy state or not based on the current state information;
in one implementation, the executing module 640 is specifically configured to open the endec switch in response to the mobile terminal being in a healthy state; turning off the ENDC switch in response to the mobile terminal not being in a healthy state.
In one case, the monitoring module 610 is specifically configured to determine that the behavior type of the application is a preset low data rate requirement behavior when the application is not monitored to open a socket; wherein the socket comprises at least one of a TCP socket or a UDP socket.
In another situation, the monitoring module 610 is specifically configured to determine that the behavior type of the application program is a preset high data rate demand behavior when it is monitored that the application program opens a TCP socket and the data size of the core TCP cache data queue of the mobile terminal is not lower than a preset duty ratio of a data sending window; and when the application program is monitored to open the UDP socket, the behavior type of the application program is a preset low data rate requirement behavior.
In an implementation manner, the control module 620 is specifically configured to, when a behavior type of an application running on the mobile terminal is a preset high data rate requirement behavior, obtain state information of a physical layer, an L2 layer, an RRC layer, and an NAS layer of the NR base station, and if the state information of each layer all meets a corresponding preset condition, the mobile terminal is in a healthy state.
In an embodiment of the present invention, the monitoring module 610 is specifically configured to, when the mobile terminal is in a screen wakeup state, if it is monitored that the application program opens a TCP socket and the data size of the core TCP cache data queue of the mobile terminal is not lower than a preset duty ratio of a data sending window, determine whether a CPU load, a core temperature, a battery power and a cruising time satisfy respective preset conditions at the same time; and if the CPU load, the core temperature, the battery power and the cruising time simultaneously meet respective preset conditions, the behavior type of the application program is a preset high data rate requirement behavior.
EXAMPLE seven
To solve the above technical problem, the present invention provides a computer device, as shown in fig. 8, including a memory 710, a processor 720, and a computer program stored on the memory and running on the processor, wherein the processor executes the computer program to implement the method as described above.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer device may include, but is not limited to, a processor 720, a memory 710. Those skilled in the art will appreciate that fig. 8 is merely an example of a computing device and is not intended to be limiting and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the computing device may also include input output devices, network access devices, buses, etc.
The Processor 720 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 710 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The memory 710 may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device. Further, the memory 710 may also include both internal storage units and external storage devices of the computer device. The memory 710 is used for storing the computer program and other programs and data required by the computer device. The memory 710 may also be used to temporarily store data that has been output or is to be output.
Example eight
The embodiment of the present application further provides a computer-readable storage medium, which may be a computer-readable storage medium contained in the memory in the foregoing embodiment; or it may be a computer-readable storage medium that exists separately and is not incorporated into a computer device. The computer-readable storage medium stores one or more computer programs which, when executed by a processor, implement the methods described above.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory 710, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
For system or apparatus embodiments, since they are substantially similar to method embodiments, they are described in relative simplicity, and reference may be made to some descriptions of method embodiments for related points.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a described condition or event is detected" may be interpreted, depending on the context, to mean "upon determining" or "in response to determining" or "upon detecting a described condition or event" or "in response to detecting a described condition or event".
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A mobile terminal networking method is characterized by comprising the following steps:
monitoring the behavior type of an application program running on a mobile terminal when the mobile terminal is in a screen awakening state;
turning on or off a dual-connection ENDC switch based on the behavior type and state information of the modem;
the step of monitoring the behavior type of the application program running on the mobile terminal comprises the following steps:
if the application program is monitored to open a TCP socket and the data size of a kernel TCP cache data queue of the mobile terminal is not lower than the preset duty ratio of a data sending window, judging whether the CPU load, the core temperature, the battery power and the cruising time meet respective preset conditions at the same time;
if the CPU load, the core temperature, the battery power and the cruising time meet respective preset conditions at the same time, the behavior type of the application program is a preset high data rate requirement behavior;
the turning on or off an ENDC switch based on the behavior type and state information of the modem includes:
if the behavior type of the application program running on the mobile terminal is a preset high data rate demand behavior, acquiring current state information of a modem;
turning on or off an ENDC switch based on current state information of the modem;
the turning on or off of the dual-connection ENDC switch based on the behavior type and the state information of the modem includes: acquiring current state information of the modem;
judging whether the mobile terminal is in a healthy state or not based on the current state information, and if the current state information is in the healthy state, responding to the fact that the mobile terminal is in the healthy state, and opening the dual-connection ENDC switch;
and if the current state information is not in a healthy state, responding to the fact that the mobile terminal is not in the healthy state, and closing the dual-connection ENDC switch.
2. The method according to claim 1, wherein before the step of monitoring the behavior type of the application running on the mobile terminal when the mobile terminal is in the wake-on-screen state, the method further comprises:
detecting whether the mobile terminal is in a screen awakening state or not;
in response to the fact that the mobile terminal is not in a screen awakening state, closing the ENDC switch and establishing network connection between the mobile terminal and the LTE base station;
and responding to the mobile terminal in the screen awakening state, and executing the step of monitoring the behavior type of the application program running on the mobile terminal when the mobile terminal is in the screen awakening state.
3. The method of claim 1, wherein turning on or off an ENDC switch based on the behavior type and modem status information comprises:
and if the behavior type of the application program running on the mobile terminal is the preset low data rate requirement behavior, closing the ENDC switch.
4. The method of claim 1, wherein turning on or off the ENDC switch based on the current status information of the modem comprises:
acquiring current state information of the modem;
judging whether the mobile terminal is in a healthy state or not based on the current state information;
opening the ENDC switch in response to the mobile terminal being in a healthy state;
turning off the ENDC switch in response to the mobile terminal not being in a healthy state.
5. The method according to claim 1, wherein the step of monitoring the behavior type of the application program running on the mobile terminal comprises:
if the application program is not monitored to open the socket, the behavior type of the application program is a preset low data rate requirement behavior; wherein the socket comprises at least one of a TCP socket or a UDP socket.
6. The method according to claim 1, wherein the step of monitoring the behavior type of the application running on the mobile terminal further comprises:
if the application program opens a TCP socket and the data size of a core TCP cache data queue of the mobile terminal is not lower than the preset ratio of a data sending window, the behavior type of the application program is a preset high data rate requirement behavior;
and if the application program is monitored to open the UDP socket, the behavior type of the application program is a preset low data rate requirement behavior.
7. The method according to claim 4, wherein the determining whether the mobile terminal is in a healthy state based on the current state information comprises:
acquiring state information of a physical layer, an L2 layer, a radio resource control RRC layer and a non-independent networking NAS layer of the NR base station, and if the state information of each layer meets corresponding preset conditions, enabling the mobile terminal to be in a healthy state.
8. A mobile terminal networking device, comprising:
the monitoring module is used for monitoring the behavior type of an application program running on the mobile terminal when the mobile terminal is in a screen awakening state;
the control module is used for turning on or turning off an ENDC switch based on the behavior type and the state information of the modem;
the monitoring module is configured to:
if the application program is monitored to open a TCP socket and the data size of a kernel TCP cache data queue of the mobile terminal is not lower than the preset duty ratio of a data sending window, judging whether the CPU load, the core temperature, the battery power and the cruising time meet respective preset conditions at the same time;
if the CPU load, the core temperature, the battery power and the cruising time meet respective preset conditions at the same time, the behavior type of the application program is a preset high data rate requirement behavior;
the control module is used for:
if the behavior type of the application program running on the mobile terminal is a preset high data rate demand behavior, acquiring current state information of a modem;
turning on or off an ENDC switch based on current state information of the modem;
the turning on or off of the dual-connection ENDC switch based on the behavior type and the state information of the modem includes: acquiring current state information of the modem;
judging whether the mobile terminal is in a healthy state or not based on the current state information, and if the current state information is in the healthy state, responding to the fact that the mobile terminal is in the healthy state, and opening the dual-connection ENDC switch;
and if the current state information is not in a healthy state, responding to the fact that the mobile terminal is not in the healthy state, and closing the dual-connection ENDC switch.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111019793.8A 2021-09-01 2021-09-01 Mobile terminal networking method and device, computer equipment and storage medium Active CN113873617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111019793.8A CN113873617B (en) 2021-09-01 2021-09-01 Mobile terminal networking method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111019793.8A CN113873617B (en) 2021-09-01 2021-09-01 Mobile terminal networking method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113873617A CN113873617A (en) 2021-12-31
CN113873617B true CN113873617B (en) 2023-02-17

Family

ID=78989140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111019793.8A Active CN113873617B (en) 2021-09-01 2021-09-01 Mobile terminal networking method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113873617B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020256196A1 (en) * 2019-06-21 2020-12-24 엘지전자 주식회사 Electronic device for supporting endc and control method for electronic device
CN112788787A (en) * 2019-11-07 2021-05-11 Oppo(重庆)智能科技有限公司 Network connection control method, terminal and storage medium
CN113260021A (en) * 2021-06-28 2021-08-13 深圳小米通讯技术有限公司 Access control method, device, user equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114223293A (en) * 2019-08-15 2022-03-22 苹果公司 Traffic rate based branch deactivation for UE power efficiency in dual connectivity mode
CN112714431B (en) * 2019-10-24 2023-01-31 深圳市万普拉斯科技有限公司 Service processing method and device for dual-card terminal, computer equipment and storage medium
CN112788786A (en) * 2019-11-07 2021-05-11 Oppo(重庆)智能科技有限公司 Network connection control method, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020256196A1 (en) * 2019-06-21 2020-12-24 엘지전자 주식회사 Electronic device for supporting endc and control method for electronic device
CN112788787A (en) * 2019-11-07 2021-05-11 Oppo(重庆)智能科技有限公司 Network connection control method, terminal and storage medium
CN113260021A (en) * 2021-06-28 2021-08-13 深圳小米通讯技术有限公司 Access control method, device, user equipment and storage medium

Also Published As

Publication number Publication date
CN113873617A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11206412B2 (en) Band steering for a low power device
CN108199786B (en) Method and device for adjusting transmission power
CN106774786B (en) Power consumption control method and device
US9179417B2 (en) Method, apparatus, and terminal for wireless network connection
CN102200942B (en) Based on application behavior monitoring method and the cloud server of cloud computing
CN106102143B (en) Application processing method and device
EP3955627A1 (en) Measurement method, measurement configuration method, terminal and network device
CN105657719A (en) Sensor gateway
EP3687227B1 (en) Method for adjusting transmission power of terminal, mobile terminal and storage device
CN110636597A (en) Method for managing a wireless interface of a device and corresponding wireless device
CN110267296B (en) State detection method and device
CN106549743B (en) Component carrier link management method and device
WO2014063487A1 (en) Traffic control method and device
CN110837456B (en) Control method and device and electronic equipment
CN113873617B (en) Mobile terminal networking method and device, computer equipment and storage medium
US11564162B2 (en) Access point wake up
CN111970754B (en) Communication control method and device and electronic equipment
WO2015131624A1 (en) Method and device for controlling wireless network connection
CN105430721A (en) Data interaction control method, data interaction control device and wearable equipment
CN107690177A (en) A kind of method and access point of access point energy-conservation
CN108307420B (en) Control method of Internet of things terminal and Internet of things access point
CN111615143A (en) Information reporting method, information receiving method, terminal and network control entity
CN113472616B (en) Household appliance, shutdown method and device thereof, storage medium and Wi-Fi device
CN115243345A (en) Cell selection method, device, terminal equipment and readable storage medium
CN112118620B (en) Management method and device of double links, electronic device and storage medium

Legal Events

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