CN107333287B - Network detecting method, network detection device and intelligent terminal - Google Patents

Network detecting method, network detection device and intelligent terminal Download PDF

Info

Publication number
CN107333287B
CN107333287B CN201710659891.5A CN201710659891A CN107333287B CN 107333287 B CN107333287 B CN 107333287B CN 201710659891 A CN201710659891 A CN 201710659891A CN 107333287 B CN107333287 B CN 107333287B
Authority
CN
China
Prior art keywords
data network
network
intelligent terminal
cellular data
state
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.)
Expired - Fee Related
Application number
CN201710659891.5A
Other languages
Chinese (zh)
Other versions
CN107333287A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710659891.5A priority Critical patent/CN107333287B/en
Publication of CN107333287A publication Critical patent/CN107333287A/en
Application granted granted Critical
Publication of CN107333287B publication Critical patent/CN107333287B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • 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
    • 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

Abstract

The present invention provides a kind of network detecting method, network detection device, intelligent terminal and computer readable storage mediums, the network detecting method includes: in the state that intelligent terminal is using cellular data network, and whether the relevant parameter for monitoring cellular data network changes;When any relevant parameter for listening to cellular data network changes, whether the connectivity of detection existing cellular data network is not less than preset data network quality criteria;If the connectivity of existing cellular data network is not less than data network quality criteria, it is determined that intelligent terminal, which is currently at, can go up net state;If the connectivity of existing cellular data network is lower than data network quality criteria, it is determined that intelligent terminal, which is currently at, can not go up net state;When determine intelligent terminal be currently at can go up net state or net state can not be gone up when, export corresponding network state instruction information.Technical solution provided by the invention can inform the network state of the currently used cellular data network of user in time.

Description

Network detecting method, network detection device and intelligent terminal
Technical field
The invention belongs to net application technology field more particularly to a kind of network detecting methods, network detection device, intelligence Terminal and computer readable storage medium.
Background technique
With the fast development of mechanics of communication, cellular data network is also rapidly progressed, for example, as bee of new generation The downstream rate of the 4G network (be based on fourth generation mobile communication technology) of nest data network can reach 100 megabits per second with On, downstream rate is no less than household broadband.Since current 4G network can satisfy nearly all user for wireless service Requirement, therefore, more and more users be also accustomed to using this cellular data network of 4G network surf the Internet.
Currently, working as user for supporting the intelligent terminal (such as smart phone) of a variety of cellular data network standards Currently used cellular data network standard (such as 2G, 3G can be shown when surfing the Internet using cellular data network, on intelligent terminal Or 4G).However, it is a variety of to generally require user's progress when there is the case where page that intelligent terminal is accessed is not opened for a long time Online attempts (such as attempt to refresh or access other links) and is just capable of determining whether that network goes wrong, waste user when Between.
Summary of the invention
It can in view of this, the present invention provides a kind of network detecting method, network detection device, intelligent terminal and computers Storage medium is read, to inform the network state of the currently used cellular data network of user in time.
The first aspect of the embodiment of the present invention provides a kind of network detecting method, comprising:
Intelligent terminal use cellular data network in the state of, monitor the cellular data network relevant parameter whether Variation, wherein the relevant parameter includes: network connection parameter, network formats parameter and network signaling parameters;
When any relevant parameter for listening to the cellular data network changes, presently described cellular data is detected Whether the connectivity of network is not less than preset data network quality criteria;
If the connectivity of presently described cellular data network is not less than the data network quality criteria, it is determined that the intelligence Energy terminal, which is currently at, can go up net state;
If the connectivity of presently described cellular data network is lower than the data network quality criteria, it is determined that the intelligence Terminal, which is currently at, can not go up net state;
When determine the intelligent terminal be currently at can go up net state or net state can not be gone up when, output is corresponding network-like State indicates information, can go up net state to indicate that the intelligent terminal is currently at or can not go up net state.
Based on first aspect present invention, in the first possible implementation, the presently described cellular data of detection Whether the connectivity of network is not less than preset data network quality criteria, comprising:
The intelligent terminal is triggered to send out based on the cellular data network and three-way handshake agreement to the preset network equipment Play TCP connection, wherein the TCP is transmission control protocol;
If the TCP connection has been established, judge whether this connection duration is lower than preset connection duration threshold value, In, the connection duration are as follows: passed through duration is established to the TCP connection from the TCP connection is initiated;
If this connection duration is lower than the connection duration threshold value, the connectivity of presently described cellular data network is determined Not less than the data network quality criteria;
If the TCP connection can not be established or this connection duration is not less than the connection duration threshold value, judgement is worked as The connectivity of the preceding cellular data network is lower than the data network quality criteria.
It, can at second based on the possible implementation of the first of first aspect present invention or first aspect present invention In the implementation of energy, when any relevant parameter for listening to the cellular data network changes, the network detection Method further include:
Judge detection interval whether not less than preset interval threshold, wherein to be divided between the detection apart from preceding primary inspection Whether the connectivity for surveying the cellular data network is not less than the time interval of preset data network quality criteria;
If judging, the detection interval not less than the interval threshold, executes the presently described cellular data of detection Whether the connectivity of network is not less than the step of preset data network quality criteria;
If judging, the detection interval is less than the interval threshold, and execution is described to use cellular data in intelligent terminal In the state of network, the step of whether relevant parameter of the cellular data network changes monitored.
Based on the possible implementation of the first of first aspect present invention or first aspect present invention, at the third In possible implementation, it is described when determine the intelligent terminal be currently at can go up net state or net state can not be gone up when, it is defeated Corresponding network state indicates information out, comprising:
When determine the intelligent terminal be currently at can not go up net state when, the status bar of the intelligent terminal will be set to In data network Status Flag update or remain the preset label that can not surf the Internet;
And/or
When determine the intelligent terminal be currently at can go up net state when, will be set in the status bar of the intelligent terminal Data network Status Flag update or remain preset label of surfing the Internet.
Based on the possible implementation of the first of first aspect present invention or first aspect present invention, at the 4th kind In possible implementation, if the connectivity of presently described cellular data network is lower than the data network quality criteria, institute State network detecting method further include:
If the connectivity of presently described cellular data network is not to be connected to, the intelligence is triggered eventually after waiting preset time End reconnects cellular data network.
The second aspect of the embodiment of the present invention provides a kind of network detection device, comprising: monitoring unit, in intelligence In the state that terminal uses cellular data network, whether the relevant parameter for monitoring the cellular data network changes, wherein described Relevant parameter includes: network connection parameter, network formats parameter and network signaling parameters;
Detection unit, any relevant parameter for listening to the cellular data network when the monitoring unit become When change, whether the connectivity for detecting presently described cellular data network is not less than preset data network quality criteria;
Determination unit, for detecting the connectivity of presently described cellular data network not less than institute when the detection unit When stating data network quality criteria, net state can be gone up by determining that the intelligent terminal is currently at;When the detection unit detects When the connectivity of presently described cellular data network is lower than the data network quality criteria, determine that the intelligent terminal is currently located In net state can not be gone up;
Output unit, for when the determination unit determines that the intelligent terminal is currently at net state can be gone up or can not When net state, corresponding network state instruction information is exported, net state or not can be gone up to indicate that the intelligent terminal is currently at Net state can be gone up.
Based on second aspect of the present invention, in the first possible implementation, the detection unit includes:
Trigger unit, for triggering the intelligent terminal and being based on the cellular data net when detection unit triggering Network and three-way handshake agreement initiate TCP connection to the preset network equipment, wherein the TCP is transmission control protocol;
Judging unit, for when the TCP connection has been established, judging whether this connection duration is lower than preset connection Duration threshold value, wherein the connection duration are as follows: passed through duration is established to the TCP connection from the TCP connection is initiated; If this connection duration is lower than the connection duration threshold value, determine the connectivity of presently described cellular data network not less than institute State data network quality criteria;If the TCP connection can not be established or this connection duration is not less than the connection duration threshold Value then determines the connectivity of presently described cellular data network lower than the data network quality criteria.
Based on the possible implementation of the first of second aspect of the present invention or second aspect of the present invention, at second In possible implementation, the network detection device further include:
Judging unit is triggered, any relevant parameter for listening to the cellular data network when the monitoring unit goes out When now changing, judge detection interval whether not less than preset interval threshold;When judging detection interval not less than described When interval threshold, the detection unit is triggered, when judging that the detection interval is less than the interval threshold, triggers the prison Listen unit.
Third aspect present invention provides a kind of intelligent terminal, including memory, and processor and storage are on a memory and can The computer program run on a processor, above-mentioned processor realized when executing above-mentioned computer program above-mentioned first aspect or The network detecting method referred in any possible implementation of above-mentioned first aspect.
Fourth aspect present invention provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program, above-mentioned computer program realize any of above-mentioned first aspect or above-mentioned first aspect when being executed by processor The network detecting method referred in possible implementation.
Therefore in the present invention program, on the one hand pass through cellular data network used in detection intelligent terminal Connectivity whether be not less than preset data network quality criteria determine the intelligent terminal currently whether in net state can be gone up, Determine the intelligent terminal be in can go up net state or net state can not be gone up when, export corresponding network state instruction information, make Obtaining user can be with the network state of the currently used cellular data network of timely learning;On the other hand, it is used in intelligent terminal In the state of cellular data network, whether the relevant parameter by monitoring the cellular data network changes, when listening to the honeycomb When the relevant parameter variation of data network, whether the connectivity for just detecting the cellular data network is not less than data network quality base Standard achievees the purpose that save power consumption so as to avoid power wastage caused by excessive detection.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1-a is network detecting method one embodiment flow diagram provided by the invention;
Fig. 1-b is a kind of specific implementation flow diagram of step 102 in Fig. 1-a provided by the invention;
Fig. 2 is another embodiment flow diagram of network detecting method provided by the invention;
Fig. 3 is network detection device one embodiment structural schematic diagram provided by the invention;
Fig. 4 is intelligent terminal one embodiment structural schematic diagram provided by the invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in following methods embodiment, respectively The execution sequence of process should be determined by its function and internal logic, and the implementation process without coping with each embodiment constitutes any limit It is fixed.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one
The embodiment of the present invention provides a kind of network detecting method, please refers to Fig. 1-a, the network detection in the embodiment of the present invention Method includes:
Step 101, intelligent terminal use cellular data network in the state of, monitor the correlation of above-mentioned cellular data network Whether parameter changes;
In the embodiment of the present invention, above-mentioned relevant parameter includes but is not limited to: network connection parameter, network formats parameter and net Network signal parameter.Wherein, network connection parameter may include: network connection and disconnection, network bandwidth, maximum transmission unit (MTU, Maximum Transmission Unit), the address Internet protocol (IP, Internet) etc..Network formats parameter can To include: network formats (i.e. 2G network), the net based on 3rd generation mobile communication technology based on Generation Mobile Telecommunication System technology Network standard (i.e. 3G network), network formats (i.e. 4G network) based on fourth generation mobile communication technology etc..Network signaling parameters can To include: signal strength.Therefore, whether the relevant parameter of the above-mentioned cellular data network of above-mentioned monitoring, which changes, may include but unlimited In: monitor whether above-mentioned cellular data network from disconnection becomes connecting or monitor whether above-mentioned cellular data network becomes from connection To disconnect;Monitor whether network bandwidth changes;Monitor whether MTU pleads;Monitor whether IP address changes;Monitor above-mentioned honeycomb number Whether change according to the network formats of network;Whether the signal strength for monitoring above-mentioned cellular data network changes.It is above-mentioned when listening to Any relevant parameter of cellular data network changes, and enters step 102, when the correlation for listening to above-mentioned cellular data network When parameter does not occur variation, can immediately or wait preset time after return step 101.
Wherein, above-mentioned network formats parameter, above-mentioned network formats parameter and network signaling parameters can be obtained by active Or the mode passively obtained is obtained from the serving BS that above-mentioned intelligent terminal is currently located cell.
Whether step 102, the connectivity for detecting current above-mentioned cellular data network are not less than preset data network quality Benchmark;
Since transmission control protocol (TCP, Transmission Control Protocol) belongs to reliable protocol, therefore, A TCP connection need to only be executed by being determined by TCP when the connectivity of network, relative to the detection mode based on non-reliable protocol, Data traffic can effectively be saved.For example, when using ping mode (ping mode be based on Internet Control Message Protocol (ICMP, Internet Control Message Protocol), and ICMP is based on User Datagram Protocol (UDP, User Datagram Protocol), UDP is a kind of non-reliable protocol) it carries out needing just to can determine that network ping more times when the detection of connectivity of network Connectivity.Therefore it is optional, using the current above-mentioned cellular data network of the three-way handshake protocol detection of TCP in the embodiment of the present invention Connectivity whether be not less than preset data network quality criteria.Specifically, as shown in Fig. 1-b, above-mentioned detection is currently above-mentioned Whether the connectivity of cellular data network is not less than preset data network quality criteria, comprising:
Step 1011, the above-mentioned intelligent terminal of triggering are based on above-mentioned cellular data network and three-way handshake agreement to preset net Network equipment initiates TCP connection;
In the embodiment of the present invention, the address information of the above-mentioned network equipment (such as server) can be preset, such as mutually Networking protocol (IP, Internet Protocol) address, domain name and port numbers etc..It, can be according to preset in step 1011 The address information of the above-mentioned network equipment, trigger above-mentioned intelligent terminal be based on above-mentioned cellular data network and three-way handshake agreement to this The network equipment initiates TCP connection.
If step 1012, above-mentioned TCP connection have been established, judge whether this connection duration is lower than preset connection duration Threshold value;
In step 1012, above-mentioned connection duration are as follows: passed through from above-mentioned TCP connection is initiated to the foundation of above-mentioned TCP connection Duration.Trigger above-mentioned TCP connection when for example, being located at time T1, be successfully established above-mentioned TCP connection in time T2, then on Stating connection duration is T2-T1.
If step 1013, this connection duration are lower than above-mentioned connection duration threshold value, current above-mentioned intelligent terminal branch is determined The connectivity for the cellular data network held is not less than above-mentioned data network quality criteria;
In step 1013, when judging this connection duration lower than the connection duration threshold value, it is believed that current data net The connectivity of network is good, can determine that the connectivity of current above-mentioned cellular data network not less than above-mentioned data network quality base at this time It is quasi-.
If step 1014, above-mentioned TCP connection can not be established or this connection duration is not less than above-mentioned connection duration threshold value, Then determine that the connectivity of current above-mentioned cellular data network is lower than above-mentioned data network quality criteria;
In step 1014, when the TCP connection that step 1011 triggers can not be successfully established, it is believed that above-mentioned honeycomb at this time Data network is not available, and can determine that the connectivity of current above-mentioned cellular data network lower than above-mentioned data network quality base at this time It is quasi-.When step 1011 trigger TCP connection be successfully established, when this connection duration be not less than above-mentioned connection duration threshold value, then may be used Think the poor connectivity of above-mentioned cellular data network at this time, also can determine that the connectivity of current above-mentioned cellular data network is low at this time In above-mentioned data network quality criteria.
In the embodiment of the present invention, when the connectivity for detecting current above-mentioned cellular data network is not less than above-mentioned data network When quality criteria, 103 are entered step, when the connectivity for detecting current above-mentioned cellular data network is lower than above-mentioned data network matter When measuring benchmark, 104 are entered step.
Step 103 determines that above-mentioned intelligent terminal is currently at and can go up net state;
In step 103, when detecting the connectivity of current above-mentioned cellular data network not less than above-mentioned by step 102 When data network quality criteria, it may be determined that above-mentioned intelligent terminal, which is currently at, can go up net state.
Step 104 determines that above-mentioned intelligent terminal is currently at and can not go up net state;
At step 104, when the connectivity for detecting currently above-mentioned cellular data network by step 102 is lower than above-mentioned number When according to network quality benchmark, it may be determined that above-mentioned intelligent terminal, which is currently at, can not go up net state.
Step 105, when determine above-mentioned intelligent terminal be currently at can go up net state or net state can not be gone up when, output phase is answered Network state indicate information, can go up net state to indicate that above-mentioned intelligent terminal is currently at or can not go up net state;
In the embodiment of the present invention, in order to enable user being capable of the currently used cellular data of the above-mentioned intelligent terminal of timely learning The network state of network, when determine every time above-mentioned intelligent terminal be currently at can go up net state or net state can not be gone up when, output Corresponding network state indicates information, so that user can be with the real-time network state of the above-mentioned intelligent terminal of timely learning.
In a kind of application scenarios, step 105 may include: when determine above-mentioned intelligent terminal be currently at can not go up it is netted When state, by the status bar for being set to above-mentioned intelligent terminal data network Status Flag update or remain it is preset can not on Network mark note, so as to user view this can not surf the Internet mark when, would know that the intelligent terminal is currently at can not go up net state. Specifically, net state can not be gone up when determining that above-mentioned intelligent terminal is currently at, and no data in the status bar of above-mentioned intelligent terminal When network state mark, the label that can not surf the Internet is set in the status bar of above-mentioned intelligent terminal;When determining that above-mentioned intelligent terminal works as It is preceding in the data network Status Flag that can not be gone up net state, and be set in the status bar of above-mentioned intelligent terminal be can not surf the Internet When label, above-mentioned data network Status Flag is remained into the label that can not surf the Internet (namely not to above-mentioned data network Status Flag It is modified).
In another application scenarios, step 105 may include: when determine above-mentioned intelligent terminal be currently at can go up it is netted When state, the data network Status Flag in the status bar for being set to above-mentioned intelligent terminal is updated or is remained preset surf the Internet Label, so as to user view this can surf the Internet mark when, would know that the intelligent terminal is currently at can go up net state.Specifically , net state can be gone up when determining that above-mentioned intelligent terminal is currently at, and no data is network-like in the status bar of above-mentioned intelligent terminal When state mark, the label that can surf the Internet is set in above-mentioned status bar;Net state can be gone up when determining that above-mentioned intelligent terminal is currently at, and The data network Status Flag being set in the status bar of above-mentioned intelligent terminal is when can surf the Internet to mark, by above-mentioned data network shape State mark remains the label that can surf the Internet (namely not being modified to above-mentioned data network Status Flag).
In another application scenarios, step 105 may include: when determining above-mentioned intelligent terminal is currently at and can not surf the Internet When state, by the status bar for being set to above-mentioned intelligent terminal data network Status Flag update or remain it is preset can not Online label;When determine above-mentioned intelligent terminal be currently at can go up net state when, the status bar of above-mentioned intelligent terminal will be set to In data network Status Flag update or remain preset label of surfing the Internet, so that user can not go up network mark viewing this Clock, would know that the intelligent terminal is currently at can not go up net state, alternatively, when user view this can surf the Internet mark when, can Net state can be gone up by knowing that the intelligent terminal is currently at.Specifically, when determine above-mentioned intelligent terminal be currently at can not go up it is netted State, and the data network Status Flag in the status bar of above-mentioned intelligent terminal is when can surf the Internet to mark, by above-mentioned network state mark Will is updated to the label that can not surf the Internet;Net state can not be gone up when determining that above-mentioned intelligent terminal is currently at, and is set to above-mentioned intelligence Data network Status Flag in the status bar of terminal is that when can not surf the Internet to mark, above-mentioned data network Status Flag is remained Can not surf the Internet label, can go up net state when determining that above-mentioned intelligent terminal is currently at, and in the status bar of above-mentioned intelligent terminal Data network Status Flag is that when can not surf the Internet to mark, above-mentioned data network Status Flag is updated to the label that can surf the Internet;When true Fixed above-mentioned intelligent terminal is currently at the data network state that can be gone up net state, and be set in the status bar of above-mentioned intelligent terminal When mark marks for that can surf the Internet, above-mentioned data network Status Flag is remained into the label that can surf the Internet.
Further, in embodiments of the present invention, due to detecting the connectivity of current above-mentioned cellular data network in step 102 Whether not less than during data network quality criteria, whether not the connectivity of currently above-mentioned cellular data network can be known Connection (such as when the TCP connection that step 102 refers to can not be established, it is believed that the connectivity of above-mentioned cellular data network is It is not connected to), therefore, if the connectivity of current above-mentioned cellular data network is not to be connected to, triggered after may wait for preset time It states intelligent terminal and reconnects cellular data network.
It should be noted that the network detecting method in the embodiment of the present invention can be applied in network detection device, it is above-mentioned Network detection device can be independent equipment, or also can integrate in intelligent terminal (such as mobile phone, tablet computer etc.) or In other equipment, it is not construed as limiting herein.
Therefore in the present invention program, on the one hand pass through cellular data network used in detection intelligent terminal Connectivity whether be not less than preset data network quality criteria determine the intelligent terminal currently whether in net state can be gone up, Determine the intelligent terminal be in can go up net state or net state can not be gone up when, export corresponding network state instruction information, make Obtaining user can be with the network state of the currently used cellular data network of timely learning;On the other hand, it is used in intelligent terminal In the state of cellular data network, whether the relevant parameter by monitoring the cellular data network changes, when listening to the honeycomb When the relevant parameter variation of data network, whether the connectivity for just detecting the cellular data network is not less than data network quality base Standard achievees the purpose that save power consumption so as to avoid power wastage caused by excessive detection.
Embodiment two
The difference of the embodiment of the present invention and embodiment one is that the embodiment of the present invention, which is worked as, listens to above-mentioned cellular data network Any relevant parameter when changing, further judge detection interval whether less than preset interval threshold, further may be used To avoid power wastage caused by excessive detection, achieve the purpose that further to save power consumption.As shown in Fig. 2, the present invention is real The network detecting method applied in example includes:
Step 201, intelligent terminal use cellular data network in the state of, monitor the correlation of above-mentioned cellular data network Whether parameter changes;
In the embodiment of the present invention, above-mentioned relevant parameter includes but is not limited to: network connection parameter, network formats parameter and net Network signal parameter.Wherein, network connection parameter may include: network connection and disconnection, network bandwidth, maximum transmission unit (MTU, Maximum Transmission Unit), the address Internet protocol (IP, Internet) etc..Network formats parameter can To include: network formats (i.e. 2G network), the net based on 3rd generation mobile communication technology based on Generation Mobile Telecommunication System technology Network standard (i.e. 3G network), network formats (i.e. 4G network) based on fourth generation mobile communication technology etc..Network signaling parameters can To include: signal strength.Therefore, whether the relevant parameter of the above-mentioned cellular data network of above-mentioned monitoring, which changes, may include but unlimited In: monitor whether above-mentioned cellular data network from disconnection becomes connecting or monitor whether above-mentioned cellular data network becomes from connection To disconnect;Monitor whether network bandwidth changes;Monitor whether MTU pleads;Monitor whether IP address changes;Monitor above-mentioned honeycomb number Whether change according to the network formats of network;Whether the signal strength for monitoring above-mentioned cellular data network changes.It is above-mentioned when listening to Any relevant parameter of cellular data network changes, and enters step 202, when the correlation for listening to above-mentioned cellular data network When parameter does not occur variation, can immediately or wait preset time after return step 201.
Wherein, above-mentioned network formats parameter, above-mentioned network formats parameter and network signaling parameters can be obtained by active Or the mode passively obtained is obtained from the serving BS that above-mentioned intelligent terminal is currently located cell.
Whether step 202 judges detection interval not less than preset interval threshold;
In the embodiment of the present invention, the connectivity apart from the above-mentioned cellular data network of preceding one-time detection is divided between above-mentioned detection is The no time interval not less than preset data network quality criteria.For example, the above-mentioned cellular data net of one-time detection before setting The time whether connectivity of network is not less than preset data network quality criteria is that (primary triggering step 203 holds T1 before i.e. The capable time is T1), current time T2 is then divided into T2-T1 between above-mentioned detection.
In step 202, when judging above-mentioned detection interval not less than above-mentioned interval threshold, 203 are entered step, when sentencing It is disconnected go out above-mentioned detection interval when being less than above-mentioned interval threshold, immediately or can wait and preset return to above-mentioned steps after a certain period of time 201。
Whether step 203, the connectivity for detecting current above-mentioned cellular data network are not less than preset data network quality Benchmark;
In step 203, when the connectivity for detecting current above-mentioned cellular data network is not less than above-mentioned data network matter When measuring benchmark, 204 are entered step, when the connectivity for detecting current above-mentioned cellular data network is lower than above-mentioned data network quality When benchmark, 205 are entered step.
Specifically, step 203 is referred to the description of step 102 in Fig. 1-a illustrated embodiment, and details are not described herein again.
Step 204 determines that above-mentioned intelligent terminal is currently at and can go up net state;
In step 204, when detecting the connectivity of current above-mentioned cellular data network not less than above-mentioned by step 203 When data network quality criteria, it may be determined that above-mentioned intelligent terminal, which is currently at, can go up net state.
Step 205 determines that above-mentioned intelligent terminal is currently at and can not go up net state;
In step 205, when the connectivity for detecting currently above-mentioned cellular data network by step 203 is lower than above-mentioned number When according to network quality benchmark, it may be determined that above-mentioned intelligent terminal, which is currently at, can not go up net state.
Step 206, when determine above-mentioned intelligent terminal be currently at can go up net state or net state can not be gone up when, output phase is answered Network state indicate information, can go up net state to indicate that above-mentioned intelligent terminal is currently at or can not go up net state;
In the embodiment of the present invention, in order to enable user being capable of the currently used cellular data of the above-mentioned intelligent terminal of timely learning The network state of network, when determine every time above-mentioned intelligent terminal be currently at can go up net state or net state can not be gone up when, output Corresponding network state indicates information, so that user can be with the real-time network state of the above-mentioned intelligent terminal of timely learning.
In a kind of application scenarios, step 106 may include: when determine above-mentioned intelligent terminal be currently at can not go up it is netted When state, by the status bar for being set to above-mentioned intelligent terminal data network Status Flag update or remain it is preset can not on Network mark note, so as to user view this can not surf the Internet mark when, would know that the intelligent terminal is currently at can not go up net state. Specifically, net state can not be gone up when determining that above-mentioned intelligent terminal is currently at, and no data in the status bar of above-mentioned intelligent terminal When network state mark, the label that can not surf the Internet is set in the status bar of above-mentioned intelligent terminal;When determining that above-mentioned intelligent terminal works as It is preceding in the data network Status Flag that can not be gone up net state, and be set in the status bar of above-mentioned intelligent terminal be can not surf the Internet When label, above-mentioned data network Status Flag is remained into the label that can not surf the Internet (namely not to above-mentioned data network Status Flag It is modified).
In another application scenarios, step 106 may include: when determine above-mentioned intelligent terminal be currently at can go up it is netted When state, the data network Status Flag in the status bar for being set to above-mentioned intelligent terminal is updated or is remained preset surf the Internet Label, so as to user view this can surf the Internet mark when, would know that the intelligent terminal is currently at can go up net state.Specifically , net state can be gone up when determining that above-mentioned intelligent terminal is currently at, and no data is network-like in the status bar of above-mentioned intelligent terminal When state mark, the label that can surf the Internet is set in above-mentioned status bar;Net state can be gone up when determining that above-mentioned intelligent terminal is currently at, and The data network Status Flag being set in the status bar of above-mentioned intelligent terminal is when can surf the Internet to mark, by above-mentioned data network shape State mark remains the label that can surf the Internet (namely not being modified to above-mentioned data network Status Flag).
In another application scenarios, step 106 may include: when determining above-mentioned intelligent terminal is currently at and can not surf the Internet When state, by the status bar for being set to above-mentioned intelligent terminal data network Status Flag update or remain it is preset can not Online label;When determine above-mentioned intelligent terminal be currently at can go up net state when, the status bar of above-mentioned intelligent terminal will be set to In data network Status Flag update or remain preset label of surfing the Internet, so that user can not go up network mark viewing this Clock, would know that the intelligent terminal is currently at can not go up net state, alternatively, when user view this can surf the Internet mark when, can Net state can be gone up by knowing that the intelligent terminal is currently at.Specifically, when determine above-mentioned intelligent terminal be currently at can not go up it is netted State, and the data network Status Flag in the status bar of above-mentioned intelligent terminal is when can surf the Internet to mark, by above-mentioned network state mark Will is updated to the label that can not surf the Internet;Net state can not be gone up when determining that above-mentioned intelligent terminal is currently at, and is set to above-mentioned intelligence Data network Status Flag in the status bar of terminal is that when can not surf the Internet to mark, above-mentioned data network Status Flag is remained Can not surf the Internet label, can go up net state when determining that above-mentioned intelligent terminal is currently at, and in the status bar of above-mentioned intelligent terminal Data network Status Flag is that when can not surf the Internet to mark, above-mentioned data network Status Flag is updated to the label that can surf the Internet;When true Fixed above-mentioned intelligent terminal is currently at the data network state that can be gone up net state, and be set in the status bar of above-mentioned intelligent terminal When mark marks for that can surf the Internet, above-mentioned data network Status Flag is remained into the label that can surf the Internet.
Further, in embodiments of the present invention, due to detecting the connectivity of current above-mentioned cellular data network in step 203 Whether not less than during data network quality criteria, be can know current above-mentioned cellular data network connectivity whether Disconnected (such as when the TCP connection that step 102 refers to can not be established, it is believed that the connectivity of above-mentioned cellular data network Not to be connected to), it can wait at this time and trigger above-mentioned intelligent terminal after preset time and reconnect cellular data network (namely again Even).
It should be noted that the network detecting method in the embodiment of the present invention can be applied in network detection device, it is above-mentioned Network detection device can be independent equipment, or also can integrate in intelligent terminal (such as mobile phone, tablet computer etc.) or In other equipment, it is not construed as limiting herein.
Therefore in the present invention program, on the one hand pass through cellular data network used in detection intelligent terminal Connectivity whether be not less than preset data network quality criteria determine the intelligent terminal currently whether in net state can be gone up, Determine the intelligent terminal be in can go up net state or net state can not be gone up when, export corresponding network state instruction information, make Obtaining user can be with the network state of the currently used cellular data network of timely learning;On the other hand, it is used in intelligent terminal In the state of cellular data network, whether the relevant parameter by monitoring the cellular data network changes, when listening to the honeycomb When the relevant parameter variation of data network, whether the connectivity for just detecting the cellular data network is not less than data network quality base Standard achievees the purpose that save power consumption so as to avoid power wastage caused by excessive detection.
Embodiment three
The embodiment of the present invention also provides a kind of network detection device, as shown in figure 3, the network in the embodiment of the present invention detects Device 300 includes:
Monitoring unit 301, for monitoring the cellular data net in the state that intelligent terminal uses cellular data network Whether the relevant parameter of network changes, wherein the relevant parameter includes: network connection parameter, network formats parameter and network letter Number parameter;
Detection unit 302, any relevant parameter for listening to the cellular data network when monitoring unit 301 occur When variation, whether the connectivity for detecting presently described cellular data network is not less than preset data network quality criteria;
Determination unit 303, for detecting that the connectivity of presently described cellular data network is not less than when detection unit 302 When the data network quality criteria, net state can be gone up by determining that the intelligent terminal is currently at;When detection unit 302 detects When the connectivity of presently described cellular data network is lower than the data network quality criteria, determine that the intelligent terminal is currently located In net state can not be gone up;
Output unit 304, for when determination unit 303 determines that the intelligent terminal is currently at net state can be gone up or can not When upper net state, export corresponding network state instruction information, with indicate the intelligent terminal be currently at can go up net state or Net state can not be gone up.
Optionally, detection unit 302 includes: trigger unit, for triggering the intelligence when detection unit 302 triggers Terminal is based on the cellular data network and three-way handshake agreement and initiates TCP connection to the preset network equipment, wherein described TCP is transmission control protocol;Judging unit, for when the TCP connection has been established, judging whether this connection duration is lower than Preset connection duration threshold value, wherein the connection duration are as follows: passed through from the TCP connection is initiated to TCP connection foundation The duration crossed;If this connection duration is lower than the connection duration threshold value, the connection of presently described cellular data network is determined Property be not less than the data network quality criteria;If the TCP connection can not be established or this connection duration is not less than described Duration threshold value is connected, then determines the connectivity of presently described cellular data network lower than the data network quality criteria.
Optionally, the network detection device in the embodiment of the present invention further include: triggering judging unit, for working as monitoring unit When the 301 any relevant parameters for listening to the cellular data network change, judge detection interval whether not less than default Interval threshold;When judging detection interval not less than the interval threshold, detection trigger unit 302, when judging When the detection interval is less than the interval threshold, monitoring unit 301 is triggered.
Optionally, output unit 304 is specifically used for: when determination unit 303 determine the intelligent terminal be currently at can on Net state or when can not go up net state, the network state mark in the status bar for being set to above-mentioned intelligent terminal is updated or is kept For the preset label that can not surf the Internet;And/or when the determining above-mentioned intelligent terminal of determination unit 303, which is currently at, to go up net state, Network state mark in the status bar for being set to above-mentioned intelligent terminal is updated or is remained preset label of surfing the Internet.
Optionally, the network detection device in the embodiment of the present invention may also include that reconnection unit, in presently described bee The connectivity of nest data network is to trigger the intelligent terminal reconnect cellular data net after waiting preset time when not being connected to Network.
It should be noted that the network detection device in the embodiment of the present invention can be independent equipment, or can also be with It is integrated in intelligent terminal (such as mobile phone, tablet computer etc.) or other equipment, is not construed as limiting herein.
Therefore in embodiments of the present invention, on the one hand pass through cellular data network used in detection intelligent terminal Connectivity whether be not less than preset data network quality criteria determine the intelligent terminal currently whether in can go up it is netted State, determine the intelligent terminal be in can go up net state or net state can not be gone up when, export corresponding network state instruction information, So that user can be with the network state of the currently used cellular data network of timely learning;On the other hand, make in intelligent terminal In the state of cellular data network, whether the relevant parameter by monitoring the cellular data network changes, when listening to the bee When the relevant parameter variation of nest data network, whether the connectivity for just detecting the cellular data network is not less than data network quality Benchmark achievees the purpose that save power consumption so as to avoid power wastage caused by excessive detection.
Example IV
The embodiment of the present invention provides a kind of intelligent terminal, referring to Fig. 4, the intelligent terminal in the embodiment of the present invention includes: Memory 401, one or more processors 402 (one is only shown in Fig. 4) and is stored on memory 401 and can be in processor The computer program of upper operation.Wherein: memory 401 is deposited for storing software program and module, processor 402 by operation The software program and unit in memory 401 are stored up, thereby executing various function application and data processing.Specifically, it handles Device 402 is stored by operation and is performed the steps of in the above-mentioned computer program of memory 401
Intelligent terminal use cellular data network in the state of, monitor the cellular data network relevant parameter whether Variation, wherein the relevant parameter includes: network connection parameter, network formats parameter and network signaling parameters;
When any relevant parameter for listening to the cellular data network changes, presently described cellular data is detected Whether the connectivity of network is not less than preset data network quality criteria;
If the connectivity of presently described cellular data network is not less than the data network quality criteria, it is determined that the intelligence Energy terminal, which is currently at, can go up net state;
If the connectivity of presently described cellular data network is lower than the data network quality criteria, it is determined that the intelligence Terminal, which is currently at, can not go up net state;
When determine the intelligent terminal be currently at can go up net state or net state can not be gone up when, output is corresponding network-like State indicates information, can go up net state to indicate that the intelligent terminal is currently at or can not go up net state.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, it is preset whether the connectivity of the presently described cellular data network of the detection is not less than Data network quality criteria, comprising:
The intelligent terminal is triggered to send out based on the cellular data network and three-way handshake agreement to the preset network equipment Play TCP connection, wherein the TCP is transmission control protocol;
If the TCP connection has been established, judge whether this connection duration is lower than preset connection duration threshold value, In, the connection duration are as follows: passed through duration is established to the TCP connection from the TCP connection is initiated;
If this connection duration is lower than the connection duration threshold value, the connectivity of presently described cellular data network is determined Not less than the data network quality criteria;
If the TCP connection can not be established or this connection duration is not less than the connection duration threshold value, judgement is worked as The connectivity of the preceding cellular data network is lower than the data network quality criteria.
It is provided based on the first above-mentioned possible implementation or above-mentioned second of possible implementation The third possible embodiment in, when any relevant parameter for listening to the cellular data network changes, place Reason device 402 is stored by operation and is performed the steps of in the above-mentioned computer program of memory 401
Judge detection interval whether not less than preset interval threshold, wherein to be divided between the detection apart from preceding primary inspection Whether the connectivity for surveying the cellular data network is not less than the time interval of preset data network quality criteria;
If judging, the detection interval not less than the interval threshold, executes the presently described cellular data of detection Whether the connectivity of network is not less than the step of preset data network quality criteria;
If judging, the detection interval is less than the interval threshold, and execution is described to use cellular data in intelligent terminal In the state of network, the step of whether relevant parameter of the cellular data network changes monitored.
It is provided based on the first above-mentioned possible implementation or above-mentioned second of possible implementation The 4th kind of possible embodiment in, it is described to go up net state or can not go up netted when determining that the intelligent terminal is currently at When state, corresponding network state instruction information is exported, comprising:
When determine the intelligent terminal be currently at can not go up net state when, the status bar of the intelligent terminal will be set to In data network Status Flag update or remain the preset label that can not surf the Internet;
And/or
When determine the intelligent terminal be currently at can go up net state when, will be set in the status bar of the intelligent terminal Data network Status Flag update or remain preset label of surfing the Internet.
It is provided based on the first above-mentioned possible implementation or above-mentioned second of possible implementation The 5th kind of possible embodiment in, if the connectivity of presently described cellular data network be lower than the data network quality base Standard, then processor 402 is stored by operation and is performed the steps of in the above-mentioned computer program of memory 401
If the connectivity of presently described cellular data network is not to be connected to, the intelligence is triggered eventually after waiting preset time End reconnects cellular data network.
Further, as shown in figure 4, above-mentioned intelligent terminal may also include that one or more input equipments 403 (only show in Fig. 4 One out) and one or more output equipments 404 (one is only shown in Fig. 4).Memory 401, processor 402, input equipment 403 and output equipment 404 connected by bus 405.
It should be appreciated that in embodiments of the present invention, alleged processor 402 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 403 may include keyboard, Trackpad, fingerprint adopt sensor (for acquire user finger print information and The directional information of fingerprint), microphone etc., output equipment 404 may include display, loudspeaker etc..
Memory 404 may include read-only memory and random access memory, and provide instruction sum number to processor 401 According to.Part or all of memory 404 can also include nonvolatile RAM.For example, memory 404 may be used also With the information of storage device type.
Therefore in embodiments of the present invention, on the one hand pass through cellular data network used in detection intelligent terminal Connectivity whether be not less than preset data network quality criteria determine the intelligent terminal currently whether in can go up it is netted State, determine the intelligent terminal be in can go up net state or net state can not be gone up when, export corresponding network state instruction information, So that user can be with the network state of the currently used cellular data network of timely learning;On the other hand, make in intelligent terminal In the state of cellular data network, whether the relevant parameter by monitoring the cellular data network changes, when listening to the bee When the relevant parameter variation of nest data network, whether the connectivity for just detecting the cellular data network is not less than data network quality Benchmark achievees the purpose that save power consumption so as to avoid power wastage caused by excessive detection.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of above-mentioned apparatus is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete, above-mentioned computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, above-mentioned computer program includes computer program code, and above-mentioned computer program code can Think source code form, object identification code form, executable file or certain intermediate forms etc..Above-mentioned computer-readable medium can be with It include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry above-mentioned computer program code Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above-mentioned computer The content that readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as In certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and telecommunications letter Number.
Above above-described embodiment is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (8)

1. a kind of network detecting method characterized by comprising
In the state that intelligent terminal uses cellular data network, whether the relevant parameter for monitoring the cellular data network becomes Change, wherein the relevant parameter includes: network connection parameter, network formats parameter and network signaling parameters;
When any relevant parameter for listening to the cellular data network changes, presently described cellular data network is detected Connectivity whether be not less than preset data network quality criteria;
If the connectivity of presently described cellular data network is not less than the data network quality criteria, it is determined that the intelligence is eventually End, which is currently at, can go up net state;
If the connectivity of presently described cellular data network is lower than the data network quality criteria, it is determined that the intelligent terminal Net state can not be gone up by being currently at;
When determine the intelligent terminal be currently at can go up net state or net state can not be gone up when, export corresponding network state and refer to Show information, can go up net state to indicate that the intelligent terminal is currently at or can not go up net state;
Wherein, whether the connectivity of the presently described cellular data network of detection is not less than preset data network quality base It is quasi-, comprising:
It triggers the intelligent terminal and is based on the cellular data network and three-way handshake agreement to preset network equipment initiation TCP Connection, wherein the TCP is transmission control protocol;
If the TCP connection has been established, judge whether this connection duration is lower than preset connection duration threshold value, wherein institute State connection duration are as follows: passed through duration is established to the TCP connection from the TCP connection is initiated;
If this connection duration is lower than the connection duration threshold value, determine that the connectivity of presently described cellular data network is not low In the data network quality criteria;
If the TCP connection can not be established or this connection duration is not less than the connection duration threshold value, current institute is determined The connectivity of cellular data network is stated lower than the data network quality criteria.
2. network detecting method according to claim 1, which is characterized in that as times for listening to the cellular data network When one relevant parameter changes, the network detecting method further include:
Judge detection interval whether not less than preset interval threshold, wherein to be divided between the detection apart from preceding one-time detection institute Whether the connectivity for stating cellular data network is not less than the time interval of preset data network quality criteria;
If judging, the detection interval not less than the interval threshold, executes the presently described cellular data network of detection Connectivity the step of whether being not less than preset data network quality criteria;
If judging, the detection interval is less than the interval threshold, and execution is described to use cellular data network in intelligent terminal In the state of, the step of whether relevant parameter of the cellular data network changes monitored.
3. network detecting method according to claim 1, which is characterized in that described when the determining intelligent terminal is currently located When can go up net state or net state can not be gone up, corresponding network state instruction information is exported, comprising:
When determine the intelligent terminal be currently at can not go up net state when, will be set in the status bar of the intelligent terminal Data network Status Flag updates or remains the preset label that can not surf the Internet;
And/or
When determine the intelligent terminal be currently at can go up net state when, by the number in the status bar for being set to the intelligent terminal Preset label of surfing the Internet is updated or remained according to network state mark.
4. network detecting method according to claim 1, which is characterized in that if the connection of presently described cellular data network Property be lower than the data network quality criteria, the then network detecting method further include:
If the connectivity of presently described cellular data network is not to be connected to, the intelligent terminal weight is triggered after waiting preset time New connection cellular data network.
5. a kind of network detection device characterized by comprising
Monitoring unit, for monitoring the phase of the cellular data network in the state that intelligent terminal uses cellular data network Close whether parameter changes, wherein the relevant parameter includes: network connection parameter, network formats parameter and network signaling parameters;
Detection unit, any relevant parameter for listening to the cellular data network when the monitoring unit change When, whether the connectivity for detecting presently described cellular data network is not less than preset data network quality criteria;
Determination unit, for detecting the connectivity of presently described cellular data network not less than the number when the detection unit When according to network quality benchmark, net state can be gone up by determining that the intelligent terminal is currently at;When the detection unit detects currently When the connectivity of the cellular data network is lower than the data network quality criteria, determine that the intelligent terminal is currently at not Net state can be gone up;
Output unit, for that can go up net state when the determination unit determines that the intelligent terminal is currently at or can not go up netted When state, export corresponding network state instruction information, with indicate the intelligent terminal be currently at can go up net state or can not on Net state;
Wherein, the detection unit includes:
Trigger unit, for when the detection unit triggering when, trigger the intelligent terminal be based on the cellular data network and Three-way handshake agreement initiates TCP connection to the preset network equipment, wherein the TCP is transmission control protocol;
Judging unit, for when the TCP connection has been established, judging whether this connection duration is lower than preset connection duration Threshold value, wherein the connection duration are as follows: passed through duration is established to the TCP connection from the TCP connection is initiated;If this Secondary connection duration is lower than the connection duration threshold value, then determines the connectivity of presently described cellular data network not less than the number According to network quality benchmark;If the TCP connection can not be established or this connection duration is not less than the connection duration threshold value, Determine the connectivity of presently described cellular data network lower than the data network quality criteria.
6. network detection device according to claim 5, which is characterized in that the network detection device further include:
Judging unit is triggered, any relevant parameter for listening to the cellular data network when the monitoring unit becomes When change, judge detection interval whether not less than preset interval threshold;It is not less than the interval when judging that the detection is spaced When threshold value, the detection unit is triggered, when judging that the detection interval is less than the interval threshold, it is single to trigger the monitoring Member.
7. a kind of intelligent terminal, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as Claims 1-4 when executing the computer program The step of any one the method.
8. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as Claims 1-4 of realization the method.
CN201710659891.5A 2017-08-04 2017-08-04 Network detecting method, network detection device and intelligent terminal Expired - Fee Related CN107333287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710659891.5A CN107333287B (en) 2017-08-04 2017-08-04 Network detecting method, network detection device and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710659891.5A CN107333287B (en) 2017-08-04 2017-08-04 Network detecting method, network detection device and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107333287A CN107333287A (en) 2017-11-07
CN107333287B true CN107333287B (en) 2019-03-12

