Invention content
In view of the foregoing, it is necessary to a kind of mobile device automatic connecting method is provided, under can making in a dormant state
Mobile device automatic line again after disconnecting, it is user-friendly.
It there is a need to and a kind of mobile device automatic connecting system is provided, the mobile device under can making in a dormant state exists
Automatic line again, user-friendly after broken string.
A kind of mobile device automatic connecting method, includes the following steps:Forwarding step one:When the mobile device enters suspend mode
During state, periodically to the order for sending requirement update network state with the first server of the mobile device line, it is desirable that should
First server feedback network state;Wake-up step:When do not receive within a certain period of time first server feedback this is network-like
During state, mobile device is waken up;Search step:Search can with the server of mobile device line, obtain including it is all can be with movement
The networked lists of the server name of device line;Forwarding step two:A server is selected from the networked lists as mesh
Server is marked, the order for requiring to establish line is sent to the destination server;Obtaining step:It obtains the destination server and receives this
It is required that the network setup information fed back after establishing the order of line, the communication cable of mobile device and the destination server is established.
A kind of mobile device automatic connecting system, including:Sending module enters dormant state for working as the mobile device
When, periodically to the order for sending requirement update network state with the first server of the mobile device line, it is desirable that this first
Server feedback network state;Wake-up module, for ought not receive within a certain period of time first server feedback this is network-like
During state, mobile device is waken up;Search module, for search for can with the server of mobile device line, obtain including it is all can be with
The networked lists of the server name of mobile device line;The sending module is additionally operable to select one from the networked lists
Server sends the order for requiring to establish line to the destination server as destination server;Acquisition module, for obtaining this
Destination server receives the requirement and establishes the network setup information fed back after the order of line, establishes mobile device and is taken with the target
The communication cable of business device.
Compared to the prior art, mobile device automatic connecting method of the present invention and system, under can making in a dormant state
Mobile device automatic line again after disconnecting, it is user-friendly.
Specific embodiment
As shown in fig.1, it is the running environment figure of the mobile device in present pre-ferred embodiments.In the present embodiment,
The mobile device 1 by 2 line of wireless network and communicates with first server 3, so as to communicate with other mobile devices, such as
Carry out the networking telephone, transmission short message etc..The mobile device 1 can be mobile phone.The wireless network 2 can be WCDMA
(Wideband Code Division Multiple Access, wideband code division multiple access)、UMTS(Universal Mobile
Telecommunications System, Universal Mobile Communication System)、Wi-Fi(Wireless fidelity, it is wireless to protect
Very), bluetooth, LTE(Long Term Evolution, long term evolution)Or WiMAX(Worldwide Interoperability
For Microwave Access, worldwide interoperability for microwave accesses)Deng.
In addition, may be further included in the wireless network 2 temporarily not with 1 line of mobile device, but can pass through wireless network 2 with move
Other servers of 1 line of dynamic device(It is representative with the second server 4 in Fig. 1).When mobile device 1 is moved to the first clothes
Be engaged in except the signal covering scope of device 3, and when being moved within the signal covering scope of second server 4, if mobile device 1 with
Second server 4 establishes line and communicates, then can continue the communication with other mobile devices.
As shown in fig.2, it is the running environment figure of mobile device automatic connecting system preferred embodiment of the present invention.The movement
Device automatic connecting system 10 is run in mobile device 1, which further includes network element 11.The network element 11
Include supporting the software and hardware configuration of network communicating function, i.e., by network element 11, mobile device 1 can pass through wireless network
2 establish line and carry out network communication with first server 3 or second server 4.
When mobile device 1 enters dormant state, which brings into operation, the network list
Necessary hardware and firmware in member 11 can not be closed, and mobile device 1 can be made to keep line with first server 3.In this reality
It applies in example, which includes sending module 101, acquisition module 102, wake-up module 103 and search
Module 104.The so-called module of the present invention is to complete the computer program code segments of a specific function, than program more suitable for describing software
Implementation procedure in mobile device 1, therefore software description is all described with module below the present invention.
Sending module 101 is used to send requirement update net to first server 3 on line by 11 timing of network element
The order of network state, it is desirable that 3 feedback network state of first server.IP address in general networking can be provided with service life,
Therefore the network state of the feedback should include the IP address after 3 updated IP address of first server or expanded service life.
Acquisition module 102 is used to obtain the network state of the feedback of first server 3.If acquisition module 102 is in certain time
(Such as 5 seconds)Inside have received the network state of the feedback of first server 3, then it represents that kept between mobile device 1 and first server 3
Line.If acquisition module 102 does not receive the network state of the feedback of first server 3 within a certain period of time, then it represents that mobile dress
Put the intermittent line of 1 and first server 3.
Wake-up module 103 is used to not receive the network-like of the feedback of first server 3 within a certain period of time when acquisition module 102
During state, mobile device 1 in a dormant state is waken up.The operating system that wake-up module 103 will first wake up mobile device 1, it is mobile
The all hardware and firmware that the operating system of device 1 will be waken up in mobile device 1.
Search module 104 can be with the service of 1 line of mobile device in wireless network 2 for being searched for by network element 11
Device obtains networked lists.The networked lists include it is all can be with the server name of 1 line of mobile device.Range of signal is contained
The server for having covered 1 present position of mobile device is considered as can be with the server of 1 line of mobile device.If mobile device 1 is not
It is to break because of being moved to except the signal covering scope of first server 3 with first server 3, i.e., mobile device 1 is gone back
Within signal covering scope in first server 3, then it should also include the name of the first server 3 in the networked lists
Claim.
Sending module 101 is additionally operable to select a server from the networked lists as destination server, and passes through net
Network unit 11 sends the order for requiring to establish line to the destination server.The destination server may be first server 3 or
Second server 4.Sending module 101 can according to preset mode from networked lists selection target server, such as select
The First server being arranged in networked lists is destination server or a server work is randomly selected from networked lists
For destination server.
Acquisition module 102, which is additionally operable to obtain the destination server, to be received the requirement and establishes the network fed back after the order of line
Set information, the network setup information include the IP address of the destination server, DNS(Domain Name System, domain name system
System)Deng.If acquisition module 102 receives the network setup information of destination server feedback within a certain period of time, shifting is established
The communication cable of dynamic device 1 and the destination server, mobile device 1 can handle the network that the destination server sends over please
It asks.
After mobile device 1 and first server 3 break, establish in the above process of line and move with the destination server
Device 1 will forbid suspend mode, even if mobile device 1 is set into dormant state, mobile device automatic connecting system 10 by user
Forbidden moves device 1 is entered into dormant state.But at some in special circumstances, such as search module 104 is searched for less than can be with shifting
The network that the server and acquisition module 102 of 1 line of dynamic device receive destination server feedback within a certain period of time is set
When determining information, mobile device 1 will be allowed into dormant state.
As shown in fig.3, it is the flow chart of mobile device automatic connecting method preferred embodiment of the present invention.Work as mobile device
During 1 entrance dormant state, S1 is entered step.
Step S1, sending module 101 send requirement update by 11 timing of network element to first server 3 on line
The order of network state, it is desirable that first server 3 feeds back the network state of first server 3.
Step S2 when acquisition module 102 does not receive the network state of the feedback of first server 3 within a certain period of time, is called out
Module 103 of waking up wakes up mobile device 1 in a dormant state.The operating system that wake-up module 103 will first wake up mobile device 1,
The all hardware and firmware that the operating system of mobile device 1 will be waken up in mobile device 1.
Step S3, search module 104 is searched for by network element 11 can be with the clothes of 1 line of mobile device in wireless network 2
Business device, obtains networked lists.The networked lists include it is all can be with the server name of 1 line of mobile device.In search mould
Block 104 search for less than can with the server of 1 line of mobile device in the case of, mobile device 1 is allowed to enter dormant state.
Step S4, sending module 101 selects a server as destination server from the networked lists, and passes through net
Network unit 11 sends the order for requiring to establish line to the destination server.
Step S5, the acquisition of acquisition module 102 destination server receive the requirement and establish the net fed back after the order of line
Network set information establishes the communication cable of mobile device 1 and the destination server.The network setup information includes the destination service
IP address, DNS of device etc..The network setup information of destination server feedback is received within a certain period of time in acquisition module 102
In the case of, mobile device 1 will be allowed into dormant state.
The above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although with reference to preferred embodiment to this hair
It is bright to be described in detail, it will be understood by those of ordinary skill in the art that, it can modify to technical scheme of the present invention
Or equivalent replacement, without departing from the spirit and scope of technical solution of the present invention.