Disclosure of Invention
The embodiment of the invention provides an anti-disturbance method and an anti-disturbance device for terminal equipment, which can automatically enter an anti-disturbance mode when a user sleeps, prevent vibration, ringing and a bright screen of the terminal equipment from influencing the rest of the user, and simultaneously avoid that the user misses important reminding information by opening the anti-disturbance mode.
The first aspect of the embodiment of the invention discloses a method for preventing terminal equipment from being disturbed, which comprises the following steps:
receiving a user state monitored by the wearable device; wherein the user state comprises: an awake state or a sleep state;
determining whether the user state is switched from the awake state to the sleep state, determining whether a current time is day or night;
if the user state is switched from the waking state to the sleeping state and the current time is day time, enabling the terminal equipment to enter a first anti-disturbance mode; and if the user state is switched from the waking state to the sleeping state and the current time is at night, enabling the terminal equipment to enter a second anti-disturbance mode.
As an optional embodiment, the determining that the current time is day or night includes:
monitoring environmental information, and judging whether the current time is day or night according to the environmental information; wherein the environment information includes: at least one of temperature, light and shade, and sound; or,
and acquiring the system time of the terminal equipment, and judging whether the current time is day or night according to the system time.
As an alternative embodiment, the first anti-disturb mode includes:
setting the application software notification of the terminal equipment to be in a mute mode;
setting a system push message notification of the terminal equipment to be in a mute mode;
setting short messages and incoming call prompts of strange telephone numbers of the terminal equipment to be in a mute mode; the strange telephone number is a telephone number except for the telephone number contained in the address list of the terminal equipment.
As an alternative embodiment, the second anti-disturb mode includes:
setting application software notifications of the terminal equipment except application software included in a white list to be in a mute mode;
setting a system push message notification of the terminal equipment except the system push message included in the white list to be in a mute mode;
setting short messages and incoming call reminders of the telephone numbers of the terminal equipment except the telephone numbers included in the white list to be in a mute mode;
wherein the white list comprises permission to generate in the second anti-disturb mode set by the user comprises: application software for at least one of vibration, sound, and on-screen operation, system push message, and phone number.
As an optional implementation, the method further comprises:
and if the terminal equipment is monitored to be in the first anti-disturbance mode or the second anti-disturbance mode and the user state is switched from the sleep state to the waking state, exiting the first anti-disturbance mode or the second anti-disturbance mode.
As an optional implementation, the method further comprises:
if the terminal equipment is monitored to be in the first anti-disturbance mode and the current time is changed from day to night, switching the first anti-disturbance mode to the second anti-disturbance mode; or,
and if the terminal equipment is monitored to be in the second anti-disturbance mode and the current time is changed from night to day, switching the second anti-disturbance mode to the first anti-disturbance mode.
A second aspect of the embodiments of the present invention discloses an anti-disturbance device for a terminal device, including:
the receiving module is used for receiving the user state monitored by the wearable equipment; wherein the user state comprises: an awake state or a sleep state;
the judging module is used for determining whether the user state is switched from the waking state to the sleeping state or not and determining that the current time is day or night;
the anti-disturbance module is used for enabling the terminal equipment to enter a first anti-disturbance mode when the user state is switched from the waking state to the sleeping state and the current time is daytime; when the user state is switched from the awake state to the sleep state and the current time is at night, the terminal device is caused to enter a second anti-disturb mode.
As an optional implementation manner, the determining module is specifically configured to monitor environmental information, and determine that the current time is day or night according to the environmental information; wherein the environment information includes: at least one of temperature, light and shade, and sound; or,
the method is specifically configured to obtain the system time of the terminal device, and determine whether the current time is day or night according to the system time.
As an alternative embodiment, the disturbance prevention module comprises:
the first anti-disturbance module is used for setting the application software notification of the terminal equipment into a mute mode;
setting a system push message notification of the terminal equipment to be in a mute mode;
setting short messages and incoming call prompts of strange telephone numbers of the terminal equipment to be in a mute mode; the strange telephone number is a telephone number except for the telephone number contained in the address list of the terminal equipment. The strange telephone number is a telephone number except for the telephone number contained in the address list of the terminal equipment.
As an alternative embodiment, the disturbance prevention module comprises:
the second anti-disturbance module is used for setting the application software notification of the terminal equipment except the application software included in the white list into a mute mode;
setting a system push message notification of the terminal equipment except the system push message included in the white list to be in a mute mode;
setting short messages and incoming call reminders of the telephone numbers of the terminal equipment except the telephone numbers included in the white list to be in a mute mode;
wherein the white list comprises permission to generate in the second anti-disturb mode set by the user comprises: application software for at least one of vibration, sound, and on-screen operation, system push message, and phone number.
As an optional implementation, the apparatus further comprises:
and the anti-disturbance exit module is used for exiting the first anti-disturbance mode or the second anti-disturbance mode when the terminal equipment is monitored to be in the first anti-disturbance mode or the second anti-disturbance mode and the user state is switched from the sleep state to the awake state.
As an optional implementation, the apparatus further comprises:
the anti-disturbance switching module is used for switching the first anti-disturbance mode to the second anti-disturbance mode when the terminal equipment is monitored to be in the first anti-disturbance mode and the current time is changed from day to night; or,
and when the terminal equipment is monitored to be in the second anti-disturbance mode and the current time is converted from night to day, switching the second anti-disturbance mode to the first anti-disturbance mode.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a user state monitored by wearable equipment is received, and if the user state is switched from the waking state to the sleeping state and the current time is day, the terminal equipment is enabled to enter a first anti-disturbance mode; and if the user state is switched from the waking state to the sleeping state and the current time is at night, enabling the terminal equipment to enter a second anti-disturbance mode. By implementing the embodiment of the invention, the user can automatically enter the anti-disturbance mode when sleeping, so that the vibration, ringing and screen lighting of the terminal equipment are prevented from influencing the rest of the user, and the user is prevented from missing important reminding information by starting the anti-disturbance mode.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an anti-disturbance method and an anti-disturbance device for terminal equipment, which can automatically enter an anti-disturbance mode when a user sleeps, prevent vibration, ringing and a bright screen of the terminal equipment from influencing the rest of the user, and simultaneously avoid that the user misses important reminding information by opening the anti-disturbance mode. The following are detailed below.
In the embodiment of the present invention, the terminal device may be various intelligent terminal devices having interaction with the user, including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), and the like, and the following description of the embodiment of the present invention is not repeated.
In this embodiment of the present invention, the main execution body of the method for preventing the terminal device from being disturbed may be the terminal device itself, such as: mobile phones, tablet computers, Personal Digital Assistants (PDAs), and the like; wearable devices that monitor user status may also be used, such as: smart bracelets, smart watches, smart glasses, smart clothing, and the like; the anti-disturbance method can also be a third-party device which is independent of the terminal device and the wearable device and realizes the anti-disturbance method of the terminal device.
Fig. 1 is a schematic flowchart of a method for preventing disturbance of a terminal device according to an embodiment of the present invention. The method for preventing the terminal device from being disturbed shown in fig. 1 may include the following steps:
101. receiving a user state monitored by the wearable device;
in the embodiment of the present invention, the wearable device may be various intelligent wearable devices, including an intelligent bracelet, an intelligent watch, intelligent glasses, an intelligent garment, and the like, and the embodiment of the present invention is not limited.
The wearable device monitors a user state, which refers to an awake state or a sleep state. As an optional implementation manner, the wearable device monitors the body temperature, the heartbeat, and the motion of the user by using a temperature sensor, a heart rate sensor, a motion sensor, and the like, and determines whether the user is in a waking state or a sleeping state.
The wearable device can be connected with the terminal device in a wireless communication mode, and the monitored user state is sent to the terminal device. As an optional implementation manner, the wearable device may establish a communication connection with the terminal device through a near field communication protocol such as WIFI, NFC, bluetooth, or infrared, and specifically, what manner is adopted in the embodiment of the present invention is not limited uniquely.
102. Determining whether the user state is switched from a waking state to a sleeping state, and determining whether the current time is day or night;
as an optional implementation manner, the terminal device receives user state information sent by the wearable device, and determines whether the user enters a sleep state from a waking state;
in the embodiment of the invention, the terminal equipment monitors whether the current time is day or night, and judges whether to start the anti-disturbance mode or not by combining whether the user enters the sleep state from the waking state or not.
As an optional implementation manner, the terminal device may monitor environmental information by using an optical sensor, a sound sensor, a temperature sensor, and the like, and determine whether the current time is day or night according to the environmental information; wherein the environment information includes: at least one of temperature, light and shade, and sound.
As an alternative implementation, the terminal device may directly obtain the system time, and determine that the current time is day or night by using the system time. For example, a ratio of 7: the time between 00 and 19:00 is defined as daytime, and the time between 19:01 and 06:59 is defined as night. The terminal equipment acquires the system time, and if the current time is 7: within the range of 00-19: 00, judging that the current time is the day; and the terminal equipment acquires the system time, and if the current time is within the range of 19: 01-06: 59, the current time is judged to be at night.
103. If the user state is switched from the waking state to the sleeping state and the current time is day time, enabling the terminal equipment to enter a first anti-disturbance mode;
and the terminal equipment judges that the user is switched to the sleep state from the waking state, and enters a first anti-disturbance mode when the current time is day.
As an alternative embodiment, the first anti-disturb mode comprises:
setting the application software notification of the terminal equipment to be in a mute mode;
setting a system push message notification of the terminal equipment into a mute mode;
setting short messages and incoming call prompts of strange telephone numbers of the terminal equipment to be in a mute mode; the strange telephone number is a telephone number except for the telephone number contained in the address list of the terminal equipment.
As an alternative implementation, the mute mode may be to disable ringing, vibration and screen-on operations of the application software, the system push message, the short message and the incoming call reminder. When the terminal device exits the anti-disturbance mode, the user can see the time and specific content of the notifications from the notification bar or the corresponding application.
104. And if the user state is switched from the waking state to the sleeping state and the current time is at night, the terminal equipment is enabled to enter a second anti-disturbance mode.
And the terminal equipment judges that the user is switched to the sleep state from the waking state, and enters a second anti-disturbance mode when the current time is night.
As an alternative embodiment, the second anti-disturb mode comprises:
setting application software notifications of the terminal equipment except application software included in the white list to be in a mute mode;
setting system push message notifications of the terminal equipment except the system push messages included in the white list to be in a mute mode;
setting short messages and incoming call reminders of the telephone numbers of the terminal equipment except the telephone numbers included in the white list into a silent mode;
wherein the white list includes permission to be generated in the second anti-disturbance mode set by the user includes: application software for at least one of vibration, sound, and on-screen operation, system push message, and phone number. After the white list is set, the user can not miss important application push messages, short messages, incoming calls and the like.
Further, as shown in fig. 2, is another schematic flow chart of the method according to the embodiment of the present invention, which is specifically as follows:
201. receiving a user state monitored by the wearable device;
202. determining whether the user state is switched from a waking state to a sleeping state, and determining whether the current time is day or night;
203. if the user state is switched from the waking state to the sleeping state and the current time is day time, enabling the terminal equipment to enter a first anti-disturbance mode;
204. if the user state is switched from the waking state to the sleeping state and the current time is at night, enabling the terminal equipment to enter a second anti-disturbance mode;
205. if the terminal equipment is monitored to be in the first anti-disturbance mode and the current time is changed from day to night, switching from the first anti-disturbance mode to a second anti-disturbance mode;
in the embodiment of the invention, the first anti-disturbance mode is suitable for daytime, and only short messages or incoming call reminders of strange numbers (numbers which are not included in an address book of user terminal equipment) are shielded in order to avoid missing work items or other important reminders. Therefore, the time is changed from day to night, and the shielding range can be properly expanded after the non-working time is reached, so that the rest of the user is guaranteed.
Therefore, as an optional implementation manner, if it is detected that the terminal device is in the first anti-disturbance mode and the current time is changed from day to night, the first anti-disturbance mode is switched to the second anti-disturbance mode.
206. If the terminal equipment is monitored to be in the second anti-disturbance mode and the current time is converted from night to day, switching the second anti-disturbance mode to the first anti-disturbance mode;
in the embodiment of the invention, the second anti-disturbance mode is suitable for night and is used for guaranteeing the rest of the user, and the anti-disturbance mode shields applications, system notifications, short messages of telephone numbers and incoming call reminders in a white list set by the user. When the time is changed from night to day, the second anti-disturbance mode is continuously kept, and the user is likely to miss important reminding information or work incoming calls.
Therefore, as an optional implementation manner, if it is detected that the terminal device is in the second anti-disturbance mode and the current time is changed from night to day, the second anti-disturbance mode is switched to the first anti-disturbance mode.
207. And if the terminal equipment is monitored to be in the first anti-disturbance mode or the second anti-disturbance mode and the user state is switched from the sleep state to the awake state, exiting the first anti-disturbance mode or the second anti-disturbance mode.
In the embodiment of the invention, when the terminal device detects that the user wakes up from sleep, the terminal device can automatically close the anti-disturbance mode, so that the user is prevented from missing important notifications because the user forgets to close the anti-disturbance mode.
As an optional implementation manner, the wearable device monitors the body temperature, the heartbeat, and the motion condition of the user by using a temperature sensor, a heart rate sensor, a motion sensor, and the like, determines whether the user is in a waking state or a sleeping state, and sends state information to the terminal device. The terminal equipment receives user state information sent by the wearable equipment, judges whether a user enters a waking state from a sleeping state, and detects whether the user is in a first anti-disturbance mode or a second anti-disturbance mode currently. And if the user state is switched from the sleep state to the waking state and the terminal equipment is in the first anti-disturbance mode or the second anti-disturbance mode, closing the first anti-disturbance mode or the second anti-disturbance mode.
An embodiment of the present invention further provides an apparatus, as shown in fig. 3, including:
the receiving module 3010 is configured to receive a user state monitored by the wearable device; wherein, the user state includes: an awake state or a sleep state;
the wearable device monitors a user state, which refers to an awake state or a sleep state. As an optional implementation manner, the wearable device monitors the body temperature, the heartbeat, and the motion of the user by using a temperature sensor, a heart rate sensor, a motion sensor, and the like, and determines whether the user is in a waking state or a sleeping state.
The receiving module 3010 may establish a connection with the wearable device in a wireless communication manner, and receive a user state monitored by the wearable device. As an optional implementation manner, the receiving module 3010 may establish a connection with the wearable device through a near-field communication protocol such as WIFI, NFC, bluetooth, or infrared, and specifically, what manner is adopted in the embodiment of the present invention is not limited uniquely.
A judging module 3020, configured to determine whether the user state is switched from a waking state to a sleeping state, and determine that the current time is day or night;
as an alternative implementation manner, the terminal device may monitor environmental information by using an optical sensor, a sound sensor, a temperature sensor, and the like, and the determining module 3020 determines that the current time is day or night according to the environmental information; wherein the environment information includes: at least one of temperature, light and shade, and sound.
As an alternative embodiment, the judging module 3020 may directly obtain the system time, and judge whether the current time is day or night by using the system time. For example, a ratio of 7: the time between 00 and 19:00 is defined as daytime, and the time between 19:01 and 06:59 is defined as night. The determining module 3020 obtains the system time, and if the current time is 7: within the range of 00-19: 00, judging that the current time is the day; the judging module 3020 acquires the system time, and if the current time is within a range of 19:01 to 06:59, judges that the current time is night.
An anti-disturbance module 3030, configured to, when the user state is switched from the awake state to the sleep state and the current time is daytime, cause the terminal device to enter a first anti-disturbance mode; and when the user state is switched from the waking state to the sleeping state and the current time is at night, the terminal equipment is enabled to enter a second anti-disturbance mode.
In this embodiment of the present invention, the anti-disturbance module 3030 further includes:
a first anti-disturb module 3031 to:
setting an application software notification of the terminal equipment to be in a mute mode;
setting a system push message notification of the terminal equipment into a mute mode;
setting short messages and incoming call prompts of strange telephone numbers of the terminal equipment to be in a mute mode; the strange telephone number is a telephone number except for the telephone number contained in the address list of the terminal equipment.
As an alternative implementation, the mute mode may be to disable ringing, vibration and screen-on operations of the application software, the system push message, the short message and the incoming call reminder. When the terminal device exits the anti-disturbance mode, the user can see the time and specific content of the notifications from the notification bar or the corresponding application.
A second anti-disturb module 3032 to:
setting application software notifications of the terminal equipment except application software included in the white list to be in a mute mode;
setting system push message notifications of the terminal equipment except for the system push messages included in the white list to be in a mute mode;
setting short messages and incoming call reminders of telephone numbers of the terminal equipment except for telephone numbers included in the white list into a silent mode;
wherein the white list includes permission to be generated in the second anti-disturbance mode set by the user includes: application software for at least one of vibration, sound, and on-screen operation, system push message, and phone number.
Further, as shown in fig. 4, fig. 4 is a schematic structural diagram of another apparatus provided in the embodiment of the present invention. Wherein, the apparatus shown in fig. 4 is optimized by the apparatus shown in fig. 3, and compared with the apparatus shown in fig. 3, the apparatus shown in fig. 4 further includes:
the anti-disturb exit module 3040 is configured to exit the first anti-disturb mode or the second anti-disturb mode when it is monitored that the terminal device is in the first anti-disturb mode or the second anti-disturb mode and the user state is switched from the sleep state to the awake state.
The anti-disturbance switching module 3050 is configured to switch, when it is monitored that the terminal device is in the first anti-disturbance mode and the current time is changed from daytime to night, from the first anti-disturbance mode to the second anti-disturbance mode; or,
and when the terminal equipment is monitored to be in the second anti-disturbance mode and the current time is converted from night to day, switching the second anti-disturbance mode to the first anti-disturbance mode.
In the embodiment of the present invention, the specific implementation manner of each functional unit may refer to the description in the method embodiment, and the following embodiments of the present invention will not be repeated.
Further, as shown in fig. 5, fig. 5 is a schematic structural diagram of another apparatus disclosed in the embodiment of the present invention. Wherein, the apparatus as shown in fig. 5 may include: a processor 5010, and a wireless receiving module 5020, a sensor module 5030, a memory 5040 and a reminder module 5050 coupled to the processor 5010.
The wireless receiving module 5020 establishes communication connection with the wearable device and receives the user state monitored by the wearable device. Wherein the user state is an awake state or a sleep state.
As an optional implementation manner, the wireless receiving module 5020 may establish a connection with the wearable device through a near-field communication protocol such as WIFI, NFC, bluetooth, or infrared, and specifically, what manner is adopted in the embodiment of the present invention is not limited uniquely.
The wireless receiving module 5020 transmits the received user state to the processor 5010, and the processor 5010 determines whether the user is in a transition state from an awake state to a sleep state.
In an embodiment of the invention, the sensor module 5030 may be composed of multiple sensors for monitoring environmental information and sending the environmental information to the processor 5010 to determine whether the current time is day or night. As an alternative embodiment, the sensor module 5030 can include: the optical sensor 5031 is used for collecting light information; a temperature sensor 5032 for collecting temperature information; the acoustic sensor 5033 collects acoustic information.
As an alternative embodiment. The processor 5010 determines whether the current time is day or night based on the light, shade, temperature and sound information received by the sensor module 5030.
The hints module 5050 can include: the speaker 5051, the display unit 5052, and the vibration function module 5053, etc., output prompt information to the user when the terminal device is not in the anti-disturbance mode, such as: ringing, illuminating a screen, vibration cues, etc. In the embodiment of the present invention, if the first anti-disturbance mode or the second anti-disturbance mode is entered, the processor 5010 realizes the anti-disturbance function by setting the speaker 5051 to mute, setting the display unit 5052 to prohibit lighting of the screen, and disabling the function of the vibration function module 5053.
The memory 5040 stores the current status information of the terminal device in the first anti-disturb mode, the second anti-disturb mode or not, and outputs the status information to the processor 5010 for determining whether to switch between the anti-disturb modes or to exit the anti-disturb mode.
It should be noted that, in the above device embodiment, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be achieved; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In addition, a person skilled in the art can understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by instructing related hardware through a program, where the program may be stored in a storage medium readable by a terminal device, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc Memory, a magnetic Disc Memory, a tape Memory, or any other medium capable of carrying or storing data.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the embodiment of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.