CN105430161A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN105430161A
CN105430161A CN201510716853.XA CN201510716853A CN105430161A CN 105430161 A CN105430161 A CN 105430161A CN 201510716853 A CN201510716853 A CN 201510716853A CN 105430161 A CN105430161 A CN 105430161A
Authority
CN
China
Prior art keywords
message
pending message
date
described pending
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510716853.XA
Other languages
Chinese (zh)
Other versions
CN105430161B (en
Inventor
王广健
王斌
邹易兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510716853.XA priority Critical patent/CN105430161B/en
Publication of CN105430161A publication Critical patent/CN105430161A/en
Application granted granted Critical
Publication of CN105430161B publication Critical patent/CN105430161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a message processing method and device. The method comprises: receiving a pending message which carries a time stamp; determining whether the pending message expires according to the time stamp; and outputting the pending message if the pending message does not expire, and stopping outputting the pending message if the pending message expires. Accordingly, the method and device can give a time attribute to a message, allowing a receiving device to determine whether the message expires according to the time attribute of the message when the message arrives, and output the message to a user only when the message does not expire, thereby avoiding the user from being interrupted by an expired message caused by network problems.

Description

Message treatment method and device
Technical field
The disclosure relates to communication technical field, particularly a kind of message treatment method and device.
Background technology
Along with the development of network technology, the means of carrying out information transmission by means of network are more and more ripe, and network and short message and internet message are all conventional network information transfer means.For internet message, internet message arrives message reception facility after Internet Transmission, and message reception facility exports to user after processing this internet message.In correlation technique, when network condition is not good, message reception facility can export the internet message of a fairly large number of no longer effective property to user, cause Consumer's Experience poor.
Summary of the invention
In order to solve the problem, the disclosure provides a kind of message treatment method and device.
Particularly, the disclosure is achieved by the following technical solution:
According to the first aspect of disclosure embodiment, provide a kind of message treatment method, described method comprises:
Receive pending message, in described pending message, carry timestamp;
According to described timestamp, judge that whether described pending message is not out of date;
When described pending message is not out of date, described pending message is exported;
When described pending message is expired, stop exporting described pending message.
In one embodiment, described timestamp is for representing the ageing cut-off time of message;
Described according to described timestamp, judge that whether described pending message is not out of date, comprising:
Obtain local current time;
Judge that the ageing cut-off time of pending message is whether before local current time, if the ageing cut-off time of pending message is before local current time, then described pending message is out of date, if the ageing cut-off time of pending message is identical with local current time or after local current time, then described pending message is not out of date.
In one embodiment, described timestamp is for representing the delivery time of message;
Described according to described timestamp, judge that whether described pending message is not out of date, comprising:
Obtain local current time;
Calculate the difference of the delivery time of local current time and pending message;
Judge whether described difference is less than default duration threshold value, if described difference is less than default duration threshold value, then described pending message is not out of date, if described difference is not less than default duration threshold value, then described pending message is out of date.
In one embodiment, described method also comprises:
Determine described default duration threshold value;
Describedly determine described default duration threshold value, comprising:
Resolve the message header of described pending message, obtain the type of pending message;
According to the corresponding relation of type of message and the effective duration of message preset, determine the target effective duration of the type of the described pending message of correspondence;
Described target effective duration is defined as described default duration threshold value.
In one embodiment, described described pending message to be exported, comprises at least one following manner:
Described pending message is shown;
Or, to vibrate and/or jingle bell mode reminding user.
In one embodiment, described method also comprises:
When described pending message is out of date, the transmitting apparatus to described pending message sends the prompting of Internet Transmission time-out.
According to the second aspect of disclosure embodiment, provide a kind of message processing apparatus, described device comprises:
Message reception module, is configured to receive pending message, carries timestamp in described pending message;
Judge module, is configured to according to described timestamp, judges that whether described pending message is not out of date;
Message output module, is configured to, when described pending message is not out of date, export described pending message;
Export stopping modular, be configured to when described pending message is expired, stop exporting described pending message.
In one embodiment, described timestamp is for representing the ageing cut-off time of message;
Described judge module, comprising:
First moment obtained submodule, was configured to obtain local current time;
First judges submodule, be configured to judge that the ageing cut-off time of pending message is whether before local current time, if the ageing cut-off time of pending message is before local current time, then described pending message is out of date, if the ageing cut-off time of pending message is identical with local current time or after local current time, then described pending message is not out of date.
In one embodiment, described timestamp is for representing the delivery time of message;
Described judge module, comprising:
Second moment obtained submodule, was configured to obtain local current time;
Mathematic interpolation submodule, is configured to the difference of the delivery time calculating local current time and pending message;
Second judges submodule, be configured to judge whether described difference is less than default duration threshold value, if described difference is less than default duration threshold value, then described pending message is not out of date, if described difference is not less than default duration threshold value, then described pending message is out of date.
In one embodiment, described judge module also comprises:
Duration threshold value determination submodule, is configured to determine described default duration threshold value;
Described duration threshold value determination submodule, comprising:
Type of message determination submodule, is configured to the message header of resolving described pending message, obtains the type of pending message;
Effective duration determination submodule, is configured to the corresponding relation according to the type of message preset and the effective duration of message, determines the target effective duration of the type of corresponding described pending message;
Duration threshold value determination submodule, is configured to described target effective duration to be defined as described default duration threshold value.
In one embodiment, described message output module, comprises the following submodule of at least one:
Message display sub-module, is configured to show described pending message;
Or message notifying submodule, is configured to vibrate and/or jingle bell mode reminding user.
In one embodiment, described device also comprises:
Prompting sending module, is configured to when described pending message is out of date, and the transmitting apparatus to described pending message sends the prompting of Internet Transmission time-out.
According to the third aspect of disclosure embodiment, a kind of message processing apparatus is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive pending message, in described pending message, carry timestamp;
According to described timestamp, judge that whether described pending message is not out of date;
When described pending message is not out of date, described pending message is exported;
When described pending message is expired, stop exporting described pending message.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Disclosure embodiment can give message a time attribute, make after message arrives, receiving equipment can according to the time attribute of this message, judge that whether this message is not out of date, only when message is not out of date, just export to user, that avoids the stale messages that causes because of network problem to bring to user unnecessaryly bothers.
The present embodiment can represent the mode of the ageing cut-off time of message by stamp service time, the pending message of direct regulation reach the moment at the latest, before being only engraved in the due at the latest of regulation when pending message arrives message sink end, namely when pending message is not out of date, just export to user, avoid the message annoying users of no longer effective property.
The present embodiment can arrange the effective duration of different message for dissimilar message, to meet dissimilar message to ageing requirement.
The present embodiment can represent the delivery time of message by stamp service time and pre-set the mode of duration threshold value, the pending message of indirect regulation reach the moment at the latest, only be less than default duration threshold value at the Internet Transmission duration of pending message, namely when pending message is not out of date, just export to user, avoid the message annoying users of no longer effective property.
The present embodiment can according to the type of message, with to the way of output of type of message should treating processing messages and export to user.
The present embodiment can when pending message arrival message sink end be out of date, message transmitting apparatus to this pending message sends Internet Transmission prompting, to point out user to check local network connection status, or operation maintenance personnel is helped to be investigated the reason of transmission of messages time-out by the connection and data packet transmission situation checking whole the Internet.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of a kind of message treatment method of the disclosure according to an exemplary embodiment.
Fig. 2 is the flow chart of the another kind of message treatment method of the disclosure according to an exemplary embodiment.
Fig. 3 is the flow chart of the another kind of message treatment method of the disclosure according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of message processing apparatus of the disclosure according to an exemplary embodiment.
Fig. 5 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment.
Fig. 6 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment.
Fig. 7 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment.
Fig. 8 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment.
Fig. 9 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment.
Figure 10 is a kind of structural representation for message processing apparatus of the disclosure according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Along with the development of network technology, the means of carrying out information transmission by means of network are more and more ripe, and network and short message and internet message are all conventional network information transfer means.For internet message, internet message arrives message reception facility after Internet Transmission, and message reception facility exports to user after processing this internet message.In correlation technique, when network condition is not good, message reception facility can export the internet message of a fairly large number of no longer effective property to user, cause Consumer's Experience poor.In order to solve the problem, present disclose provides a kind of message treatment method and device.
First a kind of message treatment method that the disclosure provides is introduced below.
It should be noted that, the message treatment method that the disclosure provides is applicable to message reception facility, and in actual applications, this message reception facility can comprise: smart mobile phone, panel computer, intelligent watch, notebook/desktop computer etc.
As shown in Figure 1, Fig. 1 is the flow chart of a kind of message treatment method of the disclosure according to an exemplary embodiment, and described method can comprise the following steps:
In a step 101, receive pending message, in described pending message, carry timestamp.
Pending message in the present embodiment is internet message, and internet message can support that user sends one to one, also can support that one-to-many sends.
In the present embodiment, be directed to the transmitting terminal of pending message: message transmitting apparatus, this message transmitting apparatus can automatically for message stamps timestamp, and also can use giving the authority opening of beating timestamp to user, the present embodiment is not construed as limiting this.
In a step 102, according to described timestamp, judge that whether described pending message is not out of date, if described pending message is not out of date, then perform step 103, if described pending message is expired, then perform step 104.
Because timestamp can identify the time in a certain moment uniquely, and the ageing time attribute being message of timestamp and message, whether the moment that therefore the present embodiment can identify according to timestamp is in the ageing interval of message, judges that whether message is not out of date.
In step 103, described pending message is exported.
If pending message is not out of date, then treats processing messages and export.
Consider that the way of output corresponding to dissimilar message is usually different, such as audio file needs to play to user, and text needs to be shown to user, and in a kind of possible execution mode, above-mentioned steps 103, can comprise:
Treat processing messages to show.
In the execution mode that another kind is possible, above-mentioned steps 103, can comprise:
With the mode reminding user of vibration, or, with the mode reminding user of jingle bell, or, to vibrate and to coordinate the mode reminding user of jingle bell.
In the execution mode that another kind is possible, above-mentioned steps 103, can comprise:
Treat processing messages to carry out showing and with the mode reminding user of vibration, or treat processing messages and carry out showing and with the mode reminding user of jingle bell, or pending message carries out showing simultaneously to vibrate and to coordinate the mode reminding user of jingle bell.
At step 104, stop exporting described pending message.
If described pending message is expired, then stop exporting described pending message.
As seen from the above-described embodiment, this embodiment can give message a time attribute, make after message arrives, receiving equipment can according to the time attribute of this message, judge that whether this message is not out of date, only when message is not out of date, just export to user, that avoids the stale messages that causes because of network problem to bring to user unnecessaryly bothers.
As shown in Figure 2, Fig. 2 is the flow chart of the another kind of message treatment method of the disclosure according to an exemplary embodiment, described timestamp for represent message ageing cut-off time time, described method can comprise:
In step 201, receive pending message, carry timestamp in described pending message, described timestamp is for representing the ageing cut-off time of message.
In the present embodiment, can specify as follows for the message received: if in the random time interval before the ageing cut-off time of this message, then think that this message is not out of date message; If in the random time interval after the ageing cut-off time of message, then think that this message is message out of date.
In step 202., local current time is obtained.
When pending message arrives message sink end, obtain the local current time of message sink end, namely obtain the moment that pending message arrives message sink end.
In step 203, judge that the ageing cut-off time of pending message is whether before local current time, if the ageing cut-off time of pending message is before local current time, then perform step 205, if the ageing cut-off time of pending message is identical with local current time or after local current time, then perform step 204.
After receiving pending message, the message field of pending message can be understood, to obtain the ageing cut-off time of pending message, then the moment ageing cut-off time of pending message and this pending message being arrived message sink end contrasts, if the ageing cut-off time of pending message is before pending message arrives the moment of message sink end, then think that pending message is expired, now automatically tackle this pending message and do not do any prompting; If the ageing cut-off time of pending message after pending message arrives the moment of message sink end, is then thought that pending message is not yet expired, now exports this pending message at message sink end.
Exemplary, the ageing cut-off time of pending message is 15: 20: 30 on the 30th September in 2015, the moment that pending message arrives message sink end is 15: 20: 25 on the 30th September in 2015, because 15: 20: 30 on the 30th September in 2015 is after 15: 20: 25 on the 30th September in 2015, therefore pending message is not yet expired, namely still possess ageing, treat processing messages and export.
Exemplary, the ageing cut-off time of pending message is 15: 20: 30 on the 30th September in 2015, the moment that pending message arrives message sink end is 15: 20: 35 on the 30th September in 2015, because 15: 20: 30 on the 30th September in 2015 is before 15: 20: 35 on the 30th September in 2015, therefore pending message is expired, namely do not possessed ageing, tackled pending message and do not remind to user.
In step 204, described pending message is exported.
In step 205, stop exporting described pending message.
Step 204 in the present embodiment, 205 and embodiment illustrated in fig. 1 in step 103,104 similar, the present embodiment repeats no more this.
As seen from the above-described embodiment, this embodiment can represent the mode of the ageing cut-off time of message by stamp service time, the pending message of direct regulation reach the moment at the latest, before being only engraved in the due at the latest of regulation when pending message arrives message sink end, namely when pending message is not out of date, just export to user, avoid the message annoying users of no longer effective property.
As shown in Figure 3, Fig. 3 is the flow chart of the another kind of message treatment method of the disclosure according to an exemplary embodiment, and when described timestamp is for representing the delivery time of message, described method can comprise:
In step 301, receive pending message, carry timestamp in described pending message, described timestamp is for representing the delivery time of message.
In step 302, obtain local current time, calculate the difference of the delivery time of local current time and pending message.
When pending message arrives message sink end, obtain the local current time of message sink end, namely pending message arrives the moment of message sink end.Calculate the difference of the delivery time of the local current time of message sink end and pending message, can be understood as: calculate the time difference that the delivery time of pending message and this pending message reach the moment of message sink end, or calculate the Internet Transmission duration of pending message.
Exemplary, the delivery time of pending message is 15: 20: 10 on the 30th September in 2015, and the moment that pending message arrives message sink end is 15: 20: 12 on the 30th September in 2015, can calculate time difference 2 seconds thus.
In step 303, judge whether described difference is less than default duration threshold value, if described difference is less than default duration threshold value, then perform step 304, if described difference is not less than default duration threshold value, then perform step 305.
Connect the example in step 302, exemplary, arranging default duration threshold value is 2.5 seconds, and because 2 seconds are less than 2.5 seconds, therefore pending message is not yet expired, and namely pending message still possesses ageing, treats processing messages and exports.
Connect the example in step 302, exemplary, arranging default duration threshold value is 1.5 seconds, and because 2 seconds are greater than 1.5 seconds, therefore pending message is expired, and namely pending message has not possessed ageing, tackles pending message and does not remind to user.
Consider that dissimilar message is normally different to ageing requirement, in a kind of possible execution mode, the basis of above-mentioned steps 303 can also comprise:
Determine described default duration threshold value;
Possible, describedly determine described default duration threshold value, can comprise:
Resolve the message header of described pending message, obtain the type of pending message;
Because pending message is made up of message header and message body, wherein comprise metadata information in message header, such as message-length (taking byte as unit), Timestamp and type of message, therefore the present embodiment by resolving the message header of pending message, can obtain the type of message of pending message.
According to the corresponding relation of type of message and the effective duration of message preset, determine the target effective duration of the type of the described pending message of correspondence, described target effective duration is defined as described default duration threshold value.
Be understandable that, the requirement of dissimilar message to Internet Transmission time delay is different, such as network flow-medium, the networking telephone, online game etc. require higher to the transmission delay of message, and comparatively speaking, the business such as E-Mail and FTP require lower to the transmission delay of message.
In the present embodiment, higher business is required for this kind of transmission delay to message such as network flow-medium, the networking telephone, online game, can be that the message of such business arranges the shorter effective duration of message, such as 1 second, and require lower business for this kind of transmission delays to message such as E-Mail and FTP, can be that the message of such business arranges the longer effective duration of message, such as 2.5 seconds.
From above-mentioned execution mode, present embodiment can arrange the effective duration of different message for dissimilar message, to meet dissimilar message to ageing requirement.
In step 304, described pending message is exported.
In step 305, stop exporting described pending message.
Step 304 in the present embodiment, 305 and embodiment illustrated in fig. 1 in step 103,104 similar, the present embodiment repeats no more this.
As seen from the above-described embodiment, this embodiment can represent the delivery time of message by stamp service time and pre-set the mode of duration threshold value, the pending message of indirect regulation reach the moment at the latest, only be less than default duration threshold value at the Internet Transmission duration of pending message, namely when pending message is not out of date, just export to user, avoid the message annoying users of no longer effective property.
In the another kind of embodiment that the disclosure provides, a kind of message treatment method of the disclosure according to an exemplary embodiment, can also increase following steps on the basis of aforementioned any embodiment:
When described pending message is out of date, the transmitting apparatus to described pending message sends the prompting of Internet Transmission time-out.
The present embodiment can when pending message arrival message sink end be out of date, message transmitting apparatus to this pending message sends Internet Transmission prompting, with the reason helping operation maintenance personnel to be investigated transmission of messages time-out in time by the connection and data packet transmission situation checking whole the Internet.
Corresponding with the embodiment of aforementioned messages processing method, the disclosure additionally provides the embodiment of message processing apparatus.
As shown in Figure 4, Fig. 4 is the block diagram of a kind of message processing apparatus of the disclosure according to an exemplary embodiment, and described device can comprise:
Message reception module 410, is configured to receive pending message, carries timestamp in described pending message;
Judge module 420, is configured to according to described timestamp, judges that whether described pending message is not out of date;
Message output module 430, is configured to, when described pending message is not out of date, export described pending message;
Export stopping modular 440, be configured to when described pending message is expired, stop exporting described pending message.
As seen from the above-described embodiment, this embodiment can give message a time attribute, make after message arrives, receiving equipment can according to the time attribute of this message, judge that whether this message is not out of date, only when message is not out of date, just export to user, that avoids the stale messages that causes because of network problem to bring to user unnecessaryly bothers.
As shown in Figure 5, Fig. 5 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described timestamp is for representing the ageing cut-off time of message; Described judge module 420, can comprise:
First moment obtained submodule 421, was configured to obtain local current time;
First judges submodule 422, be configured to judge that the ageing cut-off time of pending message is whether before local current time, if the ageing cut-off time of pending message is before local current time, then described pending message is out of date, if the ageing cut-off time of pending message is identical with local current time or after local current time, then described pending message is not out of date.
As shown in Figure 6, Fig. 6 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described timestamp is for representing the delivery time of message; Described judge module 420, can comprise:
Second moment obtained submodule 423, was configured to obtain local current time;
Mathematic interpolation submodule 424, is configured to the difference of the delivery time calculating local current time and pending message;
Second judges submodule 425, be configured to judge whether described difference is less than default duration threshold value, if described difference is less than default duration threshold value, then described pending message is not out of date, if described difference is not less than default duration threshold value, then described pending message is out of date.
As shown in Figure 7, Fig. 7 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 6, described judge module 420 can also comprise: duration threshold value determination submodule 426 (not shown), is configured to determine described default duration threshold value;
Described duration threshold value determination submodule 426, can comprise:
Type of message determination submodule 4261, is configured to the message header of resolving described pending message, obtains the type of pending message;
Effective duration determination submodule 4262, is configured to the corresponding relation according to the type of message preset and the effective duration of message, determines the target effective duration of the type of corresponding described pending message;
Duration threshold value determination submodule 4263, is configured to described target effective duration to be defined as described default duration threshold value.
As shown in Figure 8, Fig. 8 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment, this embodiment is on the basis of any embodiment shown in earlier figures 4 ~ 7, and described message output module 430, can comprise the following submodule of at least one:
Message display sub-module 431, is configured to show described pending message;
Or message notifying submodule 432, is configured to vibrate and/or jingle bell mode reminding user.
As shown in Figure 9, Fig. 9 is the block diagram of the another kind of message processing apparatus of the disclosure according to an exemplary embodiment, and this embodiment is on the basis of any embodiment shown in earlier figures 4 ~ 8, and described device can also comprise:
Prompting sending module 510, is configured to when described pending message is out of date, and the transmitting apparatus to described pending message sends the prompting of Internet Transmission time-out.
In said apparatus, the implementation procedure of the function and efficacy of modules specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said module illustrated as separating component can or may not be physically separates, parts as module display can be or may not be physical module, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure additionally provides a kind of message processing apparatus, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to: receive pending message, carries timestamp in described pending message; According to described timestamp, judge that whether described pending message is not out of date; When described pending message is not out of date, described pending message is exported; When described pending message is expired, stop exporting described pending message.
As shown in Figure 10, Figure 10 is a kind of structural representation for message processing apparatus 1000 of the disclosure according to an exemplary embodiment.Such as, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant, aircraft etc.
With reference to Figure 10, device 1000 can comprise following one or more assembly: processing components 1002, memory 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of I/O (I/O), sensor cluster 1014, and communications component 1016.
The integrated operation of the usual control device 1000 of processing components 1002, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1002 can comprise one or more processor 1020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assemblies is mutual.Such as, processing unit 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Memory 1004 is configured to store various types of data to be supported in the operation of equipment 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1006 is device 1000 provide electric power.Electric power assembly 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loud speaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1014 comprises one or more transducer, for providing the state estimation of various aspects for device 1000.Such as, sensor cluster 1014 can detect the opening/closing state of equipment 1000, the relative positioning of assembly, such as described assembly is display and the keypad of device 1000, the position of all right checkout gear 1000 of sensor cluster 1014 or device 1000 assemblies changes, the presence or absence that user contacts with device 600, the variations in temperature of device 1000 orientation or acceleration/deceleration and device 1000.Sensor cluster 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between device 1000 and other equipment.Device 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1004 of instruction, above-mentioned instruction can perform said method by the processor 1020 of device 1000.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (13)

1. a message treatment method, is characterized in that, described method comprises:
Receive pending message, in described pending message, carry timestamp;
According to described timestamp, judge that whether described pending message is not out of date;
When described pending message is not out of date, described pending message is exported;
When described pending message is expired, stop exporting described pending message.
2. method according to claim 1, is characterized in that, described timestamp is for representing the ageing cut-off time of message;
Described according to described timestamp, judge that whether described pending message is not out of date, comprising:
Obtain local current time;
Judge that the ageing cut-off time of pending message is whether before local current time, if the ageing cut-off time of pending message is before local current time, then described pending message is out of date, if the ageing cut-off time of pending message is identical with local current time or after local current time, then described pending message is not out of date.
3. method according to claim 1, is characterized in that, described timestamp is for representing the delivery time of message;
Described according to described timestamp, judge that whether described pending message is not out of date, comprising:
Obtain local current time;
Calculate the difference of the delivery time of local current time and pending message;
Judge whether described difference is less than default duration threshold value, if described difference is less than default duration threshold value, then described pending message is not out of date, if described difference is not less than default duration threshold value, then described pending message is out of date.
4. method according to claim 3, is characterized in that, described method also comprises:
Determine described default duration threshold value;
Describedly determine described default duration threshold value, comprising:
Resolve the message header of described pending message, obtain the type of pending message;
According to the corresponding relation of type of message and the effective duration of message preset, determine the target effective duration of the type of the described pending message of correspondence;
Described target effective duration is defined as described default duration threshold value.
5. method according to claim 1, is characterized in that, describedly exports described pending message, comprises at least one following manner:
Described pending message is shown;
Or, to vibrate and/or jingle bell mode reminding user.
6. method according to claim 1, is characterized in that, described method also comprises:
When described pending message is out of date, the transmitting apparatus to described pending message sends the prompting of Internet Transmission time-out.
7. a message processing apparatus, is characterized in that, described device comprises:
Message reception module, is configured to receive pending message, carries timestamp in described pending message;
Judge module, is configured to according to described timestamp, judges that whether described pending message is not out of date;
Message output module, is configured to, when described pending message is not out of date, export described pending message;
Export stopping modular, be configured to when described pending message is expired, stop exporting described pending message.
8. device according to claim 7, is characterized in that, described timestamp is for representing the ageing cut-off time of message;
Described judge module, comprising:
First moment obtained submodule, was configured to obtain local current time;
First judges submodule, be configured to judge that the ageing cut-off time of pending message is whether before local current time, if the ageing cut-off time of pending message is before local current time, then described pending message is out of date, if the ageing cut-off time of pending message is identical with local current time or after local current time, then described pending message is not out of date.
9. device according to claim 7, is characterized in that, described timestamp is for representing the delivery time of message;
Described judge module, comprising:
Second moment obtained submodule, was configured to obtain local current time;
Mathematic interpolation submodule, is configured to the difference of the delivery time calculating local current time and pending message;
Second judges submodule, be configured to judge whether described difference is less than default duration threshold value, if described difference is less than default duration threshold value, then described pending message is not out of date, if described difference is not less than default duration threshold value, then described pending message is out of date.
10. device according to claim 9, is characterized in that, described judge module also comprises:
Duration threshold value determination submodule, is configured to determine described default duration threshold value;
Described duration threshold value determination submodule, comprising:
Type of message determination submodule, is configured to the message header of resolving described pending message, obtains the type of pending message;
Effective duration determination submodule, is configured to the corresponding relation according to the type of message preset and the effective duration of message, determines the target effective duration of the type of corresponding described pending message;
Duration threshold value determination submodule, is configured to described target effective duration to be defined as described default duration threshold value.
11. devices according to claim 7, is characterized in that, described message output module, comprise the following submodule of at least one:
Message display sub-module, is configured to show described pending message;
Or message notifying submodule, is configured to vibrate and/or jingle bell mode reminding user.
12. devices according to claim 7, is characterized in that, described device also comprises:
Prompting sending module, is configured to when described pending message is out of date, and the transmitting apparatus to described pending message sends the prompting of Internet Transmission time-out.
13. 1 kinds of message processing apparatus, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive pending message, in described pending message, carry timestamp;
According to described timestamp, judge that whether described pending message is not out of date;
When described pending message is not out of date, described pending message is exported;
When described pending message is expired, stop exporting described pending message.
CN201510716853.XA 2015-10-29 2015-10-29 Message treatment method and device Active CN105430161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510716853.XA CN105430161B (en) 2015-10-29 2015-10-29 Message treatment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510716853.XA CN105430161B (en) 2015-10-29 2015-10-29 Message treatment method and device

Publications (2)

Publication Number Publication Date
CN105430161A true CN105430161A (en) 2016-03-23
CN105430161B CN105430161B (en) 2019-02-12

Family

ID=55508094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510716853.XA Active CN105430161B (en) 2015-10-29 2015-10-29 Message treatment method and device

Country Status (1)

Country Link
CN (1) CN105430161B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939485A (en) * 2016-06-27 2016-09-14 武汉斗鱼网络科技有限公司 System and method for monitoring bullet screen service availability based on user bullet screen behaviors
CN106227235A (en) * 2016-09-05 2016-12-14 重庆零度智控智能科技有限公司 Flying vehicles control method, device and user terminal
CN106254183A (en) * 2016-09-05 2016-12-21 重庆零度智控智能科技有限公司 Control method based on aircraft, device and aircraft
CN106357557A (en) * 2016-10-09 2017-01-25 广州市百果园网络科技有限公司 Message processing method and device
CN107547741A (en) * 2017-08-29 2018-01-05 努比亚技术有限公司 A kind of information processing method, device and computer-readable recording medium
CN107872396A (en) * 2016-09-26 2018-04-03 华为技术有限公司 Communication means, processing equipment, terminal device and server with overtime control
CN108512820A (en) * 2017-02-28 2018-09-07 华为技术有限公司 The method and apparatus of server response request message in a kind of communication system
CN112600749A (en) * 2020-10-27 2021-04-02 百果园技术(新加坡)有限公司 Expired call identification method, device, terminal and storage medium
CN112699015A (en) * 2020-12-29 2021-04-23 北京达佳互联信息技术有限公司 Log output method, device, server and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682616A (en) * 2011-03-16 2012-09-19 高德软件有限公司 Method and device for issuing traffic information of radio data broadcast system
WO2013122968A1 (en) * 2012-02-16 2013-08-22 Microsoft Corporation Power efficient application notification system
CN103684996A (en) * 2013-12-26 2014-03-26 广州华多网络科技有限公司 Subscribed message processing method and system of instant messaging tool
CN104407869A (en) * 2014-11-28 2015-03-11 小米科技有限责任公司 Notice column updating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682616A (en) * 2011-03-16 2012-09-19 高德软件有限公司 Method and device for issuing traffic information of radio data broadcast system
WO2013122968A1 (en) * 2012-02-16 2013-08-22 Microsoft Corporation Power efficient application notification system
CN103684996A (en) * 2013-12-26 2014-03-26 广州华多网络科技有限公司 Subscribed message processing method and system of instant messaging tool
CN104407869A (en) * 2014-11-28 2015-03-11 小米科技有限责任公司 Notice column updating method and device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939485B (en) * 2016-06-27 2018-11-06 武汉斗鱼网络科技有限公司 System and method based on user's barrage behavior monitoring barrage service availability
CN105939485A (en) * 2016-06-27 2016-09-14 武汉斗鱼网络科技有限公司 System and method for monitoring bullet screen service availability based on user bullet screen behaviors
CN106227235A (en) * 2016-09-05 2016-12-14 重庆零度智控智能科技有限公司 Flying vehicles control method, device and user terminal
CN106254183A (en) * 2016-09-05 2016-12-21 重庆零度智控智能科技有限公司 Control method based on aircraft, device and aircraft
CN106254183B (en) * 2016-09-05 2020-03-20 天津远翥科技有限公司 Control method and device based on aircraft and aircraft
CN107872396A (en) * 2016-09-26 2018-04-03 华为技术有限公司 Communication means, processing equipment, terminal device and server with overtime control
CN106357557A (en) * 2016-10-09 2017-01-25 广州市百果园网络科技有限公司 Message processing method and device
CN108512820A (en) * 2017-02-28 2018-09-07 华为技术有限公司 The method and apparatus of server response request message in a kind of communication system
CN108512820B (en) * 2017-02-28 2020-07-24 华为技术有限公司 Method and equipment for server to respond to request message in communication system
CN107547741A (en) * 2017-08-29 2018-01-05 努比亚技术有限公司 A kind of information processing method, device and computer-readable recording medium
CN107547741B (en) * 2017-08-29 2020-06-02 上饶市橙橙网络科技有限公司 Information processing method and device and computer readable storage medium
CN112600749A (en) * 2020-10-27 2021-04-02 百果园技术(新加坡)有限公司 Expired call identification method, device, terminal and storage medium
CN112600749B (en) * 2020-10-27 2023-02-17 百果园技术(新加坡)有限公司 Expired call identification method, device, terminal and storage medium
CN112699015A (en) * 2020-12-29 2021-04-23 北京达佳互联信息技术有限公司 Log output method, device, server and computer readable storage medium
CN112699015B (en) * 2020-12-29 2023-12-19 北京达佳互联信息技术有限公司 Log output method, device, server and computer readable storage medium

Also Published As

Publication number Publication date
CN105430161B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN105430161A (en) Message processing method and device
CN104185304B (en) A kind of method and device accessing WI-FI network
CN104699248A (en) Electronic equipment, device and method for control of audio play
CN105117211A (en) Method and device for message prompts
CN104598093A (en) Method and device for prompting message during screen locking
CN105373464A (en) Charging warning method and device of wearable equipment
CN104980820A (en) Multimedia file playing method and multimedia file playing device
CN105159672A (en) Remote assistance method and client
CN104702762A (en) Incoming call reminding method and incoming call reminding device
CN104618511A (en) Intelligent device detection method and device
CN104580730A (en) Alarm clock prompting method and device
CN103973900B (en) The method of transmission information and device
CN105138319A (en) Event reminding method and apparatus
CN104717554A (en) Smart television control method and device and electronic equipment
CN105516183A (en) Device connection method and device
CN105491048A (en) Account management method and apparatus
CN105159523A (en) Target function enabling method, apparatus and system
CN104270806A (en) Transmitting power adjusting method and device
CN104093216A (en) Method and device for wireless data transmission
CN104468971A (en) Method and device for connecting playing source
CN105337800A (en) Polling frequency adjustment method and polling frequency adjustment device
CN104539871A (en) Multimedia call method and device
CN105117899A (en) Reminding method and apparatus
CN104468985A (en) Reminding method and device
CN105337839A (en) Exchange group control 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
GR01 Patent grant
GR01 Patent grant