Background technology
At present, Wireless Fidelity (Wireless Fidelity, referred to as WiFi) become WLAN (wireless local area network) (Wireless Local Area Network, referred to as WLAN) synonym of technology, the WiFi function has become the standard configuration of middle and high end terminal, for example, notebook computer is got online without being tethered to a cable, terminal WiFi wireless Internet access etc.
WiFi comprises the 802.11b/g standard, and its transmission speed is higher, can reach 11/54Mbps.Carry out web page browsing and information download by the WiFi online, ratio is by GPRS (General Packet Radio Service, referred to as GPRS) or code division multiple access (Code Division Multiple Access, referred to as CDMA) mode speed is fast, experience in order to guarantee the continuity that terminal is surfed the web, when terminal was left WiFi focus or WiFi signal interruption, terminal provided automatic GPRS to dial up on the telephone, and online is switched to the GPRS mode.
At present, GPRS/ global mobile communication (Global system for MobileCommunication, referred to as GSM), TD SDMA access (TimeDivision-Synchronous Code Division Multiple Access, referred to as TD-SCDMA), the CDMA terminal is except providing the function of surfing the Net, other abundant data services can also be provided, for example, mobile E-mail (Mobile Email, referred to as MEM), MMS (Multimedia Message Service) (Multimedia Messaging Service is referred to as MMS), Streaming Media etc.And for the terminal of supporting WiFi, can use by the WiFi mode business such as above-mentioned business of networking, MEM, MMS, Streaming Media equally, at present, some operator is studying as the user and is providing by WiFi mode access to mobile network packet switching (Packet Switch, referred to as PS) technology in territory, thus obtain form of service and the business experience consistent with mobile network's access way.
Fig. 1 is the schematic diagram according to the system group network of the MEM of correlation technique, as shown in Figure 1, in the MEM system, mainly comprises following network functional entity: MEM client (Client): for operating in the MEM Client Agent program on the portable terminal; MEM server (Server): be a gateway device between MEM Client and the mail server (Email Server), for functions such as the session management between the realization MEM client, Email data management, media format conversion, filtering rule management; Email Server: refer to common World Wide Web (WEB) mailbox, (the Post Office Protocol of Post Office Protocol 3, referred to as POP3) mailbox, Domino mailbox (mailing system of IBM), internet message access protocal (Internet Message Access Protocol is referred to as IMAP) mailbox etc.; Be with outer informing function entity (Outband Notification Function is referred to as ONF), when MEM Client and MEM Server break link, ONF notifies MEM Client with e-mail messages.
Wherein, MEM-1 and MEM-2 are the interface between MEM Client and the MEM Server, two data that represent respectively when communicating by letter between MEM Client and the MEM Server flow to, I2 is the interface between MEM Server and the Email Server, MEM-3 is the interface between MEM Server and the ONF, and MEM-4 is the interface between MEM Client and the ONF.Usually, MEM-1, MEM-2 application surface are to link stateful agreement (for example, IMAP agreement).
Several topmost MEM Business Entities have been described among Fig. 1, in real system, comprise other relevant communication entities toward the contact meeting, for example, user agent's abridged table (User-Agent Profile is referred to as the UA Profile) server that links to each other with MEMServer by certain interface.
At the net environment of WiFi network and mobile network's fusion, portable terminal can switch between WiFi network and mobile network.When portable terminal switches between WiFi network and mobile network, can cause the upper strata link down between MEM Client and the MEM Server, MEM Server then often loses because losing link for the state that this portable terminal keeps.After bearer network (WiFi network or mobile network) switches, MEM Client often needs again to login MEM Server, namely, need to re-enter the log-on messages such as account number and password, and original operation tends to be interrupted, original user interface tends to be cancelled, and it is relatively poor to cause the user to experience.
Summary of the invention
After present bearer network switching, MEM Client often needs again to login that MEM Server, user interface often are cancelled, the user operates and discontinuous etc. can cause the user to experience relatively poor problem and propose the present invention, for this reason, the present invention aims to provide a kind of processing method and device of mobile electronic mail service, to address the above problem.
A kind of processing method of mobile electronic mail service is provided according to an aspect of the present invention.
In the processing method according to mobile electronic mail service of the present invention, use the portable terminal of mobile electronic mail service to support at least source Access Network and target access network, comprise following operation: when portable terminal is switched to target access network by the source Access Network, new link between target access network foundation and mobile E-mail server, and the handover request of carrying out the network switching to the transmission of mobile E-mail server in order to request; The mobile E-mail server receives handover request, switches to new link, and the relevant information of the mobile electronic mail service of the portable terminal of preserving according to this locality, continues to communicate with portable terminal at new link.
Preferably, sending handover request to the mobile E-mail server comprises: at new link or send handover request to the mobile E-mail server on the former link that the source Access Network is set up.
Preferably, and after portable terminal communicated, said method also comprised: mobile E-mail server or portable terminal withdraw from mailing system and disconnect the former link of setting up at the source Access Network.
Preferably, handover request is the login request message that carries indication message.
Preferably, indication message is the client identity identification information.
Preferably, source Access Network and/or target access network are including, but not limited to WLAN (wireless local area network), mobile network.
Preferably, relevant information comprises: the protocol status information of the former link that portable terminal is set up at the source Access Network.
According to another aspect of the present invention, provide a kind of portable terminal.
According to portable terminal of the present invention, support at least source Access Network and target access network, above-mentioned portable terminal comprises: Access Network switching controls module is used for portable terminal and carries out handover operation control by the source Access Network to target access network; Set up module, be used for the new link between target access network foundation and mobile E-mail server; Mail service handover request module, be used for sending the handover request of carrying out the network switching in order to request to the mobile E-mail server, to ask the mobile E-mail Server switching to new link, use the relevant information of the mobile electronic mail service of the former link of setting up based on the source Access Network on new link, to communicate with portable terminal.
Preferably, above-mentioned portable terminal also comprises: disconnect module, be used for disconnecting the former link of communicating by letter at the source Access Network with the mobile E-mail server.
According to another aspect of the present invention, provide a kind of mobile E-mail server.
Mobile E-mail server according to the present invention comprises: receiver module be used for to receive and to carry out the handover request that network switches from portable terminal in order to request; Handover module is used for after receiver module receives handover request, switches on the target access network and the new link of setting up between the portable terminal; Acquisition module is used for obtaining the relevant information of the mobile electronic mail service of the local portable terminal of preserving after handover module switches to new link; Communication module, for the relevant information of obtaining according to acquisition module, the email client with portable terminal on new link communicates.
Preferably, said method also comprises: judge module is used for judging whether portable terminal satisfies switching condition before handover module carries out handover operation; Disconnect module, be used for disconnecting the former link of communicating by letter at the source Access Network with portable terminal.
By the present invention, when adopting multi-module mobile terminal to switch between different Access Networks, MEM Client sends the method for handover request to MEM Server, after having solved present bearer network and switching, can guarantee MEM Client business continuance, and then improve user's experience.
Embodiment
Functional overview
After considering that present bearer network switches, MEM Client often needs again to login MEM Server and can cause the professional discontinuous user of grade to experience relatively poor problem, the embodiment of the invention provides a kind of MEM Business Processing scheme, when multi-module mobile terminal switches between different Access Networks, MEM Client target access network rebulid and MEM Server between link, and to the instruction (can with login instruction compound) of MEM Server transmission with " switching " request, so that transferring to newly-established link at the temporary information of MEM Server, this MEM Client continues communication, namely, after MEM Server receives this request, can be at this MEM Client relative recording of buffering area retrieval coupling, and set up newly that the temporary informations such as protocol status according to original link continue follow-up communication on the link.After switching was finished, MEM Server can initiatively disconnect original the linking with MEM Client.Thereby can guarantee that MEM Client still can recover the temporary informations such as former protocol status when carrying out again automatically logining after network switches, can reach user's experience effect of MEM Client seamless switching.
Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Embodiment of the method
According to embodiments of the invention, a kind of processing method of MEM business is provided, use the portable terminal of MEM business to support at least source Access Network and target access network.At portable terminal operation MEM Client, MEM Client and MEM Server adopt towards the stateful protocol communication that links, and communication interface is MEM-1 and MEM-2.The implementation procedure of the embodiment of the invention is mainly concerned with the improvement of MEM Client and MEM Server software function.The below will take the IMAP extension protocol of IMAP agreement (or based on) as MEM-1, MEM-2 interface as embodiment, realize that to MEM Server side and MEM Client side the processing procedure of MEM business is described respectively.
Undertaken alternately by the IMAP agreement between MEM Client and the MEM Server, IMAP is based upon transmission control protocol (Transfer Control Protocol, referred to as TCP) on the link, near the link of eating dishes without rice or wine of mobile terminal side, the IMAP bottom-layer network is by mobile network or WiFi carrying.In the communicating pair, MEM Client is as the IMAP client, and MEM Server is as the IMAP service end.IMAP is the stateful Connection-oriented Protocol; (for example after logining, the user just is in certain specific protocol status; the Authenticated state); MEM Client can send to service end the instruction of fair row under this state; in the idle period of communicating by letter of client and service end; need to send IMAP:noop instruction (noop is an instruction name of IMAP agreement, act as link " keep-alive ") and keep link.
The MEM Client software that the embodiment of the invention is described includes but not limited to user interface (UserInterface is referred to as UI) module, mailbox management module, MIME coding/decoding module, IMAP protocol stack module, Push message processing module.Wherein, the UI module is used for providing the user interfaces such as editor, demonstration and mailbox maintenance of mail; The mailbox management module is used for finishing mail management and the access of the mailboxes such as inbox, outbox; Multi purpose internet mail extensions (Multipurpose Internet Mail Extensions is referred to as MIME) coding/decoding module is used for finishing the coding and decoding function of mail data; The IMAP protocol module is used for finishing IMAP protocol client function; The Push message processing module is used for finishing the mail notification information that ONF " propelling movement " comes.
Fig. 2 is the flow chart according to the MEM method for processing business of the embodiment of the invention, and as shown in Figure 2, the method comprises that following step S202 is to step S204:
When step S202, portable terminal are switched to target access network by the source Access Network, the new link between target access network foundation and MEM Server, and the handover request of carrying out the network switching to MEM Server transmission in order to request.This handover request can be login request message, wherein, carry the information that indication is switched in the login request message, that is to say, above-mentioned handover request can merge with the request instruction of login MEM Server, by carrying the information of certain parameter representative " switching " implication, perhaps give tacit consent to some MEM Client by MEM Server and log on as for the second time " switching " request.
Wherein, portable terminal can be at new link (namely, the link that the based target Access Network is set up) or at the former link (that is the upper strata MEM link of, setting up based on original Access Network) that the source Access Network is set up upward send handover request to MEM Server.
Step S204, MEM Server receives above-mentioned handover request, switch to new link, and the relevant information of the MEM business of the portable terminal of preserving according to this locality, continue and portable terminal communicates at new link, above-mentioned relevant information comprises: the protocol status information of the former link that portable terminal is set up at the source Access Network.
Particularly, after MEM Server receives handover request, MEM Server is in the buffering area retrieval relevant information of this locality, at MEM Server on new link and after MEMClient communicates, can disconnect the former link of setting up at the source Access Network with MEM Client by MEM Server, also can disconnect this former link by MEM Client.
Need to prove that above-mentioned source Access Network and target access network can include but not limited to following combination:
(1) the source Access Network is WLAN (wireless local area network) (that is, the WiFi network), and target access network is the mobile network.
(2) the source Access Network is the mobile network, and target access network is WLAN (wireless local area network) or wireless MAN.
(3) the source Access Network is respectively two kinds of different WLAN (wireless local area network) with target access network.
By the present invention, at multi-module mobile terminal in situation about switching between the different Access Networks, send " switching " request by MEM Client to MEM Server, can carry the parameter that to differentiate for " switching " information in this handover request, perhaps client identification (ClientID), MEM Server is after receiving request, judge that according to the decision rule that sets in advance this request is for logining the link switching request of MEM Client, MEM Server carries out follow-up communicate by letter according to the information such as protocol status that keep with terminal on newly-established MEM link, after having solved present bearer network switching, MEM Client need to again login MEMServer and can cause the user to experience relatively poor problem, keep the continuity of MEM business, and then improved user's experience.
The below is described in detail implementation procedure of the present invention take the IMAP extension protocol of IMAP agreement (or based on) as MEM-1, MEM-2 interface protocol as embodiment.The implementation procedure of the embodiment of the invention is mainly concerned with the improvement of MEM Client and MEM Server software function.
Wherein, the improved software function of MEM Client comprises: the operation interface of newly-increased switching controls module or increase manual switchover.
Particularly, the switching controls module is used for finishing the automatic switchover control between mobile network and the WiFi.The switching controls module is obtained WiFi, mobile network's signal energy value, determine whether need to notify MEM Client to carry out handover operation by the switchover policy that sets in advance, if after the switchover policy judgement, need to switch, then the bearer network after switching rebulids the IMAP/TCP link with service end, and again login (login), carry handover request information or functional parameter by login, for example, Client ID (that is, MEM Client identification code).
The operation interface of manual switchover provides the option of user-operable, so that the user can in the situation that network signal allows, be switched between mobile network and WiFi network as required at any time, can seamlessly use and guarantee to switch rear MEM Client.
In order to guarantee that MEM Client provides seamless switching user to experience, user interface can keep original user interface content in network break period.For example, the user switches when browsing the inbox content, and so, this moment, interface content kept legacy data constant.The automatic refresh function of mailbox is cancelled temporarily or is provided information indicating, but displaying contents keeps front consistent with interruption.
The improved function of MEM Server has: carry the parameter that can judge " switching " implication when judging login, this parameter can be Client ID, that is, above-mentioned indication message is client identity sign (Client ID) information.MEM Server can only set up a cover MEM in service end according to a Client ID and be linked as decision principle, whether the client instance of finding Client ID representative through the retrieval coupling exists, if exist, then the temporary informations such as protocol status that respond in the buffering area are linked with newly-established MEM and be associated.This parameter also can be for carrying the field of " switching " information, and MEM Server determines whether to retrieve coupling according to this field.
In conjunction with the revising of the functions of MEM Client and MEM Server, portable terminal carries out under the access network switch instances, realizes that the method for keeping MEM Server business continuance that the embodiment of the invention is described comprises that followingstep 1 is to step 6:
Step l, MEM Client are by the WiFi bearing mode, and login (login) is to MEMServer.In this step, according to the terminal concrete condition, usually MEM Client is before or after starting, and the user can selected network kind (WiFi network or mobile network, for example, this moment, terminal was selected the WiFi network insertion), and perhaps Lookup protocol is selected.
After the step 2, user login, generally speaking, the user has carried out some operation of mailbox and mail, supposes that this moment, MEM Client was that the protocol status of IMAP service end is to authorize (Authenticated) state at MEM Server.Fig. 3 switches to mobile network's schematic diagram according to the MEM business of the embodiment of the invention by WiFi, and as shown in Figure 3, the switching from WiFi to mobile network occurs terminal.In this step, set the switching kind according to configuration in advance, switching can be to automatically switch or manual switchover.Automatic switchover is initiated by the switching controls module, and manual switchover is initiated by user's manual operations user interface.
Step 3, the portable terminal target bearer network after switching rebulids the IMAP/TCP link, and MEM Client initiates login request (that is, above-mentioned step S202) at new link, and carries the correlation function parameter.Terminal can be the two standbies of WiFi or single standby, if be two standbies, MEM Client only needs directly to set up new IMAP/TCP link and gets final product.If single standby, after switching so, MEM Client need to could set up new IMAP/TCP link after terminal is finished mobile network's access.
Step 4 after MEM Server receives this login request, determines to retrieve according to the functional parameter that carries, and mates original user record, and finishes the related of newly-established link and original ephemeral data.
Step 5, MEM Client finishes handoff procedure, and recovers user's operation (that is, above-mentioned step S204) at newly-established link.
Step 6, after switching was finished, if original link exists, MEM Server initiatively disconnected original IMAP link.
By this embodiment, realized that terminal is switched to mobile network's MEM method for processing business by the WiFi network.
Need to prove that above step switches to the mobile network as example take the WiFi network, this embodiment is similar to the processing procedure that the mobile network switches to the WiFi network, does not repeat them here.The interface of the embodiment of the invention take the IMAP agreement as MEM-1, between the MEM-2 is example, but the method for keeping MEM Server business continuance that the present invention describes is applicable to the mobile e-mail system of the client-server model of other agreements, such as the MEM-1 interface based on SMTP, MEM-2 based on the IMAP agreement.
Device embodiment
Embodiment one
According to embodiments of the invention, a kind of portable terminal is provided, in this portable terminal operation MEM Client is arranged, can be used for realizing above-mentioned MEM method for processing business.Wherein, use this portable terminal of MEM business to support at least source Access Network and target access network, Fig. 4 is the structured flowchart according to the portable terminal of the embodiment of the invention, as shown in Figure 4, this portable terminal comprises: Access Network switching controls module 42, set upmodule 44 and mail service handover request module 46, the below is described said structure.
Access Network switching controls module 42 is used for portable terminal and carries out handover operation control by the source Access Network to target access network; Set upmodule 44, be connected to Access Network switching controls module 42, be used for the new link between target access network foundation and MEM Server; Mail service handover request module 46, be connected to and set upmodule 44, be used for after the new link of setting up between module 42 foundation and the MEM Server, send the handover request of carrying out the network switching in order to request to MEM Server, switch to new link with request MEM Server, use the relevant information of the MEM of the former link of setting up based on the source Access Network on new link, to communicate with portable terminal; Access Network switching controls module 42 can or send handover request to MEM Server at new link on the former link that the source Access Network is set up.
Fig. 5 is the concrete structure block diagram according to the portable terminal of the embodiment of the invention, as shown in Figure 5, this portable terminal also comprises: disconnectmodule 52, be connected to mail service handover request module 46, be used for mail service handover request module 46 sends above-mentioned handover request and receives response to MEM Server after, disconnecting the former link of communicating by letter at the source Access Network with MEM Server.
By this embodiment, in the time of can realizing switching between the different Access Networks, the portable terminal of operation MEMClient guarantees that the user of its business continuance experiences.
Embodiment two
According to embodiments of the invention, provide a kind of MEM Server.Fig. 6 is the structured flowchart according to the MEM Server of the embodiment of the invention, and as shown in Figure 6, this MEMServer comprises:receiver module 62,handover module 64,acquisition module 66,communication module 68, the below is described said structure.
Receiver module 62 be used for to receive and to carry out the handover request that network switches from portable terminal in order to request;Handover module 64 is connected toreceiver module 62, is used for afterreceiver module 62 receives handover request, switches on the target access network and the new link of setting up between the portable terminal;Acquisition module 66 is connected to handovermodule 64, is used for obtaining the relevant information of the MEM business of the local portable terminal of preserving afterhandover module 64 switches to new link;Communication module 68 is connected toacquisition module 66, for the relevant information of obtaining according toacquisition module 66, is communicating with portable terminal on new link.
Fig. 7 is the concrete structure block diagram according to the MEM Server of the embodiment of the invention, as shown in Figure 7, this MEM Server also comprises: judge module 72, be connected tohandover module 64, be used for beforehandover module 64 carries out handover operation, judge whether portable terminal satisfies switching condition, for example, this switching condition can switch for above-mentioned portable terminal network enabled; Judge that at judge module 72handover module 64 carries out handover operation in the situation of this portable terminal network enabled switching; Disconnect module 74, be connected tocommunication module 68, be used on new link and after portable terminal communicates, disconnecting the former link of communicating by letter at the source Access Network with portable terminal incommunication module 68.
By this embodiment, in the time of can realizing that multimode terminal switches between different Access Networks, the portable terminal of operation MEM Client guarantees that the user of its business continuance experiences.
Need to prove, above-mentioned portable terminal and MEM Server can independently use, the treatment system that also portable terminal and MEM Server can be combined into the MEM business is used, its concrete structure is identical with the description among the said apparatus embodiment, and, the modules of above-mentioned portable terminal and MEM Server inside can be combined with, and does not repeat them here.
To sum up, pass through the above embodiment of the present invention, when adopting multi-module mobile terminal between different Access Networks, to switch, MEM Client sends the method for handover request to MEM Server, after having solved present bearer network switching, can cause the professional discontinuous problem of MEM Client, and then improve user's experience.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.