CN110430318B - Mobile terminal WIFI calling control method, mobile terminal and storage medium - Google Patents

Mobile terminal WIFI calling control method, mobile terminal and storage medium Download PDF

Info

Publication number
CN110430318B
CN110430318B CN201910598444.2A CN201910598444A CN110430318B CN 110430318 B CN110430318 B CN 110430318B CN 201910598444 A CN201910598444 A CN 201910598444A CN 110430318 B CN110430318 B CN 110430318B
Authority
CN
China
Prior art keywords
counting
thread
wifi
mobile terminal
started
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
CN201910598444.2A
Other languages
Chinese (zh)
Other versions
CN110430318A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910598444.2A priority Critical patent/CN110430318B/en
Publication of CN110430318A publication Critical patent/CN110430318A/en
Application granted granted Critical
Publication of CN110430318B publication Critical patent/CN110430318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Abstract

The invention discloses a mobile terminal WIFI calling control method, a mobile terminal and a storage medium, wherein a counting thread is started when the mobile terminal WIFI is started, the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added each time; when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judging thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread exceeds a preset threshold, all application programs are informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judging thread are closed. The method and the device enable the WIFI of the mobile terminal to be initialized quickly, and various applications can use the WIFI as soon as possible after a user opens a WIFI menu, so that the use of the user is facilitated.

Description

Mobile terminal WIFI calling control method, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal WIFI calling control method, a mobile terminal and a storage medium.
Background
At present, almost all smart phones, tablet computers and notebook computers support WIFI (wireless fidelity) internet surfing, and the wireless network transmission technology is the most widely used wireless network transmission technology at present. In effect, converting wired network signals to wireless signals, as is known in the art, uses wireless routers for reception by associated computers, cell phones, tablets, etc. supporting their technologies.
If the mobile phone has the WIFI function, the mobile phone can surf the internet without a mobile communication network when a WIFI wireless signal exists, and traffic cost is saved. Wireless networking of a wireless network is commonly used in large cities, although the wireless communication quality transmitted by a WIFI technology is not good, the data security performance is poorer than that of WIFI, the transmission quality needs to be improved, the transmission speed is very high and can reach 54Mbps, and the requirements of personal and social informatization are met.
The main advantage of WIFI is that it does not need wiring, and it can not be limited by wiring conditions, so it is very suitable for the needs of mobile office users, and because the transmission signal power is lower than 100mw, and lower than the transmission power of mobile phone, it is relatively the safest and healthier to access the internet via WIFI. However, the WIFI signal is also provided by a wired network, such as a cell broadband, etc., and the wired signal can be converted into the WIFI signal only by connecting a wireless router.
The mobile terminal uses the WIFI most, the WIFI is the most wireless service, users use the WIFI more and more for data downloading, when the WIFI is started, many applications which call the WIFI originally can call the WIFI respectively and simultaneously, the applications can be influenced mutually at the moment, even the WIFI is halted and restarted, and therefore the WIFI data downloading efficiency is greatly reduced.
In the prior art, when a user just opens the WIFI on the WIFI menu, hardware initialization needs to be executed, and then operations such as system initialization are performed;
however, various application programs using the WIFI can directly call the WIFI as soon as the WIFI is opened on the menu, and the WIFI itself is still initialized actually, so that the application programs calling the WIFI are too hard there to finish initializing the WIFI in the same brain, which actually affects initialization of the WIFI (because the various application programs occupy resources such as memory/CPU and the like, so that memory/CPU which can be occupied by initialization of the WIFI becomes less); the phenomenon with this problem is that WIFI initialization becomes slow.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the defects of the prior art, the invention aims to provide a mobile terminal WIFI calling control method, a mobile terminal and a storage medium, and aims to reasonably arrange data downloading of various applications calling WIFI when the mobile terminal starts the WIFI, so that the problem that the WIFI data downloading efficiency is greatly reduced because a plurality of applications calling the WIFI are simultaneously called and the applications are mutually influenced and even the WIFI is halted and restarted when the WIFI is started is avoided, the working efficiency of the WIFI is improved, and convenience is brought to users.
In order to achieve the purpose, the invention adopts the following technical scheme:
a WIFI calling control method for a mobile terminal comprises the following steps:
starting a counting thread when the WIFI of the mobile terminal is started, wherein the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added each time;
when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judging thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread exceeds a preset threshold, all application programs are informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judging thread are closed.
The WIFI of the mobile terminal calls the control method, wherein the counting thread is a program which runs at a low priority and is continuously counted; the program is operating with an add 1 at run time.
The WIFI of the mobile terminal calls the control method, wherein the counting thread runs at the lowest priority, and the counting thread can be executed only when the number of applications being executed in the system is smaller than a preset threshold.
When the WIFI of the mobile terminal is started, firstly, the downloading of WIFI data is blocked;
starting a judging thread at the same time, wherein the judging thread checks whether the counting value of the counter in the counting thread in the latest first set time is greater than a first counting threshold every second set time;
when the counting value of the counting thread exceeds a preset threshold, informing each application program that WIFI is started; and the WIFI data downloading is started, and the counting thread and the judging thread are closed.
The WIFI call control method for the mobile terminal is characterized in that the counting thread performs 1 adding operation, and records information composition of the following format at the current time when the counting thread is weighted by 1 each time:
count value, count time;
the counting time is the system time when the counting thread is the counting value.
The mobile terminal WIFI invoking control method includes that the judging thread checks the count value of the counting thread every second set time within the latest first set time, and specifically includes:
acquiring current time;
searching the maximum count value and the minimum count value with the following counting time range in the content recorded by the counting thread: starting to subtract the first set time from the current time and ending at the current time;
and the difference between the searched maximum count value and the minimum count value is the count value of the counter in the latest first set time of the counting thread.
A mobile terminal, comprising: a processor, a memory, and a communication bus;
the memory is stored with a mobile terminal WIFI calling control program which can be executed by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor executes the WIFI of the mobile terminal to call a control program to realize the following steps:
starting a counting thread when the WIFI of the mobile terminal is started, wherein the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added each time;
when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judging thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread exceeds a preset threshold, all application programs are informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judging thread are closed.
The mobile terminal, wherein the processor further implements the following steps when executing the mobile terminal WIFI call control program:
when the WIFI of the mobile terminal is started, firstly, the downloading of WIFI data is blocked;
starting a judging thread at the same time, wherein the judging thread checks whether the counting value of the counter in the counting thread in the latest first set time is greater than a first counting threshold every second set time;
when the counting value of the counting thread exceeds a preset threshold, informing each application program that WIFI is started; and the WIFI data downloading is started, and the counting thread and the judging thread are closed.
The mobile terminal, wherein the processor further implements the following steps when executing the mobile terminal WIFI call control program:
acquiring current time;
searching the maximum count value and the minimum count value with the following counting time range in the content recorded by the counting thread: starting to subtract the first set time from the current time and ending at the current time;
the difference between the searched maximum count value and the minimum count value is the count value of the counter in the latest first set time of the counting thread;
the counting thread is a program which runs at low priority and is continuously counted; the program is added with 1 when running;
the counting thread runs at the lowest priority, which means that the counting thread can only be executed when the number of the applications which are executed in the system is less than a preset threshold;
the counting thread performs the operation of adding 1, and records the information composition of the current time containing the following format when weighting 1 each time:
count value, count time;
the counting time is the system time when the counting thread is the counting value.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs, which are executable by one or more processors, to implement the steps in any of the mobile terminal WIFI call control methods.
Compared with the prior art, the mobile terminal WIFI calling control method, the mobile terminal and the storage medium provided by the invention have the advantages that the counting thread is started when the mobile terminal WIFI is started, the counting thread runs at the lowest priority, the counting thread is operated by adding 1, and the current time is recorded when adding 1 each time; when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judgment thread is started, whether the counting value of a counter of the counting thread in the latest first set time is larger than a first counting threshold or not is checked by the judgment thread every second set time, if so, the WIFI data downloading is started, the counting thread and the judgment thread are closed, and if not, the judgment thread waits for the next judgment. The WIFI data downloading method has the advantages that data downloading of various applications calling WIFI can be reasonably arranged when the mobile terminal starts the WIFI, so that the phenomenon that many applications calling the WIFI originally simultaneously call the WIFI is avoided, the applications can be influenced mutually at the moment, even the WIFI is halted and restarted, the WIFI data downloading efficiency is greatly reduced, the WIFI working efficiency is improved, and convenience is brought to users. The method and the device enable the WIFI of the mobile terminal to be initialized quickly, and various applications can use the WIFI as soon as possible after a user opens a WIFI menu, so that the use of the user is facilitated.
Drawings
Fig. 1 is a flowchart of a WIFI call control method of a mobile terminal provided by the present invention.
Fig. 2 is a functional block diagram of a mobile terminal according to a preferred embodiment of the invention.
Fig. 3 is a functional block diagram of a preferred embodiment of the present invention for installing a mobile terminal.
Detailed Description
The problems solved by the invention are as follows: when a user just opens WIFI on a WIFI menu, hardware initialization needs to be executed, and then operations such as system initialization are carried out;
however, various application programs using the WIFI can directly call the WIFI as soon as the WIFI is opened on the menu, and the WIFI itself is still initialized actually, so that the application programs calling the WIFI are too hard there to finish initializing the WIFI in the same brain, which actually affects initialization of the WIFI (because the various application programs occupy resources such as memory/CPU and the like, so that memory/CPU which can be occupied by initialization of the WIFI becomes less); the phenomenon with this problem is that WIFI initialization becomes slow. Therefore, the mobile terminal WIFI calling control method, the mobile terminal and the storage medium are provided by the invention.
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the method for controlling WIFI call of a mobile terminal according to the present invention includes the following steps:
step S100, starting a counting thread when the WIFI of the mobile terminal is started, wherein the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added every time;
in embodiment 1, when a user is detected to open WIFI in a WIFI menu, a program is started first, wherein the program is a program which runs at a low priority and is continuously counted and is called a counting thread; the program is operating with an add 1 at run time.
Wherein, the counting thread is a program which runs at low priority and is continuously counted; the program is operating with an add 1 at run time. Running the counting thread at the lowest priority means that the counting thread will only execute if the number of applications being executed in the system is less than a predetermined threshold. For example, the predetermined threshold is the greater of one tenth and 5 of the number of applications installed in the mobile terminal.
For example, the number of applications installed in the mobile terminal is 30, one tenth of 30 is 3, and since 5 is greater than 3, the predetermined threshold is selected to be 5;
for example, the number of applications installed in the mobile terminal is 60, one tenth of 60 is 6, and since 6 is greater than 5, the predetermined threshold is selected to be 6.
It is also possible that the counting thread runs at the lowest priority, meaning that the counting thread will only execute if no application is executing in the system.
Step S200, when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judging thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread is detected to exceed a preset threshold, all application programs are informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judging thread are closed.
In the embodiment of the invention, when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked;
starting a judging thread at the same time, wherein the judging thread checks whether the counting value of the counter in the counting thread in the latest first set time is greater than a first counting threshold every second set time;
when the counting value of the counting thread exceeds a preset threshold, informing each application program that WIFI is started; and the WIFI data downloading is started, and the counting thread and the judging thread are closed.
That is, in step S100, only when the WIFI is turned on the menu, actually, each application program does not know that the WIFI is turned on, but the WIFI is not known until the count value exceeds the predetermined threshold in step S200.
Specifically, since the count is running at a low priority, the count exceeding the threshold indicates that resources (memory/cpu) in the mobile phone are not in short supply, so that each application can know that the WIFI is opened to call the WIFI. Therefore, the WIFI is directly called when the WIFI is opened on the menu, and the WIFI is actually initialized, so that resources are wasted by application programs calling the WIFI.
Further: step S200, if the increase of the count per unit time exceeds a threshold, each application program is allowed to be informed of WIFI starting; for example, if the number of counts exceeds a threshold in 2 seconds, each application is allowed to be notified that WIFI is on.
Further, according to the mobile terminal WIFI invoking control method, the counting thread performs a 1 adding operation, and records information composition of the following format at the current time when the current time is weighted by 1 each time:
count value, count time;
the counting time is the system time when the counting thread is the counting value.
The determining the count value of the counter in the latest first set time by the thread checking and counting every second set time specifically includes:
acquiring current time;
searching the maximum count value and the minimum count value with the following counting time range in the content recorded by the counting thread: starting to subtract the first set time from the current time and ending at the current time;
and the difference between the searched maximum count value and the minimum count value is the count value of the counter in the latest first set time of the counting thread.
In the method, when the WIFI of the mobile terminal is started, a counting thread is started, the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added every time; when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judgment thread is started, whether the counting value of a counter of the counting thread in the latest first set time is larger than a first counting threshold or not is checked by the judgment thread every second set time, if so, the WIFI data downloading is started, the counting thread and the judgment thread are closed, and if not, the judgment thread waits for the next judgment. The WIFI data downloading method has the advantages that data downloading of various applications calling WIFI can be reasonably arranged when the mobile terminal starts the WIFI, so that the phenomenon that many applications calling the WIFI originally simultaneously call the WIFI is avoided, the applications can be mutually influenced at the moment, even the WIFI is halted and restarted, the WIFI data downloading efficiency is greatly reduced, user experience is improved, and convenience is brought to users.
As shown in fig. 2, based on the above-mentioned WIFI call control method for the mobile terminal, the present invention also provides a mobile terminal, which may be a mobile phone, a desktop computer, a notebook, a palmtop computer, a server, or other computing devices. The mobile terminal comprises a processor 10, a memory 20 and a display screen 30, wherein the processor 10 is connected with the memory 20 through a communication bus 50, and the display screen 30 is connected with the processor 10 through the communication bus 50. Fig. 2 shows only some of the components of the mobile terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the mobile terminal, such as a memory of the mobile terminal. The memory 20 may also be an external storage device of the mobile terminal in other embodiments, such as a plug-in usb disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the mobile terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the mobile terminal. The memory 20 is used for storing application software installed in the mobile terminal and various data, such as program codes of the installed mobile terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a mobile terminal WIFI call control method program 40, and the mobile terminal WIFI call control method program 40 may be executed by the processor 10, so as to implement the mobile terminal WIFI call control method in this application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor, a mobile phone baseband processor or other data Processing chip, and is configured to run program codes stored in the memory 20 or process data, for example, execute the WIFI call control method of the mobile terminal.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display screen 30 is used for displaying information at the mobile terminal and for displaying a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.
In one embodiment, when processor 10 executes mobile terminal WIFI call control method program 40 in memory 20, the following steps are implemented:
starting a counting thread when the WIFI of the mobile terminal is started, wherein the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added each time;
when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judging thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread exceeds a preset threshold, all application programs are informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judging thread are closed.
The mobile terminal, wherein the processor further implements the following steps when executing the mobile terminal WIFI call control program:
when the WIFI of the mobile terminal is started, firstly, the downloading of WIFI data is blocked;
starting a judging thread at the same time, wherein the judging thread checks whether the counting value of the counter in the counting thread in the latest first set time is greater than a first counting threshold every second set time;
when the counting value of the counting thread exceeds a preset threshold, informing each application program that WIFI is started; and the WIFI data downloading is started, and the counting thread and the judging thread are closed.
The mobile terminal, wherein the processor further implements the following steps when executing the mobile terminal WIFI call control program:
acquiring current time;
searching the maximum count value and the minimum count value with the following counting time range in the content recorded by the counting thread: starting to subtract the first set time from the current time and ending at the current time;
the difference between the searched maximum count value and the minimum count value is the count value of the counter in the latest first set time of the counting thread;
the counting thread is a program which runs at low priority and is continuously counted; the program is added with 1 when running;
the counting thread runs at the lowest priority, which means that the counting thread can only be executed when the number of the applications which are executed in the system is less than a preset threshold;
the counting thread performs the operation of adding 1, and records the information composition of the current time containing the following format when weighting 1 each time:
count value, count time;
the counting time is the system time when the counting thread is the counting value, and is specifically described above.
Please refer to fig. 3, which is a functional block diagram of a mobile terminal according to a preferred embodiment of the present invention, wherein a computer program for controlling a WIFI call of the mobile terminal is installed. In this embodiment, the system for installing the WIFI call control method program of the mobile terminal may be divided into one or more modules, and the one or more modules are stored in the memory 20 and executed by one or more processors (in this embodiment, the processor 10), so as to complete the present invention. For example, in fig. 3, the mobile terminal in which the mobile terminal WIFI call control method computer program is installed may be divided into a counting thread 21, a judging thread 22, a blocking module 23, an activating module 24, and a pacing module 25. The module referred to by the invention is a series of computer program instruction segments capable of completing specific functions, and is more suitable for describing the execution process of the mobile terminal WIFI call control method program in the mobile terminal than the program. The following description will specifically describe the functionality of the modules 21-25.
The counting thread 21 is started when the WIFI of the mobile terminal is started, is used for performing 1 adding operation, records the current time when 1 is added every time, and runs at the lowest priority, namely the counting thread can be executed only when no application is executed in the system;
the judgment thread 22 is started when the WIFI is started up, and is used for checking whether the counting value of the counting thread in the latest first set time is greater than a first counting threshold or not at intervals of second set time;
the blocking module 23 is configured to block the WIFI data downloading when the WIFI is completely started;
the activation module 24 is configured to prohibit the WIFI data from being blocked when the count value of the counter is greater than a first count threshold within a first set time;
and the speed-up module 25 is configured to close the counting thread and the judging thread when the WIFI data is downloaded and activated, and complete the WIFI starting process, which is specifically described above.
Based on the foregoing embodiments, the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the WIFI call control method for a mobile terminal, which is described in any of the foregoing embodiments, specifically as described above.
In summary, in the mobile terminal WIFI call control method, the mobile terminal and the storage medium provided by the present invention, the method starts a counting thread when the mobile terminal WIFI is started, the counting thread runs at the lowest priority, and performs a plus 1 operation, and records the current time when each plus 1 operation is performed; when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judgment thread is started, whether the counting value of a counter of the counting thread in the latest first set time is larger than a first counting threshold or not is checked by the judgment thread every second set time, if so, the WIFI data downloading is started, the counting thread and the judgment thread are closed, and if not, the judgment thread waits for the next judgment. The WIFI data downloading method has the advantages that data downloading of various applications calling WIFI can be reasonably arranged when the mobile terminal starts the WIFI, so that the phenomenon that many applications calling the WIFI originally simultaneously call the WIFI is avoided, the applications can be mutually influenced at the moment, even the WIFI is halted and restarted, the WIFI data downloading efficiency is greatly reduced, user experience is improved, and convenience is brought to users.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (9)

1. A WIFI calling control method for a mobile terminal is characterized by comprising the following steps:
starting a counting thread when the WIFI of the mobile terminal is started, wherein the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added each time;
when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judgment thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread is detected to exceed a preset threshold, each application program is informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judgment thread are closed;
the counting thread runs at the lowest priority level, which means that the counting thread is executed only when the number of applications being executed in the system is less than a preset threshold;
the predetermined threshold is the greater of one tenth and 5 of the number of applications installed in the mobile terminal.
2. The WIFI call control method of the mobile terminal according to claim 1, wherein the counting thread is a program running at a low priority and continuously counting; the program is operating with an add 1 at run time.
3. The mobile terminal WIFI invoking control method according to claim 1, wherein when the mobile terminal WIFI is started up, the WIFI data downloading is blocked, the judgment thread is started to detect the count value of the counting thread at regular time, when the count value of the counting thread is detected to exceed a predetermined threshold, each application program is informed that the WIFI is started, and the steps of starting the WIFI data downloading, closing the counting thread and judging the thread comprise:
when the WIFI of the mobile terminal is started, firstly, the downloading of WIFI data is blocked;
starting a judging thread at the same time, wherein the judging thread checks whether the counting value of the counter in the counting thread in the latest first set time is greater than a first counting threshold every second set time;
when the counting value of the counting thread exceeds a preset threshold, informing each application program that WIFI is started; and the WIFI data downloading is started, and the counting thread and the judging thread are closed.
4. The WIFI call control method of claim 1, wherein the counting thread performs a 1-adding operation, and records an information composition containing the following format at the current time when the counting thread is weighted by 1 each time:
count value, count time;
the counting time is the system time when the counting thread is the counting value.
5. The WIFI call control method of a mobile terminal according to claim 3, wherein the determining thread checks the count value of the counting thread in the latest first set time every second set time specifically includes:
acquiring current time;
searching the maximum count value and the minimum count value with the following counting time range in the content recorded by the counting thread: starting to subtract the first set time from the current time and ending at the current time;
and the difference between the searched maximum count value and the minimum count value is the count value of the counter in the latest first set time of the counting thread.
6. A mobile terminal, comprising: a processor, a memory, and a communication bus;
the memory is stored with a mobile terminal WIFI calling control program which can be executed by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor executes the WIFI of the mobile terminal to call a control program to realize the following steps:
starting a counting thread when the WIFI of the mobile terminal is started, wherein the counting thread runs at the lowest priority, the counting thread performs 1 adding operation, and the current time is recorded when 1 is added each time;
when the WIFI of the mobile terminal is started, the WIFI data downloading is blocked, meanwhile, a judgment thread is started to detect the counting value of the counting thread at regular time, when the counting value of the counting thread is detected to exceed a preset threshold, each application program is informed that the WIFI is started, the WIFI data downloading is started, and the counting thread and the judgment thread are closed;
the counting thread runs at the lowest priority level, which means that the counting thread is executed only when the number of applications being executed in the system is less than a preset threshold;
the predetermined threshold is the greater of one tenth and 5 of the number of applications installed in the mobile terminal.
7. The mobile terminal of claim 6, wherein the processor, when executing the control program called by the mobile terminal WIFI, further implements the following steps:
when the WIFI of the mobile terminal is started, firstly, the downloading of WIFI data is blocked;
starting a judging thread at the same time, wherein the judging thread checks whether the counting value of the counter in the counting thread in the latest first set time is greater than a first counting threshold every second set time;
when the counting value of the counting thread exceeds a preset threshold, informing each application program that WIFI is started; and the WIFI data downloading is started, and the counting thread and the judging thread are closed.
8. The mobile terminal of claim 6, wherein the processor, when executing the control program called by the mobile terminal WIFI, further implements the following steps:
acquiring current time;
searching the maximum count value and the minimum count value with the following counting time range in the content recorded by the counting thread: starting to subtract the first set time from the current time and ending at the current time;
the difference between the searched maximum count value and the minimum count value is the count value of the counter in the latest first set time of the counting thread;
the counting thread is a program which runs at low priority and is continuously counted; the program is added with 1 when running;
the counting thread performs the operation of adding 1, and records the information composition of the current time containing the following format when weighting 1 each time:
count value, count time;
the counting time is the system time when the counting thread is the counting value.
9. A computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps in the mobile terminal WIFI call control method of any of claims 1-5.
CN201910598444.2A 2019-07-04 2019-07-04 Mobile terminal WIFI calling control method, mobile terminal and storage medium Active CN110430318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910598444.2A CN110430318B (en) 2019-07-04 2019-07-04 Mobile terminal WIFI calling control method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910598444.2A CN110430318B (en) 2019-07-04 2019-07-04 Mobile terminal WIFI calling control method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110430318A CN110430318A (en) 2019-11-08
CN110430318B true CN110430318B (en) 2021-02-19

Family

ID=68408924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910598444.2A Active CN110430318B (en) 2019-07-04 2019-07-04 Mobile terminal WIFI calling control method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110430318B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163453B (en) * 2021-04-22 2022-10-21 Tcl通讯(宁波)有限公司 Wifi transmission speed control method, system, storage medium and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610597A (en) * 2008-06-21 2009-12-23 中兴通讯股份有限公司 A kind of implementation method of terminal access idle mode and relevant terminal
WO2016095118A1 (en) * 2014-12-17 2016-06-23 Thomson Licensing Method and device for home wifi station device to select link for data transmitting
CN106027778A (en) * 2016-05-13 2016-10-12 Tcl移动通信科技(宁波)有限公司 Display method and display system of booting interface of mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7826663B2 (en) * 2006-12-12 2010-11-02 International Business Machines Corporation Real time analytics using hybrid histograms
CN103645941A (en) * 2013-12-09 2014-03-19 内蒙古科技大学 Novel wireless sensor network operation system
US20160147577A1 (en) * 2014-11-25 2016-05-26 Qualcomm Incorporated System and method for adaptive thread control in a portable computing device (pcd)
CN109495910A (en) * 2018-12-21 2019-03-19 Tcl移动通信科技(宁波)有限公司 WIFI starts connection processing method, mobile terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610597A (en) * 2008-06-21 2009-12-23 中兴通讯股份有限公司 A kind of implementation method of terminal access idle mode and relevant terminal
WO2016095118A1 (en) * 2014-12-17 2016-06-23 Thomson Licensing Method and device for home wifi station device to select link for data transmitting
CN106027778A (en) * 2016-05-13 2016-10-12 Tcl移动通信科技(宁波)有限公司 Display method and display system of booting interface of mobile terminal

Also Published As

Publication number Publication date
CN110430318A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
US10824470B2 (en) Method for resource allocation and terminal device
RU2686673C1 (en) Device and method of terminal control and terminal
US20190220318A1 (en) Memory Reclamation Method and Apparatus
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
CN105912370B (en) Control method and device for background application program of mobile terminal and mobile terminal
US7877091B2 (en) Method and system for executing a container managed application on a processing device
US20140208328A1 (en) Method for terminal acceleration, terminal and storage medium
CN107844342B (en) Control method and device for keeping application program alive, storage medium and mobile terminal
WO2014012504A1 (en) Method, device, and mobile terminal for api interception
CN107995286B (en) Automatic service starting and stopping method based on dubbo platform, server and storage medium
US10048986B2 (en) Method and device for allocating browser processes according to a selected browser process mode
CN109548059B (en) Mobile terminal WIFI connection control method, mobile terminal and storage medium
EP2979177B1 (en) Method for controlling process of application and computer system
CN107943270B (en) Application service control method and device, storage medium and mobile terminal
KR20210049204A (en) Control method and control apparatus for starting of application
US10516699B2 (en) Electronic device and method for suggesting response manual in occurrence of denial
CN104994547A (en) Network access method and user terminal
CN112083988A (en) Screen refresh rate control method, mobile terminal and computer readable storage medium
US11816200B2 (en) Terminal and method for managing launch of an application of a terminal
CN110430318B (en) Mobile terminal WIFI calling control method, mobile terminal and storage medium
CN110795172A (en) Foreground process control method and device, electronic equipment and storage medium
CN202841288U (en) Electronic starting system
US8761833B2 (en) Apparatus and method for power saving using predictive polling in a portable terminal
US9916391B2 (en) Method, apparatus and terminal for webpage content browsing
CN109362094B (en) WIFI connection processing method for mobile terminal, mobile terminal 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