Family

ID=60225146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710659891.5A Expired - Fee Related CN107333287B (en) 2017-08-04 2017-08-04 Network detecting method, network detection device and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107333287B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109996250A (en) * 2017-12-29 2019-07-09 洛阳中科晶上智能装备科技有限公司 The method for detecting TCP connection state
CN109831359B (en) * 2019-02-01 2021-04-02 维沃移动通信有限公司 Method for detecting connection state of data network and terminal equipment thereof
CN111654899B (en) * 2020-05-28 2022-11-11 Oppo广东移动通信有限公司 Wearable device control method and device, electronic device and storage medium
CN111770522B (en) * 2020-06-05 2023-10-17 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for identifying data dialing abnormality
CN113765736A (en) * 2021-07-23 2021-12-07 深圳市智微智能科技股份有限公司 android device network stabilizing method, system, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101998570A (en) * 2010-11-15 2011-03-30 中兴通讯股份有限公司 Network switching method and system
CN103809844A (en) * 2012-11-12 2014-05-21 联想(北京)有限公司 State prompting method and electronic equipment
CN106921992A (en) * 2016-07-06 2017-07-04 阿里巴巴集团控股有限公司 The determination method of wireless network connection status, client and service end

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101998570A (en) * 2010-11-15 2011-03-30 中兴通讯股份有限公司 Network switching method and system
CN103809844A (en) * 2012-11-12 2014-05-21 联想(北京)有限公司 State prompting method and electronic equipment
CN106921992A (en) * 2016-07-06 2017-07-04 阿里巴巴集团控股有限公司 The determination method of wireless network connection status, client and service end

Also Published As

Publication number Publication date
CN107333287A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107333287B (en) Network detecting method, network detection device and intelligent terminal
CN102972068B (en) Lower power consumption in user terminal
CN110417915B (en) Push message transmission method and device, storage medium and electronic equipment
CN105516080B (en) The processing method of TCP connection, apparatus and system
WO2018142862A1 (en) Communication processing system, communication processing method, base station, and control method and control program for said base station
CN105025506B (en) A kind of method of cloud AC remote managements AP equipment
CN106102143A (en) A kind of application processing method and device
CN109120524A (en) Link aggregation method and relevant device
CN107294811A (en) Network detecting method, network detection means and intelligent terminal
CN104468187B (en) The acquisition methods and device of heart beat cycle
CN110290030A (en) Network state detection method, apparatus, electronic equipment and computer-readable medium
CN107332741B (en) A kind of network detecting method, network detection device and intelligent terminal
CN107197493B (en) A kind of method for switching network, network switching device and intelligent terminal
CN107241758A (en) Network control method, network control unit and intelligent terminal
CN107231647B (en) Network detecting method, network detection device and intelligent terminal
CN107332739B (en) Network detecting method, network detection device and intelligent terminal
CN107734556A (en) Data transfer control method and Related product
CN105978606B (en) Bluetooth equipment remote communication method, bluetooth equipment and client
CN114416933A (en) Complaint processing method and device, electronic equipment and storage medium
CN107343326A (en) A kind of data transmission method and device
CN107276856B (en) Network detecting method, network detection device and intelligent terminal
CN109756972A (en) A kind of method, network side equipment and terminal waking up application program
CN107360059B (en) Network detecting method, network detection device and intelligent terminal
CN107682251A (en) Webpage instant chat method and device based on websocket
CN102594696B (en) A kind of method and device managing network device link aggregation group

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190312