CN107333287A - Network detecting method, network detection means and intelligent terminal - Google Patents

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

Info

Publication number
CN107333287A
CN107333287A CN201710659891.5A CN201710659891A CN107333287A CN 107333287 A CN107333287 A CN 107333287A CN 201710659891 A CN201710659891 A CN 201710659891A CN 107333287 A CN107333287 A CN 107333287A
Authority
CN
China
Prior art keywords
data network
network
intelligent terminal
cellular data
less
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.)
Granted
Application number
CN201710659891.5A
Other languages
Chinese (zh)
Other versions
CN107333287B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a kind of network detecting method, network detection means, intelligent terminal and computer-readable recording medium, the network detecting method includes:In the state of intelligent terminal uses cellular data network, whether the relevant parameter for monitoring cellular data network changes;When any relevant parameter for listening to cellular data network changes, whether the connectedness of detection existing cellular data network is not less than default data network quality criteria;If the connectedness 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 connectedness of existing cellular data network is less than data network quality criteria, it is determined that intelligent terminal, which is currently at, can not go up net state;When it is determined that intelligent terminal is currently at when can go up net state or can not go up net state, exporting corresponding network state configured information.The technical scheme that the present invention is provided can inform the network state of the presently used cellular data network of user in time.

Description

Network detecting method, network detection means and intelligent terminal
Technical field
The invention belongs to net application technology field, more particularly to a kind of network detecting method, network detection means, intelligence Terminal and computer-readable recording medium.
Background technology
With the fast development of mechanics of communication, cellular data network is also rapidly progressed, for example, being used as honeybee of new generation The downstream rate of the 4G networks (be based on forth generation mobile communication technology) of nest data network can reach 100 MBPSs with On, its downstream rate is no less than family expenses broadband.Because current 4G networks disclosure satisfy that nearly all user for wireless service Requirement, therefore, more and more users have also been accustomed to using the online of 4G networks this cellular data networks.
At present, for supporting the intelligent terminal (such as smart mobile phone) of a variety of cellular data network standards, user is worked as Presently used cellular data network standard (such as 2G, 3G can be shown when being surfed the Net using cellular data network, on intelligent terminal Or 4G).However, when there is situation that the page that intelligent terminal accessed is not opened for a long time, generally require user carry out it is a variety of Online is attempted and (for example attempts to refresh or access other links) to be just capable of determining whether that network goes wrong, waste user when Between.
The content of the invention
In view of this, can the invention provides a kind of network detecting method, network detection means, intelligent terminal and computer Read storage medium, the network state to inform the presently 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, including:
In the state of intelligent terminal uses cellular data network, whether the relevant parameter of the monitoring cellular data network 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 is detected Whether the connectedness of network is not less than default data network quality criteria;
If the connectedness 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 connectedness of presently described cellular data network is less than the data network quality criteria, it is determined that the intelligence Terminal, which is currently at, can not go up net state;
When it is determined that the intelligent terminal is currently at when can go up net state or can not go up net state, output is corresponding network-like State configured information, can go up net state or can not go up net state to indicate that the intelligent terminal is currently at.
Based on first aspect present invention, in the first possible implementation, the presently described cellular data of detection Whether the connectedness of network is not less than default data network quality criteria, including:
The intelligent terminal is triggered to send out to the default network equipment based on the cellular data network and three-way handshake agreement TCP connections are played, wherein, the TCP is transmission control protocol;
If the TCP connections have been set up, judge whether this connection duration connects duration threshold value less than default, its In, it is a length of during the connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated;
If this connection duration judges the connectedness of presently described cellular data network less than the connection duration threshold value It is not less than the data network quality criteria;
If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold value, judge to work as The connectedness of the preceding cellular data network is less than the data network quality criteria.
The first possible implementation based on first aspect present invention or first aspect present invention, can at second In the implementation of energy, when any relevant parameter for listening to the cellular data network changes, the network detection Method also includes:
Judge whether assay intervals are not less than default interval threshold, wherein, the assay intervals are once to be examined before Whether the connectedness for surveying the cellular data network is not less than the time interval of default data network quality criteria;
If judging, the assay intervals are not less than the interval threshold, perform the presently described cellular data of detection The step of whether connectedness of network is not less than default data network quality criteria;
If judge the assay intervals be less than the interval threshold, perform described in use cellular data in intelligent terminal In the state of network, the step of whether relevant parameter for monitoring the cellular data network changes.
Based on the first possible implementation of first aspect present invention, or first aspect present invention, at the third It is described when it is determined that the intelligent terminal is currently at when can go up net state or can not go up net state in possible implementation, it is defeated Go out corresponding network state configured information, including:
When it is determined that the intelligent terminal is currently at when can not go up net state, the status bar of the intelligent terminal will be arranged at In data network Status Flag update or remain the default mark that can not surf the Net;
And/or,
When it is determined that the intelligent terminal is currently at when can go up net state, being arranged in the status bar of the intelligent terminal Data network Status Flag update or remain default mark of surfing the Net.
Based on the first possible implementation of first aspect present invention, or first aspect present invention, at the 4th kind In possible implementation, if the connectedness of presently described cellular data network is less than the data network quality criteria, institute Stating network detecting method also includes:
If the connectedness of presently described cellular data network is does not connect, wait and the intelligence is triggered after preset time eventually End reconnects cellular data network.
The second aspect of the embodiment of the present invention provides a kind of network detection means, including:Monitoring unit, in intelligence Terminal is used in the state of cellular data network, and whether the relevant parameter for monitoring the cellular data network changes, wherein, it is 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 becomes During change, detect whether the connectedness of presently described cellular data network is not less than default data network quality criteria;
Determining unit, is not less than institute for detecting the connectedness of presently described cellular data network 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 is detected When the connectedness of presently described cellular data network is less 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 determining unit determines that the intelligent terminal is currently at net state can be gone up or can not During net state, corresponding network state configured 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 element, the cellular data net is based on for when the detection unit is triggered, triggering the intelligent terminal Network and three-way handshake agreement initiate TCP connections to the default network equipment, wherein, the TCP is transmission control protocol;
Judging unit, for when the TCP connections it is built immediately, judge this connection duration whether be less than default connection Duration threshold value, wherein, it is a length of during the connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated; If this connection duration judges that the connectedness of presently described cellular data network is not less than institute less than the connection duration threshold value State data network quality criteria;If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold Value, then judge that the connectedness of presently described cellular data network is less than the data network quality criteria.
Based on the first possible implementation of second aspect of the present invention, or second aspect of the present invention, at second In possible implementation, the network detection means also includes:
Judging unit is triggered, any relevant parameter for listening to the cellular data network when the monitoring unit goes out When now changing, judge whether assay intervals are not less than default interval threshold;When judging the assay intervals not less than described During interval threshold, the detection unit is triggered, when judging that the assay intervals are less than the interval threshold, the prison is triggered Listen unit.
Third aspect present invention provides a kind of intelligent terminal, including memory, processor and stores on a memory and can The computer program run on a processor, realized during above-mentioned computing device above 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 is provided to be stored with a kind of computer-readable recording medium, the computer-readable recording medium Computer program, above computer program realizes 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 by detecting cellular data network used in intelligent terminal Whether connectedness is not less than default data network quality criteria can go up net state to determine whether the intelligent terminal is currently in, It is determined that the intelligent terminal be in can go up net state or can not on net state when, export corresponding network state configured information, make The network state of presently used cellular data network can be known in time by obtaining user;On the other hand, used in intelligent terminal In the state of cellular data network, whether changed by the relevant parameter for monitoring the cellular data network, when listening to the honeycomb During the relevant parameter change of data network, just detect whether the connectedness of the cellular data network is not less than data network quality base Standard, so as to avoid power wastage caused by excessive detection, reaches the purpose for saving power consumption.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Network detecting method one embodiment schematic flow sheet that Fig. 1-a provide for the present invention;
A kind of specific implementation schematic flow sheet of step 102 in Fig. 1-a that Fig. 1-b provide for the present invention;
Network detecting method another embodiment schematic flow sheet that Fig. 2 provides for the present invention;
Network detection means one embodiment structural representation that Fig. 3 provides for the present invention;
Intelligent terminal one embodiment structural representation that Fig. 4 provides for the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand 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 can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence in following embodiments of the method, respectively The execution sequence of process should determine that the implementation process without tackling each embodiment constitutes any limit with its function and internal logic It is fixed.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
The embodiment of the present invention provides a kind of network detecting method, refers to the network detection in Fig. 1-a, the embodiment of the present invention Method includes:
Step 101, in the state of intelligent terminal uses cellular data network, 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 can include:Network connection and disconnection, the network bandwidth, MTU (MTU, Maximum Transmission Unit), Internet protocol (IP, Internet) address etc..Network formats parameter can With including:Network formats (i.e. 2G networks), 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 networks) based on forth generation mobile communication technology etc..Network signaling parameters can With including:Signal intensity.Therefore, whether the relevant parameter of the above-mentioned cellular data network of above-mentioned monitoring changes and can include but not limit In:Monitor whether above-mentioned cellular data network is changed into connecting or monitors whether above-mentioned cellular data network becomes from connection from disconnection To disconnect;Monitor whether the 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 intensity for monitoring above-mentioned cellular data network changes.It is above-mentioned when listening to Any relevant parameter of cellular data network changes, into step 102, when the correlation for listening to above-mentioned cellular data network When there is not change in parameter, can immediately or wait preset time after return to step 101.
Wherein, above-mentioned network formats parameter, above-mentioned network formats parameter and network signaling parameters can pass through active obtaining Or the serving BS that the mode passively obtained is currently located cell from above-mentioned intelligent terminal is obtained.
Whether step 102, the connectedness of the current above-mentioned cellular data network of detection are not less than default data network quality Benchmark;
Because transmission control protocol (TCP, Transmission Control Protocol) belongs to reliable protocol, therefore, Determine only perform a TCP connection during connectedness of network by TCP, relative to the detection mode based on non-reliable protocol, Data traffic can effectively be saved.For example, when using ping modes (ping modes be based on Internet Control Message Protocol (ICMP, Internet Control Message Protocol), and ICMP is based on UDP (UDP, User Datagram Protocol), UDP is a kind of non-reliable protocol) carry out needing ping just to can determine that network many times during the detection of connectivity of network Connectedness.Therefore it is optional, using the TCP current above-mentioned cellular data network of three-way handshake protocol detection in the embodiment of the present invention Connectedness whether be not less than default data network quality criteria.Specifically, as shown in Fig. 1-b, above-mentioned detection is currently above-mentioned Whether the connectedness of cellular data network is not less than default data network quality criteria, including:
Step 1011, the above-mentioned intelligent terminal of triggering are based on above-mentioned cellular data network and three-way handshake agreement to default net Network equipment initiates TCP connections;
In the embodiment of the present invention, the address information of the above-mentioned network equipment (such as server) can be pre-set, for example mutually Networking protocol (IP, Internet Protocol) address, domain name and port numbers etc.., can be according to default 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 connections.
If step 1012, above-mentioned TCP connections have been set up, judge whether this connection duration is less than default connection duration Threshold value;
In step 1012, it is a length of during above-mentioned connection:It is connected to above-mentioned TCP connections from the above-mentioned TCP of initiation and sets up and is passed through Duration.For example, triggering above-mentioned TCP connections when being located at time T1, above-mentioned TCP connections are successfully established in time T2, then on State connection duration as T2-T1.
If step 1013, this connection duration are less than above-mentioned connection duration threshold value, current above-mentioned intelligent terminal branch is judged The connectedness for the cellular data network held is not less than above-mentioned data network quality criteria;
In step 1013, when judging that this connection duration is less than the connection duration threshold value, it is believed that current data net Network it is connective good, now can determine that the connectedness of current above-mentioned cellular data network is not less than above-mentioned data network quality base It is accurate.
If step 1014, above-mentioned TCP connections can not be set up or this connection duration is not less than above-mentioned connection duration threshold value, Then judge that the connectedness of current above-mentioned cellular data network is less than above-mentioned data network quality criteria;
In step 1014, when the TCP connections that step 1011 is triggered can not be successfully established, it is believed that now above-mentioned honeycomb Data network can not be used, and now can determine that the connectedness of current above-mentioned cellular data network is less than above-mentioned data network quality base It is accurate.When the TCP successful connections that step 1011 is triggered are set up, when this connection duration is not less than above-mentioned connection duration threshold value, then may be used Think the poor connectivity of now above-mentioned cellular data network, now also can determine that the connective low of current above-mentioned cellular data network In above-mentioned data network quality criteria.
In the embodiment of the present invention, when the connectedness for detecting current above-mentioned cellular data network is not less than above-mentioned data network During quality criteria, into step 103, when the connectedness for detecting current above-mentioned cellular data network is less than above-mentioned data network matter When measuring benchmark, into step 104.
Step 103, determine that above-mentioned intelligent terminal is currently at and can go up net state;
In step 103, when the connectedness that current above-mentioned cellular data network is detected by step 102 be not less than it is above-mentioned During data network quality criteria, it may be determined that above-mentioned intelligent terminal, which is currently at, can go up net state.
Step 104, determine that above-mentioned intelligent terminal is currently at and can not go up net state;
At step 104, when the connectedness that current above-mentioned cellular data network is detected by step 102 is less than above-mentioned number During 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 it is determined that above-mentioned intelligent terminal is currently at when can go up net state or can not go up net state, output is corresponding Network state configured 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 allow users to know the cellular data that above-mentioned intelligent terminal is currently used in time 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 configured information, so that the real-time network state of above-mentioned intelligent terminal can be known in time by obtaining user.
In a kind of application scenarios, step 105 can include:When it is determined that above-mentioned intelligent terminal be currently at can not go up it is netted During state, by the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal update or remain it is default can not on Network mark remember, so as to user view this can not surf the Net mark when, would know that the intelligent terminal is currently at can not go up net state. Specifically, no data in net state, and the status bar of above-mentioned intelligent terminal can not be gone up when determining that above-mentioned intelligent terminal is currently at During network state mark, the mark that can not surf the Net is set in the status bar of above-mentioned intelligent terminal;When it is determined that above-mentioned intelligent terminal is worked as Preceding be in can not go up net state, and the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal is to surf the Net During mark, above-mentioned data network Status Flag is remained into the mark that can not surf the Net (namely not to above-mentioned data network Status Flag It is modified).
In another application scenarios, step 105 can include:When it is determined that above-mentioned intelligent terminal be currently at can go up it is netted During state, the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal is updated or remained default surf the Net Mark, so as to user view this can surf the Net mark when, would know that the intelligent terminal is currently at can go up net state.Specifically , when it is determined that above-mentioned intelligent terminal is currently at, can to go up no data in net state, and the status bar of above-mentioned intelligent terminal network-like During state mark, the mark that can surf the Net is set in above-mentioned status bar;When it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state, and When the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal marks for that can surf the Net, by above-mentioned data network shape State mark remains the mark that can surf the Net (namely not being modified to above-mentioned data network Status Flag).
In another application scenarios, step 105 can include:When it is determined that above-mentioned intelligent terminal is currently to surf the Net During state, by the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal update or remain it is default can not Online mark;When it is determined that above-mentioned intelligent terminal is currently at when can go up net state, the status bar of above-mentioned intelligent terminal will be arranged at In data network Status Flag update or remain default mark of surfing the Net, so as to user view this can not on network mark Clock, would know that the intelligent terminal is currently at can not go up net state, or, when user view this can surf the Net 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 When data network Status Flag in state, and the status bar of above-mentioned intelligent terminal marks for that can surf the Net, by above-mentioned network state mark Will is updated to the mark that can not surf the Net;When it is determined that above-mentioned intelligent terminal, which is currently at, can not go up net state, and it is arranged at above-mentioned intelligence When data network Status Flag in the status bar of terminal marks for that can not surf the Net, above-mentioned data network Status Flag is remained Can not be surfed the Net mark, when it is determined that above-mentioned intelligent terminal is currently at can go up in net state, and the status bar of above-mentioned intelligent terminal When data network Status Flag marks for that can not surf the Net, above-mentioned data network Status Flag is updated to the mark that can surf the Net;When true Fixed above-mentioned intelligent terminal, which is currently at, can go up net state, and the data network state being arranged in the status bar of above-mentioned intelligent terminal Be masked as surfing the Net mark when, above-mentioned data network Status Flag is remained into the mark that can surf the Net.
Further, in embodiments of the present invention, due to detecting the connectedness of current above-mentioned cellular data network in step 102 During whether being not less than data network quality criteria, the connectedness of current above-mentioned cellular data network can be known whether not Connection (such as when the TCP connections that step 102 is referred to can not be set up, it is believed that the connectedness of above-mentioned cellular data network is Do not connect), therefore, if the connectedness of current above-mentioned cellular data network may wait for after preset time in triggering not connect State intelligent terminal and reconnect 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 means, it is above-mentioned Network detection means can be independent equipment, or can also be integrated in intelligent terminal (such as mobile phone, tablet personal computer) or In miscellaneous equipment, it is not construed as limiting herein.
Therefore, in the present invention program, on the one hand by detecting cellular data network used in intelligent terminal Whether connectedness is not less than default data network quality criteria can go up net state to determine whether the intelligent terminal is currently in, It is determined that the intelligent terminal be in can go up net state or can not on net state when, export corresponding network state configured information, make The network state of presently used cellular data network can be known in time by obtaining user;On the other hand, used in intelligent terminal In the state of cellular data network, whether changed by the relevant parameter for monitoring the cellular data network, when listening to the honeycomb During the relevant parameter change of data network, just detect whether the connectedness of the cellular data network is not less than data network quality base Standard, so as to avoid power wastage caused by excessive detection, reaches the purpose for saving power consumption.
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, determine whether whether assay intervals are less than default interval threshold, further may be used To avoid power wastage caused by excessive detection, the purpose for further saving power consumption is reached.As shown in Fig. 2 the present invention is real The network detecting method applied in example includes:
Step 201, in the state of intelligent terminal uses cellular data network, 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 can include:Network connection and disconnection, the network bandwidth, MTU (MTU, Maximum Transmission Unit), Internet protocol (IP, Internet) address etc..Network formats parameter can With including:Network formats (i.e. 2G networks), 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 networks) based on forth generation mobile communication technology etc..Network signaling parameters can With including:Signal intensity.Therefore, whether the relevant parameter of the above-mentioned cellular data network of above-mentioned monitoring changes and can include but not limit In:Monitor whether above-mentioned cellular data network is changed into connecting or monitors whether above-mentioned cellular data network becomes from connection from disconnection To disconnect;Monitor whether the 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 intensity for monitoring above-mentioned cellular data network changes.It is above-mentioned when listening to Any relevant parameter of cellular data network changes, into step 202, when the correlation for listening to above-mentioned cellular data network When there is not change in parameter, can immediately or wait preset time after return to step 201.
Wherein, above-mentioned network formats parameter, above-mentioned network formats parameter and network signaling parameters can pass through active obtaining Or the serving BS that the mode passively obtained is currently located cell from above-mentioned intelligent terminal is obtained.
Step 202, judge assay intervals whether be not less than default interval threshold;
In the embodiment of the present invention, above-mentioned assay intervals are for the connectedness apart from the above-mentioned cellular data network of preceding one-time detection The no time interval for being not less than default data network quality criteria.For example, the above-mentioned cellular data net of one-time detection before setting It is (i.e. preceding once to trigger holding for step 203 for T1 whether the connectedness of network is not less than the time of default data network quality criteria The capable time is T1), current time is T2, then above-mentioned assay intervals are T2-T1.
In step 202., when judging that above-mentioned assay intervals are not less than above-mentioned interval threshold, into step 203, when sentencing Break when above-mentioned assay intervals less than above-mentioned interval threshold, above-mentioned steps can be returned to immediately or after waiting default certain time 201。
Whether step 203, the connectedness of the current above-mentioned cellular data network of detection are not less than default data network quality Benchmark;
In step 203, when the connectedness for detecting current above-mentioned cellular data network is not less than above-mentioned data network matter When measuring benchmark, into step 204, when the connectedness for detecting current above-mentioned cellular data network is less than above-mentioned data network quality During benchmark, into step 205.
Specifically, step 203 is referred to the description of step 102 in Fig. 1-a illustrated embodiments, and here is omitted.
Step 204, determine that above-mentioned intelligent terminal is currently at and can go up net state;
In step 204, when the connectedness that current above-mentioned cellular data network is detected by step 203 be not less than it is above-mentioned During data network quality criteria, it may be determined that above-mentioned intelligent terminal, which is currently at, can go up net state.
Step 205, determine that above-mentioned intelligent terminal is currently at and can not go up net state;
In step 205, when the connectedness that current above-mentioned cellular data network is detected by step 203 is less than above-mentioned number During 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 it is determined that above-mentioned intelligent terminal is currently at when can go up net state or can not go up net state, output is corresponding Network state configured 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 allow users to know the cellular data that above-mentioned intelligent terminal is currently used in time 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 configured information, so that the real-time network state of above-mentioned intelligent terminal can be known in time by obtaining user.
In a kind of application scenarios, step 106 can include:When it is determined that above-mentioned intelligent terminal be currently at can not go up it is netted During state, by the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal update or remain it is default can not on Network mark remember, so as to user view this can not surf the Net mark when, would know that the intelligent terminal is currently at can not go up net state. Specifically, no data in net state, and the status bar of above-mentioned intelligent terminal can not be gone up when determining that above-mentioned intelligent terminal is currently at During network state mark, the mark that can not surf the Net is set in the status bar of above-mentioned intelligent terminal;When it is determined that above-mentioned intelligent terminal is worked as Preceding be in can not go up net state, and the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal is to surf the Net During mark, above-mentioned data network Status Flag is remained into the mark that can not surf the Net (namely not to above-mentioned data network Status Flag It is modified).
In another application scenarios, step 106 can include:When it is determined that above-mentioned intelligent terminal be currently at can go up it is netted During state, the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal is updated or remained default surf the Net Mark, so as to user view this can surf the Net mark when, would know that the intelligent terminal is currently at can go up net state.Specifically , when it is determined that above-mentioned intelligent terminal is currently at, can to go up no data in net state, and the status bar of above-mentioned intelligent terminal network-like During state mark, the mark that can surf the Net is set in above-mentioned status bar;When it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state, and When the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal marks for that can surf the Net, by above-mentioned data network shape State mark remains the mark that can surf the Net (namely not being modified to above-mentioned data network Status Flag).
In another application scenarios, step 106 can include:When it is determined that above-mentioned intelligent terminal is currently to surf the Net During state, by the data network Status Flag being arranged in the status bar of above-mentioned intelligent terminal update or remain it is default can not Online mark;When it is determined that above-mentioned intelligent terminal is currently at when can go up net state, the status bar of above-mentioned intelligent terminal will be arranged at In data network Status Flag update or remain default mark of surfing the Net, so as to user view this can not on network mark Clock, would know that the intelligent terminal is currently at can not go up net state, or, when user view this can surf the Net 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 When data network Status Flag in state, and the status bar of above-mentioned intelligent terminal marks for that can surf the Net, by above-mentioned network state mark Will is updated to the mark that can not surf the Net;When it is determined that above-mentioned intelligent terminal, which is currently at, can not go up net state, and it is arranged at above-mentioned intelligence When data network Status Flag in the status bar of terminal marks for that can not surf the Net, above-mentioned data network Status Flag is remained Can not be surfed the Net mark, when it is determined that above-mentioned intelligent terminal is currently at can go up in net state, and the status bar of above-mentioned intelligent terminal When data network Status Flag marks for that can not surf the Net, above-mentioned data network Status Flag is updated to the mark that can surf the Net;When true Fixed above-mentioned intelligent terminal, which is currently at, can go up net state, and the data network state being arranged in the status bar of above-mentioned intelligent terminal Be masked as surfing the Net mark when, above-mentioned data network Status Flag is remained into the mark that can surf the Net.
Further, in embodiments of the present invention, due to detecting the connectedness of current above-mentioned cellular data network in step 203 During whether being not less than data network quality criteria, be can know current above-mentioned cellular data network it is connective whether It is disconnected (such as when the TCP connections that step 102 is referred to can not be set up, it is believed that the connectedness of above-mentioned cellular data network Not connect), it can now wait and above-mentioned intelligent terminal is triggered after preset time 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 means, it is above-mentioned Network detection means can be independent equipment, or can also be integrated in intelligent terminal (such as mobile phone, tablet personal computer) or In miscellaneous equipment, it is not construed as limiting herein.
Therefore, in the present invention program, on the one hand by detecting cellular data network used in intelligent terminal Whether connectedness is not less than default data network quality criteria can go up net state to determine whether the intelligent terminal is currently in, It is determined that the intelligent terminal be in can go up net state or can not on net state when, export corresponding network state configured information, make The network state of presently used cellular data network can be known in time by obtaining user;On the other hand, used in intelligent terminal In the state of cellular data network, whether changed by the relevant parameter for monitoring the cellular data network, when listening to the honeycomb During the relevant parameter change of data network, just detect whether the connectedness of the cellular data network is not less than data network quality base Standard, so as to avoid power wastage caused by excessive detection, reaches the purpose for saving power consumption.
Embodiment three
The embodiment of the present invention also provides a kind of network detection means, as shown in figure 3, the network detection in the embodiment of the present invention Device 300 includes:
Monitoring unit 301, in the state of using cellular data network in intelligent terminal, monitors the cellular data net 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 occurs During change, detect whether the connectedness of presently described cellular data network is not less than default data network quality criteria;
Determining unit 303, the connectedness for detecting presently described cellular data network when detection unit 302 is not less than During the data network quality criteria, net state can be gone up by determining that the intelligent terminal is currently at;When detection unit 302 is detected When the connectedness of presently described cellular data network is less 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 determining unit 303 determines that the intelligent terminal is currently at net state can be gone up or can not During upper net state, export corresponding network state configured 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 element, for when detection unit 302 is triggered, triggering the intelligence Terminal is based on the cellular data network and three-way handshake agreement and initiates TCP connections to the default network equipment, wherein, it is described TCP is transmission control protocol;Judging unit, for when the TCP connections it is built immediately, judge this connection duration whether be less than Default connection duration threshold value, wherein, it is a length of during the connection:The TCP connections foundation is connected to from the initiation TCP to be passed through The duration crossed;If this connection duration judges the connection of presently described cellular data network less than the connection duration threshold value Property is not less than the data network quality criteria;If the TCP connections can not be set up or this connection duration be not less than it is described Duration threshold value is connected, then judges that the connectedness of presently described cellular data network is less than the data network quality criteria.
Optionally, the network detection means in the embodiment of the present invention also includes:Judging unit is triggered, for working as monitoring unit When the 301 any relevant parameters for listening to the cellular data network change, judge assay intervals whether not less than default Interval threshold;When judging that the assay intervals are not less than the interval threshold, detection trigger unit 302, when judging When the assay intervals are less than the interval threshold, monitoring unit 301 is triggered.
Optionally, output unit 304 specifically for:When determining 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 being arranged in the status bar of above-mentioned intelligent terminal is updated or kept For the default mark that can not surf the Net;And/or, when determining unit 303 determine above-mentioned intelligent terminal be currently at can go up net state when, The network state mark being arranged in the status bar of above-mentioned intelligent terminal is updated or remained default mark of surfing the Net.
Optionally, the network detection means in the embodiment of the present invention may also include:Unit is reconnected, in presently described honeybee The connectedness of nest data network triggers the intelligent terminal reconnect cellular data net when not connecting, to wait after preset time Network.
It should be noted that the network detection means in the embodiment of the present invention can be independent equipment, or can also It is integrated in intelligent terminal (such as mobile phone, tablet personal computer) or miscellaneous equipment, is not construed as limiting herein.
Therefore, in embodiments of the present invention, on the one hand by detecting cellular data network used in intelligent terminal Connectedness whether be not less than default data network quality criteria determine the intelligent terminal currently whether in can go up it is netted State, it is determined that the intelligent terminal be in can go up net state or can not on net state when, export corresponding network state configured information, User is allowd to know the network state of presently used cellular data network in time;On the other hand, make in intelligent terminal In the state of cellular data network, whether changed by the relevant parameter for monitoring the cellular data network, when listening to the honeybee During the relevant parameter change of nest data network, just detect whether the connectedness of the cellular data network is not less than data network quality Benchmark, so as to avoid power wastage caused by excessive detection, reaches the purpose for saving power consumption.
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 used to store software program and module, and processor 402 is deposited by operation The software program and unit in memory 401 are stored up, so as to perform various function application and data processing.Specifically, handle Device 402 realizes following steps when being stored in the above computer program of memory 401 by operation:
In the state of intelligent terminal uses cellular data network, whether the relevant parameter of the monitoring cellular data network 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 is detected Whether the connectedness of network is not less than default data network quality criteria;
If the connectedness 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 connectedness of presently described cellular data network is less than the data network quality criteria, it is determined that the intelligence Terminal, which is currently at, can not go up net state;
When it is determined that the intelligent terminal is currently at when can go up net state or can not go up net state, output is corresponding network-like State configured information, can go up net state or can not go up net state to indicate that the intelligent terminal is currently at.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, it is default whether the connectedness of the presently described cellular data network of the detection is not less than Data network quality criteria, including:
The intelligent terminal is triggered to send out to the default network equipment based on the cellular data network and three-way handshake agreement TCP connections are played, wherein, the TCP is transmission control protocol;
If the TCP connections have been set up, judge whether this connection duration connects duration threshold value less than default, its In, it is a length of during the connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated;
If this connection duration judges the connectedness of presently described cellular data network less than the connection duration threshold value It is not less than the data network quality criteria;
If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold value, judge to work as The connectedness of the preceding cellular data network is less than the data network quality criteria.
There 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 realizes following steps when being stored in the above computer program of memory 401 by operation:
Judge whether assay intervals are not less than default interval threshold, wherein, the assay intervals are once to be examined before Whether the connectedness for surveying the cellular data network is not less than the time interval of default data network quality criteria;
If judging, the assay intervals are not less than the interval threshold, perform the presently described cellular data of detection The step of whether connectedness of network is not less than default data network quality criteria;
If judge the assay intervals be less than the interval threshold, perform described in use cellular data in intelligent terminal In the state of network, the step of whether relevant parameter for monitoring the cellular data network changes.
There 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 During state, corresponding network state configured information is exported, including:
When it is determined that the intelligent terminal is currently at when can not go up net state, the status bar of the intelligent terminal will be arranged at In data network Status Flag update or remain the default mark that can not surf the Net;
And/or,
When it is determined that the intelligent terminal is currently at when can go up net state, being arranged in the status bar of the intelligent terminal Data network Status Flag update or remain default mark of surfing the Net.
There 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 connectedness of presently described cellular data network be less than the data network quality base Standard, then realize following steps when processor 402 is stored in the above computer program of memory 401 by operation:
If the connectedness of presently described cellular data network is does not connect, wait and the intelligence is triggered after preset time eventually End reconnects cellular data network.
Further, as shown in figure 4, above-mentioned intelligent terminal may also include:One or more input equipments 403 (only show in Fig. 4 Go out one) 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 CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 403 can include keyboard, Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and The directional information of fingerprint), microphone etc., output equipment 404 can include display, loudspeaker etc..
Memory 404 can include read-only storage and random access memory, and provide instruction sum 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 by detecting cellular data network used in intelligent terminal Connectedness whether be not less than default data network quality criteria determine the intelligent terminal currently whether in can go up it is netted State, it is determined that the intelligent terminal be in can go up net state or can not on net state when, export corresponding network state configured information, User is allowd to know the network state of presently used cellular data network in time;On the other hand, make in intelligent terminal In the state of cellular data network, whether changed by the relevant parameter for monitoring the cellular data network, when listening to the honeybee During the relevant parameter change of nest data network, just detect whether the connectedness of the cellular data network is not less than data network quality Benchmark, so as to avoid power wastage caused by excessive detection, reaches the purpose for saving power consumption.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different Functional unit, module are completed, i.e., the internal structure of said apparatus is divided into different functional unit or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, 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 apparatus and method, others can be passed through Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit, It is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
If above-mentioned integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-described embodiment side All or part of flow in method, can also instruct the hardware of correlation to complete, above-mentioned computer by computer program Program can be stored in a computer-readable recording medium, and the computer program can be achieved above-mentioned each when being executed by processor The step of individual embodiment of the method.Wherein, above computer program includes computer program code, and above computer program code can Think source code form, object identification code form, executable file or some intermediate forms etc..Above computer computer-readable recording medium can be with Including:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, light of above computer program code can be carried Disk, computer storage, read-only storage (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 computer The content that computer-readable recording medium is included can carry out appropriate increase and decrease according to legislation in jurisdiction and the requirement of patent practice, for example In some jurisdictions, according to legislation and patent practice, computer-readable medium does not include being 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 with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of network detecting method, it is characterised in that including:
In the state of 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 Connectedness whether be not less than default data network quality criteria;
If the connectedness 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 connectedness of presently described cellular data network is less 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 it is determined that the intelligent terminal is currently at when can go up net state or can not go up net state, the corresponding network state of output refers to Show information, can go up net state to indicate that the intelligent terminal is currently at or can not go up net state.
2. network detecting method according to claim 1, it is characterised in that the presently described cellular data network of detection Connectedness whether be not less than default data network quality criteria, including:
Trigger the intelligent terminal and be based on the cellular data network and three-way handshake agreement to default network equipment initiation TCP Connection, wherein, the TCP is transmission control protocol;
If the TCP connections have been set up, whether this connection duration is judged less than default connection duration threshold value, wherein, institute State a length of during connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated;
If this connection duration is less than the connection duration threshold value, judge that the connectedness of presently described cellular data network is not low In the data network quality criteria;
If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold value, current institute is judged The connectedness for stating cellular data network is less than the data network quality criteria.
3. network detecting method according to claim 1 or 2, it is characterised in that when listening to the cellular data network Any relevant parameter when changing, the network detecting method also includes:
Judge whether assay intervals are not less than default interval threshold, wherein, the assay intervals is apart from preceding one-time detection institutes Whether the connectedness for stating cellular data network is not less than the time interval of default data network quality criteria;
If judging, the assay intervals are not less than the interval threshold, perform the presently described cellular data network of detection Connectedness the step of whether be not less than default data network quality criteria;
If judge the assay intervals be less than the interval threshold, perform described in use cellular data network in intelligent terminal In the state of, the step of whether relevant parameter for monitoring the cellular data network changes.
4. network detecting method according to claim 1 or 2, it is characterised in that described when the determination intelligent terminal is worked as It is preceding in when can go up net state or net state can not be gone up, exporting corresponding network state configured information, including:
When it is determined that the intelligent terminal is currently at when can not go up net state, being arranged in the status bar of the intelligent terminal Data network Status Flag updates or remained the default mark that can not surf the Net;
And/or,
When it is determined that the intelligent terminal is currently at when can go up net state, the number in the status bar of the intelligent terminal will be arranged at Updated according to network state mark or remain default mark of surfing the Net.
5. network detecting method according to claim 1 or 2, it is characterised in that if presently described cellular data network Connectedness is less than the data network quality criteria, then the network detecting method also includes:
If the connectedness of presently described cellular data network triggers the intelligent terminal weight not connect after waiting preset time New connection cellular data network.
6. a kind of network detection means, it is characterised in that including:
Monitoring unit, in the state of using cellular data network in intelligent terminal, monitors the phase of the cellular data network Whether related 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 changes When, detect whether the connectedness of presently described cellular data network is not less than default data network quality criteria;
Determining unit, is not less than the number for detecting the connectedness of presently described cellular data network when the detection unit During according to network quality benchmark, net state can be gone up by determining that the intelligent terminal is currently at;When the detection unit is detected currently When the connectedness of the cellular data network is less 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 determining unit determines that the intelligent terminal is currently at or can not go up netted During state, export corresponding network state configured information, with indicate the intelligent terminal be currently at can go up net state or can not on Net state.
7. network detection means according to claim 6, it is characterised in that the detection unit includes:
Trigger element, for when the detection unit is triggered, trigger the intelligent terminal be based on the cellular data network and Three-way handshake agreement initiates TCP connections to the default network equipment, wherein, the TCP is transmission control protocol;
Judging unit, for when the TCP connections it is built immediately, judge this connection duration whether be less than default connection duration Threshold value, wherein, it is a length of during the connection:The passed through duration of the TCP connections foundation is connected to from the TCP is initiated;If this Secondary connection duration then judges that the connectedness of presently described cellular data network is not less than the number less than the connection duration threshold value According to network quality benchmark;If the TCP connections can not be set up or this connection duration is not less than the connection duration threshold value, Judge that the connectedness of presently described cellular data network is less than the data network quality criteria.
8. the network detection means according to claim 6 or 7, it is characterised in that the network detection means also includes:
Judging unit is triggered, any relevant parameter for listening to the cellular data network when the monitoring unit becomes During change, judge whether assay intervals are not less than default interval threshold;When judge the assay intervals be not less than the interval During threshold value, the detection unit is triggered, when judging that the assay intervals are less than the interval threshold, the monitoring is triggered single Member.
9. a kind of intelligent terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the step of realizing such as any one of claim 1 to 5 methods described when the computer program is executed by processor.
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 true CN107333287A (en) 2017-11-07
CN107333287B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831359A (en) * 2019-02-01 2019-05-31 维沃移动通信有限公司 A kind of detection method and its terminal device of data network connection state
CN109996250A (en) * 2017-12-29 2019-07-09 洛阳中科晶上智能装备科技有限公司 The method for detecting TCP connection state
CN111770522A (en) * 2020-06-05 2020-10-13 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for identifying data dialing abnormity
WO2021238520A1 (en) * 2020-05-28 2021-12-02 Oppo广东移动通信有限公司 Method and apparatus for controlling wearable device, and electronic device and storage medium
CN113765736A (en) * 2021-07-23 2021-12-07 深圳市智微智能科技股份有限公司 android device network stabilizing method, system, terminal and storage medium
CN115278932A (en) * 2022-07-14 2022-11-01 Oppo广东移动通信有限公司 Network reconnection method, device, terminal equipment 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

Cited By (6)

* 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
CN109831359A (en) * 2019-02-01 2019-05-31 维沃移动通信有限公司 A kind of detection method and its terminal device of data network connection state
WO2021238520A1 (en) * 2020-05-28 2021-12-02 Oppo广东移动通信有限公司 Method and apparatus for controlling wearable device, and electronic device and storage medium
CN111770522A (en) * 2020-06-05 2020-10-13 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for identifying data dialing abnormity
CN113765736A (en) * 2021-07-23 2021-12-07 深圳市智微智能科技股份有限公司 android device network stabilizing method, system, terminal and storage medium
CN115278932A (en) * 2022-07-14 2022-11-01 Oppo广东移动通信有限公司 Network reconnection method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN107333287B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN107333287A (en) Network detecting method, network detection means and intelligent terminal
CN107295594B (en) Method for switching network, device and mobile terminal
CN107517136B (en) Method, device and system for realizing heartbeat keep-alive
CN107241689A (en) A kind of earphone voice interactive method and its device, terminal device
CN106102143A (en) A kind of application processing method and device
CN107707653A (en) A kind of advertisement sending method, device and vehicle intelligent equipment
CN105025506B (en) A kind of method of cloud AC remote managements AP equipment
CN111416412B (en) Charging control method and device and terminal equipment
CN107294811A (en) Network detecting method, network detection means and intelligent terminal
CN110290030A (en) Network state detection method, apparatus, electronic equipment and computer-readable medium
CN107241758A (en) Network control method, network control unit and intelligent terminal
CN107613536A (en) Select method, apparatus, mobile terminal and the readable storage medium storing program for executing of network
CN108494972A (en) A kind of message prompt method, prompting message device and mobile terminal
CN107332740A (en) A kind of network detecting method, network detection means and intelligent terminal
CN107197493B (en) A kind of method for switching network, network switching device and intelligent terminal
CN107332741B (en) A kind of network detecting method, network detection device and intelligent terminal
CN109743212A (en) Realize method, apparatus, computer storage medium and the equipment of opening base station
CN107277896B (en) Wifi hotspot management method, device and terminal device
CN104883290A (en) Contact person online status notification method and apparatus
CN107231647A (en) Network detecting method, network detection means and intelligent terminal
CN107343326A (en) A kind of data transmission method and device
CN107332739B (en) Network detecting method, network detection device and intelligent terminal
CN111008090A (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN105659642A (en) Charging processing method, centralized network control node, function node and system
CN107276856A (en) Network detecting method, network detection means and intelligent terminal

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