CN107026941B - Method and device for processing reply of unread message - Google Patents

Method and device for processing reply of unread message Download PDF

Info

Publication number
CN107026941B
CN107026941B CN201710384550.1A CN201710384550A CN107026941B CN 107026941 B CN107026941 B CN 107026941B CN 201710384550 A CN201710384550 A CN 201710384550A CN 107026941 B CN107026941 B CN 107026941B
Authority
CN
China
Prior art keywords
user
message
preset
sleep state
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.)
Active
Application number
CN201710384550.1A
Other languages
Chinese (zh)
Other versions
CN107026941A (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 Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710384550.1A priority Critical patent/CN107026941B/en
Publication of CN107026941A publication Critical patent/CN107026941A/en
Application granted granted Critical
Publication of CN107026941B publication Critical patent/CN107026941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a reply processing method and a device of unread messages, wherein the method comprises the following steps: when a session message received by a terminal is in an unread state at a first time, detecting whether a user is in a sleep state; the difference between the first time and the receiving time of the session message is greater than a first preset time; and when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.

Description

Method and device for processing reply of unread message
Technical Field
The present disclosure relates to the field of instant messaging technologies, and in particular, to a method and an apparatus for processing an unread message reply.
Background
When one party directly falls asleep while holding the mobile phone, the other party cannot receive feedback of the other party and cannot know the current state of the other party, so that the two users in chatting fall into long waiting time and waste time.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and an apparatus for processing a reply to an unread message.
According to a first aspect of the embodiments of the present disclosure, a method for processing a reply of an unread message is provided, including:
when a session message received by a terminal is in an unread state at a first time, detecting whether a user is in a sleep state; the difference between the first time and the receiving time of the session message is greater than a first preset time;
and when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state.
Optionally, the detecting whether the user is in a sleep state includes: acquiring the light intensity in the current environment; detecting whether the light intensity is smaller than a preset light intensity;
the detecting that the user is in a sleep state comprises: and when the light intensity is smaller than the preset light intensity, detecting that the user is in a sleep state.
Optionally, the detecting whether the user is in a sleep state includes: acquiring an eye picture of the user; detecting whether the eyes of the user are in a closed state according to the eye picture;
the detecting that the user is in a sleep state comprises:
and when the eyes of the user are detected to be in a closed state according to the eye picture, detecting that the user is in a sleep state.
Optionally, the detecting whether the user is in a sleep state includes: detecting whether the terminal is in a static state within second preset time;
the detecting that the user is in a sleep state comprises:
and when the terminal is detected to be in a static state within a second preset time, detecting that the user is in a sleep state.
Optionally, the detecting whether the user is in a sleep state includes: acquiring the heart rate of the user; detecting whether the heart rate is smaller than a preset heart rate or not;
the detecting that the user is in a sleep state comprises: and when the heart rate is smaller than a preset heart rate, detecting that the user is in a sleep state.
Optionally, before the detecting that the user is in the sleep state, the method further includes:
and detecting that the light intensity of the current environment is greater than or equal to the preset light intensity.
Optionally, before detecting whether the user is in the sleep state, the method further includes:
determining that the receiving time of the session message is within a preset sleep time period.
According to a second aspect of the embodiments of the present disclosure, there is provided a reply processing apparatus for an unread message, including:
the terminal comprises a detection module, a judging module and a judging module, wherein the detection module is configured to detect whether a user is in a sleep state or not when a session message received by the terminal is in an unread state at a first time; the difference between the first time and the receiving time of the session message is greater than a first preset time;
the sending module is configured to send a preset message to a sending end of the session message when the detecting module detects that the user is in the sleep state, where the preset message is used to indicate that the user is in the sleep state.
Optionally, the detection module includes: a first acquisition submodule and a first detection submodule;
the first obtaining submodule is configured to obtain the light intensity in the current environment;
the first detection submodule is configured to detect whether the light intensity is smaller than a preset light intensity; and when the light intensity is smaller than the preset light intensity, detecting that the user is in a sleep state.
Optionally, the detection module includes: a second acquisition submodule and a second detection submodule;
the second acquisition submodule is configured to acquire an eye picture of the user;
the second detection submodule is configured to detect whether the eyes of the user are in a closed state according to the eye picture; and when the eyes of the user are detected to be in a closed state according to the eye picture, detecting that the user is in a sleep state.
Optionally, the detection module includes: a third detection submodule;
the third detection submodule is configured to detect whether the terminal is in a static state within a second preset time; and when the terminal is detected to be in a static state within a second preset time, detecting that the user is in a sleep state.
Optionally, the detection module includes: a third acquisition submodule and a fourth detection submodule;
the third obtaining submodule is configured to obtain a heart rate of the user;
the fourth detection submodule is configured to detect whether the heart rate is smaller than a preset heart rate; and when the heart rate is smaller than a preset heart rate, detecting that the user is in a sleep state.
Optionally, the detection module further includes: a fifth detection submodule;
the fifth detection submodule is configured to detect that the light intensity of the current environment is greater than or equal to a preset light intensity.
Optionally, the apparatus further comprises:
a determination module configured to determine that a reception time of the session message is within a preset sleep period.
According to a third aspect of the embodiments of the present disclosure, there is provided a reply processing apparatus for an unread message, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a session message received by a terminal is in an unread state at a first time, detecting whether a user is in a sleep state; the difference between the first time and the receiving time of the session message is greater than a first preset time;
and when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: detecting whether a user is in a sleep state or not when a received conversation message is in an unread state at a first time; the difference between the first time and the receiving time of the session message is greater than a first preset time; and when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow diagram illustrating a method for reply processing of an unread message, according to an example embodiment.
Fig. 2 is a flowchart illustrating a reply processing method for an unread message, according to another exemplary embodiment.
Fig. 3 is a flowchart illustrating a reply processing method for an unread message, according to another example embodiment.
Fig. 4 is a flowchart illustrating a reply processing method for an unread message, according to another example embodiment.
Fig. 5 is a flowchart illustrating a reply processing method for an unread message, according to another exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for reply processing of an unread message, according to an example embodiment.
Fig. 7 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment.
Fig. 8 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment.
Fig. 9 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment.
Fig. 10 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment.
Fig. 11 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment.
Fig. 12 is a block diagram illustrating an apparatus 800 for processing a reply to an unread message, according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a reply processing method for an unread message according to an exemplary embodiment, where as shown in fig. 1, the reply processing method for the unread message is used in a terminal, and includes the following steps.
In step S11, when the session message received by the terminal is in an unread state at a first time, detecting whether the user is in a sleep state; the difference between the first time and the receiving time of the session message is larger than a first preset time.
In step S12, when it is detected that the user is in the sleep state, a preset message is sent to the sender of the session message, where the preset message is used to indicate that the user is in the sleep state.
In this embodiment, after receiving the session message, the session message may be a short message received by the terminal, or may be a session message in an instant messaging in the terminal, where the instant messaging may be a chat, a QQ, an MSN, a WeChat, or the like. When a received session message is in an unread state after a first preset time (e.g., 10 minutes) from the time of receiving the session message, that is, the session message is not yet read by the user, it is detected whether the user is in a sleep state. When the user is detected to be in the sleep state, the preset message is sent to the sending end sending the session message for indicating that the user is in the sleep state, so that the user at the sending end can know that the user at the receiving end is in the sleep state after reading the preset message, waiting for reply is not needed, time waste is avoided, and the chat experience of the user is improved. When it is detected that the user is not in the sleep state, the present embodiment is ended, i.e., step S12 is not executed.
One way of determining whether the received session message is in an unread state may be: after the terminal receives the session message, the terminal notifies the user that the session message is received through the notification message, and if the notification message is not processed by the user (for example, there is no touch operation or sliding operation in a display area of the notification message in a display interface), it indicates that the session message is in an unread state.
The content of the preset message may be text, pictures, animation, voice, or the like.
In summary, in the reply processing method for unread messages provided in this embodiment, when the received session message is in the unread state at the first time, it is detected whether the user is in the sleep state; the difference between the first time and the receiving time of the session message is greater than a first preset time; and when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.
Fig. 2 is a flowchart illustrating a reply processing method for an unread message according to another exemplary embodiment, where as shown in fig. 2, the reply processing method for the unread message is used in a terminal, and includes the following steps.
In step S21, when the session message received by the terminal is in an unread state at a first time, acquiring the light intensity in the current environment; the difference between the first time and the receiving time of the session message is larger than a first preset time.
In step S22, it is detected whether the light intensity is less than a preset light intensity.
In step S23, when the light intensity is less than a preset light intensity, it is detected that the user is in a sleep state.
In this embodiment, when the received session message is still in an unread state at the first time, the light intensity in the current environment is obtained, the light intensity in the current environment may be obtained through a light sensor in a camera (a front camera and/or a rear camera) of the terminal, and then it is detected whether the light intensity is smaller than a preset light intensity. When it is detected that the light intensity is less than the preset light intensity, it may be considered that the user is in the dark and the user is turned off, and thus, it may be detected that the user is in the sleep state, and then step S24 is performed. When it is detected that the light intensity is greater than or equal to the preset light intensity, it may be considered that the user is not currently in the night or the user is not turned off, and accordingly it is detected that the user is not in the sleep state, and then it is ended, or S31-S34 in the embodiment shown in fig. 3 is performed again, or S41-S43 in the embodiment shown in fig. 4 is performed again, or S51-S54 in the embodiment shown in fig. 5 is performed again.
In step S24, a preset message is sent to the sender of the session message, where the preset message is used to indicate that the user is in a sleep state.
The specific implementation process of step S24 may refer to the related description in the embodiment shown in fig. 1, and is not described herein again.
In summary, in the reply processing method for unread messages provided in this embodiment, when the received session message is in an unread state at the first time, whether the user is in a sleep state is detected by detecting the light intensity of the current environment; the difference between the first time and the receiving time of the session message is greater than a first preset time; and when the light intensity is smaller than the preset light intensity, detecting that the user is in a sleep state, and then sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.
Fig. 3 is a flowchart illustrating a reply processing method for an unread message according to another exemplary embodiment, where as shown in fig. 3, the reply processing method for the unread message is used in a terminal, and includes the following steps.
In step S31, when the session message received by the terminal is in an unread state at the first time, acquiring an eye screen of the user; the difference between the first time and the receiving time of the session message is larger than a first preset time.
In step S32, it is detected whether or not the user' S eyes are in a closed state based on the eye screen.
In step S33, when it is detected that the eyes of the user are in a closed state from the eye screen, it is detected that the user is in a sleep state.
In this embodiment, when the received session message is still in an unread state at the first time, the eye picture of the user is obtained, the camera (the front camera and/or the rear camera) of the terminal can be used to shoot the eye picture of the user, and then whether the eyes of the user are in a closed state is detected according to the eye picture. When it is detected that the eyes of the user are in the closed state, it may be said that the user has already closed the eyes to sleep, and therefore, it may be detected that the user is in the sleep state, and then step S34 is performed. When it is detected that the eyes of the user are not in the closed state, it can be stated that the eyes of the user are not closed to sleep, and accordingly, it is detected that the user is not in the sleep state, and then the process is finished.
In step S34, a preset message is sent to the sender of the session message, where the preset message is used to indicate that the user is in a sleep state.
The specific implementation process of step S34 may refer to the related description in the embodiment shown in fig. 1, and is not described herein again.
Optionally, before the step of acquiring the eye picture of the user in step S31, the embodiment further determines that the light intensity in the current environment is greater than or equal to the preset light intensity. That is, when the received session message is in an unread state at the first time, the light intensity of the current environment is acquired; and detecting whether the light intensity is smaller than a preset light intensity or not, and acquiring an eye picture of the user when the light intensity is larger than or equal to the preset light intensity.
In summary, in the reply processing method for unread messages provided in this embodiment, when the received session message is in an unread state at the first time, whether the user is in a sleep state is detected by detecting the eye image of the user; the difference between the first time and the receiving time of the session message is greater than a first preset time; when the eyes of the user are detected to be in a closed state according to the eye picture of the user, the user is detected to be in a sleep state, and then a preset message is sent to a sending end of the conversation message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.
Fig. 4 is a flowchart illustrating a reply processing method for an unread message according to another exemplary embodiment, where as shown in fig. 4, the reply processing method for the unread message is used in a terminal, and includes the following steps.
In step S41, when the session message received by the terminal is in an unread state at a first time, detecting whether the terminal is in a static state at a second preset time; the difference between the first time and the receiving time of the session message is larger than a first preset time.
In step S42, when it is detected that the terminal is in a stationary state within a second preset time, it is detected that the user is in a sleep state.
In this embodiment, when the received session message is still in an unread state at the first time, it is detected whether the terminal is in a stationary state within a second preset time (for example, within 1 minute), it is detected whether the terminal moves or shakes through a gyroscope of the terminal, if the terminal does not move or shake, it can be considered that the terminal is in the stationary state, and the user does not operate the terminal, so that it is detected that the user is in a sleep state, and then step S43 is executed. When the terminal is detected to move or shake, the terminal can be considered not to be in a static state, which indicates that the user still operates the terminal, and accordingly the user is detected not to be in a sleep state, and then the operation is finished.
In step S43, a preset message is sent to the sender of the session message, where the preset message is used to indicate that the user is in a sleep state.
The specific implementation process of step S43 may refer to the related description in the embodiment shown in fig. 1, and is not described herein again.
Optionally, the present embodiment further determines that the light intensity of the current environment is greater than or equal to the preset light intensity before the detection terminal performs step S41 to determine whether the terminal is in the static state at the second preset time. That is, when the received session message is in an unread state at the first time, the light intensity in the current environment is acquired; and detecting whether the light intensity is smaller than a preset light intensity or not, and when the light intensity is larger than or equal to the preset light intensity, detecting whether the terminal is in a static state at a second preset time or not.
In summary, in the reply processing method for unread messages provided in this embodiment, when the received session message is in an unread state at the first time, whether the user is in a sleep state is detected by detecting whether the terminal is in a stationary state; the difference between the first time and the receiving time of the session message is greater than a first preset time; when the terminal is detected to be in a static state, the user is detected to be in a sleep state, and then a preset message is sent to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.
Fig. 5 is a flowchart illustrating a reply processing method for an unread message according to another exemplary embodiment, where as shown in fig. 5, the reply processing method for the unread message is used in a terminal, and includes the following steps.
In step S51, when the session message received by the terminal is in an unread state at a first time, acquiring a heart rate of the user; the difference between the first time and the receiving time of the session message is larger than a first preset time.
In step S52, it is detected whether the heart rate is less than a preset heart rate.
In step S53, when the heart rate is less than a preset heart rate, it is detected that the user is in a sleep state.
In this embodiment, when the received session message is still in an unread state at the first time, the heart rate of the user is acquired, the heart rate of the user may be acquired through a monitoring device (e.g., a wearable device) of the heart rate, and then it is detected whether the heart rate is smaller than a preset heart rate. When it is detected that the heart rate is smaller than the preset heart rate, it is detected that the user is in the sleep state, and then step S54 is executed, because the metabolism is slowed down after the person enters the sleep state, and accordingly the heart rate is also decreased. And when the heart rate is detected to be greater than or equal to the preset heart rate, detecting that the user is not in the sleep state according to the heart rate, and then ending.
In step S54, a preset message is sent to the sender of the session message, where the preset message is used to indicate that the user is in a sleep state.
The specific implementation process of step S54 may refer to the related description in the embodiment shown in fig. 1, and is not described herein again.
Optionally, the present embodiment further determines that the light intensity in the current environment is greater than or equal to the preset light intensity before the step S51 of acquiring the heart rate of the user is executed. That is, when the received session message is in an unread state at the first time, the light intensity of the current environment is acquired; and detecting whether the light intensity is smaller than the preset light intensity or not, and acquiring the heart rate of the user when the light intensity is larger than or equal to the preset light intensity.
In summary, in the reply processing method for unread messages provided in this embodiment, when the received session message is in an unread state at the first time, whether the user is in a sleep state is detected by detecting the heart rate of the user; the difference between the first time and the receiving time of the session message is greater than a first preset time; when the heart rate of a user is smaller than a preset heart rate, detecting that the user is in a sleep state, and then sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state. Therefore, the sending end of the session message knows that the user is in the sleep state and cannot reply the message according to the preset message, and the sending end of the session message does not need to wait for the reply of the message, so that the waste of time is avoided, and the chat experience effect is improved.
Optionally, on the basis of the foregoing embodiments of the present invention, before detecting whether the user is in the sleep state, the method further includes: determining that the receiving time of the session message is within a preset sleep time period. For example, the preset sleep time is: 22:00-08:00. This is because when the receiving time of the session message is within the preset sleep time period, the user is likely to be in a sleep state, and then the scheme of the above embodiments of the present invention is executed. If the receiving time of the session message is not within the preset sleep time period, it indicates that the user is likely not in the sleep state, and the scheme of the above embodiments of the present invention is not executed. Therefore, the processing resource of the terminal can be saved, and the processing capacity of the terminal can be improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 6 is a block diagram illustrating an apparatus for reply processing of an unread message, according to an example embodiment. The reply processing device of the unread message can be realized by software, hardware or a combination of the software and the hardware to be a part or all of the electronic equipment comprising the touch display screen. Referring to fig. 6, the apparatus includes a detection module 100 and a transmission module 200.
A detection module 100 configured to detect whether a user is in a sleep state when a session message received by a terminal is in an unread state at a first time; the difference between the first time and the receiving time of the session message is larger than a first preset time.
A sending module 200, configured to send a preset message to a sending end of the session message when the detecting module 100 detects that the user is in the sleep state, where the preset message is used to indicate that the user is in the sleep state.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 7 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment. The reply processing device of the unread message can be realized by software, hardware or a combination of the software and the hardware to be a part or all of the electronic equipment comprising the touch display screen. Referring to fig. 7, in the apparatus of this embodiment, based on the embodiment of the apparatus shown in fig. 6, the detecting module 100 includes: a first acquisition sub-module 110 and a first detection sub-module 120.
The first obtaining sub-module 110 is configured to obtain the light intensity in the current environment.
The first detecting submodule 120 is configured to detect whether the light intensity is smaller than a preset light intensity; and when the light intensity is smaller than the preset light intensity, detecting that the user is in a sleep state.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 8 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment. The reply processing device of the unread message can be realized by software, hardware or a combination of the software and the hardware to be a part or all of the electronic equipment comprising the touch display screen. Referring to fig. 8, in the apparatus of this embodiment, based on the embodiment of the apparatus shown in fig. 6, the detecting module 100 includes: a second acquisition submodule 130 and a second detection submodule 140.
The second obtaining sub-module 130 is configured to obtain an eye picture of the user.
The second detection submodule 140 is configured to detect whether the eyes of the user are in a closed state according to the eye picture; and when the eyes of the user are detected to be in a closed state according to the eye picture, detecting that the user is in a sleep state.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 9 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment. The reply processing device of the unread message can be realized by software, hardware or a combination of the software and the hardware to be a part or all of the electronic equipment comprising the touch display screen. Referring to fig. 9, in the apparatus of this embodiment, based on the embodiment of the apparatus shown in fig. 6, the detecting module 100 includes: and a third detection submodule 150.
The third detection submodule 150 is configured to detect whether the terminal is in a stationary state within a second preset time; and when the terminal is detected to be in a static state within a second preset time, detecting that the user is in a sleep state.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 10 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment. The reply processing device of the unread message can be realized by software, hardware or a combination of the software and the hardware to be a part or all of the electronic equipment comprising the touch display screen. Referring to fig. 10, in the apparatus of this embodiment, based on the embodiment of the apparatus shown in fig. 6, the detecting module 100 includes: a third acquisition submodule 160 and a fourth detection submodule 170.
The third obtaining sub-module 160 is configured to obtain a heart rate of the user.
The fourth detection submodule 170 configured to detect whether the heart rate is less than a preset heart rate; and when the heart rate is smaller than a preset heart rate, detecting that the user is in a sleep state.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Optionally, on the basis of any one of the embodiments shown in fig. 8 to 10, the detection module 100 further includes: a fifth detection sub-module (not shown in the figures), configured to detect that the light intensity of the current environment is greater than or equal to the preset light intensity.
Fig. 11 is a block diagram illustrating a reply processing apparatus for an unread message, according to another example embodiment. The reply processing device of the unread message can be realized by software, hardware or a combination of the software and the hardware to be a part or all of the electronic equipment comprising the touch display screen. Referring to fig. 11, the apparatus of this embodiment is based on the embodiment of the apparatus shown in any one of fig. 6 to 10, and the apparatus of this embodiment further includes: a module 300 is determined.
A determining module 300 configured to determine that a reception time of the session message is within a preset sleep period.
With regard to the apparatus in the above-described embodiment, the specific manner and technical effects of the operations performed by the respective modules have been described in detail in the embodiment related to the method, and will not be elaborated herein.
Fig. 12 is a block diagram illustrating an apparatus 800 for processing a reply to an unread message, according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 12, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of the apparatus 800, enable the apparatus 800 to perform the above-mentioned reply processing method for an unread message.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A reply processing method of an unread message is characterized by comprising the following steps:
when a session message received by a terminal is in an unread state at a first time, detecting whether a user is in a sleep state; the difference between the first time and the receiving time of the session message is greater than a first preset time;
when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state;
wherein, when the session message received by the terminal is in an unread state at the first time, before detecting whether the user is in a sleep state, the method further comprises:
judging whether the received session message is in an unread state;
wherein the determining whether the received session message is in an unread state includes:
after receiving the conversation message, notifying the user of receiving the conversation message through a notification message;
if the notification message is not processed by the user, determining that the session message is in an unread state;
before detecting whether the user is in the sleep state, the method further includes:
determining that the receiving time of the session message is within a preset sleep time period.
2. The method of claim 1, wherein the detecting whether the user is in a sleep state comprises: acquiring the light intensity in the current environment; detecting whether the light intensity is smaller than a preset light intensity;
the detecting that the user is in a sleep state comprises: and when the light intensity is smaller than the preset light intensity, detecting that the user is in a sleep state.
3. The method of claim 1, wherein the detecting whether the user is in a sleep state comprises: acquiring an eye picture of the user; detecting whether the eyes of the user are in a closed state according to the eye picture;
the detecting that the user is in a sleep state comprises:
and when the eyes of the user are detected to be in a closed state according to the eye picture, detecting that the user is in a sleep state.
4. The method of claim 1, wherein the detecting whether the user is in a sleep state comprises: detecting whether the terminal is in a static state within second preset time;
the detecting that the user is in a sleep state comprises:
and when the terminal is detected to be in a static state within a second preset time, detecting that the user is in a sleep state.
5. The method of claim 1, wherein the detecting whether the user is in a sleep state comprises: acquiring the heart rate of the user; detecting whether the heart rate is smaller than a preset heart rate or not;
the detecting that the user is in a sleep state comprises: and when the heart rate is smaller than a preset heart rate, detecting that the user is in a sleep state.
6. The method according to any one of claims 3-5, wherein before detecting that the user is in a sleep state, further comprising:
and detecting that the light intensity of the current environment is greater than or equal to the preset light intensity.
7. An apparatus for processing a reply to an unread message, comprising:
the terminal comprises a detection module, a judging module and a judging module, wherein the detection module is configured to detect whether a user is in a sleep state or not when a session message received by the terminal is in an unread state at a first time; the difference between the first time and the receiving time of the session message is greater than a first preset time;
a sending module configured to send a preset message to a sending end of the session message when the detecting module detects that the user is in a sleep state, wherein the preset message is used for indicating that the user is in the sleep state;
wherein the detection module is further configured to:
when the session message received by the terminal is in an unread state at the first time, judging whether the received session message is in the unread state before detecting whether a user is in a sleep state;
wherein the detection module is further configured to:
after receiving the conversation message, notifying the user of receiving the conversation message through a notification message;
if the notification message is not processed by the user, determining that the session message is in an unread state;
wherein the apparatus further comprises:
a determination module configured to determine that a reception time of the session message is within a preset sleep period.
8. The apparatus of claim 7, wherein the detection module comprises: a first acquisition submodule and a first detection submodule;
the first obtaining submodule is configured to obtain the light intensity in the current environment;
the first detection submodule is configured to detect whether the light intensity is smaller than a preset light intensity; and when the light intensity is smaller than the preset light intensity, detecting that the user is in a sleep state.
9. The apparatus of claim 7, wherein the detection module comprises: a second acquisition submodule and a second detection submodule;
the second acquisition submodule is configured to acquire an eye picture of the user;
the second detection submodule is configured to detect whether the eyes of the user are in a closed state according to the eye picture; and when the eyes of the user are detected to be in a closed state according to the eye picture, detecting that the user is in a sleep state.
10. The apparatus of claim 7, wherein the detection module comprises: a third detection submodule;
the third detection submodule is configured to detect whether the terminal is in a static state within a second preset time; and when the terminal is detected to be in a static state within a second preset time, detecting that the user is in a sleep state.
11. The apparatus of claim 7, wherein the detection module comprises: a third acquisition submodule and a fourth detection submodule;
the third obtaining submodule is configured to obtain a heart rate of the user;
the fourth detection submodule is configured to detect whether the heart rate is smaller than a preset heart rate; and when the heart rate is smaller than a preset heart rate, detecting that the user is in a sleep state.
12. The apparatus of any one of claims 9-11, wherein the detection module further comprises: a fifth detection submodule;
the fifth detection submodule is configured to detect that the light intensity of the current environment is greater than or equal to a preset light intensity.
13. An apparatus for processing a reply to an unread message, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a session message received by a terminal is in an unread state at a first time, detecting whether a user is in a sleep state; the difference between the first time and the receiving time of the session message is greater than a first preset time;
when the user is detected to be in the sleep state, sending a preset message to a sending end of the session message, wherein the preset message is used for indicating that the user is in the sleep state;
wherein the processor is further configured to: when the session message received by the terminal is in an unread state at the first time, judging whether the received session message is in the unread state before detecting whether a user is in a sleep state;
the processor is further configured to:
after receiving the conversation message, notifying the user of receiving the conversation message through a notification message;
if the notification message is not processed by the user, determining that the session message is in an unread state;
wherein the processor is further configured to:
determining that the receiving time of the session message is within a preset sleep time period before detecting whether the user is in a sleep state.
CN201710384550.1A 2017-05-26 2017-05-26 Method and device for processing reply of unread message Active CN107026941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710384550.1A CN107026941B (en) 2017-05-26 2017-05-26 Method and device for processing reply of unread message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710384550.1A CN107026941B (en) 2017-05-26 2017-05-26 Method and device for processing reply of unread message

Publications (2)

Publication Number Publication Date
CN107026941A CN107026941A (en) 2017-08-08
CN107026941B true CN107026941B (en) 2020-06-02

Family

ID=59529939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710384550.1A Active CN107026941B (en) 2017-05-26 2017-05-26 Method and device for processing reply of unread message

Country Status (1)

Country Link
CN (1) CN107026941B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510900A (en) * 2019-01-29 2019-03-22 上海与德通讯技术有限公司 A kind of control method, device, equipment and storage medium
CN115883714A (en) * 2021-09-28 2023-03-31 华为技术有限公司 Message reply method and related equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103622700A (en) * 2013-12-18 2014-03-12 浙江天地人科技有限公司 Sleep monitoring system and method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902529A (en) * 2010-07-28 2010-12-01 深圳市五巨科技有限公司 Method and device for mobile terminal to answer short message automatically
KR101668249B1 (en) * 2010-08-24 2016-10-21 엘지전자 주식회사 Mobile terminal and operation control method thereof
CN103369136A (en) * 2013-06-19 2013-10-23 东莞宇龙通信科技有限公司 Terminal reminding method and terminal
CN104050039A (en) * 2014-07-03 2014-09-17 中科创达软件股份有限公司 Method and device for having control over multimedia playing
CN104468996A (en) * 2014-11-28 2015-03-25 小米科技有限责任公司 Call answering method and device
CN105847525A (en) * 2015-01-16 2016-08-10 阿里巴巴集团控股有限公司 Method, apparatus and system for controlling information reminding function of mobile terminal
CN104796555B (en) * 2015-05-08 2018-07-31 上海斐讯数据通信技术有限公司 A kind of method of automatically replying incoming call
CN104902094A (en) * 2015-05-29 2015-09-09 努比亚技术有限公司 Mobile terminal communication method and mobile terminal
CN105827819A (en) * 2015-12-17 2016-08-03 维沃移动通信有限公司 Method of automatically ringing back missed call and called terminal
CN106657646A (en) * 2016-12-28 2017-05-10 深圳天珑无线科技有限公司 Missed call processing method and device and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103622700A (en) * 2013-12-18 2014-03-12 浙江天地人科技有限公司 Sleep monitoring system and method

Also Published As

Publication number Publication date
CN107026941A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
EP3113466A1 (en) Method and device for warning
WO2016192323A1 (en) Video communication method and device
CN109274510B (en) Message processing method, device, client, server and storage medium
CN107204883B (en) Network fault processing method and device
CN107040591B (en) Method and device for controlling client
CN105786507B (en) Display interface switching method and device
US10009283B2 (en) Method and device for processing information
CN106254192B (en) Prompting method, prompting device and prompting system
CN112969096A (en) Media playing method and device and electronic equipment
EP3048526A1 (en) Voice prompting method and apparatus
CN106331328B (en) Information prompting method and device
CN111654354B (en) Method and device for detecting maximum transmission unit MTU and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
EP2991326A1 (en) Method, apparatus and computer program product for processing communication identification
US10263925B2 (en) Method, device and medium for sending message
CN111181844A (en) Message processing method, device and medium
CN105227426B (en) Application interface switching method and device and terminal equipment
CN107026941B (en) Method and device for processing reply of unread message
CN106919302B (en) Operation control method and device of mobile terminal
CN106535147B (en) Communication signal processing method and device
CN109451857B (en) Data transmission method and device
CN107677363B (en) Noise prompting method and intelligent terminal
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN107846481B (en) Account management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant