Nothing Special   »   [go: up one dir, main page]

CN107231647A - 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
CN107231647A
CN107231647A CN201710655791.5A CN201710655791A CN107231647A CN 107231647 A CN107231647 A CN 107231647A CN 201710655791 A CN201710655791 A CN 201710655791A CN 107231647 A CN107231647 A CN 107231647A
Authority
CN
China
Prior art keywords
intelligent terminal
state
network
transmitting
net
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
CN201710655791.5A
Other languages
Chinese (zh)
Other versions
CN107231647B (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 CN201710655791.5A priority Critical patent/CN107231647B/en
Publication of CN107231647A publication Critical patent/CN107231647A/en
Application granted granted Critical
Publication of CN107231647B publication Critical patent/CN107231647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (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:Under the networking state of intelligent terminal, periodic triggers detect to the TCP of intelligent terminal and obtain the reiving/transmitting state of TCP data bag;If the continuous N1 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, network detection is carried out to intelligent terminal based on HTTP, http testing results are obtained;If the reiving/transmitting state got is that TCP data pack receiving and transmitting is normal and http testing results indicate network-in-dialing, it is determined that intelligent terminal, which is currently at, can go up net state;When it is determined that intelligent terminal is currently at when can go up net state, exporting default configured information of surfing the Net.The technical scheme that the present invention is provided can improve the accuracy of network detection, and inform the network state of the current connected 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, wireless network, particularly WLAN (WLAN, Wireless Local Area Net) various aspects are obtained for extensive use in life.Because WLAN need not be connected up, and transmission speed Comparatively fast, it is thus possible to make up the deficiency of limited LAN well.And current almost all of intelligent terminal is all supported by nothing Line fidelity (WiFi, Wireless Fidelity) accesses the focus (i.e. Hotspot) of WLAN to realize function of surfing the Net.
However, due to network congestion or network prescribe a time limit online etc. reason, in the case where having connected network, often occur The situation that the page accessed is not opened for a long time, in this case, it is necessary to which user, which carries out a variety of online, attempts (such as trial brush The new or other links of access) just it is capable of determining whether that network goes wrong, waste the time of user.
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, it is intended to improve the accuracy of network detection, and inform the network state of the current connected network of user in time.
The first aspect of the embodiment of the present invention provides a kind of network detecting method, including:
Under the networking state of intelligent terminal, periodic triggers detect to the TCP of the intelligent terminal and obtain TCP data The reiving/transmitting state of bag, wherein, the networking state is the state for having connected wireless network, and the TCP refers to transmission control protocol, institute The reiving/transmitting state for stating TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is abnormal;
If the continuous N1 times reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, based on Hyper text transfer Agreement carries out network detection to the intelligent terminal, obtains http testing results, wherein, the http testing results indicate network Do not connect or network-in-dialing, wherein, the N1 is the natural number not less than 1;
If the continuous N2 times reiving/transmitting state got is that TCP data pack receiving and transmitting is normal and the http testing results Indicate network-in-dialing, it is determined that the intelligent terminal, which is currently at, can go up net state, wherein, the N2 is more than N1;
When it is determined that the intelligent terminal is currently at when can go up net state, exporting default configured information of surfing the Net, to refer to Net state can be gone up by showing that the intelligent terminal is currently at.
Based on first aspect present invention, in the first possible implementation, the default instruction of surfing the Net of output Information, including:
Can surf the Net configured information in the status bar of the intelligent terminal described in display.
The first possible implementation based on first aspect present invention, in second of possible implementation, institute If state the reiving/transmitting state got for continuous N1 time be TCP data pack receiving and transmitting normally, based on HTTP pair The intelligent terminal carries out network detection, is:
If the continuous N1 times reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, and the intelligent terminal is worked as The configured information that can surf the Net is not shown in preceding status bar, then net is carried out to the intelligent terminal based on HTTP Network is detected;
If the continuous N1 times reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, and the intelligent terminal is worked as The configured information that can surf the Net is shown in preceding status bar, it is determined that the intelligent terminal, which is currently at, can go up net state.
Based on first aspect present invention, the either possible implementation of the first of first aspect present invention or this hair Second of possible implementation of bright first aspect, in the third possible implementation, if get for continuous N1 times The reiving/transmitting state is that TCP data pack receiving and transmitting is normal, then the network detecting method also includes:
The TCP of the intelligent terminal is detected with default another cycle triggering and the reiving/transmitting state of TCP data bag is obtained, With the frequency for the reiving/transmitting state for improving TCP detections and acquisition TCP data bag.
Based on first aspect present invention, the either possible implementation of the first of first aspect present invention or this hair Second of possible implementation of bright first aspect, it is described to be based on Hyper text transfer in the 4th kind of possible implementation Agreement carries out network detection to the intelligent terminal, obtains http testing results, including:
HTTP connection request is sent respectively to default N number of server;
It is successfully established when based on the HTTP connection request with any server in N number of server During connection, it is network-in-dialing to determine the http testing results;
It can not succeed when based on the HTTP connection request with any server in N number of server When setting up connection, determine that the http testing results do not connect for network.
The second aspect of the embodiment of the present invention provides a kind of network detection means, including:Acquiring unit, in intelligence Under the networking state of terminal, periodic triggers detect to the TCP of the intelligent terminal and obtain the reiving/transmitting state of TCP data bag, Wherein, the networking state is the state for having connected wireless network, and the TCP refers to transmission control protocol, the TCP data bag Reiving/transmitting state is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is abnormal;
Http detection units, for being TCP numbers when the reiving/transmitting state that the acquiring unit is got for continuous N1 times According to pack receiving and transmitting it is normal when, based on HTTP to the intelligent terminal carry out network detection, obtain http testing results, Wherein, the http testing results indicate that network is not connected or network-in-dialing, wherein, the N1 is the natural number not less than 1;
Determining unit, for being TCP data bag when the reiving/transmitting state that the acquiring unit is got for continuous N2 times When receiving and dispatching the http testing results instruction network-in-dialing that normal and described http detection units are obtained, the intelligence is determined eventually End, which is currently at, can go up net state, wherein, the N2 is more than N1;
Network state indicating member, for net state can be gone up when the determining unit determines that the intelligent terminal is currently at When, default configured information of surfing the Net is exported, net state can be gone up to indicate that the intelligent terminal is currently at.
Based on second aspect of the present invention, in the first possible implementation, the network state indicating member is specific For:When the determining unit determine the intelligent terminal be currently at can go up net state when, in the state of the intelligent terminal Can surf the Net configured information in column described in display.
The first possible implementation based on second aspect of the present invention, in second of possible implementation, institute State http detection units specifically for:When the reiving/transmitting state that the acquiring unit is got for continuous N1 times is TCP data Pack receiving and transmitting is normal, and do not shown in the current status bar of the intelligent terminal it is described can surf the Net configured information when, based on hypertext Host-host protocol carries out network detection to the intelligent terminal;
The determining unit is additionally operable to:When the reiving/transmitting state that the acquiring unit is got for continuous N1 times is TCP Data pack receiving and transmitting is normal, and shown in the current status bar of the intelligent terminal it is described can surf the Net configured information when, determine institute Net state can be gone up by stating intelligent terminal and being currently at.
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, under the networking state of intelligent terminal, periodic triggers are to the intelligent terminal TCP is detected and is obtained the reiving/transmitting state of TCP data bag, and the above-mentioned reiving/transmitting state got at continuous N1 times is TCP numbers According to pack receiving and transmitting it is normal when, based on HTTP to the intelligent terminal carry out network detection, obtain http testing results, When the above-mentioned reiving/transmitting state continuously acquired is normal TCP data pack receiving and transmitting and http testing results instruction network-in-dialing, Net state can be gone up by determining that the intelligent terminal is currently at.Pass through combination TCP detection modes and the net based on HTTP Network detection mode, can avoid causing the inaccurate situation of testing result using single network detection mode, improve network inspection The accuracy of survey, in addition, the present invention is it is determined that the intelligent terminal is currently at when can go up net state, default surf the Net of output refers to Show information, so that the network state of current connected network can be known in time by obtaining user.
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 provides 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, referring to Fig. 1, the network detection side in the embodiment of the present invention Method includes:
Step 101, under the networking state of intelligent terminal, periodic triggers are detected and obtained to the TCP of above-mentioned intelligent terminal Take the reiving/transmitting state of TCP data bag;
In the embodiment of the present invention, above-mentioned networking state is the state for having connected wireless network.Above-mentioned TCP is biography transport control protocol Discuss writing a Chinese character in simplified form for (i.e. Transmission Control Protocol).
In the embodiment of the present invention, above-mentioned TCP detections are also referred to as TCP tests in some scenarios.Above-mentioned triggering is to above-mentioned The TCP detections of intelligent terminal may include following process:Above-mentioned intelligent terminal is triggered to send TCP data bag and capture the TCP of return Packet.The reiving/transmitting state of above-mentioned TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is different Often.Wherein, TCP data pack receiving and transmitting is just referring to that the TCP numbers of return can be received in preset time after TCP data bag is sent According to bag, TCP data pack receiving and transmitting refers to that the TCP data of return can not be received in preset time after TCP data bag is sent extremely Bag.
Specifically, TCP detection process is referred to prior art realization, here is omitted.
If step 102, the above-mentioned reiving/transmitting state got for continuous N1 times are that TCP data pack receiving and transmitting is normal, based on super Text transfer protocol (HTTP, HyperText Transfer Protocol) carries out network detection to above-mentioned intelligent terminal, obtains Http testing results;
Wherein, above-mentioned http testing results indicate that network is not connected or network-in-dialing, wherein, above-mentioned N1 is not less than 1 Natural number.In the embodiment of the present invention, when the above-mentioned reiving/transmitting state got for continuous N1 times is that TCP data pack receiving and transmitting is normal, HTTP detections are triggered, namely network detection is carried out to above-mentioned intelligent terminal based on HTTP.
Optionally, being included based on HTTP to the progress network detection of above-mentioned intelligent terminal in step 102:To default n Server sends HTTP connection requests respectively;If above-mentioned intelligent terminal is based on above-mentioned HTTP connection requests and above-mentioned n server In any server be successfully established connection, it is determined that when secondary http testing results be network-in-dialing;If above-mentioned intelligent terminal It can not be successfully established and be connected with any server in above-mentioned N number of server based on above-mentioned HTTP connection requests, it is determined that when secondary Http testing results do not connect for network.Wherein, above-mentioned n is the natural number not less than 2.Further, it is possible to create n line Journey, and the n thread parallel based on establishment sends HTTP connection requests respectively to n server, to improve detection efficiency.
Certainly, in the embodiment of the present invention, also may be used based on HTTP to the progress network detection of above-mentioned intelligent terminal in step 102 Think and only initiate HTTP connection requests to single server to carry out HTTP detections, do not limit herein.
Optionally, when the above-mentioned reiving/transmitting state got when continuous N1 times is that TCP data pack receiving and transmitting is normal, with default The triggering of another cycle detect to the TCP of above-mentioned intelligent terminal and obtains the reiving/transmitting state of TCP data bag, with improve TCP detect and Obtain the frequency of the reiving/transmitting state of TCP data bag.That is, the above-mentioned reiving/transmitting state got when continuous N1 times is TCP data When pack receiving and transmitting is normal, shortens in step 101 and " trigger and the TCP of above-mentioned intelligent terminal is detected and the transmitting-receiving shape of TCP data bag is obtained It is the execution cycle of state " This move, individual so as to which (N2-N1) can be obtained again in the neighbouring period for obtaining http testing results The reiving/transmitting state of TCP data bag.If for example, original step 101 triggers and TCP numbers is detected and obtained to the TCP of above-mentioned intelligent terminal According to bag reiving/transmitting state cycle be 5 seconds, then the above-mentioned reiving/transmitting state got when continuous N1 times be TCP data pack receiving and transmitting just Chang Shi, then can be detected to the TCP of above-mentioned intelligent terminal with the cycle triggering of 2 seconds and obtain the reiving/transmitting state of TCP data bag.
If step 103, the above-mentioned reiving/transmitting state got for continuous N2 times are that TCP data pack receiving and transmitting is normal and above-mentioned http Testing result indicates network-in-dialing, it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state;
In the embodiment of the present invention, above-mentioned N2 is more than N1.
If it should be noted that the continuous N2 time above-mentioned reiving/transmitting state got be TCP data pack receiving and transmitting normally, and this Shi Wei obtains above-mentioned http testing results (such as in being detected also in HTTP), then may wait for after http testing results acquisition, Judge whether the http testing results obtained indicate network-in-dialing, if the http testing results obtained indicate network-in-dialing, really Fixed above-mentioned intelligent terminal, which is currently at, can go up net state.Further, can be by if the http testing results indicate that network is not connected The statistical number of above-mentioned reiving/transmitting state is reset, and step 101 is returned to afterwards, is triggered according to the initial cycle to above-mentioned intelligent terminal TCP detect and obtain the reiving/transmitting state of TCP data bag, the further exportable default configured information that can not surf the Net, to indicate The intelligent terminal be currently at can not go up net state (can for example be shown in the status bar of above-mentioned intelligent terminal it is above-mentioned can not on Net configured information).Or, after above-mentioned http testing results are obtained, if the http testing results indicate network-in-dialing, monitor Whether (N2-N1) individual reiving/transmitting state has been obtained again after triggering HTTP detections, if not obtaining (N2-N1) individual reiving/transmitting state, etc. Treat, if obtaining (N2-N1) individual reiving/transmitting state again, judge whether that the above-mentioned reiving/transmitting state got for continuous N2 times is TCP Data pack receiving and transmitting is normal, if judging, the above-mentioned reiving/transmitting state got for continuous N2 times is that TCP data pack receiving and transmitting is normal, it is determined that Above-mentioned intelligent terminal, which is currently at, can go up net state.When the http testing results indicate that network is not connected, or judge not connect , can be by the statistical number clearing of reiving/transmitting state when the above-mentioned reiving/transmitting state got for continuous N2 time is that TCP data pack receiving and transmitting is normal, it After return to step 101, the TCP of above-mentioned intelligent terminal is detected according to initial cycle triggering and TCP data bag is obtained Reiving/transmitting state, the further exportable default configured information that can not surf the Net, with indicate the intelligent terminal be currently at can not on Net state (can for example show the above-mentioned configured information that can not surf the Net) in the status bar of above-mentioned intelligent terminal.
Step 104, when it is determined that above-mentioned intelligent terminal is currently at when can go up net state, exporting default instruction letter of surfing the Net Breath, net state can be gone up to indicate that above-mentioned intelligent terminal is currently at;
In the embodiment of the present invention, in order to allow users to the network for knowing the current network that networks of above-mentioned intelligent terminal in time State, when determine every time above-mentioned intelligent terminal be currently at can go up net state when, export default configured information of surfing the Net 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 104 can include:When it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state When, above-mentioned configured information of surfing the Net is shown in the status bar of above-mentioned intelligent terminal, and (above-mentioned configured information of surfing the Net for example can be with For default mark of surfing the Net), so as to user view this can surf the Net configured information when, would know that the intelligent terminal is currently located In net state can be gone up.Specifically, net state can be gone up when determining that above-mentioned intelligent terminal is currently at, and the state of above-mentioned intelligent terminal During the configured information that can not be surfed the Net in column, above-mentioned configured information of surfing the Net is shown in the status bar of above-mentioned intelligent terminal;When it is determined that Above-mentioned intelligent terminal, which is currently to go up, has shown the configured information that can surf the Net in net state, and the status bar of above-mentioned intelligent terminal When, the display of above-mentioned configured information of surfing the Net is kept in the status bar of above-mentioned intelligent terminal.
Further, the network detecting method in the embodiment of the present invention can also include:Record the result of each network detection (such as the statistical conditions of above-mentioned reiving/transmitting state and/or above-mentioned http testing results), to facilitate user or technical staff to call this The result of network detection is analyzed or other application.
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, under the networking state of intelligent terminal, periodic triggers are to the intelligent terminal TCP is detected and is obtained the reiving/transmitting state of TCP data bag, and the above-mentioned reiving/transmitting state got at continuous N1 times is TCP numbers According to pack receiving and transmitting it is normal when, based on HTTP to the intelligent terminal carry out network detection, obtain http testing results, When the above-mentioned reiving/transmitting state continuously acquired is normal TCP data pack receiving and transmitting and http testing results instruction network-in-dialing, Net state can be gone up by determining that the intelligent terminal is currently at.Pass through combination TCP detection modes and the net based on HTTP Network detection mode, can avoid causing the inaccurate situation of testing result using single network detection mode, improve network inspection The accuracy of survey, in addition, the present invention is it is determined that the intelligent terminal is currently at when can go up net state, default surf the Net of output refers to Show information, so that the network state of current connected network can be known in time by obtaining user.
Embodiment two
The difference of the embodiment of the present invention and embodiment one is, the receipts that the embodiment of the present invention is got at continuous N1 times Hair-like state is that TCP data pack receiving and transmitting is normal, and does not show the configured information intelligent terminal that can surf the Net in the status bar of intelligent terminal Networking state under, just further carry out HTTP detections, to reduce the possibility of erroneous judgement.As shown in Fig. 2 in the embodiment of the present invention Network detecting method include:
Step 201, under the networking state of intelligent terminal, periodic triggers are detected and obtained to the TCP of above-mentioned intelligent terminal Take the reiving/transmitting state of TCP data bag;
In the embodiment of the present invention, above-mentioned networking state is the state for having connected wireless network.Above-mentioned TCP is biography transport control protocol Discuss writing a Chinese character in simplified form for (i.e. Transmission Control Protocol).
In the embodiment of the present invention, above-mentioned TCP detections are also referred to as TCP tests in some scenarios.Above-mentioned triggering is to above-mentioned The TCP detections of intelligent terminal may include following process:Above-mentioned intelligent terminal is triggered to send TCP data bag and capture the TCP of return Packet.The reiving/transmitting state of above-mentioned TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is different Often.Wherein, TCP data pack receiving and transmitting is just referring to that the TCP numbers of return can be received in preset time after TCP data bag is sent According to bag, TCP data pack receiving and transmitting refers to that the TCP data of return can not be received in preset time after TCP data bag is sent extremely Bag.
Specifically, TCP detection process is referred to prior art realization, here is omitted.
If step 202, the above-mentioned reiving/transmitting state got for continuous N1 times are that TCP data pack receiving and transmitting is normal, and above-mentioned intelligence Above-mentioned configured information of surfing the Net can not be shown in the current status bar of terminal, then network be carried out to above-mentioned intelligent terminal based on HTTP Detection, obtains http testing results;
Wherein, above-mentioned http testing results indicate that network is not connected or network-in-dialing, wherein, above-mentioned N1 is not less than 1 Natural number.In the embodiment of the present invention, the above-mentioned reiving/transmitting state got when continuous N1 times is that TCP data pack receiving and transmitting is normal, and Above-mentioned configured information of surfing the Net is not shown in the current status bar of above-mentioned intelligent terminal, in order to reduce the probability of erroneous judgement, is now entered The triggering HTTP detections of one step, namely network detection is carried out to above-mentioned intelligent terminal based on HTTP.
Optionally, being included based on HTTP to the progress network detection of above-mentioned intelligent terminal in step 202:To default n Server sends HTTP connection requests respectively;If above-mentioned intelligent terminal is based on above-mentioned HTTP connection requests and above-mentioned n server In any server be successfully established connection, it is determined that when secondary http testing results be network-in-dialing;If above-mentioned intelligent terminal It can not be successfully established and be connected with any server in above-mentioned N number of server based on above-mentioned HTTP connection requests, it is determined that when secondary Http testing results do not connect for network.Wherein, above-mentioned n is the natural number not less than 2.Further, it is possible to create n line Journey, and the n thread parallel based on establishment sends HTTP connection requests respectively to n server, to improve detection efficiency.
Certainly, in the embodiment of the present invention, also may be used based on HTTP to the progress network detection of above-mentioned intelligent terminal in step 202 Think and only initiate HTTP connection requests to single server to carry out HTTP detections, do not limit herein.
Optionally, when the above-mentioned reiving/transmitting state got when continuous N1 times is that TCP data pack receiving and transmitting is normal, with default The triggering of another cycle detect to the TCP of above-mentioned intelligent terminal and obtains the reiving/transmitting state of TCP data bag, with improve TCP detect and Obtain the frequency of the reiving/transmitting state of TCP data bag.Or, the above-mentioned reiving/transmitting state got when continuous N1 times is TCP data Do not shown in the status bar that pack receiving and transmitting is normal and above-mentioned intelligent terminal is current it is above-mentioned surf the Net configured information when, with default another Cycle, which triggers, to be detected to the TCP of above-mentioned intelligent terminal and obtains the reiving/transmitting state of TCP data bag, to improve TCP detections and obtain The frequency of the reiving/transmitting state of TCP data bag.Above-mentioned raising TCP detection and obtain TCP data bag reiving/transmitting state frequency namely Shorten in step 201 " trigger and detected to the TCP of above-mentioned intelligent terminal and obtain the reiving/transmitting state of TCP data bag " This move The execution cycle.
If step 203, the above-mentioned reiving/transmitting state got for continuous N1 times are that TCP data pack receiving and transmitting is normal, and above-mentioned intelligence Above-mentioned configured information of surfing the Net can have been shown in the current status bar of terminal, it is determined that current above-mentioned intelligent terminal is currently at can Upper net state;
In the embodiment of the present invention, the first network testing result determined when continuous N1 times indicates network-in-dialing, and on State and above-mentioned configured information of surfing the Net has been shown in the current status bar of intelligent terminal, then above-mentioned intelligent terminal has been in before showing Net state can be gone up, the process of HTTP detections can be now skipped, directly determines that current above-mentioned intelligent terminal is currently at and can surfed the Net State.
If step 204, the above-mentioned reiving/transmitting state got for continuous N2 times are that TCP data pack receiving and transmitting is normal and above-mentioned http Testing result indicates network-in-dialing, it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state;
In the embodiment of the present invention, above-mentioned N2 is more than N1.
If it should be noted that the continuous N2 time above-mentioned reiving/transmitting state got be TCP data pack receiving and transmitting normally, and this Shi Wei obtains above-mentioned http testing results (such as in being detected also in HTTP), then may wait for after http testing results acquisition, Judge whether the http testing results obtained indicate network-in-dialing, if the http testing results obtained indicate network-in-dialing, really Fixed above-mentioned intelligent terminal, which is currently at, can go up net state.Further, can be by if the http testing results indicate that network is not connected The statistical number of above-mentioned reiving/transmitting state is reset, and step 201 is returned to afterwards, is triggered according to the initial cycle to above-mentioned intelligent terminal TCP detect and obtain the reiving/transmitting state of TCP data bag, the further exportable default configured information that can not surf the Net, to indicate The intelligent terminal be currently at can not go up net state (can for example be shown in the status bar of above-mentioned intelligent terminal it is above-mentioned can not on Net configured information).Or, after above-mentioned http testing results are obtained, if the http testing results indicate network-in-dialing, monitor (N2-N1) individual first network testing result whether has been obtained again after triggering HTTP detections, if not obtaining (N2-N1) individual transmitting-receiving shape State, then wait, if obtaining (N2-N1) individual reiving/transmitting state again, judges whether the above-mentioned reiving/transmitting state got for continuous N2 times Be that TCP data pack receiving and transmitting is normal, if judge the above-mentioned reiving/transmitting state got for continuous N2 times be TCP data pack receiving and transmitting just Often, it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state.When the http testing results indicate that network is not connected, or sentence When breaking that the above-mentioned reiving/transmitting state got for not continuous N2 times be that TCP data pack receiving and transmitting is normal, reiving/transmitting state can be reset, it After return to step 201, the TCP of above-mentioned intelligent terminal is detected according to initial cycle triggering and TCP data bag is obtained Reiving/transmitting state, the further exportable default configured information that can not surf the Net, with indicate the intelligent terminal be currently at can not on Net state (can for example show the above-mentioned configured information that can not surf the Net) in the status bar of above-mentioned intelligent terminal.
Step 205, when it is determined that above-mentioned intelligent terminal is currently at when can go up net state, in the status bar of above-mentioned intelligent terminal The middle above-mentioned configured information of surfing the Net of display;
In the embodiment of the present invention, in order to allow users to the network for knowing the current network that networks of above-mentioned intelligent terminal in time State, when determine every time above-mentioned intelligent terminal be currently at can go up net state when, export default configured information of surfing the Net so that The real-time network state of above-mentioned intelligent terminal can be known in time by obtaining user.
Specifically, can be gone up in net state, and the status bar of above-mentioned intelligent terminal when determining that above-mentioned intelligent terminal is currently at During the configured information that can not surf the Net, above-mentioned configured information of surfing the Net is shown in the status bar of above-mentioned intelligent terminal;When it is determined that above-mentioned Intelligent terminal is currently to go up and shown in net state, and the status bar of above-mentioned intelligent terminal when can surf the Net configured information, The display of above-mentioned configured information of surfing the Net is kept in the status bar of above-mentioned intelligent terminal.
Further, the network detecting method in the embodiment of the present invention can also include:Record the result of each network detection (such as the statistical conditions of above-mentioned reiving/transmitting state and/or above-mentioned http testing results), to facilitate user or technical staff to call this The result of network detection is analyzed or other application.
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, under the networking state of intelligent terminal, periodic triggers are to the intelligent terminal TCP is detected and is obtained the reiving/transmitting state of TCP data bag, and the above-mentioned reiving/transmitting state got at continuous N1 times is TCP numbers According to pack receiving and transmitting it is normal when, based on HTTP to the intelligent terminal carry out network detection, obtain http testing results, When the above-mentioned reiving/transmitting state continuously acquired is normal TCP data pack receiving and transmitting and http testing results instruction network-in-dialing, Net state can be gone up by determining that the intelligent terminal is currently at.Pass through combination TCP detection modes and the net based on HTTP Network detection mode, can avoid causing the inaccurate situation of testing result using single network detection mode, improve network inspection The accuracy of survey, in addition, the present invention is it is determined that the intelligent terminal is currently at when can go up net state, default surf the Net of output refers to Show information, so that the network state of current connected network can be known in time by obtaining user.In addition, the embodiment of the present invention is continuous The above-mentioned reiving/transmitting state got for N1 times is that TCP data pack receiving and transmitting is normal, and do not shown in the status bar of intelligent terminal can on Under the networking state of net configured information intelligent terminal, HTTP detections are just further carried out, mistake on the one hand can be reduced under the scene The possibility sentenced, on the other hand can also show that the configured information that can surf the Net skips HTTP inspections in the status bar of intelligent terminal Survey, improve detection efficiency.
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:
Acquiring unit 301, under the networking state of intelligent terminal, TCP of the periodic triggers to above-mentioned intelligent terminal The reiving/transmitting state of TCP data bag is detected and obtains, wherein, above-mentioned networking state is the state for having connected wireless network, above-mentioned TCP Refer to transmission control protocol, the reiving/transmitting state of above-mentioned TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data Pack receiving and transmitting is abnormal;
Http detection units 302, for being TCP when the above-mentioned reiving/transmitting state that acquiring unit 301 is got for continuous N1 times Data pack receiving and transmitting is normal, carries out network detection to above-mentioned intelligent terminal based on HTTP, obtains http testing results, Wherein, above-mentioned http testing results indicate that network is not connected or network-in-dialing, wherein, the N1 is the natural number not less than 1;
Determining unit 303, for being TCP data when the above-mentioned reiving/transmitting state that acquiring unit 301 is got for continuous N2 times Pack receiving and transmitting is normal, and the obtained above-mentioned http testing results of http detection units 302 are when indicating network-in-dialing, determine above-mentioned intelligence Terminal, which is currently at, can go up net state, wherein, above-mentioned N2 is more than N1;
Network state indicating member 304, for when determining unit 303 determine above-mentioned intelligent terminal be currently at can go up it is netted During state, default configured information of surfing the Net is exported, net state can be gone up to indicate that above-mentioned intelligent terminal is currently at.
Optionally, network state indicating member 304 specifically for:When determining unit 303 determines that above-mentioned intelligent terminal is current In when can go up net state, above-mentioned configured information of surfing the Net is shown in the status bar of above-mentioned intelligent terminal.
Optionally, http detection units 302 specifically for:The above-mentioned transmitting-receiving got for continuous N1 times when acquiring unit 301 State is that TCP data pack receiving and transmitting is normal, and does not show above-mentioned instruction letter of surfing the Net in the current status bar of above-mentioned intelligent terminal During breath, network detection is carried out to above-mentioned intelligent terminal based on HTTP;Determining unit 303 is additionally operable to:As the continuous N1 of acquiring unit 301 The secondary above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, and has been shown in the current status bar of above-mentioned intelligent terminal Show it is above-mentioned surf the Net configured information when, net state can be gone up by determining that above-mentioned intelligent terminal is currently at.
Optionally, acquiring unit 301 is additionally operable to:The reiving/transmitting state got when continuous N1 times is TCP data bag When receiving and dispatching normal, the TCP of the intelligent terminal is detected with default another cycle triggering and the transmitting-receiving shape of TCP data bag is obtained State, with the frequency for the reiving/transmitting state for improving TCP detections and acquisition TCP data bag.
Optionally, http detection units 302 specifically for:The transmitting-receiving got for continuous N1 times when acquiring unit 301 When state is that TCP data pack receiving and transmitting is normal, HTTP connection requests are sent respectively to default N number of server;When based on above-mentioned HTTP connection requests are successfully established with any server in above-mentioned N number of server when being connected, and determine above-mentioned http testing results For network-in-dialing;When based on above-mentioned HTTP connection requests company can not be successfully established with any server in above-mentioned N number of server When connecing, determine that above-mentioned http testing results do not connect for 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 the present invention program, under the networking state of intelligent terminal, periodic triggers are to the intelligent terminal TCP is detected and is obtained the reiving/transmitting state of TCP data bag, and the above-mentioned reiving/transmitting state got at continuous N1 times is TCP numbers According to pack receiving and transmitting it is normal when, based on HTTP to the intelligent terminal carry out network detection, obtain http testing results, When the above-mentioned reiving/transmitting state continuously acquired is normal TCP data pack receiving and transmitting and http testing results instruction network-in-dialing, Net state can be gone up by determining that the intelligent terminal is currently at.Pass through combination TCP detection modes and the net based on HTTP Network detection mode, can avoid causing the inaccurate situation of testing result using single network detection mode, improve network inspection The accuracy of survey, in addition, the present invention is it is determined that the intelligent terminal is currently at when can go up net state, default surf the Net of output refers to Show information, so that the network state of current connected network can be known in time by obtaining user.
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:
Under the networking state of intelligent terminal, periodic triggers detect to the TCP of above-mentioned intelligent terminal and obtain TCP data The reiving/transmitting state of bag, wherein, above-mentioned networking state is the state for having connected wireless network, and above-mentioned TCP refers to transmission control protocol, on The reiving/transmitting state for stating TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is abnormal;
If the continuous N1 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, based on Hyper text transfer Agreement carries out network detection to above-mentioned intelligent terminal, obtains http testing results, wherein, above-mentioned http testing results indicate network Do not connect or network-in-dialing, wherein, above-mentioned N1 is the natural number not less than 1;
If the continuous N2 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal and above-mentioned http testing results Indicate network-in-dialing, it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state, wherein, above-mentioned N2 is more than N1;
When it is determined that above-mentioned intelligent terminal is currently at when can go up net state, exporting default configured information of surfing the Net, to refer to Net state can be gone up by showing that above-mentioned 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, the default configured information of surfing the Net of above-mentioned output, including:
Above-mentioned configured information of surfing the Net is shown in the status bar of above-mentioned intelligent terminal.
It is above-mentioned in the third the possible embodiment provided based on above-mentioned second possible embodiment If the continuous N1 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, based on HTTP to upper State intelligent terminal and carry out network detection, be:
If the continuous N1 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, and above-mentioned intelligent terminal is worked as Above-mentioned configured information of surfing the Net is not shown in preceding status bar, then net is carried out to above-mentioned intelligent terminal based on HTTP Network is detected;
If the continuous N1 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, and above-mentioned intelligent terminal is worked as Above-mentioned configured information of surfing the Net is shown in preceding status bar, it is determined that above-mentioned intelligent terminal, which is currently at, can go up net state.
In the first above-mentioned possible implementation, either above-mentioned second possible implementation or the above-mentioned 3rd In the 4th kind of possible embodiment provided based on the possible implementation of kind, processor 402, which passes through to run, to be stored Following steps are also realized in the above computer program of memory 401:
If the continuous N1 times above-mentioned reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, with default another week Phase, which triggers, to be detected to the TCP of above-mentioned intelligent terminal and obtains the reiving/transmitting state of TCP data bag, to improve TCP detections and obtain TCP The frequency of the reiving/transmitting state of packet.
In the first above-mentioned possible implementation, either above-mentioned second possible implementation or the above-mentioned 3rd It is above-mentioned to be based on HTTP in the 5th kind of possible embodiment provided based on the possible implementation of kind Network detection is carried out to above-mentioned intelligent terminal, http testing results are obtained, including:
HTTP connection request is sent respectively to default N number of server;
It is successfully established when based on above-mentioned HTTP connection request with any server in above-mentioned N number of server During connection, it is network-in-dialing to determine above-mentioned http testing results;
It can not succeed when based on above-mentioned HTTP connection request with any server in above-mentioned N number of server When setting up connection, determine that above-mentioned http testing results do not connect for 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 the present invention program, under the networking state of intelligent terminal, periodic triggers are to the intelligent terminal TCP is detected and is obtained the reiving/transmitting state of TCP data bag, and the above-mentioned reiving/transmitting state got at continuous N1 times is TCP numbers According to pack receiving and transmitting it is normal when, based on HTTP to the intelligent terminal carry out network detection, obtain http testing results, When the above-mentioned reiving/transmitting state continuously acquired is normal TCP data pack receiving and transmitting and http testing results instruction network-in-dialing, Net state can be gone up by determining that the intelligent terminal is currently at.Pass through combination TCP detection modes and the net based on HTTP Network detection mode, can avoid causing the inaccurate situation of testing result using single network detection mode, improve network inspection The accuracy of survey, in addition, the present invention is it is determined that the intelligent terminal is currently at when can go up net state, default surf the Net of output refers to Show information, so that the network state of current connected network can be known in time by obtaining user.
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:
Under the networking state of intelligent terminal, periodic triggers detect to the TCP of the intelligent terminal and obtain TCP data bag Reiving/transmitting state, wherein, the networking state is the state for having connected wireless network, and the TCP refers to transmission control protocol, described The reiving/transmitting state of TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is abnormal;
If the continuous N1 times reiving/transmitting state got is that TCP data pack receiving and transmitting is normal, based on HTTP Network detection is carried out to the intelligent terminal, http testing results are obtained, wherein, the http testing results indicate that network does not connect Logical or network-in-dialing, wherein, the N1 is the natural number not less than 1;
If the continuous N2 time reiving/transmitting state got is that TCP data pack receiving and transmitting is normal and the http testing results instruction Network-in-dialing, it is determined that the intelligent terminal, which is currently at, can go up net state, wherein, the N2 is more than N1;
When it is determined that the intelligent terminal is currently at when can go up net state, default configured information of surfing the Net being exported, to indicate Net state can be gone up by stating intelligent terminal and being currently at.
2. network detecting method according to claim 1, it is characterised in that the default instruction letter of surfing the Net of the output Breath, including:
Can surf the Net configured information in the status bar of the intelligent terminal described in display.
3. network detecting method according to claim 2, it is characterised in that if the described continuous N1 times receipts got Hair-like state is that TCP data pack receiving and transmitting is normal, then carries out network detection to the intelligent terminal based on HTTP, For:
If the continuous N1 time reiving/transmitting state got be that TCP data pack receiving and transmitting is normal, and the intelligent terminal is currently The configured information that can surf the Net is not shown in status bar, then network inspection is carried out to the intelligent terminal based on HTTP Survey;
If the continuous N1 time reiving/transmitting state got be that TCP data pack receiving and transmitting is normal, and the intelligent terminal is currently The configured information that can surf the Net is shown in status bar, it is determined that the intelligent terminal, which is currently at, can go up net state.
4. the network detecting method according to any one of claims 1 to 3, it is characterised in that if get for continuous N1 times The reiving/transmitting state is that TCP data pack receiving and transmitting is normal, then the network detecting method also includes:
The TCP of the intelligent terminal is detected with default another cycle triggering and the reiving/transmitting state of TCP data bag is obtained, to carry High TCP detections and the frequency for the reiving/transmitting state for obtaining TCP data bag.
5. the network detecting method according to any one of claims 1 to 3, it is characterised in that described to be based on Hyper text transfer Agreement carries out network detection to the intelligent terminal, obtains http testing results, including:
HTTP connection request is sent respectively to default N number of server;
It is connected when being successfully established based on the HTTP connection request with any server in N number of server When, it is network-in-dialing to determine the http testing results;
It can not be successfully established when based on the HTTP connection request with any server in N number of server During connection, determine that the http testing results do not connect for network.
6. a kind of network detection means, it is characterised in that including:
Acquiring unit, under the networking state of intelligent terminal, periodic triggers to be detected and obtained to the TCP of the intelligent terminal The reiving/transmitting state of TCP data bag is taken, wherein, the networking state is the state for having connected wireless network, and the TCP refers to transmission control Agreement processed, the reiving/transmitting state of the TCP data bag is divided into the following two kinds:TCP data pack receiving and transmitting is normal and TCP data pack receiving and transmitting is different Often;
Http detection units, for being TCP data bag when the reiving/transmitting state that the acquiring unit is got for continuous N1 times When receiving and dispatching normal, network detection is carried out to the intelligent terminal based on HTTP, http testing results are obtained, its In, the http testing results indicate that network is not connected or network-in-dialing, wherein, the N1 is the natural number not less than 1;
Determining unit, for being TCP data pack receiving and transmitting when the reiving/transmitting state that the acquiring unit is got for continuous N2 times When the http testing results that normal and described http detection units are obtained indicate network-in-dialing, determine that the intelligent terminal is worked as Preceding be in can go up net state, wherein, the N2 is more than N1;
Network state indicating member, for when the determining unit determine the intelligent terminal be currently at can go up net state when, The default configured information of surfing the Net of output, net state can be gone up to indicate that the intelligent terminal is currently at.
7. network detection means according to claim 6, it is characterised in that the network state indicating member is specifically used In:When the determining unit determine the intelligent terminal be currently at can go up net state when, in the status bar of the intelligent terminal Can surf the Net configured information described in middle display.
8. network detection means according to claim 7, it is characterised in that
The http detection units specifically for:When the reiving/transmitting state that the acquiring unit is got for continuous N1 times is TCP data pack receiving and transmitting is normal, and do not shown in the current status bar of the intelligent terminal it is described can surf the Net configured information when, be based on HTTP carries out network detection to the intelligent terminal;
The determining unit is additionally operable to:When the reiving/transmitting state that the acquiring unit is got for continuous N1 times is TCP data Pack receiving and transmitting is normal, and shown in the current status bar of the intelligent terminal it is described can surf the Net configured information when, determine the intelligence Energy terminal, which is currently at, can go up net state.
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.
CN201710655791.5A 2017-08-03 2017-08-03 Network detecting method, network detection device and intelligent terminal Active CN107231647B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107231647A true CN107231647A (en) 2017-10-03
CN107231647B CN107231647B (en) 2019-01-11

Family

ID=59958114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710655791.5A Active CN107231647B (en) 2017-08-03 2017-08-03 Network detecting method, network detection device and intelligent terminal

Country Status (1)

Country Link
CN (1) CN107231647B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801201A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 Network recovery method and device
CN109964493A (en) * 2017-10-23 2019-07-02 深圳市云中飞网络科技有限公司 It is connected to the network detection method, device, terminal and computer storage medium
CN110011868A (en) * 2018-01-05 2019-07-12 武汉斗鱼网络科技有限公司 A kind of network is reachable to determine method, electronic equipment and readable storage medium storing program for executing
CN111682974A (en) * 2019-03-11 2020-09-18 西安诺瓦电子科技有限公司 Network detection method, device and system for broadcast control equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078956A (en) * 1997-09-08 2000-06-20 International Business Machines Corporation World wide web end user response time monitor
US20020052931A1 (en) * 2000-10-10 2002-05-02 Christopher Peiffer HTTP multiplexor/demultiplexor
CN1656731A (en) * 2002-02-08 2005-08-17 杜松网络公司 Multi-method gateway-based network security systems and methods
CN101631052A (en) * 2009-08-25 2010-01-20 杭州华三通信技术有限公司 Method and device for detecting number of access terminals
CN101902450A (en) * 2009-11-13 2010-12-01 亿赞普(北京)科技有限公司 Network for realizing page push and control, page push method and page control method
CN103812728A (en) * 2014-02-13 2014-05-21 普联技术有限公司 Network diagnostic method, system and router
CN104394036A (en) * 2014-12-05 2015-03-04 北京极科极客科技有限公司 Method for detecting network status
CN106603306A (en) * 2016-12-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Network connection abnormity processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078956A (en) * 1997-09-08 2000-06-20 International Business Machines Corporation World wide web end user response time monitor
US20020052931A1 (en) * 2000-10-10 2002-05-02 Christopher Peiffer HTTP multiplexor/demultiplexor
CN1656731A (en) * 2002-02-08 2005-08-17 杜松网络公司 Multi-method gateway-based network security systems and methods
CN101631052A (en) * 2009-08-25 2010-01-20 杭州华三通信技术有限公司 Method and device for detecting number of access terminals
CN101902450A (en) * 2009-11-13 2010-12-01 亿赞普(北京)科技有限公司 Network for realizing page push and control, page push method and page control method
CN103812728A (en) * 2014-02-13 2014-05-21 普联技术有限公司 Network diagnostic method, system and router
CN104394036A (en) * 2014-12-05 2015-03-04 北京极科极客科技有限公司 Method for detecting network status
CN106603306A (en) * 2016-12-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Network connection abnormity processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴柳: "具有故障分析功能的网络测量系统设计与应用", 《电力信息与通信技术》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801201A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 Network recovery method and device
CN109964493A (en) * 2017-10-23 2019-07-02 深圳市云中飞网络科技有限公司 It is connected to the network detection method, device, terminal and computer storage medium
CN110011868A (en) * 2018-01-05 2019-07-12 武汉斗鱼网络科技有限公司 A kind of network is reachable to determine method, electronic equipment and readable storage medium storing program for executing
CN111682974A (en) * 2019-03-11 2020-09-18 西安诺瓦电子科技有限公司 Network detection method, device and system for broadcast control equipment

Also Published As

Publication number Publication date
CN107231647B (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN110275958A (en) Site information recognition methods, device and electronic equipment
CN107231647A (en) Network detecting method, network detection means and intelligent terminal
CN112543176A (en) Abnormal network access detection method, device, storage medium and terminal
CN110516173B (en) Illegal network station identification method, illegal network station identification device, illegal network station identification equipment and illegal network station identification medium
CN107370806A (en) HTTP conditional codes monitoring method, device, storage medium and electronic equipment
CN107396287A (en) The choosing method and device of a kind of working frequency points
CN107294811A (en) Network detecting method, network detection means and intelligent terminal
CN107679213A (en) Exercise searching method and system and terminal equipment
CN110134711A (en) Processing method, device, equipment and the computer readable storage medium of big data
CN107484190A (en) Method for connecting network, mobile terminal and computer-readable recording medium
CN107818168A (en) Topic searching method, device and equipment
CN107276856A (en) Network detecting method, network detection means and intelligent terminal
CN107197489A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN107332739B (en) Network detecting method, network detection device and intelligent terminal
CN111010387B (en) Illegal replacement detection method, device, equipment and medium for Internet of things equipment
CN107277896A (en) Wifi hotspot management method, device and terminal device
CN107360059B (en) Network detecting method, network detection device and intelligent terminal
CN107294812B (en) Network detecting method, network detection device and intelligent terminal
CN107241758A (en) Network control method, network control unit and intelligent terminal
Folino et al. Automatic offloading of mobile applications into the cloud by means of genetic programming
CN110443044A (en) Block chain client bug excavation method, device, equipment and storage medium
CN109062648A (en) Information processing method, device, mobile terminal and storage medium
CN116743606A (en) Abnormal flow monitoring method, device, equipment and storage medium
CN109492146A (en) A kind of method and apparatus of anti-WEB crawler
CN109104306A (en) Process analytic method, device, computer readable storage medium and electronic equipment

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

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant