CN108156635B - Mobile terminal, WIFI access point detection processing method and storage medium - Google Patents

Mobile terminal, WIFI access point detection processing method and storage medium Download PDF

Info

Publication number
CN108156635B
CN108156635B CN201711340426.1A CN201711340426A CN108156635B CN 108156635 B CN108156635 B CN 108156635B CN 201711340426 A CN201711340426 A CN 201711340426A CN 108156635 B CN108156635 B CN 108156635B
Authority
CN
China
Prior art keywords
access point
mobile terminal
timer
wifi
data
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
CN201711340426.1A
Other languages
Chinese (zh)
Other versions
CN108156635A (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.)
Shenzhen Huaxi Investment Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201711340426.1A priority Critical patent/CN108156635B/en
Publication of CN108156635A publication Critical patent/CN108156635A/en
Application granted granted Critical
Publication of CN108156635B publication Critical patent/CN108156635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Abstract

The invention discloses a mobile terminal, a WIFI access point detection processing method and a storage medium, wherein the method comprises the following steps: the mobile terminal selects a corresponding access point to connect and surfs the internet through the access point; the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not; and when detecting that the data transmission of the access point to which the mobile terminal is connected is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user. The method provided by the invention can be used for switching to other access points or reminding users in time before the data transmission of the access point connected with the mobile terminal is abnormal; in addition, the scheme can also detect the abnormal data transmission of the access point to which the mobile terminal is connected in time, and can switch to other access points or remind a user in time after the abnormal data transmission of the access point to which the mobile terminal is connected, so that the user can normally use the mobile terminal, and convenience is provided for the user.

Description

Mobile terminal, WIFI access point detection processing method and storage medium
Technical Field
The invention relates to the field of mobile terminals, in particular to a mobile terminal, a WIFI access point detection processing method and a storage medium.
Background
The mobile terminal is one of the functions commonly used by the current mobile terminal, namely, the mobile terminal is connected with the access point through WIFI (wireless fidelity), the WIFI function is firstly started by the mobile terminal in the process, then the WIFI access point in the current environment is searched, and the corresponding access point is selected to be connected and the Internet is accessed through the access point. When the mobile terminal is connected with an access point, all the internet access data pass through the access point, so that the state of the access point directly influences the internet access of the mobile terminal.
For example, the access point P in the WIFI connection environment of the mobile terminal downloads a movie from the network through the access point, and the movie is normally downloaded at the beginning.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a mobile terminal, a WIFI access point detection processing method, and a storage medium, aiming at the above-mentioned defects in the prior art. The method provided by the invention can be used for switching to other access points or reminding users in time before the data transmission of the access point connected with the mobile terminal is abnormal; in addition, the scheme can also detect the abnormal data transmission of the access point to which the mobile terminal is connected in time, and can switch to other access points or remind a user in time after the abnormal data transmission of the access point to which the mobile terminal is connected, so that the user can normally use the mobile terminal, and convenience is provided for the user.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a mobile terminal WIFI access point detection processing method comprises the following steps:
the mobile terminal starts a WIFI function, searches for a WIFI access point in the current environment, selects a corresponding access point for connection and carries out Internet surfing through the access point;
the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not;
and when detecting that the data transmission of the access point to which the mobile terminal is connected is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user.
The mobile terminal WIFI access point detection processing method comprises the following steps of:
two timers are set in the mobile terminal: a first timer and a second timer; starting a first timer and closing a second timer after the mobile terminal is started; the first timer and the second timer each include: the timer comprises an enabling end EN, a zero clearing end CR and an output end OT, wherein the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the counted time of the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime;
the first timer is used for recording the data transmission abnormity of the connected access point in a system log after overtime, and simultaneously starting a second timer;
and the second timer is used for giving a signal to the mobile terminal processor in time after the timeout so as to control the switching to other access points or carry out corresponding prompt to remind the user.
The WIFI access point detection processing method for the mobile terminal is characterized in that the timeout time of the first timer is 100 seconds, and the timeout time of the second timer is 10 seconds;
the method for detecting and processing the WIFI access point of the mobile terminal comprises the following steps of: starting a process PRO1 with the lowest priority after the mobile terminal is started, wherein the task of PRO1 comprises the following steps:
b1, judging whether the second timer is started or not, if so, executing B2, otherwise, executing B3;
b2, clearing and closing the second timer, clearing the first timer, and deleting the last record when the data transmission of the connected access point is abnormal in the system log;
b3, detecting whether data to be sent in the WIFI cache changes or not, and clearing a first timer if the data to be sent in the WIFI cache changes;
the step B3 of detecting whether the data to be sent in the buffer of the WIFI changes includes: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused.
The method for detecting and processing the WIFI access point of the mobile terminal comprises the following steps of:
running a program and a counter in the mobile terminal, wherein the counter is added with 1 every 1 second; the program can clear the counter when the mobile terminal is idle;
monitoring the value of a counter in real time, and storing the data to be processed in the cache stored by the current WIFI when the counter counts to a threshold of 100;
when the value of the counter further reaches a threshold 120, switching the WIFI access point, and processing the data to be processed in the cache to a new access point;
when the access point connected with the mobile terminal is abnormal, the counter can be automatically increased at regular time, the counter can be cleared when the mobile terminal program is idle, and if the mobile terminal is not idle all the time, the access point is abnormal and too busy, the data transmission abnormality of the access point connected with the mobile terminal is judged.
According to the mobile terminal WIFI access point detection processing method, data transmission abnormity is that data cannot be downloaded from a network for a long time after the mobile terminal is connected with the access point.
A mobile terminal, comprising a processor and a memory connected to the processor, wherein the memory stores a WIFI access point detection processing program, and the WIFI access point detection processing program, when executed by the processor, implements the following steps:
the mobile terminal starts a WIFI function, searches for a WIFI access point in the current environment, selects a corresponding access point for connection and carries out Internet surfing through the access point;
the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not;
when detecting that the data transmission of the access point connected with the mobile terminal is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user;
the processor is used for calling the WIFI access point detection processing program instruction.
The mobile terminal is characterized in that when the WIFI access point detection processing program is executed by the processor, the following steps are further realized:
two timers are set in the mobile terminal: a first timer and a second timer; starting a first timer and closing a second timer after the mobile terminal is started; the first timer and the second timer each include: the timer comprises an enabling end EN, a zero clearing end CR and an output end OT, wherein the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the counted time of the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime;
the first timer is used for recording the data transmission abnormity of the connected access point in a system log after overtime, and simultaneously starting a second timer;
the second timer is used for giving signals to the mobile terminal processor in time after timeout so as to control switching to other access points or carry out corresponding prompt to remind a user;
starting a process PRO1 with the lowest priority after the mobile terminal is started, wherein the task of PRO1 comprises the following steps:
b1, judging whether the second timer is started or not, if so, executing B2, otherwise, executing B3;
b2, clearing and closing the second timer, clearing the first timer, and deleting the last record when the data transmission of the connected access point is abnormal in the system log;
b3, detecting whether data to be sent in the WIFI cache changes or not, and clearing a first timer if the data to be sent in the WIFI cache changes;
the step B3 of detecting whether the data to be sent in the buffer of the WIFI changes includes: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused.
The mobile terminal, wherein the WIFI access point detection processing program, when executed by the processor, further implements the following steps:
running a program and a counter in the mobile terminal, wherein the counter is added with 1 every 1 second; the program can clear the counter when the mobile terminal is idle;
monitoring the value of a counter in real time, and storing the data to be processed in the cache stored by the current WIFI when the counter counts to a threshold of 100;
when the value of the counter further reaches a threshold 120, switching the WIFI access point, and processing the data to be processed in the cache to a new access point;
when the access point connected with the mobile terminal is abnormal, the counter can be automatically increased at regular time, the counter can be cleared when the mobile terminal program is idle, and if the mobile terminal is not idle all the time, the access point is abnormal and too busy, the data transmission abnormality of the access point connected with the mobile terminal is judged.
A storage medium, wherein the storage medium stores a WIFI access point detection processing program, and the WIFI access point detection processing program, when executed by a processor, implements any one of the above steps of the mobile terminal WIFI access point detection processing method.
According to the mobile terminal, the WIFI access point detection processing method and the storage medium, the WIFI access point signal is started after the mobile terminal is started, so that other access points can be switched in time or a user can be reminded before the data transmission of the access point connected with the mobile terminal is abnormal; in addition, the invention can also detect the abnormal data transmission of the access point connected with the mobile terminal in time, and can switch to other access points in time or remind the user to enable the user to use the mobile terminal normally after the abnormal data transmission of the access point connected with the mobile terminal, thereby providing convenience for the user.
Drawings
Fig. 1 is a flowchart of a method for detecting and processing a WIFI access point of a mobile terminal according to a preferred embodiment of the present invention.
Fig. 2 is a functional block diagram of a mobile terminal according to a first preferred embodiment of the present invention.
Fig. 3 is a functional block diagram of a second preferred embodiment of the mobile terminal of the present invention.
Fig. 4 is a schematic diagram of a timer structure of a mobile terminal according to a second preferred embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages 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.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for detecting and processing a WIFI access point of a mobile terminal according to a preferred embodiment of the present invention. As shown in fig. 1, the method for detecting and processing the WIFI access point of the mobile terminal according to the embodiment of the present invention includes the following steps:
and S100, the mobile terminal starts a WIFI function, searches for a WIFI access point in the current environment, selects a corresponding access point to connect and surfs the internet through the access point.
In the embodiment of the invention, when the mobile terminal mobile phone starts the WIFI function, the WIFI access point in the current environment is searched, and the corresponding access point is selected for connection and the Internet is accessed through the access point.
Step S200, the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal.
The method comprises the steps that the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not, wherein the data transmission abnormality is that the data cannot be downloaded from the network for a long time after the mobile terminal is connected with the access point. For example, the access point P in the WIFI connection environment of the mobile terminal downloads a movie from the network through the access point, and the movie is normally downloaded at the beginning, and when the download reaches one third, the access point P is owed to perform data transmission from the network, but the mobile terminal is still connected to the access point P, but the download progress of the movie is not changed all the time, and it is determined that the data transmission of the access point is abnormal.
And step S300, when detecting that the data transmission of the access point connected with the mobile terminal is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user.
In the embodiment of the invention, when the data transmission of the access point connected with the mobile terminal is detected to be abnormal, the access point is controlled to be switched to other access points or corresponding prompts are carried out to remind a user.
In the embodiment of the present invention, for example, a program and a counter may be run in the mobile terminal during specific implementation, where the counter may be incremented by 1 every 1 second; the program can clear the counter when the mobile terminal is idle; monitoring the value of a counter in real time, and storing the data to be processed in the cache stored by the current WIFI when the counter counts to a threshold of 100; when the value of the counter further reaches a threshold 120, switching the WIFI access point, and processing the data to be processed in the cache to a new access point; when the access point connected with the mobile terminal is abnormal, the counter can be automatically increased at regular time, the counter can be cleared when the mobile terminal program is idle, and if the mobile terminal is not idle all the time, the access point is abnormal and too busy, the data transmission abnormality of the access point connected with the mobile terminal is judged. And when detecting that the data transmission of the access point to which the mobile terminal is connected is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user.
Example two
The invention is described in more detail below by means of a specific application example
A. Two timers are set in the mobile terminal: a first timer and a second timer; starting a first timer and closing a second timer after the mobile terminal is started; the first timer and the second timer each include: the timer comprises an enabling end EN, a zero clearing end CR and an output end OT, wherein the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the counted time of the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime;
recording the data transmission abnormity of the connected access point in a system log after the first timer is overtime, and simultaneously starting a second timer;
after the second timer is overtime, the second timer is directly and timely switched to other access points or reminds a user;
preferably, the timeout time of the first timer is 100 seconds, and the timeout time of the second timer is 10 seconds;
B. starting a process PRO1 with the lowest priority after the mobile terminal is started, wherein the task of PRO1 comprises the following steps:
b1, judging whether the second timer is started or not, if so, executing B2, otherwise, executing B3;
b2, clearing and closing the second timer, clearing the first timer, and deleting the last record when the data transmission of the connected access point is abnormal in the system log;
b3, detecting whether data to be sent in the WIFI cache changes or not, and clearing a first timer if the data to be sent in the WIFI cache changes; then B1 is executed;
the step B3 of detecting whether the data to be sent in the buffer of the WIFI changes includes: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused. In the embodiment of the invention, the data to be sent in the current WIFI cache is obtained and compared with the data to be sent in the last WIFI cache, if the data to be sent in the current WIFI cache is unchanged, the data transmission abnormality of the connected access point is judged, and the unchanged counter is always increased.
And when detecting that the data transmission of the access point to which the mobile terminal is connected is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user. The data transmission abnormity is that the mobile terminal cannot download data from the network for a long time after being connected with the access point.
Therefore, the method for detecting and processing the WIFI access point of the mobile terminal can be used for switching to other access points or reminding a user before the data transmission of the access point connected with the mobile terminal is abnormal; in addition, the scheme can also detect the abnormal data transmission of the access point to which the mobile terminal is connected in time, and can switch to other access points or remind a user in time after the abnormal data transmission of the access point to which the mobile terminal is connected, so that the user can normally use the mobile terminal, and convenience is provided for the user.
Of course, it can be understood by those skilled in the art that all or part of the processes in the method according to the above embodiments may be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a WIFI access point detection processing program, where the program may be stored in a computer-readable storage medium, and when executed, the program may include the processes according to the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
EXAMPLE III
The embodiment of the present invention further provides a mobile terminal, which may be a mobile phone, as shown in fig. 2, the mobile terminal of the embodiment of the present invention includes a processor 10 and a memory 20 connected to the processor 10;
the memory 20 stores a WIFI access point detection processing program, which when executed by the processor implements the following steps:
the mobile terminal starts a WIFI function, searches for a WIFI access point in the current environment, selects a corresponding access point for connection and carries out Internet surfing through the access point;
the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not;
when detecting that the data transmission of the access point connected with the mobile terminal is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user;
the processor is configured to invoke the WIFI access point detection processing program instruction, as specifically described above.
The mobile terminal, wherein the WIFI access point detection processing program, when executed by the processor, further implements the following steps:
two timers are set in the mobile terminal: a first timer and a second timer; starting a first timer and closing a second timer after the mobile terminal is started; the first timer and the second timer each include: the timer comprises an enabling end EN, a zero clearing end CR and an output end OT, wherein the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the counted time of the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime;
the first timer is used for recording the data transmission abnormity of the connected access point in a system log after overtime, and simultaneously starting a second timer;
the second timer is used for giving a signal to the mobile terminal processor in time after the timeout so as to control switching to other access points or perform corresponding prompt to remind a user, as described above.
Starting a process PRO1 with the lowest priority after the mobile terminal is started, wherein the task of PRO1 comprises the following steps:
b1, judging whether the second timer is started or not, if so, executing B2, otherwise, executing B3;
b2, clearing and closing the second timer, clearing the first timer, and deleting the last record when the data transmission of the connected access point is abnormal in the system log;
b3, detecting whether the data to be sent in the WIFI cache changes, and clearing the first timer if the data to be sent in the WIFI cache changes, specifically as described above.
The step B3 of detecting whether the data to be sent in the buffer of the WIFI changes includes: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused.
Wherein the WIFI access point detection processing program, when executed by the processor, further implements the steps of:
running a program and a counter in the mobile terminal, wherein the counter is added with 1 every 1 second; the program can clear the counter when the mobile terminal is idle;
monitoring the value of a counter in real time, and storing the data to be processed in the cache stored by the current WIFI when the counter counts to a threshold of 100;
when the value of the counter further reaches the threshold 120, the WIFI access point is switched, and the data to be processed in the cache is processed in the new access point, specifically as described above.
The counter is automatically increased at regular time when the access point connected with the mobile terminal is abnormal, the counter is cleared when the mobile terminal program is idle, and if the mobile terminal is not idle all the time, which indicates that the access point is abnormal and too busy, the data transmission abnormality of the access point connected with the mobile terminal is determined, specifically as described above.
Example four
Referring to fig. 3, fig. 3 is a diagram illustrating a mobile terminal according to a second preferred embodiment of the invention, including: a processor 100, a first timer 200, a second timer 300; wherein the processor 100 further comprises: the system comprises a first timer control module 110, a second timer control module 120, a process PRO 1130, a first timer timeout processing process PRO 2140, a second timer timeout processing process PRO 3150 and a log module 160;
as shown in fig. 4, each of the first timer 200 and the second timer 300 includes an enable terminal EN, a clear terminal CR, and an output terminal OT; an enabling end and a clearing end of the first timer 200 are connected with the first timer control module 110, and an output end OT of the first timer 200 is connected with a first timer timeout processing process PRO 2140; the enable end and the clear end of the second timer 300 are connected to the second timer control module 120, and the output end OT of the second timer 300 is connected to the second timer timeout processing procedure PRO 3150; the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the time counted by the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime; in this embodiment, the timeout time of the first timer 200 is 100 seconds, and the timeout time of the second timer 300 is 10 seconds;
in this embodiment, the PRO1 process is tasked with performing the following steps:
step S201, determining whether the second timer 300 is started, if the second timer 300 is started, executing step S202, otherwise executing step S203;
step S202, the second timer control module 120 clears and closes the second timer 300, the first timer control module 110 clears the first timer 200, and the last record of abnormal data transmission of the connected access point is deleted in the log module 160;
step S203, detecting whether data to be sent in the WIFI cache changes, and if so, resetting the first timer 200 by the first timer control module 110;
the detecting whether the data to be sent in the cache of the WIFI changes comprises: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused. In the embodiment of the invention, the data to be sent in the current WIFI cache is obtained and compared with the data to be sent in the last WIFI cache, if the data to be sent in the current WIFI cache is unchanged, the data transmission abnormality of the connected access point is judged, and the unchanged counter is always increased.
The first timer timeout processing procedure PRO 2140 is a highest priority procedure, which is triggered to start by the timeout of the first timer 200, and its task is to execute the following: recording the data transmission abnormality in the log module 160, and simultaneously starting the second timer 300;
the second timer timeout process PRO 3150 is a highest priority process, which is triggered by the timeout of the second timer 300 and performs the following tasks: switching to other access points or reminding a user in time so as to recover the normal operation of the mobile terminal;
a log module 160 for recording data transmission abnormality of the mobile terminal each time it passes through the connection access point.
EXAMPLE five
An embodiment of the present invention further provides a storage medium, where a WIFI access point detection processing program is stored, and when being executed by a processor, the WIFI access point detection processing program implements the steps of the mobile terminal WIFI access point detection processing method described above, specifically as described above.
In summary, the mobile terminal, the WIFI access point detection processing method and the storage medium provided by the present invention can switch to other access points or remind a user in time before data transmission of an access point connected to the mobile terminal is abnormal by turning on a WIFI contact signal after the mobile terminal is started; in addition, the invention can also detect the abnormal data transmission of the access point connected with the mobile terminal in time, and can switch to other access points in time or remind the user to enable the user to use the mobile terminal normally after the abnormal data transmission of the access point connected with the mobile terminal, thereby providing convenience for the user.
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 (6)

1. A mobile terminal WIFI access point detection processing method is characterized by comprising the following steps:
the mobile terminal starts a WIFI function, searches for a WIFI access point in the current environment, selects a corresponding access point for connection and carries out Internet surfing through the access point;
the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not;
when detecting that the data transmission of the access point connected with the mobile terminal is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user;
the step of judging whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal specifically further comprises:
running a program and a counter in the mobile terminal, wherein the counter is added with 1 every 1 second; the program can clear the counter when the mobile terminal is idle;
monitoring the value of a counter in real time, and storing the data to be processed in the cache stored by the current WIFI when the counter counts to a threshold of 100;
when the value of the counter further reaches a threshold 120, switching the WIFI access point, and processing the data to be processed in the cache to a new access point;
when the access point connected with the mobile terminal is abnormal, the counter can be automatically increased at regular time, the counter can be cleared when the mobile terminal program is idle, and if the mobile terminal is not idle all the time, the access point is abnormal and too busy, the data transmission abnormality of the access point connected with the mobile terminal is judged.
2. The method for detecting and processing the WIFI access point of the mobile terminal according to claim 1, wherein before the step of detecting the network data transmission condition in the currently connected access point in real time by the mobile terminal, the method comprises the following steps:
two timers are set in the mobile terminal: a first timer and a second timer; starting a first timer and closing a second timer after the mobile terminal is started; the first timer and the second timer each include: the timer comprises an enabling end EN, a zero clearing end CR and an output end OT, wherein the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the counted time of the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime;
the first timer is used for recording the data transmission abnormity of the connected access point in a system log after overtime, and simultaneously starting a second timer;
the second timer is used for giving signals to the mobile terminal processor in time after timeout so as to control switching to other access points or carry out corresponding prompt to remind a user;
the step of judging whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal specifically comprises: starting a process PRO1 with the lowest priority after the mobile terminal is started, wherein the task of PRO1 comprises the following steps:
b1, judging whether the second timer is started or not, if so, executing B2, otherwise, executing B3;
b2, clearing and closing the second timer, clearing the first timer, and deleting the last record when the data transmission of the connected access point is abnormal in the system log;
b3, detecting whether data to be sent in the WIFI cache changes or not, and clearing a first timer if the data to be sent in the WIFI cache changes;
the step B3 of detecting whether the data to be sent in the buffer of the WIFI changes includes: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused.
3. The method for detecting and processing the WIFI access point of the mobile terminal according to claim 2, wherein the timeout time of the first timer is 100 seconds, and the timeout time of the second timer is 10 seconds.
4. A mobile terminal, comprising a processor and a memory coupled to the processor, wherein the memory stores a WIFI access point detection processing program, and when executed by the processor, the WIFI access point detection processing program implements the following steps:
the mobile terminal starts a WIFI function, searches for a WIFI access point in the current environment, selects a corresponding access point for connection and carries out Internet surfing through the access point;
the mobile terminal detects the network data transmission condition in the currently connected access point in real time and judges whether the detected data transmission of the access point to which the mobile terminal is connected is abnormal or not;
when detecting that the data transmission of the access point connected with the mobile terminal is abnormal, controlling to switch to other access points or carrying out corresponding prompt to remind a user;
the processor is used for calling the WIFI access point detection processing program instruction;
when the WIFI access point detection processing program is executed by the processor, the following steps are also realized:
running a program and a counter in the mobile terminal, wherein the counter is added with 1 every 1 second; the program can clear the counter when the mobile terminal is idle;
monitoring the value of a counter in real time, and storing the data to be processed in the cache stored by the current WIFI when the counter counts to a threshold of 100;
when the value of the counter further reaches a threshold 120, switching the WIFI access point, and processing the data to be processed in the cache to a new access point;
when the access point connected with the mobile terminal is abnormal, the counter can be automatically increased at regular time, the counter can be cleared when the mobile terminal program is idle, and if the mobile terminal is not idle all the time, the access point is abnormal and too busy, the data transmission abnormality of the access point connected with the mobile terminal is judged.
5. The mobile terminal of claim 4, wherein the WIFI access point detection processing program, when executed by the processor, further implements the following steps:
two timers are set in the mobile terminal: a first timer and a second timer; starting a first timer and closing a second timer after the mobile terminal is started; the first timer and the second timer each include: the timer comprises an enabling end EN, a zero clearing end CR and an output end OT, wherein the enabling end EN is used for controlling the opening or closing of the timer, the zero clearing end CR is used for clearing the counted time of the timer to enable the timer to restart to calculate the time, and the output end OT is used for generating an interrupt signal after the timer is overtime;
the first timer is used for recording the data transmission abnormity of the connected access point in a system log after overtime, and simultaneously starting a second timer;
the second timer is used for giving signals to the mobile terminal processor in time after timeout so as to control switching to other access points or carry out corresponding prompt to remind a user;
starting a process PRO1 with the lowest priority after the mobile terminal is started, wherein the task of PRO1 comprises the following steps:
b1, judging whether the second timer is started or not, if so, executing B2, otherwise, executing B3;
b2, clearing and closing the second timer, clearing the first timer, and deleting the last record when the data transmission of the connected access point is abnormal in the system log;
b3, detecting whether data to be sent in the WIFI cache changes or not, and clearing a first timer if the data to be sent in the WIFI cache changes;
the step B3 of detecting whether the data to be sent in the buffer of the WIFI changes includes: and acquiring data to be sent in the current WIFI cache during each detection, comparing the data to be sent in the current WIFI cache with the data to be sent in the last WIFI cache, wherein if the data to be sent in the current WIFI cache are the same, no change is caused, and if the data are not the same, the change is caused.
6. A storage medium storing a WIFI access point detection processing program, which when executed by a processor implements the steps of the mobile terminal WIFI access point detection processing method of any one of claims 1-3.
CN201711340426.1A 2017-12-14 2017-12-14 Mobile terminal, WIFI access point detection processing method and storage medium Active CN108156635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711340426.1A CN108156635B (en) 2017-12-14 2017-12-14 Mobile terminal, WIFI access point detection processing method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711340426.1A CN108156635B (en) 2017-12-14 2017-12-14 Mobile terminal, WIFI access point detection processing method and storage medium

Publications (2)

Publication Number Publication Date
CN108156635A CN108156635A (en) 2018-06-12
CN108156635B true CN108156635B (en) 2021-04-20

Family

ID=62467263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711340426.1A Active CN108156635B (en) 2017-12-14 2017-12-14 Mobile terminal, WIFI access point detection processing method and storage medium

Country Status (1)

Country Link
CN (1) CN108156635B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618354A (en) * 2018-10-25 2019-04-12 惠州Tcl移动通信有限公司 A kind of Wi-Fi receiving and sending control method and device
CN109362094B (en) * 2018-12-21 2023-11-14 Tcl移动通信科技(宁波)有限公司 WIFI connection processing method for mobile terminal, mobile terminal and storage medium
CN109600779A (en) * 2018-12-30 2019-04-09 Tcl移动通信科技(宁波)有限公司 A kind of SIM card falls card identification method, intelligent terminal and storage medium
CN113840314B (en) * 2020-06-24 2024-01-23 深圳市万普拉斯科技有限公司 Data transmission abnormality recovery method and device and terminal equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179825A (en) * 2006-11-08 2008-05-14 华为技术有限公司 Uplink non-continuous transmission processing method, terminal, base station and system
CN101895967A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 WIFI-based document downloading method and device thereof
CN102781115A (en) * 2012-08-03 2012-11-14 西安电子科技大学 Automatic channel selection method based on channel order in dense wireless fidelity (WiFi)
CN103686817A (en) * 2013-12-31 2014-03-26 上海斐讯数据通信技术有限公司 Wireless CPE (customer premise equipment) and method for keeping stable connection between wireless CPE and wireless base station AP (access point)
CN105282743A (en) * 2015-11-27 2016-01-27 上海斐讯数据通信技术有限公司 Wireless router state control method and wireless router
CN105611566A (en) * 2016-03-16 2016-05-25 上海斐讯数据通信技术有限公司 Control method and system for access equipment of WIFI (Wireless Fidelity) network and network equipment
CN106162768A (en) * 2015-05-21 2016-11-23 小米科技有限责任公司 Wireless access point switching method and device
CN106487584A (en) * 2016-09-30 2017-03-08 北京小米移动软件有限公司 The management method of router, router and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7164915B2 (en) * 2003-12-19 2007-01-16 Interdigital Technology Corporation Handover in a wireless local area network (WLAN)
EP2946601B1 (en) * 2013-01-20 2022-05-04 LG Electronics Inc. Method and terminal for determining handover for traffic offloaded onto wlan

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179825A (en) * 2006-11-08 2008-05-14 华为技术有限公司 Uplink non-continuous transmission processing method, terminal, base station and system
CN101895967A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 WIFI-based document downloading method and device thereof
CN102781115A (en) * 2012-08-03 2012-11-14 西安电子科技大学 Automatic channel selection method based on channel order in dense wireless fidelity (WiFi)
CN103686817A (en) * 2013-12-31 2014-03-26 上海斐讯数据通信技术有限公司 Wireless CPE (customer premise equipment) and method for keeping stable connection between wireless CPE and wireless base station AP (access point)
CN106162768A (en) * 2015-05-21 2016-11-23 小米科技有限责任公司 Wireless access point switching method and device
CN105282743A (en) * 2015-11-27 2016-01-27 上海斐讯数据通信技术有限公司 Wireless router state control method and wireless router
CN105611566A (en) * 2016-03-16 2016-05-25 上海斐讯数据通信技术有限公司 Control method and system for access equipment of WIFI (Wireless Fidelity) network and network equipment
CN106487584A (en) * 2016-09-30 2017-03-08 北京小米移动软件有限公司 The management method of router, router and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
802.11n协议的研究与无线接入点功能的实现;赵义平;《中国优秀硕士学位论文全文数据库》;20100215;全文 *

Also Published As

Publication number Publication date
CN108156635A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108156635B (en) Mobile terminal, WIFI access point detection processing method and storage medium
US10600415B2 (en) Method, apparatus, device, and storage medium for voice interaction
KR102050945B1 (en) Terminal control method and apparatus, and terminal
EP2990949B1 (en) Methods and devices for backing up file
EP3151087A1 (en) Voice interaction method and apparatus
US20160381233A1 (en) Mobile Terminal Talk Mode Switching Method, Device and Storage Medium
CN108804915B (en) Virus program cleaning method, storage device and electronic terminal
US20170055208A1 (en) Method and apparatus for reducing power consumption, and mobile terminal
CN108445475B (en) Data processing method and device and related medium product
RU2626089C2 (en) Method and device for subject application download
CN109766282B (en) Stuck detection method, stuck detection device and terminal equipment
CN114428546A (en) Background application cleaning method and device, storage medium and terminal equipment
CN107911229B (en) Running state change reminding method and device, electronic equipment and storage medium
CN110865920B (en) Startup exception processing method and device, electronic equipment and storage medium
CN107682909B (en) Control method and device for connecting access point
CN111142900A (en) Program updating method and device and terminal equipment
CN106371941A (en) Running state adjustment method and apparatus
WO2017206620A1 (en) Method and apparatus for setting state of application program
US9069639B2 (en) Managing a user proxy configuration in a daemon that frequently loads and unloads
CN114372786A (en) Alarm clock setting method and related equipment
CN105988835B (en) Software upgrading method and terminal
CN108040362B (en) Mobile terminal, boot key enabling control method and storage medium
CN105788598B (en) Voice processing method and electronic equipment
CN106775759A (en) Detection method and system that a kind of application based on mobile terminal is closed
CN107465232B (en) Mobile terminal, charging temperature control method 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230324

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Huaxi Investment Co.,Ltd.

Address before: 10 / F, No.5, Lane 999, Yangfan Road, high tech Zone, Ningbo, Zhejiang 315100

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.