CN103581936B - In the terminal for determining the method, apparatus and equipment of network state - Google Patents
In the terminal for determining the method, apparatus and equipment of network state Download PDFInfo
- Publication number
- CN103581936B CN103581936B CN201210253540.1A CN201210253540A CN103581936B CN 103581936 B CN103581936 B CN 103581936B CN 201210253540 A CN201210253540 A CN 201210253540A CN 103581936 B CN103581936 B CN 103581936B
- Authority
- CN
- China
- Prior art keywords
- connection type
- access
- information
- mobile terminal
- history
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The object of the present invention is to provide a kind of in the terminal for determining the method, apparatus and equipment of network state.The present invention executes the access operation for accessing pre-determined link address information at least once using general connection mode and connection type of at least one of acting on behalf of connection type;And when access operation can not obtain feedback information at least once based on described in, determine that the current network state of the mobile terminal is not connected, when access operation can obtain feedback information at least once based on described in, whether matched with feedback on reservation information according to the feedback information, determines that current network state is to have connected or be not connected with.Compared with prior art, the present invention can determine the network state of mobile terminal in the case where mobile terminal can not provide network state.
Description
Technical field
The present invention relates to field of computer technology, more particularly in the terminal for determine network state method,
Device and equipment.
Background technique
In the prior art, the mobile terminal of current network state can not be provided there are some, such as uses the shifting of KJava platform
Dynamic terminal etc..Thus, the current network state of mobile terminal can not be known using the user of the mobile terminal, also, being embedded in should
Application in mobile terminal also can not execute corresponding operating by obtaining network state.
Summary of the invention
The object of the present invention is to provide a kind of in the terminal for determining the method, apparatus and equipment of network state.
According to an aspect of the present invention, a kind of method for determining network state in the terminal is provided, wherein
This approach includes the following steps:
A is visited at least once using general connection mode and connection type of at least one of acting on behalf of connection type, execution
Ask the access operation of pre-determined link address information;
Wherein, this method is further comprising the steps of:
X when based on it is described access operation can not obtain feedback information at least once when, determine that the mobile terminal is current
Network state is not connected;
Y when based on it is described access operation can obtain feedback information at least once when, according to the feedback information whether in advance
Determine feedback information to match, determines that current network state is to have connected or be not connected with.
According to another aspect of the present invention, it additionally provides a kind of in the terminal for determining the network of network state
State determination device, wherein the network state determining device includes:
Executive device is accessed, for using general connection mode and the connection side that at least one of acts on behalf of connection type
Formula executes the access operation for accessing pre-determined link address information at least once;
First determining device, for determining institute when access operation can not obtain feedback information at least once based on described in
It is not connected for stating the current network state of mobile terminal;
Second determining device, for when based on it is described access operation can obtain feedback information at least once when, according to this
Whether feedback information matches with feedback on reservation information, determines that current network state is to have connected or be not connected with.
Compared with prior art, the present invention has the following advantages that:1) present invention can not provide network in mobile terminal
In the case where state, the network state of mobile terminal is determined.Also, present invention determine that the speed of network state is fast, accuracy rate is high,
System resources consumption is few;2) whether matched with feedback on reservation information by judgement based on the resulting feedback information of access operation,
It can be avoided the non-successful access information that will be fed back based on access operation, such as inform the feedback information of access failure, misidentification
For successful access information, the judging nicety rate of network state is improved;3) by the movement with local page caching function
Terminal is respectively adopted two kinds of connection types and executes access operation, can reduce the False Rate of network state;It 4) can be due to moving
The web cache function of dynamic terminal, and obtain be based respectively on it is that two kinds of connection types obtain, can be with feedback on reservation information phase
When the feedback information matched, the currently practical actually available connection type that can be successfully connected network is relatively accurately determined;5) may be used
By reference to network configuration, select to be more likely to that connection type can be used for the history of currently available connection type, first access behaviour
Make, so as to reduce the number of access operation, accelerates the speed for determining network state.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is one aspect of the invention for determining the method flow diagram of network state;
Fig. 2 is a preferred embodiment of the invention for determining the method flow diagram of network state;
Fig. 3 is the structural schematic diagram of the network state determining device for determining network state of one aspect of the invention;
Fig. 4 is a preferred embodiment of the invention for determining that the structure of the network state determining device of network state is shown
It is intended to.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
Present invention is further described in detail with reference to the accompanying drawing.
Fig. 1 is one aspect of the invention for determining the method flow diagram of network state.The present invention includes step S1, step
Rapid S2 and step S3.Wherein, the method for the present embodiment is mainly realized by mobile terminal.Preferably, the mobile terminal packet
Include but be not limited to mobile phone, PDA etc..Wherein, network locating for the mobile terminal includes but is not limited to internet, wide area network, city
Domain net, local area network, VPN network etc..
It should be noted that the mobile terminal and network are only for example, other meters that are existing or being likely to occur from now on
It calculates equipment or network is such as applicable to the present invention, should also be included within the scope of protection of the present invention, and be contained in by reference
This.
Hereinafter with reference to Fig. 1, illustrate the method for determining network state in the terminal.
In step sl, mobile terminal is using general connection mode and the connection side that at least one of acts on behalf of connection type
Formula executes the access operation for accessing pre-determined link address information at least once.
Wherein, the general connection mode includes that can connect public network access point by the mobile terminal directly to access net
The connection type of network resource.For example, the CMNET of China Mobile, UNNET, 3GNET of China Unicom, the CTNET of China Telecom
Deng.
Wherein, the connection type of acting on behalf of includes Intranet access point being connected by the mobile terminal, and need to pass through agency
To access the connection type of Internet resources.For example, the CMWAP of China Mobile, UNWAP, 3GWAP of China Unicom, China Telecom
CTWAP etc..
Preferably, the pre-determined link address information is to be capable of the link address information of consistent access, for example, a website
Link address information etc. is provided in the stabilization of offer, to avoid unstable as pre-determined link address information caused by network state
Erroneous judgement.It is highly preferred that the pre-determined link address information can be multiple link address informations, then general company can be used in mobile terminal
At least one of connect mode and act on behalf of connection type connection type, one in the multiple link address informations of random access,
Alternatively, multiple link address information can be accessed one by one until the feedback information to match with feedback on reservation information can be obtained.
Wherein, various ways can be used to execute the access operation of the access pre-determined link address information in mobile terminal.
For example, mobile terminal can get the predetermined Agent IP of multiple operators, for example, the predetermined generation of China Mobile and connection
Managing IP includes 10.0.0.172:80, the predetermined Agent IP of China Telecom includes 10.0.0.200:80, and respectively according to each pre-
Agent IP is determined to execute using the access operation for acting on behalf of connection type access pre-determined link address information.
Preferably, mobile terminal is using the access acted on behalf of connection type and execute the access pre-determined link address information
The step of operation includes:According to the network configuration of the mobile terminal, proxy IP information is determined, and believed according to the Agent IP
Breath executes the access operation of the access pre-determined link address information.
For example, mobile terminal determines that proxy IP information is 10.0.0.172 by inquiring its network configuration:80, and it is predetermined
Link address information is www.baidu.com, then mobile terminal will need what is sent to ask when accessing the pre-determined link address information
Seek the header field in information:
HttpConnection conn=(HttpConnection) Connector.open (" http://
t.baidu.com/static/test.bin");
It replaces with:
HttpConnection conn=(HttpConnection) Connector.open (" http://
10.0.0.172:80/static/test.bin");
Conn.setRequestProperty (" X-Online-Host ", " t.baidu.com ");
Wherein, conn.setRequestProperty (" X-Online-Host ", " t.baidu.com ") it is the X- added
Online-Host header field, thresholding host.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that any using the access for acting on behalf of connection type execution access pre-determined link address information
The implementation of operation, should be included in the scope of the present invention.
Specifically, mobile terminal is using general connection mode and connection type of at least one of acting on behalf of connection type,
It executes and accesses the mode of access operation of pre-determined link address information at least once and include but is not limited to:
1) mobile terminal executes the access operation of the access pre-determined link address information using the general connection mode,
And simultaneously using the access operation acted on behalf of connection type and execute the access pre-determined link address information.
For example, mobile terminal is while using CMNET access pre-determined link address information, it is also pre- using CMWAP access
Determine link address information.
2) mobile terminal first using the general connection mode and it is described act on behalf of one of connection type connection type,
The access operation of the access pre-determined link address information is executed, then is connected using the general connection mode and the agency
Another connection type in mode executes the access operation of the access pre-determined link address information again.
For example, mobile terminal first uses CMNET to access pre-determined link address information, then pre-determined link is accessed using CMWAP
Address information.
3) mobile terminal using the general connection mode and it is described act on behalf of one of connection type connection type, hold
The access operation of the row access pre-determined link address information, and work as and be based on using a kind of connection type to be performed access
When operation can not obtain feedback information or can not obtain the feedback information to match with the feedback on reservation information, using described logical
With connection type and another connection type acted on behalf of in connection type, the access pre-determined link address is executed again
The access operation of information.
For example, mobile terminal randomly chooses, alternatively, accessing pre-determined link address using 3GWAP according to predetermined order selection
Information, and fail to obtain any feedback information or there is no to match with feedback on reservation information using the access operation of 3GWAP
Feedback information;Then mobile terminal executes the visit of access pre-determined link address information using another connection type 3GNET again
Ask operation.
Wherein, the feedback on reservation information includes the feedback letter that should be obtained after successful access pre-determined link address information
Breath.For example, pre-determined link address information is www.baidu.com, then feedback on reservation information includes successful access
The feedback information that should obtain after www.baidu.com, server pointed by the link address information returns.
It should be noted that executing access operation when first time, i.e., when using a kind of connection side in this implementation
When formula is performed access operation and can obtain the feedback information to match with feedback on reservation information, current network state is determined
To have connected.Preferably, it may further determine that the connection type used when executing access operation for the first time as network can be successfully connected
Available connection type.
It should be further noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to this hair
Bright limitation using general connection mode and is acted on behalf of in connection type at least it should be appreciated by those skilled in the art that any
A kind of connection type executes the implementation for accessing the mode of access operation of pre-determined link address information at least once, should all
Within the scope of the present invention.
In step s 2, when can not based on general connection mode and the access operation at least once acted on behalf of in connection type
When obtaining feedback information, mobile terminal determines that the current network state of the mobile terminal is not connected.
For example, believing when mobile terminal uses general connection mode simultaneously with connection type is acted on behalf of to access pre-determined link address
When ceasing, and can not obtain any feedback information, mobile terminal determines that the current network state of the mobile terminal is not connected.
In another example accessing pre-determined link using connection type is acted on behalf of afterwards when mobile terminal first uses general connection mode
Address information, and when can not obtain any feedback information, mobile terminal determines that the current network state of the mobile terminal is
It is not connected.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that it is any when access operation can not obtain feedback information at least once based on described in, really
The current network state of the fixed mobile terminal is not connected implementation, be should be included in the scope of the present invention.
In step s3, when can based on general connection mode and the access operation at least once acted on behalf of in connection type
When obtaining feedback information, whether mobile terminal matches with feedback on reservation information according to the feedback information, determines current network
State is to have connected or be not connected with.Preferably, mobile terminal may further determine that general connection mode and act on behalf of in connection type
Any is the available connection type that can be successfully connected network.
It is accessed respectively in advance for example, mobile terminal uses general connection mode simultaneously in step sl and acts on behalf of connection type
Determine link address information, and obtains the feedback information A obtained using general connection mode execution access operation and use agency
Connection type executes the feedback information B that access operation obtains;Then mobile terminal is respectively by feedback information A and feedback information B and pre-
Determine feedback information to be matched, obtains feedback information A and feedback on reservation information mismatches, feedback information B and feedback on reservation information
Matched matching result, then mobile terminal determines that current network state is to have connected.Preferably, mobile terminal also determines agency
Connection type is to be currently able to be successfully connected the available connection type of network.
In another example first random selection general connection mode accesses pre-determined link address information to mobile terminal in step sl,
And fail to obtain any feedback information in the given time, then mobile terminal, which then uses, acts on behalf of connection type access pre-determined link
Address information obtains feedback information C;Then mobile terminal matches feedback information C with feedback on reservation information, and determines feedback
Believe that C and feedback on reservation information are mismatched, then mobile terminal determines that current network state is not connected.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that it is any when based on access operation can obtain feedback information at least once, according to this
Whether feedback information matches with feedback on reservation information, determines that current network state is the realization side for having connected or being not connected with
Formula should be included in the scope of the present invention.
The present invention can determine the network state of mobile terminal in the case where mobile terminal can not provide network state.
Also, present invention determine that the speed of network state is fast, accuracy rate is high, and system resources consumption is few;In addition, by judgement based on access
Operate whether resulting feedback information matches with feedback on reservation information, can be avoided by fed back based on access operation it is non-at
Function access information, such as inform the feedback information of access failure, it is mistakenly considered successful access information, improves the judgement of network state
Accuracy rate.
As one of the preferred embodiment of the present invention, method of the invention further includes the steps that executing before step S1
S6, abovementioned steps S1 include step S1 '.
In step s 6, mobile terminal is according to its terminal related information, judge its whether in predetermined mobile terminal list,
Wherein, the mobile terminal in the predetermined mobile terminal list can be in its local cache webpage.
Wherein, the terminal related information includes any information that can be used in determining mobile terminal model, for example, mobile
Platform, system and the other software of terminal and hardware information etc..
Specifically, mobile terminal determines its type according to its terminal related information, and by whether can be in predetermined movement
Its type is inquired in terminal list, judges it whether in predetermined mobile terminal list.
In step S1 ', when judging that the mobile terminal is in the predetermined mobile terminal list, mobile terminal difference
Using the general connection mode and it is described act on behalf of connection type, execute the access behaviour of the access pre-determined link address information
Make.
Specifically, mobile terminal can execute the access pre-determined link address information using the general connection mode
While access operation, using the access operation acted on behalf of connection type and execute the access pre-determined link address information;Or
Person, mobile terminal first using the general connection mode and it is described act on behalf of one of connection type connection type, execute institute
The access operation of access pre-determined link address information is stated, then using the general connection mode and described is acted on behalf of in connection type
Another connection type, execute again it is described access pre-determined link address information access operation.
Then, whether feedback information, mobile terminal can be obtained according to the access operation of access pre-determined link address information
Executable step S2 or step S3.
Since some mobile terminals have the function in local cache webpage, that is, when requesting access to pre-determined link address
When information, this kind of mobile terminal, which may obtain, is buffered in local pre-determined link address information, as based on the anti-of access operation
Feedforward information, even if thus in the case where network state is not connected, it is also possible to acquisition matches anti-with feedback on reservation information
Feedforward information.Therefore, for this kind of mobile terminal, if matching when that can be obtained using a kind of connection type with feedback on reservation information
Feedback information when, that is, judge that current network state to have connected, may generate erroneous judgement.The present embodiment can pass through terminal
Relevant information judges whether mobile terminal is to have the mobile terminal of local cache webpage function, and when judging that mobile terminal is
When mobile terminal with local cache webpage function, using two kinds of connection types, pre-determined link address information is accessed respectively, by
The webpage of recent visit is often only cached in mobile terminal, such as last webpage accessed, and in two kinds of connection types, usually only
Having a kind of connection type is to be currently able to be successfully connected the available connection type of network, therefore, by this kind of mobile terminal point
Not Cai Yong two kinds of connection types execute access operations, the False Rate of network state can be reduced.
One of preferred embodiment as above-described embodiment, step S3 include the following steps:When use general connection mode with
It is mobile and when acting on behalf of connection type and being performed access operation and can obtain the feedback information to match with feedback on reservation information
Terminal determine current network state be have connected, and by the general connection mode and it is described act on behalf of in connection type, with
Last time determines that network state is the connection type that used connection type is different when having connected, as actually available connection side
Formula.
For example, the adoptable general connection mode of mobile terminal is CMNET, adoptable connection type of acting on behalf of is CMWAP;
During last round of determining network state, mobile terminal determines that network state is to have connected, and can be successfully connected network
Available connection type be CMNET;When in this step, mobile terminal judgement in step sl using CMNET and CMWAP come
When the access operation of execution can obtain the feedback information to match with feedback on reservation information, mobile terminal determines current net
Network state is to have connected, and will determine that network state is that used connection type CMNET is different when having connected from the last time
Connection type CMWAP, as actually available connection type, that is, the currently practical available connection side that can be successfully connected network
Formula.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that any when using general connection mode and acting on behalf of connection type and be performed access
When operation can obtain the feedback information to match with feedback on reservation information, current network state is determined to have connected, and
By the general connection mode and it is described act on behalf of in connection type, with last time determine network state to have connected when used
The different connection type of connection type should be included in model of the invention as the implementation of actually available connection type
In enclosing.
The present embodiment can be in the web cache function due to mobile terminal, and acquisition is based respectively on two kinds of connection types and obtains
To, can match with feedback on reservation information feedback information when, relatively accurately determining currently practical can be successfully connected
The actually available connection type of network.
Fig. 2 is a preferred embodiment of the invention for determining the method flow diagram of network state.The side of the present embodiment
Method includes step S1, step S2, step S3 and step S4.
Wherein, step S1 to step S3 has been described in detail with reference to the embodiment shown in FIG. 1, and details are not described herein.
In step s 4, when mobile terminal determines that current network state is to have connected in step s3, mobile terminal
The connection type that the feedback information to match with feedback on reservation information is based on, the history as the mobile terminal can use company
Mode is connect, is recorded into web-based history state recording.Preferably, the current network state of determination can be also to have connected by mobile terminal
Temporal information when connecing can use the corresponding temporal information of connection type, record to web-based history state recording as with the history
In.
For example, mobile terminal is in step s3, determines based on the general connection mode 3GNET feedback information obtained and make a reservation for
Feedback information matches, then 3GNET can be used connection type, record to web-based history state recording by mobile terminal
In.
Further, in upper example, mobile terminal determination is based on the general connection mode 3GNET feedback information obtained and in advance
Determining time point when feedback information matches is 1 day 12 January in 2012:31, then mobile terminal can also using the time point as with
The history can use the corresponding temporal information of connection type 3GNET, record into web-based history state recording.
Preferably, the available connection type that mobile terminal can periodically in deleting history etnwork status record, alternatively, when available
When connection type exceeds predetermined threshold beyond predetermined quantity or its storage time, connection type etc. can be used by deleting part.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that any network state current when determination is when having connected, it will be with feedback on reservation information
The connection type that the feedback information to match is based on, the history as the mobile terminal can use connection type, and record is to going through
Implementation in history etnwork status record, should be included in the scope of the present invention.
The present embodiment be able to record mobile terminal history can with connection type, so as in subsequent determining network state,
Connection type can be used with reference to history.
One of preferred embodiment as the present embodiment, the method for the present embodiment further include step S5 before step S1, step
Rapid S1 includes step S11 and step S12.
In step s 5, mobile terminal judges that connection type can be used with the presence or absence of history in web-based history state recording.Its
In, mobile terminal can take turns in network state determination process at least one before epicycle network state determination process, can by history
It is recorded with connection type into the web-based history state recording.
For example, mobile terminal judges that connection type etc. can be used by whether having recorded history in web-based history state recording.
In step s 11, when that can use connection type there are history, mobile terminal can use connection type, choosing according to history
One of general connection mode is selected and act on behalf of connection type connection type, executes the access pre-determined link address information
Access operation.
Specifically, when that can use connection type there are history, mobile terminal can use connection type according to history, select general
Connection type and connection type of one of acting on behalf of connection type, execute the access operation of access pre-determined link address information
Mode includes but is not limited to:
1) history of the last record of mobile terminal selection can use connection type, execute access pre-determined link address information
Access operation.
For example, the history recorded in web-based history state recording can with connection type by elder generation be sequentially after UNWAP,
UNNET, UNWAP, UNWAP and UNNET, then the history of the last record of mobile terminal selection can use connection type UNNET, hold
The access operation of row access pre-determined link address information.
2) when that can use connection type there are history, mobile terminal is according to corresponding web-based history configuration and current network
The history of configuration consistency can use connection type, select general connection mode and connection type of one of acting on behalf of connection type,
Execute the access operation of the access pre-determined link address information.
Specifically, mobile whole when only corresponding to a kind of connection type with the configuration of the web-based history of current network configuration consistency
End selects the connection type, executes the access operation of the access pre-determined link address information;When with current network configuration consistency
Web-based history when configuring corresponding two kinds of connection types, the connection type of the last record of mobile terminal selection, the row visit
Ask the access operation of pre-determined link address information.
For example, the history recorded in web-based history state recording can include UNWAP, UNWAP and UNNET with connection type,
The corresponding web-based history of the three is configured to " agency:It opens;Operator:China Unicom ", " agency:It opens;Operator:China
Connection " and " agency:It closes;Operator:China Unicom ";Current network configuration in " agency " and " operator " option be respectively
"ON" and " China Unicom ", then mobile terminal selects history corresponding with the configuration of the web-based history of current network configuration consistency can
With connection type UNWAP, the access operation of the access pre-determined link address information is executed.
Wherein, it can be configured with the corresponding web-based history of connection type with history, it can be during every wheel determination network state
Step S4 in record into web-based history state recording.Specifically, step S4 further comprises step S4 '.In step S4 '
In, when mobile terminal determines that current network state is to have connected, the feedback information institute that will match with feedback on reservation information
Based on connection type, the history as the mobile terminal can use connection type, and the history can be made with connection type
Network configuration used by mobile terminal described in used time is configured as corresponding web-based history, and the history can be used connection
Mode and corresponding web-based history configuration record are into web-based history state recording.
For example, mobile terminal is in step s3, determines based on the general connection mode 3GNET feedback information obtained and make a reservation for
Feedback information matches, then 3GNET can be used connection type by mobile terminal, and obtains mobile terminal at this time and adopted
All or part in network configuration information, as the corresponding web-based history configuration of the 3GNET that records with this, record is extremely
In web-based history state recording.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that it is any when there are history connection type can be used, connection type can be used according to history,
Selection general connection mode and connection type of one of acting on behalf of connection type, execute the access pre-determined link address information
Access operation implementation, should be included in the scope of the present invention.
Then, in step s 12, can not obtain when being performed access operation based on a kind of selected connection type
When obtaining feedback information or can not obtain the feedback information to match with feedback on reservation information, mobile terminal uses general connection mode
And another connection type in connection type is acted on behalf of, the access behaviour of the access pre-determined link address information is executed again
Make.
It should be noted that as a preferred embodiment, referring to Figures 1 and 2 shown in method, can be by mobile terminal
Network state determining device is implemented.
The present embodiment can select to be more likely to that connection can be used for the history of currently available connection type by reference to network configuration
Mode first carries out access operation, so as to reduce the number of access operation, accelerates the speed for determining network state.
Fig. 3 is the structural schematic diagram of the network state determining device for determining network state of one aspect of the invention.
Network state determining device of the invention is contained in mobile terminal, the network state determining device include access executive device 1,
First determining device 2 and the second determining device 3.
Access executive device 1 is held using general connection mode and connection type of at least one of acting on behalf of connection type
Row accesses the access operation of pre-determined link address information at least once.
Wherein, the general connection mode includes that can connect public network access point by the mobile terminal directly to access net
The connection type of network resource.For example, the CMNET of China Mobile, UNNET, 3GNET of China Unicom, the CTNET of China Telecom
Deng.
Wherein, the connection type of acting on behalf of includes Intranet access point being connected by the mobile terminal, and need to pass through agency
To access the connection type of Internet resources.For example, the CMWAP of China Mobile, UNWAP, 3GWAP of China Unicom, China Telecom
CTWAP etc..
Preferably, the pre-determined link address information is to be capable of the link address information of consistent access, for example, a website
Link address information etc. is provided in the stabilization of offer, to avoid unstable as pre-determined link address information caused by network state
Erroneous judgement.It is highly preferred that the pre-determined link address information can be multiple link address informations, then accessing executive device 1 can be used
General connection mode and connection type of at least one of acting on behalf of connection type, in the multiple link address informations of random access
One, alternatively, multiple link address information can be accessed one by one until the feedback to match with feedback on reservation information can be obtained
Information.
Wherein, various ways can be used to execute the access of the access pre-determined link address information in access executive device 1
Operation.
For example, access executive device 1 can get the predetermined Agent IPs of multiple operators, for example, China Mobile and connection
Predetermined Agent IP includes 10.0.0.172:80, the predetermined Agent IP of China Telecom includes 10.0.0.200:80, and basis respectively
Each predetermined Agent IP uses the access operation for acting on behalf of connection type access pre-determined link address information to execute.
Preferably, access executive device 1 executes the access pre-determined link address information using the connection type of acting on behalf of
The operation of access operation include:According to the network configuration of the mobile terminal, proxy IP information is determined, and according to the agency
IP information executes the access operation of the access pre-determined link address information.
For example, access executive device 1 determines that proxy IP information is 10.0.0.172 by inquiring its network configuration:80, and
Pre-determined link address information is www.baidu.com, then needs when will access the pre-determined link address information that access executive device 1
Header field in the solicited message of transmission:
HttpConnection conn=(HttpConnection) Connector.open (" http://
t.baidu.com/static/test.bin");
It replaces with:
HttpConnection conn=(HttpConnection) Connector.open (" http://
10.0.0.172:80/static/test.bin");
Conn.setRequestProperty (" X-Online-Host ", " t.baidu.com ");
Wherein, conn.setRequestProperty (" X-Online-Host ", " t.baidu.com ") it is the X- added
Online-Host header field, thresholding host.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that any using the access for acting on behalf of connection type execution access pre-determined link address information
The implementation of operation, should be included in the scope of the present invention.
Specifically, access executive device 1 is using general connection mode and connection of at least one of acting on behalf of connection type
Mode, the mode for executing the access operation for accessing pre-determined link address information at least once include but is not limited to:
1) access executive device 1 includes parallel executive device (not shown), and parallel executive device uses the general connection
Mode executes the access operation of the access pre-determined link address information, and is acted on behalf of described in connection type execution using described simultaneously
Access the access operation of pre-determined link address information.
For example, parallel executive device is also visited using CMWAP while using CMNET access pre-determined link address information
Ask pre-determined link address information.
2) access executive device 1 is first connected using the general connection mode and described one of connection type of acting on behalf of
Mode, executes the access operation of the access pre-determined link address information, then uses the general connection mode and the generation
Another connection type in connection type is managed, executes the access operation of the access pre-determined link address information again.
For example, access executive device 1 first accesses pre-determined link address information using CMNET, then predetermined using CMWAP access
Link address information.
3) access executive device 1 includes executive device (not shown) and again executive device (not shown) for the first time, for the first time
Executive device using the general connection mode and it is described act on behalf of one of connection type connection type, execute the access
The access operation of pre-determined link address information, and ought can not be obtained based on using a kind of connection type to be performed access operation
When obtaining feedback information or the feedback information to match with the feedback on reservation information can not be obtained, again described in executive device use
General connection mode and another connection type acted on behalf of in connection type, with executing the access pre-determined link again
The access operation of location information.
For example, executive device randomly chooses for the first time, alternatively, accessing pre-determined link using 3GWAP according to predetermined order selection
Address information, and fail to obtain any feedback information or there is no and feedback on reservation information phase using the access operation of 3GWAP
Matched feedback information;Then executive device executes access pre-determined link address using another connection type 3GNET again again
The access operation of information.
Wherein, the feedback on reservation information includes the feedback letter that should be obtained after successful access pre-determined link address information
Breath.For example, pre-determined link address information is www.baidu.com, then feedback on reservation information includes successful access
The feedback information that should obtain after www.baidu.com, server pointed by the link address information returns.
It should be noted that executing access operation when first time, i.e., when using a kind of connection side in this implementation
When formula is performed access operation and can obtain the feedback information to match with feedback on reservation information, network state determining device is true
Network state before settled is to have connected.Preferably, may further determine that when executing access operation for the first time the connection type that uses for
The available connection type of network can be successfully connected.
It should be further noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to this hair
Bright limitation using general connection mode and is acted on behalf of in connection type at least it should be appreciated by those skilled in the art that any
A kind of connection type executes the implementation for accessing the mode of access operation of pre-determined link address information at least once, should all
Within the scope of the present invention.
When based on general connection mode and acting on behalf of the access operation at least once in connection type and can not obtain feedback letter
When breath, the first determining device 2 determines that the current network state of the mobile terminal is not connected.
For example, when access executive device 1 accesses pre-determined link with connection type is acted on behalf of using general connection mode simultaneously
Address information, and when can not obtain any feedback information, the first determining device 2 determines the current network state of the mobile terminal
It is not connected.
In another example being accessed afterwards using connection type is acted on behalf of predetermined when access executive device 1 first uses general connection mode
Link address information, and when can not obtain any feedback information, the first determining device 2 determines the current net of the mobile terminal
Network state is not connected.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that it is any when access operation can not obtain feedback information at least once based on described in, really
The current network state of the fixed mobile terminal is not connected implementation, be should be included in the scope of the present invention.
When based on general connection mode and acting on behalf of the access operation at least once in connection type and can obtain feedback letter
When breath, whether the second determining device 3 matches with feedback on reservation information according to the feedback information, determines that current network state is
It has connected or is not connected with.Preferably, network state determining device may further determine that general connection mode and act on behalf of in connection type
It is any be that can be successfully connected the available connection type of network.
For example, access executive device 1 uses general connection mode simultaneously and acts on behalf of connection type accesses predetermined chain respectively
Address information is connect, and obtains the feedback information A obtained using general connection mode execution access operation and is connected using agency
Mode executes the feedback information B of access operation acquisition;Then the second determining device 3 is respectively by feedback information A and feedback information B and pre-
Determine feedback information to be matched, obtains feedback information A and feedback on reservation information mismatches, feedback information B and feedback on reservation information
Matched matching result, then the second determining device 3 determines that current network state is to have connected.Preferably, network state determines
Device also determines that acting on behalf of connection type is to be currently able to be successfully connected the available connection type of network.
In another example executive device first randomly chooses general connection mode access pre-determined link address information for the first time, and fail
Any feedback information is obtained in the given time, then executive device then uses with acting on behalf of connection type access pre-determined link again
Location information obtains feedback information C;Then the second determining device 3 matches feedback information C with feedback on reservation information, and determines
Feedback letter C and feedback on reservation information mismatch, then the second determining device 3 determines that current network state is not connected.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that it is any when based on access operation can obtain feedback information at least once, according to this
Whether feedback information matches with feedback on reservation information, determines that current network state is the realization side for having connected or being not connected with
Formula should be included in the scope of the present invention.
The present invention can determine the network state of mobile terminal in the case where mobile terminal can not provide network state.
Also, present invention determine that the speed of network state is fast, accuracy rate is high, and system resources consumption is few;In addition, by judgement based on access
Operate whether resulting feedback information matches with feedback on reservation information, can be avoided by fed back based on access operation it is non-at
Function access information, such as inform the feedback information of access failure, it is mistakenly considered successful access information, improves the judgement of network state
Accuracy rate.
As one of the preferred embodiment of the present invention, network state determining device of the invention further includes access executive device
1 operated before execute operation the second judgment means (not shown), aforementioned access executive device 1 include son access execute dress
Set (not shown).
Whether the second judgment means judge it in predetermined mobile terminal list according to the terminal related information of mobile terminal
In, wherein the mobile terminal in the predetermined mobile terminal list can be in its local cache webpage.
Wherein, the terminal related information includes any information that can be used in determining mobile terminal model, for example, mobile
Platform, system and the other software of terminal and hardware information etc..
Specifically, the second judgment means determine its type according to its terminal related information, and by whether can be predetermined
Its type is inquired in mobile terminal list, judges it whether in predetermined mobile terminal list.
When judging that the mobile terminal is in the predetermined mobile terminal list, institute is respectively adopted in sub- access executive device
State general connection mode and it is described act on behalf of connection type, execute the access operation of the access pre-determined link address information.
Specifically, sub- access executive device can execute the access pre-determined link address using the general connection mode
While the access operation of information, using the access behaviour for acting on behalf of connection type and executing the access pre-determined link address information
Make;Alternatively, son access executive device is first connected using the general connection mode and described one of connection type of acting on behalf of
Mode, executes the access operation of the access pre-determined link address information, then uses the general connection mode and the generation
Another connection type in connection type is managed, executes the access operation of the access pre-determined link address information again.
Then, whether feedback information can be obtained according to the access operation of access pre-determined link address information, first determines
Device 2 or the executable operation of the second determining device 3.
Since some mobile terminals have the function in local cache webpage, that is, when requesting access to pre-determined link address
When information, this kind of mobile terminal, which may obtain, is buffered in local pre-determined link address information, as based on the anti-of access operation
Feedforward information, even if thus in the case where network state is not connected, it is also possible to acquisition matches anti-with feedback on reservation information
Feedforward information.Therefore, for this kind of mobile terminal, if matching when that can be obtained using a kind of connection type with feedback on reservation information
Feedback information when, that is, judge that current network state to have connected, may generate erroneous judgement.The present embodiment can pass through terminal
Relevant information judges whether mobile terminal is to have the mobile terminal of local cache webpage function, and when judging that mobile terminal is
When mobile terminal with local cache webpage function, using two kinds of connection types, pre-determined link address information is accessed respectively, by
The webpage of recent visit is often only cached in mobile terminal, such as last webpage accessed, and in two kinds of connection types, usually only
Having a kind of connection type is to be currently able to be successfully connected the available connection type of network, therefore, by this kind of mobile terminal point
Not Cai Yong two kinds of connection types execute access operations, the False Rate of network state can be reduced.
One of preferred embodiment as above-described embodiment, the second determining device 3 include sub- determining device (not shown).When adopting
With general connection mode and acts on behalf of connection type and be performed access operation and can obtain and match with feedback on reservation information
Feedback information when, sub- determining device determines that current network state is to have connected, and by the general connection mode and institute
It states and acts on behalf of in connection type, determine that network state is the connection side that used connection type is different when having connected from last
Formula, as actually available connection type.
For example, the adoptable general connection mode of mobile terminal is CMNET, adoptable connection type of acting on behalf of is CMWAP;
During last round of determining network state, network state determining device determines that network state is to have connected, and can succeed
The available connection type for connecting network is CMNET;Group determining device judge in access executive device 1 using CMNET and
When CMWAP is performed access operation and can obtain the feedback information to match with feedback on reservation information, sub- determining device is true
Network state before settled is to have connected, and will determine that network state is used connection type when having connected with the last time
CMNET different connection type CMWAP, as actually available connection type, that is, currently practical can be successfully connected network
Connection type can be used.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that any when using general connection mode and acting on behalf of connection type and be performed access
When operation can obtain the feedback information to match with feedback on reservation information, current network state is determined to have connected, and
By the general connection mode and it is described act on behalf of in connection type, with last time determine network state to have connected when used
The different connection type of connection type should be included in model of the invention as the implementation of actually available connection type
In enclosing.
The present embodiment can be in the web cache function due to mobile terminal, and acquisition is based respectively on two kinds of connection types and obtains
To, can match with feedback on reservation information feedback information when, relatively accurately determining currently practical can be successfully connected
The actually available connection type of network.
Fig. 4 is a preferred embodiment of the invention for determining that the structure of the network state determining device of network state is shown
It is intended to.The method of the present embodiment includes access executive device 1, the first determining device 2, the second determining device 3 and recording device
4。
Wherein, executive device 1, the first determining device 2 and the second determining device 3 are accessed referring to embodiment illustrated in fig. 3
In be described in detail, details are not described herein.
When the second determining device 3 determines that current network state is to have connected, recording device 4 will be with feedback on reservation information
The connection type that the feedback information to match is based on, the history as the mobile terminal can use connection type, and record is to going through
In history etnwork status record.Preferably, the current network state of determination can be also time letter when having connected by recording device 4
Breath can use the corresponding temporal information of connection type as with the history, record into web-based history state recording.
Believed for example, the second determining device 3 is determined based on the general connection mode 3GNET feedback information obtained and feedback on reservation
Manner of breathing matching, then 3GNET can be used connection type by recording device 4, record into web-based history state recording.
Further, in upper example, the second determining device 3 determines the feedback letter obtained based on general connection mode 3GNET
Time point when breath matches with feedback on reservation information is 1 day 12 January in 2012:31, then recording device 4 can also be by the time point
The corresponding temporal information of connection type 3GNET can be used as with the history, recorded into web-based history state recording.
Preferably, the available connection type that network state determining device can periodically in deleting history etnwork status record, or
Person, when available connection type exceeds predetermined threshold beyond predetermined quantity or its storage time, connection type can be used by deleting part
Deng.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that any network state current when determination is when having connected, it will be with feedback on reservation information
The connection type that the feedback information to match is based on, the history as the mobile terminal can use connection type, and record is to going through
Implementation in history etnwork status record, should be included in the scope of the present invention.
The present embodiment be able to record mobile terminal history can with connection type, so as in subsequent determining network state,
Connection type can be used with reference to history.
One of preferred embodiment as the present embodiment, the network state determining device of the present embodiment further include executing in access
Device 1 executes the first judgment means (not shown) of operation before being operated, access executive device 1 includes selection device (figure
Do not show) and the second executive device (not shown) again.
First judgment means judge that connection type can be used with the presence or absence of history in web-based history state recording.Wherein, it records
Device 4 can take turns in network state determination process at least one before epicycle network state determination process, and history can be used connection
Mode is recorded into the web-based history state recording.
For example, the first judgment means judge that connection type etc. can be used by whether having recorded history in web-based history state recording.
When that can use connection type there are history, selection device can use connection type according to history, select general connection side
Formula and connection type of one of acting on behalf of connection type, execute the access operation of the access pre-determined link address information.
Specifically, when that can use connection type there are history, selection device can use connection type according to history, select general
Connection type and connection type of one of acting on behalf of connection type, execute the access operation of access pre-determined link address information
Mode includes but is not limited to:
1) history of the last record of selection device selection can use connection type, execute access pre-determined link address information
Access operation.
For example, the history recorded in web-based history state recording can with connection type by elder generation be sequentially after UNWAP,
UNNET, UNWAP, UNWAP and UNNET, then the history of the last record of selection device selection can use connection type UNNET, hold
The access operation of row access pre-determined link address information.
2) selection device further comprises sub- selection device (not shown), when there are history connection type can be used, sub- choosing
Connection type can be used according to corresponding web-based history configuration and the history of current network configuration consistency by selecting device, select general company
One of mode is connect and act on behalf of connection type connection type, executes the access behaviour of the access pre-determined link address information
Make.
Specifically, when only corresponding to a kind of connection type with the configuration of the web-based history of current network configuration consistency, sub- selection
Device selects the connection type, executes the access operation of the access pre-determined link address information;When with current network configuration one
When the web-based history of cause configures corresponding two kinds of connection types, the connection type of sub- the last record of selection device selection, row institute
State the access operation of access pre-determined link address information.
For example, the history recorded in web-based history state recording can include UNWAP, UNWAP and UNNET with connection type,
The corresponding web-based history of the three is configured to " agency:It opens;Operator:China Unicom ", " agency:It opens;Operator:China
Connection " and " agency:It closes;Operator:China Unicom ";Current network configuration in " agency " and " operator " option be respectively
"ON" and " China Unicom ", then sub- selection device selects history corresponding with the configuration of the web-based history of current network configuration consistency
Connection type UNWAP can be used, the access operation of the access pre-determined link address information is executed.
Wherein, recording device 4 further comprises subrecord device (not shown).It can be gone through with connection type is corresponding with history
History network configuration can be recorded during every wheel determines network state into web-based history state recording by subrecord device.Tool
Body, when the second determining device 3 determines that current network state is to have connected, subrecord device will be with feedback on reservation information phase
The connection type that matched feedback information is based on, the history as the mobile terminal can use connection type, and by the history
Can use connection type when being used network configuration used by the mobile terminal configured as corresponding web-based history, and
It can be with connection type and corresponding web-based history configuration record into web-based history state recording by the history.
Believed for example, the second determining device 3 is determined based on the general connection mode 3GNET feedback information obtained and feedback on reservation
Manner of breathing matching, then 3GNET can be used connection type by subrecord device, and obtain used by mobile terminal at this time
All or part in network configuration information, as the corresponding web-based history configuration of the 3GNET that is recorded with this, record to history
In etnwork status record.
It should be noted that the above-mentioned examples are merely illustrative of the technical solutions of the present invention, rather than to limit of the invention
System, it should be appreciated by those skilled in the art that it is any when there are history connection type can be used, connection type can be used according to history,
Selection general connection mode and connection type of one of acting on behalf of connection type, execute the access pre-determined link address information
Access operation implementation, should be included in the scope of the present invention.
Then, when based on a kind of selected connection type be performed access operation can not obtain feedback information or
When can not obtain the feedback information to match with feedback on reservation information, second again executive device using general connection mode and
Another connection type in connection type is acted on behalf of, executes the access operation of the access pre-determined link address information again.
The present embodiment can select to be more likely to that connection can be used for the history of currently available connection type by reference to network configuration
Mode first carries out access operation, so as to reduce the number of access operation, accelerates the speed for determining network state.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With specific integrated circuit (ASIC) or any other realized similar to hardware device.In one embodiment, software of the invention
Program can be executed to implement the above steps or functions by processor.Similarly, software program of the invention (including phase
The data structure of pass) it can be stored in computer readable recording medium, for example, RAM memory, magnetic or optical driver or soft
Disk and similar devices.In addition, some of the steps or functions of the present invention may be implemented in hardware, for example, as with processor
Cooperate the circuit thereby executing each step or function.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in system claims is multiple
Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table
Show title, and does not indicate any particular order.
Claims (16)
1. a kind of method for determining network state in the terminal, wherein this approach includes the following steps:
It is pre- to execute access at least once using general connection mode and connection type of at least one of acting on behalf of connection type by a
Determine the access operation of link address information;
Wherein, this method is further comprising the steps of:
X determines the current network of the mobile terminal when access operation can not obtain feedback information at least once based on described in
State is not connected;
Y when based on it is described access operation can obtain feedback information at least once when, according to the feedback information whether with it is predetermined anti-
Feedforward information matches, and determines that current network state is to have connected or be not connected with;
Wherein, this method is further comprising the steps of:
According to the terminal related information of the mobile terminal, the type of the mobile terminal is determined, and by whether can be pre-
Determine to inquire the type in mobile terminal list, judges the mobile terminal whether in predetermined mobile terminal list, wherein institute
The mobile terminal stated in predetermined mobile terminal list can be in its local cache webpage;
Wherein, the step a includes the following steps:
When judging that the mobile terminal is in the predetermined mobile terminal list, be respectively adopted the general connection mode with
And it is described act on behalf of connection type, execute the access operation of the access pre-determined link address information.
2. according to the method described in claim 1, wherein, the step a includes the following steps:
The access operation of the access pre-determined link address information is executed using the general connection mode, and uses institute simultaneously
It states and acts on behalf of the access operation that connection type executes the access pre-determined link address information.
3. according to the method described in claim 1, wherein, the step a includes the following steps:
Using the general connection mode and it is described act on behalf of one of connection type connection type, it is pre- to execute the access
Determine the access operation of link address information;
When can not obtain feedback information or can not obtain and institute based on being performed access operation using a kind of connection type
When stating the feedback information that feedback on reservation information matches, using the general connection mode and described act on behalf of in connection type
Another connection type executes the access operation of the access pre-determined link address information again.
4. according to the method in any one of claims 1 to 3, wherein this method is further comprising the steps of:
I is when determining the current network state is to have connected, by the feedback information to match with feedback on reservation information
The connection type being based on, the history as the mobile terminal can use connection type, record into web-based history state recording.
5. according to the method described in claim 4, wherein, this method is further comprising the steps of before the step a:
Judge that connection type can be used with the presence or absence of history in the web-based history state recording;
Wherein, the step a includes the following steps:
A1 can use connection type when that can use connection type there are the history, according to the history, select the general connection
Mode and it is described act on behalf of one of connection type connection type, execute the access behaviour of the access pre-determined link address information
Make;
A2 can not obtain feedback information or can not obtain when being performed access operation based on a kind of selected connection type
Match with the feedback on reservation information feedback information when, using the general connection mode and described act on behalf of connection side
Another connection type in formula executes the access operation of the access pre-determined link address information again.
6. according to the method described in claim 5, wherein, the step i includes the following steps:
When determining the current network state is to have connected, by the feedback information to match with feedback on reservation information
The connection type being based on, the history as the mobile terminal can use connection type, and the history can be used connection type quilt
Network configuration used by the mobile terminal is configured as corresponding web-based history when using, and the history can be used company
Mode and corresponding web-based history configuration record are connect into web-based history state recording;
Wherein, the step a1 includes the following steps:
When there are the history connection type can be used, according to corresponding web-based history configuration and current network configuration consistency
History can use connection type, select the general connection mode and it is described act on behalf of one of connection type connection type,
Execute the access operation of the access pre-determined link address information.
7. according to the method described in claim 1, wherein, the step y includes the following steps:
When using the general connection mode and described acting on behalf of connection type and be performed the access operation and can obtain
When the feedback information to match with feedback on reservation information, determine that current network state is to have connected, and by the general connection
Mode and it is described act on behalf of in connection type, from last time determine network state be have connected when used connection type it is different
Connection type, as actually available connection type.
8. according to the method in any one of claims 1 to 3, wherein execute the visit using the connection type of acting on behalf of
The step of asking the access operation of pre-determined link address information include:
According to the network configuration of the mobile terminal, proxy IP information is determined;
According to the proxy IP information, the access operation of the access pre-determined link address information is executed.
9. a kind of in the terminal for determining the network state determining device of network state, wherein the network state determines
Device includes:
Executive device is accessed, for holding using general connection mode and connection type of at least one of acting on behalf of connection type
Row accesses the access operation of pre-determined link address information at least once;
First determining device, for determining the shifting when access operation can not obtain feedback information at least once based on described in
The current network state of dynamic terminal is not connected;
Second determining device, for when based on it is described access operation can obtain feedback information at least once when, according to the feedback
Whether information matches with feedback on reservation information, determines that current network state is to have connected or be not connected with;
Wherein, which further includes:
Second judgment means determine the type of the mobile terminal for the terminal related information according to the mobile terminal, and
By whether the type can be inquired in predetermined mobile terminal list, judge the mobile terminal whether predetermined mobile whole
It holds in list, wherein the mobile terminal in the predetermined mobile terminal list can be in its local cache webpage;
Wherein, the access executive device includes:
Son access executive device, for being respectively adopted when judging that the mobile terminal is in the predetermined mobile terminal list
The general connection mode and it is described act on behalf of connection type, execute the access operation of the access pre-determined link address information.
10. network state determining device according to claim 9, wherein the access executive device includes:
Parallel executive device, for executing the access behaviour of the access pre-determined link address information using the general connection mode
Make, and simultaneously using the access operation acted on behalf of connection type and execute the access pre-determined link address information.
11. network state determining device according to claim 9, wherein the access executive device includes:
Executive device for the first time, for using the general connection mode and described acting on behalf of one of connection type connection side
Formula executes the access operation of the access pre-determined link address information;
First executive device again, for when can not be obtained instead based on being performed access operation using a kind of connection type
Feedforward information or when can not obtain the feedback information to match with the feedback on reservation information, using the general connection mode and
Another connection type acted on behalf of in connection type executes the access behaviour of the access pre-determined link address information again
Make.
12. the network state determining device according to any one of claim 9 to 11, wherein the network state determines dress
It sets and further includes:
Recording device will be described with feedback on reservation information phase for when determining the current network state is to have connected
The connection type that the feedback information matched is based on, the history as the mobile terminal can use connection type, record to history net
In network state recording.
13. network state determining device according to claim 12, wherein the network state determining device further includes in institute
The following device of operation is executed before stating access executive device:
First judgment means can use connection type with the presence or absence of history in the web-based history state recording for judging;
Wherein, the access executive device includes:
Selection device, for that can use connection type according to the history, select institute when there are the history connection type can be used
State general connection mode and it is described act on behalf of one of connection type connection type, execute the access pre-determined link address and believe
The access operation of breath;
Second executive device again, for that can not obtain when being performed access operation based on a kind of selected connection type
When obtaining feedback information or the feedback information to match with the feedback on reservation information can not be obtained, using the general connection mode
And another connection type acted on behalf of in connection type, the access of the access pre-determined link address information is executed again
Operation.
14. network state determining device according to claim 13, wherein the recording device includes:
Subrecord device will be described with feedback on reservation information phase for when determining the current network state is to have connected
The connection type that matched feedback information is based on, the history as the mobile terminal can use connection type, and by the history
Can use connection type when being used network configuration used by the mobile terminal configured as corresponding web-based history, and
It can be with connection type and corresponding web-based history configuration record into web-based history state recording by the history;
Wherein, the selection device includes:
Sub- selection device, for configuring and working as according to corresponding web-based history when there are the history connection type can be used
The preceding consistent history of network configuration can use connection type, select the general connection mode and described act on behalf of in connection type
A kind of connection type executes the access operation of the access pre-determined link address information.
15. network state determining device according to claim 9, wherein second determining device includes:
Sub- determining device is performed the access using the general connection mode and the connection type of acting on behalf of for working as
When operation can obtain the feedback information to match with feedback on reservation information, current network state is determined to have connected, and
By the general connection mode and it is described act on behalf of in connection type, with last time determine network state to have connected when used
The different connection type of connection type, as actually available connection type.
16. the network state determining device according to any one of claim 9 to 11, wherein connected using the agency
The operation of access operation that mode executes the access pre-determined link address information includes:
According to the network configuration of the mobile terminal, proxy IP information is determined;
According to the proxy IP information, the access operation of the access pre-determined link address information is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210253540.1A CN103581936B (en) | 2012-07-20 | 2012-07-20 | In the terminal for determining the method, apparatus and equipment of network state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210253540.1A CN103581936B (en) | 2012-07-20 | 2012-07-20 | In the terminal for determining the method, apparatus and equipment of network state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103581936A CN103581936A (en) | 2014-02-12 |
CN103581936B true CN103581936B (en) | 2018-11-23 |
Family
ID=50052656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210253540.1A Active CN103581936B (en) | 2012-07-20 | 2012-07-20 | In the terminal for determining the method, apparatus and equipment of network state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103581936B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107294811A (en) * | 2017-07-28 | 2017-10-24 | 广东欧珀移动通信有限公司 | Network detecting method, network detection means and intelligent terminal |
CN107493206B (en) * | 2017-08-16 | 2019-04-23 | Oppo广东移动通信有限公司 | A kind of network detecting method, network detection device and intelligent terminal |
CN109963173B (en) * | 2017-12-26 | 2021-09-21 | 杭州萤石软件有限公司 | Video stream fetching method, system, computer device and machine readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1962206A2 (en) * | 2007-02-23 | 2008-08-27 | LG Electronics Inc. | Mobile communication terminal and method for accessing the internet using a mobile communication terminal |
CN101540681A (en) * | 2008-10-28 | 2009-09-23 | 厦门市美亚柏科资讯科技有限公司 | Method and system for monitoring computer network connection statuses |
CN102236587A (en) * | 2010-04-28 | 2011-11-09 | 上海中标软件有限公司 | Recovery method for abnormal firefox browser |
-
2012
- 2012-07-20 CN CN201210253540.1A patent/CN103581936B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1962206A2 (en) * | 2007-02-23 | 2008-08-27 | LG Electronics Inc. | Mobile communication terminal and method for accessing the internet using a mobile communication terminal |
CN101540681A (en) * | 2008-10-28 | 2009-09-23 | 厦门市美亚柏科资讯科技有限公司 | Method and system for monitoring computer network connection statuses |
CN102236587A (en) * | 2010-04-28 | 2011-11-09 | 上海中标软件有限公司 | Recovery method for abnormal firefox browser |
Also Published As
Publication number | Publication date |
---|---|
CN103581936A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110149423B (en) | Domain name processing method and device, readable storage medium and electronic equipment | |
CN106528432B (en) | The construction method and device of test scene data bury a test method | |
CN104426862B (en) | Realize method, system and browser that cross-domain request logs in | |
CN107798108B (en) | Asynchronous task query method and device | |
US20100257255A1 (en) | Tracking remote browser crashes via cookies | |
CN106933871A (en) | Short linking processing method, device and short linked server | |
CN103500204B (en) | A kind of web page browsing backing method, web page server and client | |
CN106412975B (en) | A kind of test method and device of content charging loophole | |
CN103581936B (en) | In the terminal for determining the method, apparatus and equipment of network state | |
CN104954431A (en) | Network selection method, device and system | |
US10540360B2 (en) | Identifying relationship instances between entities | |
CN106161519B (en) | A kind of information acquisition method and device | |
CN108647240A (en) | A kind of method, apparatus, electronic equipment and the storage medium of statistics visit capacity | |
CN111694757A (en) | Application program testing method and device, electronic equipment and computer readable storage medium | |
CN106446640B (en) | User knows method for distinguishing and server | |
CN109117447A (en) | A kind of server data access method and device of cache web pages | |
CN105988922A (en) | Testing method and device of application program as well as server | |
JP6779307B2 (en) | Method and device for page display | |
CN105847462A (en) | Domain name resolution method and device | |
US20140081589A1 (en) | Method for measuring performance of an appliance | |
CN104980311B (en) | Predict the method, apparatus and system of network access | |
CN108494870A (en) | Dynamic data loading method based on CDN and device | |
US10242199B2 (en) | Application test using attack suggestions | |
CN110020297A (en) | A kind of loading method of web page contents, apparatus and system | |
US20080162687A1 (en) | Data acquisition system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |