CN105100212A - Session message acquisition method and device - Google Patents

Session message acquisition method and device Download PDF

Info

Publication number
CN105100212A
CN105100212A CN201510367488.6A CN201510367488A CN105100212A CN 105100212 A CN105100212 A CN 105100212A CN 201510367488 A CN201510367488 A CN 201510367488A CN 105100212 A CN105100212 A CN 105100212A
Authority
CN
China
Prior art keywords
conversation message
message
terminal
session
server
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.)
Pending
Application number
CN201510367488.6A
Other languages
Chinese (zh)
Inventor
高艺斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510367488.6A priority Critical patent/CN105100212A/en
Publication of CN105100212A publication Critical patent/CN105100212A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

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

Abstract

The invention discloses a session message acquisition method, which comprises the following steps that a first terminal actively sends a session message acquisition request to a server when a session alarm message, which is forwarded by the server and is sent by a second terminal, is received; and the first terminal receives a session message, which is returned by the server and is corresponding to the session alarm message. The invention also discloses a session message acquisition device. According to the session message acquisition method and device, the latest session message can be timely pulled from the server.

Description

Conversation message acquisition methods and device
Technical field
The present invention relates to computer realm, particularly relate to conversation message acquisition methods and device.
Background technology
Along with the development of terminal technology, increasing terminal enters in the middle of daily life and work, the application such as people can complete session, video by terminal, play games.For session, the way of session operation of the prior art is a client initiation session, send conversation message, prompting message information is sent to another client by server, conversation message is sent to another client by server, when the disabler of server push conversation message, in time the prompting message of conversation message and conversation message cannot be sent to another client.
Summary of the invention
Main purpose of the present invention is to propose a kind of conversation message acquisition methods and device, is intended to solve when the disabler of server push conversation message, in time the prompting message of conversation message and conversation message cannot be sent to the problem of another client.
For achieving the above object, a kind of conversation message acquisition methods provided by the invention, comprises step:
When receiving the reminding session message of the second terminal transmission that server forwards, first terminal initiatively sends conversation message to described server and obtains request;
Described first terminal receives the conversation message corresponding with described reminding session message that described server returns.
Preferably, the step that described active sends conversation message acquisition request to described server comprises:
Described first terminal obtains the current Session Time point having preserved conversation message, and determines from the nearest time point of current time from described Session Time point;
Described first terminal obtains request according to the described time point nearest from current time and described reminding session message construction conversation message, and initiatively sends described conversation message acquisition request to described server.
Preferably, described when receiving the reminding session message of the second terminal transmission that server forwards, the step that first terminal initiatively sends conversation message acquisition request to described server replaces with:
Described first terminal judges whether to meet the transmission condition that the conversation message preset obtains request;
Described first terminal, when meeting the conversation message preset and obtaining the transmission condition of request, initiatively sends conversation message to described server and obtains request.
Preferably, described first terminal also comprises after receiving the step of the conversation message corresponding with described reminding session message that described server returns:
The conversation message of described first terminal received by the preservation of this locality, checks conversation message for described first terminal from this locality;
Described first terminal, after the conversation message that this locality is preserved meets default deletion condition, is deleted and is met the conversation message presetting deletion condition from the conversation message that this locality is preserved.
Preferably, described method also comprises:
When receiving conversation message and checking instruction, described first terminal determines that described conversation message checks the session id that instruction is corresponding;
Described first terminal judges whether this locality preserves conversation message corresponding to described session id;
Described first terminal preserves conversation message corresponding to described session id in this locality, the conversation message obtaining the described local described session id preserved corresponding also shows the conversation message obtained.
In addition, for achieving the above object, the present invention also proposes a kind of conversation message acquisition device, comprising:
Sending module, for when receiving the reminding session message of the second terminal transmission that server forwards, initiatively sending conversation message to described server and obtaining request;
Receiver module, for receiving the conversation message corresponding with described reminding session message that described server returns.
Preferably, described sending module comprises:
Acquiring unit, for obtaining the current Session Time point having preserved conversation message;
Determining unit, for determining from the nearest time point of current time from described Session Time point;
Construction unit, for obtaining request according to the described time point nearest from current time and described reminding session message construction conversation message;
Transmitting element, obtains request for initiatively sending described conversation message to described server.
Preferably, described device also comprises:
Judge module, meets for judging whether the transmission condition that the conversation message preset obtains request;
Described transmitting element, also for when meeting the conversation message preset and obtaining the transmission condition of request, initiatively sends conversation message to described server and obtains request.
Preferably, described device also comprises display module,
Described determining unit, also for when receiving conversation message and checking instruction, determines that described conversation message checks the session id that instruction is corresponding;
Described judge module, also for judging whether this locality preserves conversation message corresponding to described session id;
Described acquiring unit, also for preserving conversation message corresponding to described session id in this locality, obtains the conversation message that the described session id of described this locality preservation is corresponding;
Described display module, for showing obtained conversation message.
Preferably, described device also comprises:
Preserve module, for the conversation message received by the preservation of this locality, check conversation message for described first terminal from this locality;
Removing module, after the conversation message for preserving in this locality meeting default deletion condition, deleting and meeting the conversation message presetting deletion condition from the conversation message that this locality is preserved.
The conversation message acquisition methods that the present invention proposes and device, by after receiving reminding session message, initiatively pull conversation message to server, make when the disabler of server push conversation message, can pull up-to-date conversation message in time from server.
Accompanying drawing explanation
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of the first embodiment of conversation message acquisition methods of the present invention;
Fig. 4 is the schematic flow sheet of the second embodiment of conversation message acquisition methods of the present invention;
Fig. 5 is the schematic flow sheet of the 3rd embodiment of conversation message acquisition methods of the present invention;
Fig. 6 is the schematic flow sheet of the 4th embodiment of conversation message acquisition methods of the present invention;
The schematic flow sheet of Fig. 7 conversation message acquisition process one of the present invention embodiment;
Fig. 8 is the high-level schematic functional block diagram of the first embodiment of conversation message acquisition device of the present invention;
Fig. 9 is the refinement high-level schematic functional block diagram of sending module one embodiment in Fig. 8;
Figure 10 is the high-level schematic functional block diagram of the second embodiment of conversation message acquisition device of the present invention;
Figure 11 is the high-level schematic functional block diagram of the 3rd embodiment of conversation message acquisition device of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global positioning system).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 2800MSC280 and be constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of conversation message acquisition methods of the present invention is proposed.
Conversation message acquisition process of the present invention is preferably applied in the visual field of Nubia, is completed the process of session between first terminal and the second terminal based on the client of place terminal by server.Described first terminal and described second terminal can be the electronic equipments such as mobile phone, pad, notebook computer.
As shown in Figure 3, first embodiment of the invention proposes a kind of conversation message acquisition methods, comprising:
Step S10, when receiving the reminding session message of the second terminal transmission that server forwards, first terminal initiatively sends conversation message to described server and obtains request;
In the present embodiment, first terminal and the second terminal loads session client, such as, load the session client in the visual field of Nubia, the session subscriber of the second terminal sends out conversation message to the session subscriber of first terminal, the conversation message that the session subscriber of described second terminal sends arrives first server, server is after the conversation message receiving the second terminal transmission, preserve described conversation message, and return to client session message id and the session id at the second terminal place, the supplying system of server sends conversation message prompting message to the session subscriber of first terminal, namely, send the PUSH message of conversation message to the session subscriber of first terminal, and session id and conversation message ID are pushed to the session subscriber at first terminal place, when receiving the reminding session message of the second terminal transmission that server forwards, first terminal initiatively sends conversation message to described server and obtains request.The client at described second terminal place initiatively arrives server and pulls conversation message.
Step S20, described first terminal receives the conversation message corresponding with described reminding session message that described server returns.
In the present embodiment, described server is after the conversation message receiving the transmission of described first terminal obtains request, described conversation message obtains request and comprises session id and conversation message ID, described server finds out the conversation message of the conversation message acquisition request correspondence that described first terminal sends according to described session id and conversation message ID, and described conversation message is sent to the session subscriber at described second terminal place.Described first terminal receives the conversation message corresponding with described reminding session message that described server returns, described first terminal is after receiving described conversation message, export described conversation message, the described way of output comprises display session message content, or plays described conversation message in the mode of voice.Described first terminal obtains conversation message to server and can pull in the mode of conversation message list, and the mode pulling conversation message list to push the mode adding active pull gets conversation message list, guarantees promptness and the order of message.
The present embodiment, by after receiving reminding session message, initiatively pulls conversation message to server, makes when the disabler of server push conversation message, can pull up-to-date conversation message in time from server.
With reference to figure 4, second embodiment of the invention proposes a kind of conversation message acquisition methods, and described step S10 comprises:
Step S11, described first terminal obtains the current Session Time point having preserved conversation message, and determines from the nearest time point of current time from described Session Time point;
Step S12, described first terminal obtains request according to the described time point nearest from current time and described reminding session message construction conversation message, and initiatively sends described conversation message acquisition request to described server.
In the present embodiment, described first terminal is after the conversation message reminder message receiving server transmission, obtain the current Session Time point having preserved conversation message, and determine from the nearest time point of current time from described Session Time point, described first terminal obtains request according to the described time point nearest from current time and described reminding session message construction conversation message, and initiatively sends described conversation message acquisition request to described server.
Concrete, the conversation message of described first terminal received by the preservation of this locality, checks conversation message for described first terminal from this locality.The conversation message pulled from server can be kept at this locality by the client at described first terminal place, conversation message is checked from this locality for described first terminal, server can not be repeated to go for and ask requested conversation message, namely pull the conversation message of increment from server.
Described first terminal, after the conversation message that this locality is preserved meets default deletion condition, is deleted and is met the conversation message presetting deletion condition from the conversation message that this locality is preserved.Described default deletion condition can be the Preset Time time interval, such as, 1 month or 2 months etc., when the holding time of the conversation message preserved in this locality is greater than prefixed time interval, judges that conversation message that the described holding time is greater than prefixed time interval meets and preset deletion condition; Or described default deletion condition can be default access times, such as, be 2 times or 3 inferior, when the access times of the conversation message preserved in this locality are less than default access times, judge that conversation message that described access times are less than default access times meets and preset deletion condition; Or whether described default deletion condition can accessed, after the conversation message of this locality preservation is accessed, judges that described accessed conversation message meets and preset deletion condition; In other embodiments of the present invention, described default deletion condition also can also be other, and such as, the memory space shared by conversation message or the combination etc. by above-mentioned deletion condition, do not repeat one by one at this.
By pulling the conversation message of increment from server in the present embodiment, avoid pulling of the conversation message of redundancy, improve the efficiency that conversation message obtains, reduce the use of system resource, improve systematic function.
With reference to figure 5, third embodiment of the invention proposes a kind of conversation message acquisition methods, and described method also comprises:
Step S30, when receiving conversation message and checking instruction, described first terminal determines that described conversation message checks the session id that instruction is corresponding;
Step S40, described first terminal judges whether this locality preserves conversation message corresponding to described session id;
Step S50, described first terminal preserves conversation message corresponding to described session id in this locality, the conversation message obtaining the described local described session id preserved corresponding also shows the conversation message obtained.
In the present embodiment, first terminal is after the conversation message reminder message receiving server transmission, or receive conversation message check instruction after, check the content of conversation message, if there is no new content, then directly go to this locality to be kept in the message of client and obtain conversation message, now, server may because push conversation message function loses efficacy, causing cannot push conversation message be local to client in time, cause the situation that can postpone to push, therefore by preserving in this locality, checked in this locality by session id and conversation message ID, avoid continuing to obtain to server the conversation message obtained pulling conversation message, the resource of saving system, improve systematic function, if there is new message, then obtain new conversation message according to the mode of said process from server, effectively avoid the same conversation message of repeated obtain, improve conversation message and obtain efficiency.
With reference to figure 6, fourth embodiment of the invention proposes a kind of conversation message acquisition methods, and described step S10 can replace with:
Step S60, described first terminal judges whether to meet the transmission condition that the conversation message preset obtains request;
Step S70, described first terminal, when meeting the conversation message preset and obtaining the transmission condition of request, initiatively sends conversation message to described server and obtains request.
In the present embodiment, when the supplying system of server cannot normally work, the client of first terminal can be timed to server end and pull the conversation message having renewal in the recent period, and the conversation message list returned by server gets the conversation message do not pulled.Described default conversation message obtains request transmission condition and comprises transmitting time, such as, transmitting time is 10 minutes, 20 minutes etc., at interval after 10 minutes or 20 minutes, judge to meet the transmission condition that the conversation message preset obtains request, initiatively send conversation message to described server and obtain request; Described default conversation message obtains request transmission condition and comprises and receive conversation message and check instruction, when receiving message and checking instruction, judge to meet the transmission condition that the conversation message preset obtains request, initiatively send conversation message to described server and obtain request, described default conversation message obtains request transmission condition and is not limited to above two kinds, illustrates no longer one by one at this.
The present embodiment pulls conversation message by initiatively triggering to server, effectively avoids the disabler of server push conversation message cannot receive the problem of conversation message in time, improves the promptness that conversation message obtains.
In order to conversation message acquisition process of the present invention is better described, with reference to figure 7, for conversation message obtains the schematic flow sheet of an embodiment, for personal letter, comprising:
1, A personal letter B; 2, service end preserves personal letter message; 3, service end calls supplying system to B PUSH message; 4, supplying system sends message informing B and receives message; 5, whether user is notified; If 6 receive, then client initiates the inquiry of unread message sum; 7, client display message is not read and the last item eap-message digest; 8, whether user clicks and checks message; 9, in this way, terminate; 10, if not, user initiates the concrete message of certain personal letter session; 11, client shows concrete personal letter message, and returns 9 process ends.
The present invention further provides a kind of conversation message acquisition device.
With reference to the high-level schematic functional block diagram that Fig. 8, Fig. 8 are conversation message acquisition device first embodiment of the present invention;
A kind of conversation message acquisition device of the present embodiment, described conversation message acquisition device comprises: sending module 10 and receiver module 20,
Described sending module 10, for when receiving the reminding session message of the second terminal transmission that server forwards, initiatively sending conversation message to described server and obtaining request;
In the present embodiment, first terminal and the second terminal loads session client, such as, load the session client in the visual field of Nubia, the session subscriber of the second terminal sends out conversation message to the session subscriber of first terminal, the conversation message that the session subscriber of described second terminal sends arrives first server, server is after the conversation message receiving the second terminal transmission, preserve described conversation message, and return to client session message id and the session id at the second terminal place, the supplying system of server sends conversation message prompting message to the session subscriber of first terminal, namely, send the PUSH message of conversation message to the session subscriber of first terminal, and session id and conversation message ID are pushed to the session subscriber at first terminal place, when receiving the reminding session message of the second terminal transmission that server forwards, first terminal initiatively sends conversation message to described server and obtains request.The client at described second terminal place initiatively arrives server and pulls conversation message.
Described receiver module 20, for receiving the conversation message corresponding with described reminding session message that described server returns.
In the present embodiment, described server is after the conversation message receiving the transmission of described first terminal obtains request, described conversation message obtains request and comprises session id and conversation message ID, described server finds out the conversation message of the conversation message acquisition request correspondence that described first terminal sends according to described session id and conversation message ID, and described conversation message is sent to the session subscriber at described second terminal place.Described first terminal receives the conversation message corresponding with described reminding session message that described server returns, described first terminal is after receiving described conversation message, export described conversation message, the described way of output comprises display session message content, or plays described conversation message in the mode of voice.Described first terminal obtains conversation message to server and can pull in the mode of conversation message list, and the mode pulling conversation message list to push the mode adding active pull gets conversation message list, guarantees promptness and the order of message.
The present embodiment, by after receiving reminding session message, initiatively pulls conversation message to server, makes when the disabler of server push conversation message, can pull up-to-date conversation message in time from server.
With reference to figure 9, described sending module 10 comprises acquiring unit 11, determining unit 12, construction unit 13 and transmitting element 14,
Described acquiring unit 11, for obtaining the current Session Time point having preserved conversation message;
Described determining unit 12, for determining from the nearest time point of current time from described Session Time point;
Described construction unit 13, for obtaining request according to the described time point nearest from current time and described reminding session message construction conversation message;
Described transmitting element 14, obtains request for initiatively sending described conversation message to described server.
In the present embodiment, described first terminal is after the conversation message reminder message receiving server transmission, obtain the current Session Time point having preserved conversation message, and determine from the nearest time point of current time from described Session Time point, described first terminal obtains request according to the described time point nearest from current time and described reminding session message construction conversation message, and initiatively sends described conversation message acquisition request to described server.
With reference to Figure 10, second embodiment of the invention proposes a kind of conversation message acquisition device, and described device also comprises: preserve module 30 and removing module 40,
Described preservation module 30, for the conversation message received by the preservation of this locality, checks conversation message for described first terminal from this locality.The conversation message pulled from server can be kept at this locality by the client at described first terminal place, conversation message is checked from this locality for described first terminal, server can not be repeated to go for and ask requested conversation message, namely pull the conversation message of increment from server.
Described removing module 40, after the conversation message for preserving in this locality meeting default deletion condition, deleting and meeting the conversation message presetting deletion condition from the conversation message that this locality is preserved.Described default deletion condition can be the Preset Time time interval, such as, 1 month or 2 months etc., when the holding time of the conversation message preserved in this locality is greater than prefixed time interval, judges that conversation message that the described holding time is greater than prefixed time interval meets and preset deletion condition; Or described default deletion condition can be default access times, such as, be 2 times or 3 inferior, when the access times of the conversation message preserved in this locality are less than default access times, judge that conversation message that described access times are less than default access times meets and preset deletion condition; Or whether described default deletion condition can accessed, after the conversation message of this locality preservation is accessed, judges that described accessed conversation message meets and preset deletion condition; In other embodiments of the present invention, described default deletion condition also can also be other, and such as, the memory space shared by conversation message or the combination etc. by above-mentioned deletion condition, do not repeat one by one at this.
By pulling the conversation message of increment from server in the present embodiment, avoid pulling of the conversation message of redundancy, improve the efficiency that conversation message obtains, reduce the use of system resource, improve systematic function.
With reference to Figure 11, third embodiment of the invention proposes a kind of conversation message acquisition device, and described device also comprises: judge module 50 and display module 60,
Described determining unit 12, also for when receiving conversation message and checking instruction, determines that described conversation message checks the session id that instruction is corresponding;
Described judge module 50, also for judging whether this locality preserves conversation message corresponding to described session id;
Described acquiring unit 11, also for preserving conversation message corresponding to described session id in this locality, obtains the conversation message that the described session id of described this locality preservation is corresponding;
Described display module 60, for showing obtained conversation message.
In the present embodiment, first terminal is after the conversation message reminder message receiving server transmission, or receive conversation message check instruction after, check the content of conversation message, if there is no new content, then directly go to this locality to be kept in the message of client and obtain conversation message, now, server may because push conversation message function loses efficacy, causing cannot push conversation message be local to client in time, cause the situation that can postpone to push, therefore by preserving in this locality, checked in this locality by session id and conversation message ID, avoid continuing to obtain to server the conversation message obtained pulling conversation message, the resource of saving system, improve systematic function, if there is new message, then obtain new conversation message according to the mode of said process from server, effectively avoid the same conversation message of repeated obtain, improve conversation message and obtain efficiency.
Further, described judge module 50, also meets for judging whether the transmission condition that the conversation message preset obtains request;
Described transmitting element 14, also for when meeting the conversation message preset and obtaining the transmission condition of request, initiatively sends conversation message to described server and obtains request.
In the present embodiment, when the supplying system of server cannot normally work, the client of first terminal can be timed to server end and pull the conversation message having renewal in the recent period, and the conversation message list returned by server gets the conversation message do not pulled.Described default conversation message obtains request transmission condition and comprises transmitting time, such as, transmitting time is 10 minutes, 20 minutes etc., at interval after 10 minutes or 20 minutes, judge to meet the transmission condition that the conversation message preset obtains request, initiatively send conversation message to described server and obtain request; Described default conversation message obtains request transmission condition and comprises and receive conversation message and check instruction, when receiving message and checking instruction, judge to meet the transmission condition that the conversation message preset obtains request, initiatively send conversation message to described server and obtain request, described default conversation message obtains request transmission condition and is not limited to above two kinds, illustrates no longer one by one at this.
The present embodiment pulls conversation message by initiatively triggering to server, effectively avoids the disabler of server push conversation message cannot receive the problem of conversation message in time, improves the promptness that conversation message obtains.
In order to conversation message acquisition process of the present invention is better described, with reference to figure 7, for conversation message obtains the schematic flow sheet of an embodiment, for personal letter, comprising:
1, A personal letter B; 2, service end preserves personal letter message; 3, service end calls supplying system to B PUSH message; 4, supplying system sends message informing B and receives message; 5, whether user is notified; If 6 receive, then client initiates the inquiry of unread message sum; 7, client display message is not read and the last item eap-message digest; 8, whether user clicks and checks message; 9, in this way, terminate; 10, if not, user initiates the concrete message of certain personal letter session; 11, client shows concrete personal letter message, and returns 9 process ends.
The present invention also proposes a kind of terminal, and described terminal comprises processor, and described processor is used for when receiving the reminding session message of the second terminal transmission that server forwards, and first terminal initiatively sends conversation message to described server and obtains request; Described first terminal receives the conversation message corresponding with described reminding session message that described server returns.Described terminal includes but not limited to the electronic equipment such as mobile phone, pad.The present embodiment, by after receiving reminding session message, initiatively pulls conversation message to server, makes when the disabler of server push conversation message, can pull up-to-date conversation message in time from server.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a conversation message acquisition methods, is characterized in that, comprises step:
When receiving the reminding session message of the second terminal transmission that server forwards, first terminal initiatively sends conversation message to described server and obtains request;
Described first terminal receives the conversation message corresponding with described reminding session message that described server returns.
2. conversation message acquisition methods as claimed in claim 1, is characterized in that, the step that described active sends conversation message acquisition request to described server comprises:
Described first terminal obtains the current Session Time point having preserved conversation message, and determines from the nearest time point of current time from described Session Time point;
Described first terminal obtains request according to the described time point nearest from current time and described reminding session message construction conversation message, and initiatively sends described conversation message acquisition request to described server.
3. conversation message acquisition methods as claimed in claim 1 or 2, it is characterized in that, described when receiving the reminding session message of the second terminal transmission that server forwards, the step that first terminal initiatively sends conversation message acquisition request to described server replaces with:
Described first terminal judges whether to meet the transmission condition that the conversation message preset obtains request;
Described first terminal, when meeting the conversation message preset and obtaining the transmission condition of request, initiatively sends conversation message to described server and obtains request.
4. conversation message acquisition methods as claimed in claim 1 or 2, it is characterized in that, described first terminal also comprises after receiving the step of the conversation message corresponding with described reminding session message that described server returns:
The conversation message of described first terminal received by the preservation of this locality, checks conversation message for described first terminal from this locality;
Described first terminal, after the conversation message that this locality is preserved meets default deletion condition, is deleted and is met the conversation message presetting deletion condition from the conversation message that this locality is preserved.
5. conversation message acquisition methods as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
When receiving conversation message and checking instruction, described first terminal determines that described conversation message checks the session id that instruction is corresponding;
Described first terminal judges whether this locality preserves conversation message corresponding to described session id;
Described first terminal preserves conversation message corresponding to described session id in this locality, the conversation message obtaining the described local described session id preserved corresponding also shows the conversation message obtained.
6. a conversation message acquisition device, is characterized in that, comprising:
Sending module, for when receiving the reminding session message of the second terminal transmission that server forwards, initiatively sending conversation message to described server and obtaining request;
Receiver module, for receiving the conversation message corresponding with described reminding session message that described server returns.
7. conversation message acquisition device as claimed in claim 6, it is characterized in that, described sending module comprises:
Acquiring unit, for obtaining the current Session Time point having preserved conversation message;
Determining unit, for determining from the nearest time point of current time from described Session Time point;
Construction unit, for obtaining request according to the described time point nearest from current time and described reminding session message construction conversation message;
Transmitting element, obtains request for initiatively sending described conversation message to described server.
8. conversation message acquisition device as claimed in claim 7, it is characterized in that, described device also comprises:
Judge module, meets for judging whether the transmission condition that the conversation message preset obtains request;
Described transmitting element, also for when meeting the conversation message preset and obtaining the transmission condition of request, initiatively sends conversation message to described server and obtains request.
9. conversation message acquisition device as claimed in claim 8, it is characterized in that, described device also comprises display module,
Described determining unit, also for when receiving conversation message and checking instruction, determines that described conversation message checks the session id that instruction is corresponding;
Described judge module, also for judging whether this locality preserves conversation message corresponding to described session id;
Described acquiring unit, also for preserving conversation message corresponding to described session id in this locality, obtains the conversation message that the described session id of described this locality preservation is corresponding;
Described display module, for showing obtained conversation message.
10. the conversation message acquisition device as described in any one of claim 6 to 9, is characterized in that, described device also comprises:
Preserve module, for the conversation message received by the preservation of this locality, check conversation message for described first terminal from this locality;
Removing module, after the conversation message for preserving in this locality meeting default deletion condition, deleting and meeting the conversation message presetting deletion condition from the conversation message that this locality is preserved.
CN201510367488.6A 2015-06-26 2015-06-26 Session message acquisition method and device Pending CN105100212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510367488.6A CN105100212A (en) 2015-06-26 2015-06-26 Session message acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510367488.6A CN105100212A (en) 2015-06-26 2015-06-26 Session message acquisition method and device

Publications (1)

Publication Number Publication Date
CN105100212A true CN105100212A (en) 2015-11-25

Family

ID=54579729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510367488.6A Pending CN105100212A (en) 2015-06-26 2015-06-26 Session message acquisition method and device

Country Status (1)

Country Link
CN (1) CN105100212A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657183A (en) * 2016-02-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 User terminal prompting method, user terminal and system
CN111585774A (en) * 2020-03-24 2020-08-25 福建天泉教育科技有限公司 Session updating method and storage medium
WO2020199733A1 (en) * 2019-03-30 2020-10-08 华为技术有限公司 Strategy control method, device and system
CN112887189A (en) * 2019-11-29 2021-06-01 腾讯科技(深圳)有限公司 Timed sending method and device of session message, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024696A (en) * 2012-12-27 2013-04-03 中兴通讯股份有限公司 Method, system and related equipment for server to transmit messages to mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024696A (en) * 2012-12-27 2013-04-03 中兴通讯股份有限公司 Method, system and related equipment for server to transmit messages to mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657183A (en) * 2016-02-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 User terminal prompting method, user terminal and system
WO2020199733A1 (en) * 2019-03-30 2020-10-08 华为技术有限公司 Strategy control method, device and system
CN112887189A (en) * 2019-11-29 2021-06-01 腾讯科技(深圳)有限公司 Timed sending method and device of session message, computer equipment and storage medium
CN111585774A (en) * 2020-03-24 2020-08-25 福建天泉教育科技有限公司 Session updating method and storage medium

Similar Documents

Publication Publication Date Title
CN104954553A (en) Mobile terminal split-screen display method and device
CN105282245A (en) Server-crossing message pushing system and method
CN105187521A (en) Service processing device and method
CN105100401A (en) Method and device for implementing return to original interface after interface switching
CN104735255A (en) Split screen display method and system
CN105099870A (en) Message pushing method and device
CN104796956A (en) Mobile terminal network switching method and mobile terminal
CN105159700A (en) Application self-start control apparatus and method
CN104731512A (en) Method, device and terminal for sharing pictures
CN105094612A (en) Object selecting method and device
CN105100416A (en) Event reminding method and wearable device
CN105208212A (en) Chatting record display device and method
CN104917899A (en) Call prompting method and device
CN105262821A (en) Interface management apparatus and method
CN104898940A (en) Picture processing method and device
CN105095051A (en) Method and device for reminding working state of background application program
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN105138400A (en) Application self-starting management method and apparatus
CN105472156A (en) Incoming call reminding method and device
CN105491224A (en) Mobile terminal and business request processing method thereof
CN105278995A (en) Management method of application, system, server and mobile terminal
CN105100212A (en) Session message acquisition method and device
CN104917873A (en) Method and device for sharing information during call
CN105072279A (en) Backup device and method based on mobile terminal
CN104780278A (en) Communication data-based route generation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125