CN114205895A - Control method, control device, electronic equipment and storage medium - Google Patents

Control method, control device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114205895A
CN114205895A CN202111159070.8A CN202111159070A CN114205895A CN 114205895 A CN114205895 A CN 114205895A CN 202111159070 A CN202111159070 A CN 202111159070A CN 114205895 A CN114205895 A CN 114205895A
Authority
CN
China
Prior art keywords
layer
transmission rate
data transmission
healthy
application
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.)
Withdrawn
Application number
CN202111159070.8A
Other languages
Chinese (zh)
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
Zhuhai Zero Boundary Integrated Circuit Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Zero Boundary Integrated Circuit 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Zero Boundary Integrated Circuit Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111159070.8A priority Critical patent/CN114205895A/en
Publication of CN114205895A publication Critical patent/CN114205895A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a control method, a control device, electronic equipment and a storage medium, wherein the control method comprises the following steps: under the condition that the terminal is in a bright screen state, judging whether the data transmission rate of the application requirement in the terminal is larger than a data transmission rate threshold value or not, under the condition that the data transmission rate of the application requirement is larger than the data transmission rate threshold value, judging whether a modem in the terminal is healthy or not, and under the condition that the modem is healthy, starting a 5G switch in the terminal.

Description

Control method, control device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of 5G, in particular to a control method and device of a 5G switch, electronic equipment and a storage medium.
Background
In the non-independent networking mode, a 5G control switch is arranged in a user interface of the terminal, and the switch controls the 5G mode to be switched on and switched off. In the existing methods, a user autonomously determines whether to turn on or turn off a 5G mode, and if the user does not turn off the 5G mode, the power consumption of the terminal is increased due to the turning on of a 5G data path, thereby greatly reducing the standby time of the terminal. Considering the maximum endurance time of the terminal supported by the current battery capacity, it is not necessary to let the terminal open the 5G data path at all in the scenario where the terminal is idle and used at a lower data transmission rate.
Disclosure of Invention
In order to solve the technical problem of terminal power consumption increase caused by starting a 5G switch in the scenes that a terminal is idle and used at a lower data transmission rate, the invention provides a control method, a control device, electronic equipment and a storage medium, wherein whether the 5G switch is started or not is judged based on the data transmission rate required by the application in the terminal and whether a modem in the terminal is healthy or not, so that the problem of terminal power consumption increase caused by starting the 5G switch in the scenes that the terminal is idle and used at the lower data transmission rate is avoided.
The invention provides a control method, which comprises the following steps:
judging whether the data transmission rate required by the application in the terminal is greater than a data transmission rate threshold value or not under the condition that the terminal is in a bright screen state,
determining whether a modem in the terminal is healthy if it is determined that the data transmission rate demanded by the application is greater than the data transmission rate threshold,
and in case that the modem is determined to be healthy, turning on a 5G switch in the terminal.
In some embodiments, the method further comprises:
turning off the 5G switch upon determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold.
In some embodiments, the method further comprises:
judging whether the data transmission rate required by the application is greater than the data transmission rate threshold value or not under the condition that the terminal is in the screen-off state,
turning off the 5G switch upon determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold.
In some embodiments, the determining whether the data transmission rate demanded by the application in the terminal is greater than the data transmission rate threshold includes:
determining whether a data transfer rate demanded by the application is greater than the data transfer rate threshold based on whether the application opens a socket, wherein,
determining that a data transmission rate demanded by the application is less than or equal to the data transmission rate threshold if the application does not open a socket;
in the case where the application opens a socket, determining whether the socket is a Transmission Control Protocol (TCP) socket or a User Datagram Protocol (UDP) socket,
under the condition that the socket is a TCP socket, acquiring data of a core TCP cache data queue, and under the condition that the data of the core TCP cache data queue is greater than or equal to a first threshold value, determining that the data transmission rate required by the application is greater than the data transmission rate threshold value;
determining that the data transmission rate demanded by the application is less than or equal to the data transmission rate threshold in the case that the socket is a UDP socket.
In some embodiments, the determining whether the modem is healthy comprises:
judging whether the 5G switch is in an open state or not,
under the condition that the 5G switch is in an open state, judging whether a physical layer of NR, a data link L2 layer, a Radio Resource Control (RRC) layer and a non-access stratum (NAS) layer are healthy or not;
determining whether the modem is healthy based on whether the physical layer, the data link L2 layer, the radio resource control RRC layer, and the non-access NAS layer of the NR are healthy,
wherein the modem health is determined in case the physical layer, the L2 layer, the RRC layer and the NAS layer of the NR are all healthy.
In some embodiments, the method further comprises:
determining whether physical layer, L2 layer, RRC layer, and NAS layer of LTE are healthy with the 5G switch in an OFF state,
determining whether the modem is healthy based on whether the physical layer, the L2 layer, the RRC layer, and the NAS layer of the LTE are healthy,
wherein the modem health is determined if the physical layer, L2 layer, RRC layer, and NAS layer of the LTE are all healthy.
In some embodiments, determining whether the NR or the physical layer, the data link L2 layer, the radio resource control RRC layer, and the non-access NAS layer of the LTE are healthy comprises:
acquiring Reference Signal Received Power (RSRP) and signal to interference plus noise ratio (SINR),
determining whether the physical layer is healthy based on the RSRP and the SINR,
wherein the physical layer health is determined if the RSRP is greater than an RSNP threshold and the SINR is greater than or equal to an SINR threshold;
obtaining the ratio of the lost packet and the retransmission times in unit time to the total data times,
determining whether the L2 layer is healthy based on the ratio and the ratio threshold,
wherein the L2 layer health is determined if the ratio is less than or equal to a ratio threshold;
the RRC connection information is acquired and,
determining whether the RRC layer is healthy based on the connection information,
wherein the RRC layer is determined to be healthy if the RRC connection information characterizes a connected state;
the NAS registration information is acquired and,
determining whether the NAS layer is healthy based on the registration information,
wherein the NAS layer health is determined if the registration information characterizes a registration status.
In some embodiments, the method further comprises:
in case the modem is unhealthy, the 5G switch is closed.
The present invention also provides a control device, comprising:
a first judging module for judging whether the data transmission rate of the application requirement in the terminal is larger than the threshold value of the data transmission rate under the condition that the terminal is in the bright screen state,
a second determining module for determining whether a modem in the terminal is healthy or not, in case that it is determined that the data transmission rate required by the application is greater than the data transmission rate threshold,
and the starting module is used for starting a 5G switch in the terminal under the condition that the health of the modem is determined.
The invention also provides an electronic device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs the control method as described above.
The present invention also provides a storage medium storing a computer program executable by one or more processors and operable to implement the control method as described above.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
by applying the control method of the invention, the switching of the 5G switch is controlled by judging the data transmission rate required by the application and the health condition of the modem, thereby prolonging the endurance time of the terminal equipment.
Drawings
The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. Wherein the included drawings are:
fig. 1 is a schematic flow chart illustrating an implementation of a control method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a control method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation of a control method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
To the extent that a similar description of "first/second/third" appears in this document, and where the description below refers to the term "first/second/third" merely to distinguish between similar items and not to imply a particular order of presentation of the items, it is to be understood that "first/second/third" may, where permissible, be interchanged of a particular order or sequence so that embodiments of the invention described herein may be practiced otherwise than as specifically illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Based on the problems in the related art, the embodiments of the present invention provide a control method, where the method is applied to an electronic device, where the electronic device may be a computer, a mobile terminal, and the like, and functions implemented by the control method provided in the embodiments of the present invention may be implemented by a processor of the electronic device calling a program code, where the program code may be stored in a computer storage medium.
Fig. 1 is a schematic flow chart of an implementation of a control method provided in an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps.
Step S10: and under the condition that the terminal is in a bright screen state, judging whether the data transmission rate of the application requirement in the terminal is greater than a data transmission rate threshold value or not.
In an embodiment of the present invention, the terminal may be a smart phone, a tablet computer, a notebook computer, or the like.
In the embodiment of the present invention, the application may be a system application preset in the terminal, such as an application market, a system update, and the like; or an application downloaded by the user on-line, such as a networked game, chat software, video software, etc.
In the embodiment of the present invention, the data rate transmission threshold may be set by the user, or may be preset in the factory setting of the terminal by the manufacturer. The data rate transmission threshold is typically selected based on experimental/implementation specifications, typically using empirical values, within a specified range.
In the embodiment of the invention, whether the data transmission rate required by the application in the terminal is greater than the data transmission rate threshold value can be judged by whether the application has the behavior of opening the socket.
Specifically, in the case where the application has no behavior of opening a socket or the opened socket is a User Datagram Protocol (UDP) socket, it is considered that the data transmission rate required by the application is less than or equal to the data transmission rate threshold; in the case that the application opens a Transmission Control Protocol (TCP) socket, the relationship between the data Transmission rate required by the application and the data Transmission rate threshold is further determined based on the relationship between the data in the kernel TCP buffer data queue and the first threshold. In the case that the data of the core TCP buffer data queue is greater than or equal to the first threshold value, the data transmission rate required by the application is considered to be greater than the data transmission rate threshold value.
In an embodiment of the present invention, the first threshold may be set by an empirical value, and may be set to 0-100% of the transmission window data, and preferably to 20% of the transmission window data.
Step S20: determining whether a modem in the terminal is healthy if it is determined that the data transmission rate demanded by the application is greater than the data transmission rate threshold.
In the embodiment of the invention, different judgment methods can be adopted to judge whether the modem is healthy or not according to the opening state of the 5G switch.
Specifically, when the 5G switch is in the open state, whether the modem is healthy is determined based on the health states of a physical layer, a data link layer, a Radio Resource Control (RRC) layer, and a non-access stratum (NAS) layer of a New Radio (NR).
In an embodiment of the present invention, the data link layer may be denoted by L2, and includes a Medium Access Control (MAC) layer, a Radio Link Control (RLC) layer, and a Packet Data Convergence Protocol (PDCP) layer.
The method for determining whether each layer is healthy will be described in detail below, and will not be described herein.
Step S30: and in case that the modem is determined to be healthy, turning on a 5G switch in the terminal.
Based on this, embodiments of the present invention provide a control method, an apparatus, an electronic device, and a storage medium, where a data transmission rate required by an application in a terminal is determined to be greater than a data transmission rate threshold when the terminal is in a bright screen state, a modem in the terminal is determined to be healthy when the data transmission rate required by the application is determined to be greater than the data transmission rate threshold, a 5G switch in the terminal is turned on when the modem is determined to be healthy, and a problem of increasing power consumption of the terminal due to turning on the 5G switch in a scenario where the terminal is idle and is used at a low data transmission rate is avoided by turning on the 5G switch when the data transmission rate is greater than the data transmission rate threshold and the modem is healthy.
In some embodiments, the method may further comprise the steps of:
turning off the 5G switch upon determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold.
Based on the above, the control method provided by the invention controls the 5G switch to be switched on and off by judging the data transmission rate required by the application, so that the 5G switch on the user interface is hidden, the user operation is simplified, the user experience is improved, and the endurance time of the terminal equipment is prolonged.
In some embodiments, fig. 2 is a schematic flow chart of an implementation of a control method according to an embodiment of the present invention, and as shown in fig. 2, after the step S10 "in a case that the terminal is in a bright screen state, determining whether a data transmission rate required by an application in the terminal is greater than a data transmission rate threshold" may further include the following steps.
Step S11: and under the condition that the terminal is in the screen-off state, judging whether the data transmission rate of the application requirement is greater than the data transmission rate threshold value.
In the embodiment of the present invention, the data rate transmission threshold may be set by the user, or may be preset in the factory setting of the terminal by the manufacturer. The data rate transmission threshold is typically selected based on experimental/implementation specifications, typically using empirical values, within a specified range.
In the embodiment of the invention, whether the data transmission rate required by the application in the terminal is greater than the data transmission rate threshold value can be judged by whether the application has the behavior of opening the socket.
Step S12: turning off the 5G switch upon determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold.
Specifically, in the case where the application has no behavior of opening a socket or the opened socket is a User Datagram Protocol (UDP) socket, it is considered that the data transmission rate required by the application is less than or equal to the data transmission rate threshold; in the case that the application opens a Transmission Control Protocol (TCP) socket, the relationship between the data Transmission rate required by the application and the data Transmission rate threshold is further determined based on the relationship between the data in the kernel TCP buffer data queue and the first threshold. In the case that the data of the core TCP buffer data queue is in a light rain first threshold value, the data transmission rate required by the application is considered to be smaller than the data transmission rate threshold value.
In an embodiment of the present invention, the first threshold may be set by an empirical value, and may be set to 0-100% of the transmission window data, and preferably to 20% of the transmission window data.
Based on the above, the control method provided by the invention controls the 5G switch to be switched on and off by judging the data transmission rate required by the application, so that the 5G switch on the user interface is hidden, the user operation is simplified, the user experience is improved, and the endurance time of the terminal equipment is prolonged.
In some embodiments, the step S10 "determining whether the data transmission rate required by the application in the terminal is greater than the data transmission rate threshold value in case the terminal is in the bright screen state" may be implemented by the following steps.
Determining whether a data transfer rate demanded by the application is greater than the data transfer rate threshold based on whether the application opens a socket,
determining that a data transmission rate demanded by the application is less than or equal to the data transmission rate threshold if the application does not open a socket;
in the case where the application opens a socket, determining whether the socket is a Transmission Control Protocol (TCP) socket or a User Datagram Protocol (UDP) socket,
under the condition that the socket is a TCP socket, acquiring data of a core TCP cache data queue, and under the condition that the data of the core TCP cache data queue is greater than or equal to a first threshold value, determining that the data transmission rate required by the application is greater than the data transmission rate threshold value;
determining that the data transmission rate demanded by the application is less than or equal to the data transmission rate threshold in the case that the socket is a UDP socket.
In an embodiment of the present application, in a case where an application does not have a socket opening behavior or an opened socket is a User Datagram Protocol (UDP) socket, it is considered that a data transmission rate required by the application is less than or equal to a data transmission rate threshold; in the case that the application opens a Transmission Control Protocol (TCP) socket, the relationship between the data Transmission rate required by the application and the data Transmission rate threshold is further determined based on the relationship between the data in the kernel TCP buffer data queue and the first threshold. Under the condition that the data of the core TCP cache data queue is greater than or equal to a first threshold value, the data transmission rate required by the application is considered to be greater than a data transmission rate threshold value; in the case that the data of the core TCP buffer data queue is smaller than a first threshold value, the data transmission rate required by the application is considered to be smaller than a data transmission rate threshold value.
In an embodiment of the present invention, the first threshold may be set by an empirical value, and may be set to 0-100% of the transmission window data, and preferably to 20% of the transmission window data.
Based on the above, the control method provided by the invention can more accurately judge the relation between the data transmission rate required by the application and the data transmission rate threshold value based on whether the socket is opened and what socket is opened.
In some embodiments, fig. 3 is a schematic flow chart of an implementation of the control method according to the embodiments of the present invention, and as shown in fig. 3, the step S20 "determining whether the modem in the terminal is healthy or not in the case that it is determined that the data transmission rate required by the application is greater than the data transmission rate threshold" may be implemented as follows.
Step S201: and judging whether the 5G switch is in an open state or not.
Step S202: and when the 5G switch is in an open state, judging whether the physical layer of the NR, the data link L2 layer, the radio resource control RRC layer and the non-access NAS layer are healthy or not.
In an embodiment of the present invention, the data link layer may be denoted by L2, and includes a Medium Access Control (MAC) layer, a Radio Link Control (RLC) layer, and a Packet Data Convergence Protocol (PDCP) layer.
The method for determining whether each layer is healthy will be described in detail below, and will not be described herein.
Step S203: determining whether the modem is healthy based on whether the physical layer, the data link L2 layer, the radio resource control RRC layer, and the non-access NAS layer of the NR are healthy.
Step S204: determining that the modem is healthy in case the physical layer, the L2 layer, the RRC layer and the NAS layer of the NR are healthy.
Based on the above, the control method provided by the invention adopts different judgment modes to judge whether the modem is healthy or not according to different states of the 5G switch, so that the judgment result is more accurate. When the 5G switch is in an open state, whether the modem is healthy or not is judged more accurately based on whether the NR physical layer, the L2 layer, the RRC layer, and the NAS layer are healthy or not.
In some embodiments, the step S20 "determining whether a modem in the terminal is healthy in case that the data transmission rate demanded by the application is determined to be greater than the data transmission rate threshold" may be further implemented by:
determining whether physical layer, L2 layer, RRC layer, and NAS layer of LTE are healthy with the 5G switch in an OFF state,
determining whether the modem is healthy based on whether the physical layer, the L2 layer, the RRC layer, and the NAS layer of the LTE are healthy,
wherein the modem health is determined if the physical layer, L2 layer, RRC layer, and NAS layer of the LTE are all healthy.
Based on the above, the control method provided by the invention adopts different judgment modes to judge whether the modem is healthy or not according to different states of the 5G switch, so that the judgment result is more accurate. When the 5G switch is in the off state, whether the modem is healthy or not is judged more accurately based on whether the NR physical layer, the L2 layer, the RRC layer and the NAS layer are healthy or not.
In some embodiments, determining whether the NR or the physical layer of LTE, the data link L2 layer, the radio resource control RRC layer, and the non-access NAS layer are healthy comprises:
obtaining Reference Signal Receiving Power (RSRP) and Signal to Interference plus Noise Ratio (SINR),
determining whether the physical layer is healthy based on the RSRP and the SINR,
wherein the physical layer health is determined if the RSRP is greater than an RSNP threshold and the SINR is greater than or equal to an SINR threshold;
obtaining the ratio of the lost packet and the retransmission times in unit time to the total data times,
determining whether the L2 layer is healthy based on the ratio and the ratio threshold,
wherein the L2 layer health is determined if the ratio is less than or equal to a ratio threshold;
the RRC connection information is acquired and,
determining whether the RRC layer is healthy based on the connection information,
wherein the RRC layer is determined to be healthy if the RRC connection information characterizes a connected state;
the NAS registration information is acquired and,
determining whether the NAS layer is healthy based on the registration information,
wherein the NAS layer health is determined if the registration information characterizes a registration status.
In the embodiment of the present application, the RSNP threshold, SINR threshold, and ratio threshold are preferably selected within a specified range according to experimental/implementation specifications, and generally adopt empirical values.
In a specific embodiment, the following sum of threshold values may be used to determine whether each layer is healthy.
For the physical layer, RSRP and SINR are obtained, and if and only if RSRP is greater than RSNP threshold and SINR is greater than or equal to SINR threshold, then the physical layer is determined healthy, otherwise the physical layer is determined unhealthy.
Specifically, the RSNP threshold may be an empirical value, such as-110 dbm; the SINR threshold may be an empirical value, such as 0db or between-25 db and 30 db.
For an L2 layer, acquiring statistical information of a Media Access Control (MAC) layer, a Radio Link Control (RLC) layer, and a Packet Data Convergence Protocol (PDCP) layer included in the L2 layer, when a ratio of packet loss and retransmission times in a unit time to total data times is less than or equal to a proportional threshold, determining that the L2 layer is healthy, otherwise determining that the L2 layer is unhealthy.
In particular, the unit time may be, for example, a minute, and the proportional threshold may be an empirical value, for example, 10%, or may take any value between 0% and 100%.
And aiming at the RRC layer, according to the current RRC connection state in the 3GPP specification, determining that the RRC layer is healthy when the RRC connection information represents the connection state, and otherwise determining that the RRC layer is unhealthy.
And aiming at the NAS layer, according to NAS registration information in 3GPP specifications, when the registration information represents a registration state, determining that the NAS layer is healthy, otherwise, determining that the NAS layer is unhealthy.
Based on the above, the control method provided by the invention determines whether each layer is healthy or not by integrating various information states of different layers, and is more accurate.
In some embodiments, the method may further comprise the steps of:
in case the modem is unhealthy, the 5G switch is closed.
Based on the control method provided by the invention, the on-off of the 5G switch is controlled by judging the health condition of the modem, the 5G switch on the user interface is hidden, the user operation is simplified, the user experience is improved, and the endurance time of the terminal equipment is prolonged.
In an embodiment of the present invention, the accurate step S10 "may further determine whether the data transmission rate of the application requirement in the terminal is greater than the data transmission rate threshold value when the terminal is in the bright screen state by increasing the Central Processing Unit (CPU) load, the core temperature, the battery remaining power and the endurance time"
In particular, determining whether a data transfer rate demanded by the application is greater than the data transfer rate threshold based on whether the application opens a socket,
determining that a data transmission rate demanded by the application is less than or equal to the data transmission rate threshold if the application does not open a socket;
under the condition that the application opens the socket, acquiring the data size of a kernel TCP and UDP cache data queue of the application process,
determining that the data transmission rate required by the application is less than or equal to the data transmission rate threshold in the case that the kernel TCP, UDP buffer data queue data of the application process is less than a second threshold,
under the condition that the data of the kernel TCP and UDP buffer data queue of the application process is larger than or equal to a second threshold value, judging whether the CPU load is larger than or equal to a third threshold value and the core temperature is smaller than a fourth threshold value,
determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold in the event that the CPU load is less than a third threshold or the core temperature is greater than a fourth threshold,
in the case where the CPU load is greater than or equal to the third threshold value and the core temperature is less than the fourth threshold value, it is determined whether the remaining battery level is greater than or equal to the fifth threshold value and the duration is greater than the sixth threshold value,
determining that the data transmission rate of the application demand is less than or equal to the data transmission rate threshold in the case that the remaining battery level is less than a fifth threshold or the endurance time is less than or equal to a sixth threshold,
and determining that the data transmission rate required by the application is greater than the data transmission rate threshold value under the condition that the battery residual capacity is greater than or equal to a fifth threshold value and the endurance time is greater than a sixth threshold value.
Specifically, the second threshold may be an empirical value set to 20% of the transmission window data; the third threshold value may be set between 70% and 90%, preferably 80%; the fourth threshold value may be set between 45 ℃ and 55 ℃, preferably 50 ℃; the fifth threshold may be set between 10% and 50%, preferably 20%; the sixth threshold may be set between 1 and 5 hours, preferably 1 hour.
Based on the above, the control method provided by the invention further accurately judges the relation between the data transmission rate required by the application and the data transmission rate threshold value based on the load of the central processing unit, the core temperature, the battery remaining capacity and the endurance time.
The embodiment of the invention also provides a control device. Fig. 4 is a schematic structural diagram of a control device according to an embodiment of the present invention. As shown in fig. 4, the control device 400 includes the following modules.
The first determining module 401 determines whether a data transmission rate required by an application in the terminal is greater than a data transmission rate threshold value under the condition that the terminal is in a bright screen state.
A second determining module 402, configured to determine whether a modem in the terminal is healthy or not, if it is determined that the data transmission rate required by the application is greater than the data transmission rate threshold.
A turning-on module 403, configured to turn on a 5G switch in the terminal if it is determined that the modem is healthy.
Based on the control device provided by the invention, the 5G switch is controlled to be switched on and off by judging the data transmission rate required by the application and the health condition of the modem, so that the 5G switch on a user interface is hidden, the user operation is simplified, the user experience is improved, and the endurance time of the terminal equipment is prolonged.
It should be noted that, in the embodiment of the present invention, if the control method for achieving the above-mentioned object is implemented in the form of a software functional module and is sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program is used for implementing the steps in the control method provided in the above embodiment when being executed by a processor.
The embodiment of the invention also provides the electronic equipment. Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505.
The communication bus 502 may be configured to enable, among other things, connectivity communications between these components.
The user interface 503 may include a display screen, and the external communication interface 504 may include a standard wired interface and a wireless interface, among others. The processor 501 is configured to execute a program of the control method stored in the memory to implement the steps in the control method provided in the above-described embodiment.
The above description of the display device and storage medium embodiments is similar to the description of the method embodiments above, with similar beneficial effects as the method embodiments. For technical details not disclosed in the embodiments of the computer device and the storage medium of the present invention, reference is made to the description of the embodiments of the method of the present invention for understanding.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus according to the invention, reference is made to the description of the embodiments of the method according to the invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on this understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a controller to execute all or part of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (11)

1. A control method, comprising:
judging whether the data transmission rate required by the application in the terminal is greater than a data transmission rate threshold value or not under the condition that the terminal is in a bright screen state,
determining whether a modem in the terminal is healthy if it is determined that the data transmission rate demanded by the application is greater than the data transmission rate threshold,
and in case that the modem is determined to be healthy, turning on a 5G switch in the terminal.
2. The method of claim 1, further comprising:
turning off the 5G switch upon determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold.
3. The method of claim 1, further comprising:
judging whether the data transmission rate required by the application is greater than the data transmission rate threshold value or not under the condition that the terminal is in the screen-off state,
turning off the 5G switch upon determining that the data transfer rate demanded by the application is less than or equal to the data transfer rate threshold.
4. The method of claim 1, wherein the determining whether the data transmission rate demanded by the application in the terminal is greater than the data transmission rate threshold comprises:
determining whether a data transfer rate demanded by the application is greater than the data transfer rate threshold based on whether the application opens a socket, wherein,
determining that a data transmission rate demanded by the application is less than or equal to the data transmission rate threshold if the application does not open a socket;
in the case where the application opens a socket, determining whether the socket is a Transmission Control Protocol (TCP) socket or a User Datagram Protocol (UDP) socket,
under the condition that the socket is a TCP socket, acquiring data of a core TCP cache data queue, and under the condition that the data of the core TCP cache data queue is greater than or equal to a first threshold value, determining that the data transmission rate required by the application is greater than the data transmission rate threshold value;
determining that the data transmission rate demanded by the application is less than or equal to the data transmission rate threshold in the case that the socket is a UDP socket.
5. The method of claim 1, wherein determining whether a modem is healthy comprises:
judging whether the 5G switch is in an open state or not,
under the condition that the 5G switch is in an open state, judging whether a physical layer of NR, a data link L2 layer, a Radio Resource Control (RRC) layer and a non-access stratum (NAS) layer are healthy or not;
determining whether the modem is healthy based on whether the physical layer, the data link L2 layer, the radio resource control RRC layer, and the non-access NAS layer of the NR are healthy,
wherein the modem health is determined in case the physical layer, the L2 layer, the RRC layer and the NAS layer of the NR are all healthy.
6. The method of claim 1, further comprising:
determining whether physical layer, L2 layer, RRC layer, and NAS layer of LTE are healthy with the 5G switch in an OFF state,
determining whether the modem is healthy based on whether the physical layer, the L2 layer, the RRC layer, and the NAS layer of the LTE are healthy,
wherein the modem health is determined if the physical layer, L2 layer, RRC layer, and NAS layer of the LTE are all healthy.
7. The method according to claim 5 or 6, wherein determining whether the NR or the physical layer, the data link L2 layer, the radio resource control RRC layer, and the non-access NAS layer of the LTE are healthy comprises:
acquiring Reference Signal Received Power (RSRP) and signal to interference plus noise ratio (SINR),
determining whether the physical layer is healthy based on the RSRP and the SINR,
wherein the physical layer health is determined if the RSRP is greater than an RSNP threshold and the SINR is greater than or equal to an SINR threshold;
obtaining the ratio of the lost packet and the retransmission times in unit time to the total data times,
determining whether the L2 layer is healthy based on the ratio and the ratio threshold,
wherein the L2 layer health is determined if the ratio is less than or equal to a ratio threshold;
the RRC connection information is acquired and,
determining whether the RRC layer is healthy based on the connection information,
wherein the RRC layer is determined to be healthy if the RRC connection information characterizes a connected state;
the NAS registration information is acquired and,
determining whether the NAS layer is healthy based on the registration information,
wherein the NAS layer health is determined if the registration information characterizes a registration status.
8. The method of claim 1, further comprising:
in case the modem is unhealthy, the 5G switch is closed.
9. A control device, comprising:
a first judging module for judging whether the data transmission rate of the application requirement in the terminal is larger than the threshold value of the data transmission rate under the condition that the terminal is in the bright screen state,
a second determining module for determining whether a modem in the terminal is healthy or not, in case that it is determined that the data transmission rate required by the application is greater than the data transmission rate threshold,
and the starting module is used for starting a 5G switch in the terminal under the condition that the health of the modem is determined.
10. An electronic device, comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs the method of any of claims 1 to 8.
11. A storage medium storing a computer program executable by one or more processors and operable to implement a method as claimed in any one of claims 1 to 8.
CN202111159070.8A 2021-09-30 2021-09-30 Control method, control device, electronic equipment and storage medium Withdrawn CN114205895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111159070.8A CN114205895A (en) 2021-09-30 2021-09-30 Control method, control device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111159070.8A CN114205895A (en) 2021-09-30 2021-09-30 Control method, control device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114205895A true CN114205895A (en) 2022-03-18

Family

ID=80646137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111159070.8A Withdrawn CN114205895A (en) 2021-09-30 2021-09-30 Control method, control device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114205895A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669805A (en) * 2019-03-09 2020-09-15 华为技术有限公司 Network connection processing method, related equipment and computer storage medium
US20200329399A1 (en) * 2019-04-12 2020-10-15 Samsung Electronics Co., Ltd. Electronic device supporting dual connectivity and method of operating the same
CN111885745A (en) * 2020-07-29 2020-11-03 珠海格力电器股份有限公司 Power consumption optimization method and device, electronic equipment and storage medium
CN111918372A (en) * 2020-08-11 2020-11-10 珠海格力电器股份有限公司 Communication method and device
CN112134756A (en) * 2020-09-21 2020-12-25 珠海格力电器股份有限公司 Diagnostic method and diagnostic device for modem module
CN112188606A (en) * 2020-09-15 2021-01-05 珠海格力电器股份有限公司 Power consumption optimization method and device, readable storage medium and computer equipment
CN112543487A (en) * 2020-12-03 2021-03-23 北京字节跳动网络技术有限公司 Control method and device of electronic equipment, terminal and storage medium
CN112672438A (en) * 2019-10-15 2021-04-16 深圳市万普拉斯科技有限公司 Network link control method, mobile terminal and computer storage medium
CN112866022A (en) * 2021-01-12 2021-05-28 北京小米移动软件有限公司 Method, device and medium for reducing crash times of modem system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669805A (en) * 2019-03-09 2020-09-15 华为技术有限公司 Network connection processing method, related equipment and computer storage medium
US20200329399A1 (en) * 2019-04-12 2020-10-15 Samsung Electronics Co., Ltd. Electronic device supporting dual connectivity and method of operating the same
CN112672438A (en) * 2019-10-15 2021-04-16 深圳市万普拉斯科技有限公司 Network link control method, mobile terminal and computer storage medium
CN111885745A (en) * 2020-07-29 2020-11-03 珠海格力电器股份有限公司 Power consumption optimization method and device, electronic equipment and storage medium
CN111918372A (en) * 2020-08-11 2020-11-10 珠海格力电器股份有限公司 Communication method and device
CN112188606A (en) * 2020-09-15 2021-01-05 珠海格力电器股份有限公司 Power consumption optimization method and device, readable storage medium and computer equipment
CN112134756A (en) * 2020-09-21 2020-12-25 珠海格力电器股份有限公司 Diagnostic method and diagnostic device for modem module
CN112543487A (en) * 2020-12-03 2021-03-23 北京字节跳动网络技术有限公司 Control method and device of electronic equipment, terminal and storage medium
CN112866022A (en) * 2021-01-12 2021-05-28 北京小米移动软件有限公司 Method, device and medium for reducing crash times of modem system

Similar Documents

Publication Publication Date Title
US10681769B2 (en) Method and apparatus for selecting reception antenna set of user terminal
CN109213539B (en) Memory recovery method and device
US11044201B2 (en) Traffic control method and electronic device thereof
US8060154B1 (en) Conserving power on a mobile device
CN107943650B (en) Application program control method and device, storage medium and terminal
CN108632930B (en) Network searching control method and device and mobile terminal
CN107736000B (en) Method for interaction between terminal and network equipment and terminal
CN105653418B (en) Terminal, terminal control method and terminal control device
CN103889037A (en) Terminal and method for controlling communication connection of terminal and auxiliary equipment thereof
CN110267296B (en) State detection method and device
KR20160058561A (en) Method for controlling different kind of battery cells and electronic device thereof
CN107132905A (en) Terminal communication control method and terminal
CN111988409A (en) Method and system for realizing external storage starting of cloud mobile phone mounting
CN112654957B (en) Suspended window control method and related products
CN111970754B (en) Communication control method and device and electronic equipment
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
CN112118618B (en) Screen refresh rate configuration method, device, computer equipment and readable storage medium
CN114205895A (en) Control method, control device, electronic equipment and storage medium
CN112188606A (en) Power consumption optimization method and device, readable storage medium and computer equipment
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN108307060B (en) Electronic equipment, fall protection method and related product
CN108712280A (en) A kind of management method of network function, device, storage medium and intelligent terminal
CN109714785B (en) Network access method, device, network equipment and storage medium
CN114265495A (en) Application program processing method, intelligent terminal and storage medium
US9639137B2 (en) Control method and electronic device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220318