WO2016197723A1 - 勿扰控制方法和装置 - Google Patents

勿扰控制方法和装置 Download PDF

Info

Publication number
WO2016197723A1
WO2016197723A1 PCT/CN2016/080167 CN2016080167W WO2016197723A1 WO 2016197723 A1 WO2016197723 A1 WO 2016197723A1 CN 2016080167 W CN2016080167 W CN 2016080167W WO 2016197723 A1 WO2016197723 A1 WO 2016197723A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
preset
displacement
incoming call
frequency
Prior art date
Application number
PCT/CN2016/080167
Other languages
English (en)
French (fr)
Inventor
张伟鑫
刘欣
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016197723A1 publication Critical patent/WO2016197723A1/zh

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/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • 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/725Cordless telephones
    • 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/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Definitions

  • This paper relates to the field of communication technology, and in particular to a method and device for do not disturb control.
  • terminals such as mobile phones and tablet computers have become important tools in people's lives and work.
  • terminals such as mobile phones and tablet computers have become important tools in people's lives and work.
  • the user When the user is in the environment of rest, meeting, class, training, etc., because they need to keep quiet or concentrate, they do not want to be disturbed by messages such as incoming calls and text messages.
  • messages such as incoming calls and text messages.
  • many mobile phones In order to meet the user's need for no interruption, many mobile phones have the function of do not disturb. After the user turns on the do not disturb mode, the mobile phone normally receives the communication message, but does not prompt to avoid the user being disturbed.
  • the current control of the terminal do not disturb mode is not intelligent enough to meet the needs of users in practical applications.
  • the current research and development direction mainly lies in how to quickly enter the do not disturb mode, and does not consider the trouble that the user forgets to withdraw from the do not disturb mode.
  • Disclosed herein is a do not disturb control method and apparatus, which aims to solve the technical problem that the control of the terminal do not disturb mode is not intelligent enough.
  • the present disclosure discloses a method for controlling a do not disturb, and the method for controlling a doze includes the following steps:
  • the terminal is controlled to exit the do not disturb mode.
  • the step of acquiring the displacement information of the terminal according to the initial location information include:
  • the step of acquiring current location information of the terminal includes:
  • the motion duration reaches a preset time threshold, the current location information of the terminal is obtained.
  • the method further includes:
  • the following steps are performed: acquiring the terminal according to the initial location information and the current location information Displacement information.
  • the displacement information includes a horizontal displacement; the preset condition is a preset distance threshold; and if the displacement information satisfies a preset condition, the step of controlling the terminal to exit the do not disturb mode is performed.
  • the preset condition is a preset distance threshold; and if the displacement information satisfies a preset condition, the step of controlling the terminal to exit the do not disturb mode is performed.
  • the method further includes:
  • the step of controlling the terminal to exit the do not disturb mode includes:
  • the terminal is controlled to exit the do not disturb mode.
  • the step of controlling the terminal to exit the do not disturb mode includes:
  • the selection interface is provided for the user to select whether to exit the do not disturb mode
  • the terminal is controlled to exit the do not disturb mode.
  • a do not disturb control device in order to achieve the above object, includes:
  • the initial module is configured to acquire initial location information of the terminal when the terminal is in the do not disturb mode
  • a displacement module configured to acquire displacement information of the terminal according to the initial position information
  • the control module is configured to control the terminal to exit the do not disturb mode if the displacement information satisfies a preset condition.
  • the displacement module comprises:
  • a detecting unit configured to detect whether the terminal is in a motion state
  • a location unit configured to acquire current location information of the terminal if the terminal is in a motion state
  • a displacement unit configured to acquire displacement information of the terminal according to the initial position information and the current position information.
  • the location unit includes:
  • Recording a subunit configured to record a motion duration of the terminal if the terminal is in a motion state
  • the location subunit is configured to acquire current location information of the terminal if the motion duration reaches a preset time threshold.
  • the location unit is further configured to
  • the current location information of the terminal is obtained.
  • the displacement information includes a horizontal displacement
  • the preset condition is a preset distance threshold
  • the do not disturb control device further includes:
  • the displacement determining module is configured to determine whether the horizontal displacement reaches the preset distance threshold; if the horizontal displacement reaches the preset distance threshold, determine that the displacement information satisfies a preset condition.
  • the do not disturb control device further includes:
  • An incoming call module configured to obtain an incoming call record of the terminal
  • a frequency module configured to acquire an incoming call frequency of a preset type of incoming call event according to the incoming call record
  • the frequency determining module is configured to determine whether the incoming frequency of the preset type incoming call event reaches a preset frequency threshold
  • the control module is further configured to control the terminal to exit the Do Not Disturb mode if the displacement information meets a preset condition and the incoming frequency of the preset type incoming call event reaches a preset frequency threshold.
  • control module includes:
  • a prompting unit configured to: if the displacement information meets a preset condition, and the incoming frequency of the preset type incoming call event reaches a preset frequency threshold, providing a selection interface for the user to select whether to exit the do not disturb mode;
  • the control unit is configured to control the terminal to exit the Do Not Disturb mode if an instruction to exit the Do Not Disturb mode is detected.
  • the method and device for the do not disturb control obtain the initial position information of the terminal when the terminal is in the do not disturb mode; acquire the displacement information of the terminal according to the initial position information; if the displacement information satisfies the preset condition , the control terminal exits the do not disturb mode.
  • the embodiment of the invention intelligently determines whether the user has left the current do not disturb environment, and thus according to the determination The result determines if you need to exit the current Do Not Disturb mode.
  • the invention realizes the intelligent control of the terminal do not disturb mode, and avoids the prompt that the user cannot forget to withdraw the do not disturb mode and can not receive the important message in time, thereby improving the user experience.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for preventing interference in the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for preventing interference in the present invention
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for controlling a disturbance according to the present invention.
  • FIG. 4 is a schematic flow chart of a fourth embodiment of a method for preventing interference in the present invention.
  • FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a method for controlling a do not disturb according to the present invention.
  • FIG. 6 is a schematic flow chart of a sixth embodiment of a method for controlling a disturbance according to the present invention.
  • FIG. 7 is a schematic flow chart of a seventh embodiment of a method for controlling a disturbance according to the present invention.
  • Figure 8 is a schematic diagram of the functional modules of the first embodiment of the do not disturb control device of the present invention.
  • FIG. 9 is a schematic diagram of functional modules of a second embodiment of the do not disturb control device of the present invention.
  • FIG. 10 is a schematic diagram of functional modules of a third embodiment and a fourth embodiment of the present invention.
  • FIG. 11 is a schematic diagram of functional modules of a fifth embodiment of the present invention.
  • FIG. 12 is a schematic diagram of functional modules of a sixth embodiment of the present invention.
  • FIG. 13 is a schematic diagram of functional modules of a seventh embodiment of the present invention.
  • the method provided by the embodiment of the present invention includes: acquiring the initial location information of the terminal when the terminal is in the do not disturb mode; acquiring the displacement information of the terminal according to the initial location information; and if the displacement information meets the preset condition Then, the terminal is controlled to exit the do not disturb mode.
  • the control of the prior art terminal do not disturb mode is not intelligent enough, the user's needs in practical applications cannot be met. Moreover, the current research and development direction mainly lies in how to quickly enter the do not disturb mode, and does not consider the trouble that the user forgets to withdraw from the do not disturb mode.
  • Disclosed herein is a solution for intelligently determining whether a user has left the current do not disturb environment according to the displacement information of the terminal, thereby determining whether to exit the current do not disturb mode according to the determination result.
  • the invention realizes the intelligent control of the terminal do not disturb mode, and avoids the prompt that the user cannot forget to receive the important message in time because the user forgets to exit the do not disturb mode, thereby improving the user experience.
  • a first embodiment of a do not disturb control method includes:
  • Step S10 When the terminal is in the Do Not Disturb mode, obtain initial location information of the terminal.
  • the terminal obtains the change of the user's displacement, and intelligently analyzes the change of the environment in which the user is located, thereby determining whether the terminal needs to exit the do not disturb mode according to the environmental change, and implementing the intelligent control of the do not disturb mode.
  • the method can also be implemented by the control device of the do not disturb control device.
  • the do not disturb mode refers to the terminal receiving the communication message normally, but does not remind the user of ringing, vibrating, lighting the display, and the like.
  • the communication message includes telephone incoming call, short message, mail, alarm clock and push message of application software.
  • the terminal When the user enters the Do Not Disturb mode according to the actual application scenario, the terminal performs positioning to obtain the current location information of the terminal as the initial location information.
  • the terminal may control a GPS (Global Positioning System) module or an AGPS (Assisted Global Positioning System) module for positioning.
  • AGPS positioning combines the advantages of GPS positioning and cellular base station positioning, which shortens the positioning time and reduces the power consumption of the terminal compared with GPS positioning. Therefore, when the terminal currently opens the connection of the mobile network, AGPS positioning can be preferentially selected.
  • other modules with positioning functions can also be controlled to locate the terminal.
  • the terminal controls the GPS module or the AGPS module to locate the terminal and obtain the current location information of the terminal.
  • the obtained location information includes information such as the current time, the coordinates of the terminal, and the like.
  • the terminal stores the current time as the initial time and the current coordinates as initial coordinates, and obtains initial position information.
  • the obtained initial position information includes an initial time and an initial coordinate.
  • Step S20 Acquire displacement information of the terminal according to the initial location information.
  • the terminal After obtaining the initial location information of the terminal, the terminal acquires the displacement of the terminal according to the initial location information. information.
  • the terminal controls the timer, and uses the initial time as the starting time to perform timing.
  • the terminal monitors the current time.
  • the terminal is pre-configured with a positioning frequency for positioning the terminal according to the positioning frequency, and acquiring location information of the terminal. For example, if the preset positioning frequency is once every 10 minutes, then 10 minutes is the time interval for acquiring the terminal location information, and the location information of the terminal is acquired every 10 minutes.
  • the preset positioning frequency can be flexibly set by the user according to actual needs.
  • the initial time is taken as T1, and the preset positioning frequency is once positioned for the terminal every T2 time.
  • the current time is T3.
  • the current location information includes the current time and current coordinates of the terminal.
  • the terminal acquires the horizontal displacement of the terminal according to the initial coordinates and the current coordinates, and uses the obtained horizontal displacement as the displacement information of the terminal.
  • the displacement information of the terminal is the horizontal displacement that occurs when the terminal is from the initial time to the current time, and does not consider the change of the height of the terminal after the movement.
  • Step S30 If the displacement information meets a preset condition, the terminal is controlled to exit the Do Not Disturb mode.
  • the control terminal After obtaining the displacement information of the terminal, it is determined whether the displacement information satisfies a preset condition. If the displacement information satisfies the preset condition, the control terminal exits the do not disturb mode.
  • the preset condition is that the horizontal displacement of the terminal reaches a preset distance threshold.
  • the distance threshold is a horizontal displacement distance preset by the user or the terminal. The value ranges from 30 meters to 1000 meters. It can be flexibly set according to the actual application scenarios of the user.
  • the terminal determines whether the current horizontal displacement has reached a preset distance threshold. If the horizontal displacement of the current terminal is greater than or equal to the distance threshold, it is determined that the horizontal displacement of the current terminal reaches a preset distance threshold; if the horizontal displacement of the current terminal is less than the preset distance threshold, it is determined that the horizontal displacement of the current terminal does not reach the pre-predetermined Set the distance threshold.
  • the horizontal displacement of the current terminal reaches the preset distance threshold, that is, the displacement information of the terminal satisfies the preset condition, it may be regarded as the user has completed the conference, training, etc., leaving the initial venue, and at this time, the terminal control exits. Disturb mode to resume prompting for communication messages. or,
  • the terminal illuminates the terminal display screen, and provides a notification interface to notify the user whether to exit the do not disturb mode. If the user selects yes, the control terminal exits the do not disturb mode and resumes the prompting of the communication message; if the user selects no, the mode remains in the do not disturb mode, and the communication message received by the terminal is not prompted.
  • the displacement information of the terminal does not satisfy the preset condition. If the horizontal displacement of the current terminal does not reach the preset distance threshold, that is, the displacement information of the terminal does not satisfy the preset condition, continue to time.
  • the initial location information of the terminal is acquired; then, according to the initial location information of the terminal, the displacement information of the terminal is acquired; if the displacement information of the terminal satisfies the preset condition, the control terminal exits Disturbance mode.
  • the displacement information of the terminal is used to intelligently determine whether the user has left the current do not disturb environment, and accordingly, according to the determination result, it is determined whether the current do not disturb mode needs to be exited.
  • the intelligent control of the terminal do not disturb mode is implemented, and the prompt that the user forgets to exit the do not disturb mode and cannot receive the important message in time is avoided, thereby improving the user experience.
  • the step S20 includes:
  • Step S21 detecting whether the terminal is in a motion state.
  • the terminal is usually equipped with a gravity sensor.
  • the gravity sensor acquires the dynamic acceleration of the terminal by sensing the change of gravity, thereby drawing an acceleration curve according to the obtained acceleration.
  • the state of walking, running, or riding of the terminal can be calculated based on the acceleration curve.
  • the motion state of the terminal can be detected by the gravity sensor, thereby acquiring the motion state of the user. If the user continues to be in motion, the user may be considered to have finished rest, meeting or training, or the user has left the office after work, leaving the environment.
  • the terminal may detect whether the terminal is in a motion state by controlling a gravity sensor (Gravity-sensor) in the terminal.
  • a gravity sensor Gravity-sensor
  • the motion state of the terminal includes, but is not limited to, a state of running, walking, or riding.
  • Step S22 If the terminal is in a motion state, acquire current location information of the terminal.
  • the current location information of the terminal is obtained.
  • the GPS is determined. Bit or AGPS positioning to obtain the current location information of the terminal.
  • the current location information includes the current coordinates of the terminal.
  • Step S23 Acquire displacement information of the terminal according to the initial location information and the current location information.
  • the terminal After acquiring the current location information of the terminal, the terminal acquires the horizontal displacement according to the initial coordinates and the current coordinates, and uses the obtained horizontal displacement as the displacement information of the terminal.
  • the displacement information of the terminal is the horizontal displacement that occurs when the terminal is from the initial time to the current time, and does not consider the change of the height of the terminal after the movement.
  • the terminal when the terminal is in the motion state, the terminal can obtain the current location information of the terminal in real time, so as to obtain the displacement information of the terminal to determine whether the preset condition is met; or obtain the current location information of the terminal according to the preset positioning frequency. Therefore, the displacement information of the terminal is obtained to determine whether the preset condition is met, and can be flexibly set according to actual needs.
  • the motion state of the terminal is continuously detected.
  • the terminal may be leaving or has left the environment that needs to be disturbed.
  • the current location information of the user is acquired, and the monitoring of the motion state of the terminal effectively improves the terminal. The correctness of the current environment judgment, and the more intelligent control of the terminal's do not disturb mode.
  • a third embodiment of the do not disturb control method based on the embodiment shown in FIG. 2, the step S22 includes:
  • Step S221 If the terminal is in a motion state, record the motion duration of the terminal.
  • the duration of the movement of the terminal is recorded.
  • the terminal controls the timer to detect that the time when the terminal is in the motion state is the initial time, starts timing, and records the duration of the continuous motion of the terminal until the terminal stops moving.
  • the acquisition time of the terminal to stop moving to the re-entry motion state is acquired. If the suspension time of the terminal is less than the preset suspension time threshold, it is determined that the terminal continues to maintain the motion state, and the terminal suspension time is counted into the motion duration, and continues to count If the suspension time of the terminal is greater than or equal to the preset suspension time threshold, it is determined that the terminal continuously interrupts the motion state, and only the motion duration that has been recorded when the terminal stops moving is obtained as the motion duration of the terminal.
  • the duration of the movement of the terminal exceeds the preset maximum time duration, that is, if the user's exercise time is too long, the time is automatically stopped, and the maximum time duration is obtained as the exercise time of the terminal.
  • the obtained exercise duration is the duration of the continuous exercise of the terminal, that is, the duration of the user's continuous exercise.
  • Step S222 If the motion duration reaches a preset time threshold, obtain current location information of the terminal.
  • the preset time threshold is a preset time threshold set by the user or the terminal, and can be flexibly set according to actual needs. If the motion duration of the terminal is greater than or equal to the preset time threshold, it is determined that the motion duration of the terminal reaches a preset time threshold; if the motion duration of the terminal is less than the preset time threshold, it is determined that the motion duration of the terminal does not reach the preset time. Time threshold.
  • the preset time threshold is 30 seconds. If the motion duration of the terminal is greater than or equal to 30 seconds, it is determined that the motion duration of the terminal reaches a preset time threshold; if the motion duration of the terminal is less than 30 seconds, the motion duration of the terminal is determined. The preset time threshold has not been reached.
  • the motion duration of the terminal reaches a preset time threshold, GPS positioning or AGPS positioning is performed to obtain current location information of the terminal.
  • the current location information includes the current coordinates of the terminal.
  • the duration of the motion of the terminal does not reach the preset time threshold, it continues to detect whether the terminal is in motion.
  • the motion duration of the terminal is recorded; if the motion duration reaches a preset time threshold, the current location information of the terminal is obtained.
  • the motion state of the terminal is continuously detected.
  • the duration of the motion state exceeds a preset time threshold, the user may be leaving or has left the environment that needs to be disturbed, and monitoring the motion state of the terminal effectively improves the current location of the terminal. The correctness of the environmental judgment, more intelligent control of the terminal's do not disturb mode.
  • the duration of the motion state exceeds the preset time threshold, the current location information of the terminal is obtained, and the displacement information of the terminal is obtained according to the initial location information of the terminal, thereby avoiding frequent positioning of the terminal. Moreover, the power consumption of the terminal for frequent positioning is saved, and the user experience is improved.
  • a fourth embodiment of the do not disturb control method is based on the embodiment shown in FIG. 2 or FIG. 3 (the embodiment is illustrated by using FIG. 3), and after the step S21, include:
  • Step S24 If it is not detected that the terminal is in a motion state within a preset detection time, the current location information of the terminal is obtained, and the process proceeds to step S23.
  • the terminal after the terminal enters the do not disturb state, the terminal continuously detects the motion state.
  • the time at which the terminal enters the do not disturb state is the initial time, and the terminal control timer starts counting.
  • the terminal controls the GPS module or the AGPS module to locate the terminal, and obtains the current location information of the terminal. .
  • the displacement information of the terminal is acquired.
  • the obtained displacement information is the horizontal distance between the location of the current moment of the terminal and the location of the initial moment. Then, according to the obtained displacement information, it is analyzed whether the terminal currently needs to exit the do not disturb mode.
  • the preset detection time may be preset by the user or the terminal, and may be flexibly set according to actual application requirements.
  • the terminal if the terminal is not in the motion state after the preset detection time, the current location information of the terminal is acquired, and the displacement information of the terminal is obtained according to the initial location information of the terminal and the current location information.
  • the preset detection time is used to effectively avoid the situation that the terminal is not in motion, but the terminal is actually displaced, and the determination of the application scenarios of the terminal is implemented, and the current environment of the terminal is improved. The correctness of the judgment and the more intelligent control of the terminal's do not disturb mode improve the user experience.
  • a fifth embodiment of the do not disturb control method is based on the embodiment shown in FIG. 1, FIG. 2, FIG. 3 or FIG. 4 (this embodiment takes FIG. 1 as an example).
  • the displacement information includes a horizontal displacement
  • the preset condition is a preset distance threshold.
  • the method further includes:
  • Step S40 Determine whether the horizontal displacement reaches the preset distance threshold.
  • the displacement information of the terminal includes the horizontal displacement of the terminal.
  • the displacement of the terminal in the direction of the gravitational acceleration is not considered, and the user is prevented from changing the office space at a close distance, thereby causing the error to exit the do not disturb mode.
  • the change of the office space is only when the office height changes. The user does not need to exit the do not disturb mode.
  • the terminal is pre-set with a distance threshold, and the preset distance threshold is a horizontal displacement distance of the terminal.
  • the distance threshold is a horizontal displacement distance preset by the user or the terminal, and the value ranges from 30 meters to 1000 meters, which can be flexibly set according to the actual needs of the user application scenario.
  • the terminal determines whether the current horizontal displacement has reached a preset distance threshold. If the horizontal displacement of the current terminal is greater than or equal to the preset distance threshold, it is determined that the horizontal displacement of the current terminal reaches a preset distance threshold; if the horizontal displacement of the current terminal is less than the preset distance threshold, determining the horizontal displacement of the current terminal The preset distance threshold has not been reached.
  • the distance threshold is 50 meters
  • the horizontal displacement of the current terminal is greater than or equal to 50 meters
  • it is determined that the horizontal displacement of the current terminal reaches a preset distance threshold; if the current terminal's horizontal displacement is less than 50 meters, the current terminal is determined.
  • the horizontal displacement does not reach the preset distance threshold.
  • Step S50 If the horizontal displacement reaches the preset distance threshold, determine that the displacement information meets a preset condition.
  • the displacement information includes a horizontal displacement
  • the preset condition is a preset distance threshold. After acquiring the displacement information of the terminal, determining whether the horizontal displacement of the terminal reaches a preset distance threshold; if the horizontal displacement reaches the preset The distance threshold determines that the displacement information satisfies the preset condition.
  • only the horizontal displacement in the terminal is considered, and the error of the office space is changed, such as the height change, and the error exiting the do not disturb mode is avoided, the intelligent level of the do not disturb mode control is improved, the user is more humanized, and the user is improved. Experience.
  • a sixth embodiment of the do not disturb control method based on the embodiment shown in any one of the foregoing FIG. 1 to FIG. 5 (this embodiment takes FIG. 5 as an example), the step S10 After that, it also includes:
  • Step S60 Acquire an incoming call record of the terminal.
  • the terminal controls the terminal to enter the do not disturb mode through menu selection or other shortcuts, and the terminal controls the communication message received by the terminal not to ring, vibrate or illuminate the display screen. Reminder.
  • the terminal monitors and records the incoming call information.
  • the recorded caller information includes the caller ID and the time of the call.
  • the caller ID is used to identify different incoming calls, for example, a phone number, a contact name, and the like as an incoming call identifier.
  • the caller ID and the caller time correspond to each other, and the corresponding caller time can be obtained according to the caller ID.
  • the corresponding caller ID can be obtained according to the caller ID.
  • the terminal stores the recorded call information and obtains an incoming call record.
  • Step S70 Acquire an incoming call frequency of a preset type of incoming call event according to the incoming call record.
  • the terminal After the call record is obtained, the terminal acquires the incoming call frequency of the preset type of incoming call event according to the incoming call record.
  • the preset type of incoming call event is an incoming call of a known contact, and is referred to as a known incoming call in this embodiment.
  • the known incoming call in this embodiment is that the incoming phone number and the corresponding contact name are recorded in the contact of the terminal, that is, the call that the user knows is called, such as the user's colleague.
  • Known contacts, friends, and family are recorded in the contact of the terminal, that is, the call that the user knows is called, such as the user's colleague.
  • the known contact may be more familiar with the user's work and life schedule, when the incoming call frequency of the contact known to the user is high, the user may be considered to have ended the conference, training, etc., or the user is currently in the off-duty state. Or the known contact needs to contact the user for emergency affairs. In this case, you can use the displacement information of the terminal to determine whether you want to exit the Do Not Disturb mode.
  • the incoming call frequency is the number of incoming calls for the currently known incoming call within the preset time.
  • the contact of the currently known incoming call is A
  • the preset time is 10 minutes
  • the incoming call frequency is the number of incoming calls of the contact A within 10 minutes before the incoming call time of the currently known incoming call.
  • the terminal calculates the number of incoming calls of the same contact of the currently known incoming call according to the incoming call identifier and the incoming call time of the known incoming call in the incoming call record, and the number of incoming calls is the incoming call frequency of the currently known incoming call. , that is, the incoming call frequency of the preset type of incoming call event.
  • Step S80 Determine whether the incoming frequency of the preset type incoming call event reaches a preset frequency threshold.
  • the preset frequency threshold is the number of calls of the same known incoming call in the preset time, and may be flexibly set according to actual needs, and the preset time of the frequency threshold and the preset of the incoming frequency are defined. The time is the same.
  • the pre-determination is The incoming call frequency of the type incoming call event reaches a preset frequency threshold; if the incoming frequency of the preset type incoming call event is less than the preset frequency threshold, it is determined that the incoming frequency of the preset type incoming call event does not reach the preset frequency threshold.
  • the preset frequency threshold is 2 calls within 10 minutes. If the currently known incoming call contacts the current terminal 2 times or more within 10 minutes, it is determined that the current known incoming call frequency reaches the preset frequency. Threshold; if the currently known incoming call contacts the current terminal once or less within 10 minutes, it is determined that the incoming frequency of the currently known incoming call does not reach the preset frequency threshold, and the determination result is obtained.
  • step S30 includes:
  • Step S31 If the displacement information meets a preset condition, and the incoming frequency of the preset type incoming call event reaches a preset frequency threshold, the terminal is controlled to exit the do not disturb mode.
  • the control terminal After obtaining the displacement information and the judgment result of the incoming call frequency of the preset type incoming call event, as an implementation manner, if the displacement information satisfies a preset condition, and the incoming frequency of the preset type incoming call event reaches a preset frequency threshold, then The control terminal exits the do not disturb mode or prompts the user to exit the do not disturb mode.
  • the control terminal exits the do not disturb mode.
  • the terminal incoming call event is continuously monitored, and the incoming call information is recorded.
  • the terminal controls the GPS module or the AGPS module to perform positioning.
  • AGPS positioning can be preferentially selected.
  • other modules with positioning functions can also be controlled to locate the terminal.
  • the terminal controls the GPS module or the AGPS module to locate the terminal and obtain the current location information of the terminal.
  • the obtained location information includes information such as the current time, the coordinates of the terminal, and the like. Then, the terminal acquires the displacement information of the terminal according to the initial location information of the terminal and the current location information.
  • the control terminal exits the do not disturb mode or prompts the user to exit the do not disturb mode.
  • the control terminal exits the do not disturb mode.
  • the control terminal maintains the do not disturb mode, and continues to detect whether the terminal is in a motion state, and acquires displacement information of the terminal; if the frequency of the preset type of incoming event does not reach the preset If the frequency threshold is set, the control terminal maintains the do not disturb mode, continues to listen to the incoming call event of the terminal, and acquires the incoming call frequency of the preset type of incoming call event.
  • the call record of the terminal is acquired; then, according to the call record, the incoming call frequency of the preset type incoming call event is obtained; and it is determined whether the incoming call frequency of the preset type incoming call event reaches the preset frequency. Threshold value; if the displacement information of the terminal meets the preset condition, and the incoming frequency of the preset type incoming call event reaches the preset frequency threshold, the control terminal exits the do not disturb mode.
  • a seventh embodiment of the do not disturb control method based on the foregoing embodiment shown in FIG. 6, the step S31 includes:
  • Step S311 If the displacement information meets a preset condition, and the incoming frequency of the preset type incoming call event reaches a preset frequency threshold, a selection interface is provided for the user to select whether to exit the do not disturb mode.
  • the terminal may illuminate the display screen, and provide a notification interface to notify the user whether to exit the do not disturb mode.
  • a selection button is provided in the notification interface for the user to select, for example: yes and no, exit and no exit.
  • Step S312 If an instruction to exit the Do Not Disturb mode is detected, the terminal is controlled to exit the Do Not Disturb mode.
  • the terminal controls to exit the do not disturb mode, and the prompt for the terminal communication message is resumed.
  • the terminal is kept in the do not disturb mode, and the communication message received by the terminal is not prompted.
  • the selection interface is provided for the user to select whether to exit the do not disturb mode;
  • the user selects whether to exit the do not disturb mode, and performs corresponding processing based on the user's selection, thereby realizing flexible processing in a special case where the user still needs to maintain the do not disturb mode, and the terminal do not disturb mode.
  • the control is more intelligent and user-friendly, which enhances the user experience.
  • the do not disturb control device includes:
  • the initial module 10 is configured to acquire initial location information of the terminal when the terminal is in the do not disturb mode.
  • the change of the user's displacement is obtained by the do not disturb control device, and the environment in which the user is located is intelligently analyzed, thereby determining whether the terminal needs to exit the do not disturb mode according to the environment, and implementing the intelligent control of the do not disturb mode.
  • the do not disturb mode refers to the terminal receiving the communication message normally, but does not remind the user of ringing, vibrating, lighting the display, and the like.
  • the communication message includes telephone incoming call, short message, mail, alarm clock and push message of application software.
  • the initial module 10 locates the terminal and obtains the current location information of the terminal as the initial location information.
  • the initial module 10 can control a GPS (Global Positioning System) module or an AGPS (Assisted Global Positioning System) module for positioning.
  • AGPS positioning combines the advantages of GPS positioning and cellular base station positioning, which shortens the positioning time and reduces the power consumption of the terminal compared with GPS positioning. Therefore, when the terminal currently opens the connection of the mobile network, AGPS positioning can be preferentially selected.
  • other modules with positioning functions can also be controlled to locate the terminal.
  • the initial module 10 controls the GPS module or the AGPS module to locate the terminal, and obtains the current location information of the terminal.
  • the obtained location information includes information such as the current time, the coordinates of the terminal, and the like.
  • the initial module 10 stores the current time as the initial time and the current coordinate as the initial coordinates, and obtains the initial position information.
  • the obtained initial position information includes an initial time and an initial coordinate.
  • the displacement module 20 is configured to acquire displacement information of the terminal according to the initial position information.
  • the displacement module 20 After obtaining the initial position information of the terminal, the displacement module 20 acquires the displacement information of the terminal according to the initial position information.
  • the displacement module 20 controls the timer to perform timing by using the initial time as the starting time.
  • the displacement module 20 monitors the current time of the terminal.
  • the displacement module 20 is pre-set with a positioning frequency, and the displacement module 20 is configured to locate the terminal according to the positioning frequency and acquire position information of the terminal. For example, if the preset positioning frequency is once every 10 minutes, then 10 minutes is the time interval for acquiring the terminal location information, and the positioning of the terminal is performed every 10 minutes.
  • the preset positioning frequency can be flexibly set by the user according to actual needs.
  • the initial time is taken as T1
  • the preset positioning frequency is once positioned for the terminal every T2 time.
  • the current time is taken as T3.
  • the current location information includes the current time and current coordinates of the terminal.
  • the displacement module 20 acquires the horizontal displacement of the terminal according to the initial coordinates and the current coordinates of the terminal, and uses the obtained horizontal displacement as the displacement information of the terminal.
  • the displacement information of the terminal is the horizontal displacement that occurs when the terminal is from the initial time to the current time, and does not consider the change of the height of the terminal after the movement.
  • the control module 30 is configured to control the terminal to exit the Do Not Disturb mode if the displacement information satisfies a preset condition.
  • the control module 30 After acquiring the displacement information of the terminal, the control module 30 determines whether the displacement information satisfies a preset condition. If the displacement information satisfies the preset condition, the control terminal exits the do not disturb mode.
  • the preset condition is that the horizontal displacement of the terminal reaches a preset distance threshold.
  • the distance threshold is a horizontal displacement distance preset by the user or the terminal. The value ranges from 30 meters to 1000 meters. It can be flexibly set according to the actual application scenarios of the user.
  • the control module 30 determines whether the current horizontal displacement of the terminal has reached a distance threshold. If the horizontal displacement of the current terminal is greater than or equal to the distance threshold, it is determined that the horizontal displacement of the current terminal reaches the distance threshold; if the horizontal displacement of the current terminal is less than the distance threshold, it is determined that the horizontal displacement of the current terminal does not reach the preset distance threshold.
  • the control module 30 controls the terminal to exit. Disturb mode to resume prompting for communication messages. or,
  • the control module 30 illuminates the terminal display screen, and provides a notification interface to notify the user whether to exit the do not disturb mode. If the user selects yes, the control terminal exits the do not disturb mode and resumes the prompting of the communication message; if the user selects no, the mode remains in the do not disturb mode, and the communication message received by the terminal is not prompted.
  • the initial module 10 acquires the initial location information of the terminal; then, the displacement module 20 acquires the displacement information of the terminal according to the initial location information of the terminal; if the displacement information of the terminal satisfies the preset Condition, the control module 30 controls the terminal to exit the do not disturb mode.
  • the displacement information of the terminal is used to intelligently determine whether the user has left the current do not disturb environment, and accordingly, according to the determination result, it is determined whether the current do not disturb mode needs to be exited.
  • the intelligent control of the terminal do not disturb mode is implemented, and the prompt that the user forgets to exit the do not disturb mode and cannot receive the important message in time is avoided, thereby improving the user experience.
  • the displacement module 20 includes:
  • the detecting unit 21 is configured to detect whether the terminal is in a motion state.
  • the terminal is usually equipped with a gravity sensor.
  • the gravity sensor acquires the dynamic acceleration of the terminal by sensing the change of gravity, thereby drawing an acceleration curve according to the obtained acceleration.
  • the state of walking, running, or riding of the terminal can be calculated based on the acceleration curve.
  • the motion state of the terminal can be detected by the gravity sensor, thereby acquiring the motion state of the user. If the user continues to be in motion, the user may be considered to have finished rest, meeting, training, etc., or the user has left the office after work, leaving the environment.
  • the detecting unit 21 detects whether the terminal is in a motion state by controlling a gravity sensor (Gravity-sensor) in the terminal.
  • the motion state of the terminal includes, but is not limited to, a state of running, walking, or riding.
  • the location unit 22 is configured to acquire current location information of the terminal if the terminal is in a motion state.
  • the location unit 22 acquires current location information of the terminal.
  • the location unit 22 performs GPS positioning or AGPS positioning to acquire current location information of the terminal.
  • the current location information includes the current coordinates of the terminal.
  • the displacement unit 23 is configured to acquire displacement information of the terminal according to the initial position information and the current position information.
  • the displacement unit 23 After acquiring the current position information of the terminal, the displacement unit 23 acquires the horizontal displacement according to the initial coordinates and the current coordinates, and uses the obtained horizontal displacement as the displacement information of the terminal.
  • the displacement information of the terminal is the horizontal displacement that occurs when the terminal is from the initial time to the current time, and does not consider the change of the height of the terminal after the movement.
  • the displacement unit 23 obtains the displacement information of the terminal.
  • the location unit 22 can obtain the current location information of the terminal in real time, so as to obtain the displacement information of the terminal to determine whether the preset condition is met; the location unit 22 can also obtain the preset positioning frequency. The current location information of the terminal, thereby obtaining the displacement information of the terminal to determine whether the preset condition is met, and can be flexibly set according to actual needs.
  • 21 detects whether the terminal is in a motion state; if the terminal is in a motion state, the location unit 22 acquires current location information of the terminal; and the displacement unit 23 acquires displacement information of the terminal according to the initial location information and the current location information.
  • the motion state of the terminal is continuously detected.
  • the user may be leaving or has left the environment that needs to be disturbed.
  • the current location information of the user is acquired, and the monitoring of the motion state of the terminal effectively improves the terminal. The correctness of the current environment judgment, and the more intelligent control of the terminal's do not disturb mode.
  • a third embodiment of the do not disturb control device based on the embodiment shown in FIG. 9, the location unit 22 includes:
  • the recording subunit 221 is configured to record the motion duration of the terminal if the terminal is in a motion state.
  • the recording subunit 221 records the duration of the movement of the terminal.
  • the recording sub-unit 221 controls the timer to detect that the time when the terminal is in the motion state is the initial time, starts timing, and records the duration of the continuous motion of the terminal until the terminal stops the motion state.
  • the acquisition time of the terminal to stop moving to the re-entry motion state is acquired. If the terminal's suspension time is less than the preset suspension time threshold, it is determined that the terminal continues to maintain the motion state, the terminal's suspension time is counted into the motion duration, and continues to be timed; if the terminal's suspension time is greater than or equal to the preset suspension time threshold, Then, it is determined that the terminal continuously interrupts the motion state, and only the motion duration that has been recorded when the terminal stops moving is obtained as the motion duration of the terminal.
  • the movement time of the terminal exceeds the preset maximum time duration, that is, the user's exercise time is too long, the time is automatically stopped, and the maximum time duration is obtained as the exercise time of the terminal.
  • the recording subunit 221 obtains the motion duration of the terminal.
  • the obtained exercise duration is the duration of the continuous exercise of the terminal, that is, the duration of the user's continuous exercise.
  • the location sub-unit 222 is configured to acquire current location information of the terminal if the motion duration reaches a preset time threshold.
  • the location sub-unit 222 determines whether the motion duration of the terminal reaches a preset time threshold.
  • the preset time threshold is a preset time threshold set by the user or the terminal, and can be flexibly set according to actual needs. If the motion duration of the terminal is greater than or equal to the preset time threshold, the location sub-unit 222 determines that the motion duration of the terminal reaches a preset time threshold; if the motion duration of the terminal is less than the preset time threshold, the location sub-unit 222 determines the terminal. The duration of the exercise did not reach the preset time threshold.
  • the preset time threshold is 30 seconds. If the motion duration of the terminal is greater than or equal to 30 seconds, it is determined that the motion duration of the terminal reaches a preset time threshold; if the motion duration of the terminal is less than 30 seconds, the motion duration of the terminal is determined. The preset time threshold has not been reached.
  • the position sub-unit 222 obtains the determination result.
  • the location sub-unit 222 performs GPS setting. Bit or AGPS positioning to obtain the current location information of the terminal.
  • the current location information includes the current coordinates of the terminal.
  • the detecting unit 21 continues to detect whether the terminal is in a motion state.
  • the recording subunit 221 records the motion duration of the terminal; if the motion duration reaches a preset time threshold, the location subunit 222 acquires the current location information of the terminal.
  • the motion state of the terminal is continuously detected. When the duration of the motion state exceeds a preset time threshold, the user may be leaving or has left the environment that needs to be disturbed, and monitoring the motion state of the terminal effectively improves the current location of the terminal. The correctness of the environmental judgment, more intelligent control of the terminal's do not disturb mode.
  • the current location information of the terminal is obtained, and the displacement information of the terminal is obtained according to the initial location information of the terminal, which avoids frequent positioning of the terminal, and saves the terminal from frequently performing positioning. Power consumption improves the user experience.
  • a fourth embodiment of the do not disturb control device is based on the second embodiment of the device shown in FIG. 9 or the third embodiment of the device shown in FIG. 10 (this embodiment The third embodiment of the present invention is shown in FIG. 10, and the location unit 22 is further configured to
  • the current location information of the terminal is obtained.
  • the detecting unit 21 continuously detects the motion state of the terminal.
  • the time at which the terminal enters the do not disturb state is the initial time, and the location unit 22 controls the timer to start counting.
  • the location unit 22 controls the GPS module or the AGPS module to locate the terminal, and obtains The current location information of the terminal.
  • the displacement unit 23 acquires the displacement information of the terminal according to the initial position information of the terminal and the current position information.
  • the obtained displacement information is the horizontal distance between the location of the current moment of the terminal and the location of the initial moment.
  • the control module 30 analyzes whether the terminal currently needs to exit the do not disturb mode.
  • the preset detection time may be preset by the user or the terminal, and may be flexibly set according to actual application requirements.
  • the location unit 22 acquires the current location information of the terminal, and acquires the displacement information of the terminal according to the initial location information of the terminal and the current location information.
  • the preset detection time is used to effectively avoid the situation that the terminal is not in motion, but the terminal is actually displaced, and the determination of the application scenarios of the terminal is implemented, and the current environment of the terminal is improved. The correctness of the judgment and the more intelligent control of the terminal's do not disturb mode improve the user experience.
  • a fifth embodiment of the do not disturb control device is based on any of the device embodiments shown in FIG. 8, FIG. 9, or FIG. 10 (the present embodiment is illustrated by using FIG. 8).
  • the displacement information includes a horizontal displacement
  • the preset condition is a preset distance threshold
  • the do not disturb control device further includes:
  • the displacement determining module 40 is configured to determine whether the horizontal displacement reaches the preset distance threshold; if the horizontal displacement reaches the preset distance threshold, determine that the displacement information satisfies a preset condition.
  • the displacement information of the terminal includes the horizontal displacement of the terminal.
  • the displacement of the terminal in the direction of the gravitational acceleration is not considered, and the user is prevented from changing the office space at a close distance, thereby causing the error to exit the do not disturb mode.
  • the change of the office space is only when the office height changes. The user does not need to exit the do not disturb mode.
  • the displacement judging module 40 is pre-set with a distance threshold, and the preset distance threshold is a horizontal displacement distance of the terminal. It should be noted that the distance threshold is a horizontal displacement distance preset by the user or the displacement judging module 40, and the value ranges from 30 meters to 1000 meters, and can be flexibly set according to actual needs of the user application scenario.
  • the displacement determining module 40 determines whether the current horizontal displacement has reached a preset distance threshold. If the horizontal displacement of the current terminal is greater than or equal to the distance threshold, it is determined that the horizontal displacement of the current terminal reaches a preset distance threshold; if the horizontal displacement of the current terminal is less than the distance threshold, it is determined that the horizontal displacement of the current terminal does not reach the preset distance Threshold.
  • the distance threshold is 50 meters
  • the horizontal displacement of the current terminal is greater than or equal to 50 meters, it is determined that the horizontal displacement of the current terminal reaches the distance threshold; if the horizontal displacement of the current terminal is less than 50 meters, the horizontal displacement of the current terminal is determined.
  • the preset distance threshold has not been reached.
  • the horizontal displacement of the current terminal is greater than or equal to the distance threshold, it is determined that the displacement information of the current terminal satisfies the preset condition; if the horizontal displacement of the current terminal is less than the distance threshold, it is determined that the displacement information of the current terminal does not satisfy the preset condition.
  • the displacement determination module 40 obtains the determination result of the terminal displacement information.
  • the displacement information includes a horizontal displacement
  • the preset condition is a preset distance threshold.
  • the displacement determining module 40 determines whether the horizontal displacement of the terminal reaches a preset distance threshold; When the displacement reaches the preset distance threshold, it is determined that the displacement information satisfies the preset condition.
  • only the horizontal displacement in the terminal is considered, and the error of the office space is changed, such as the height change, and the error exiting the do not disturb mode is avoided, the intelligent level of the do not disturb mode control is improved, the user is more humanized, and the user is improved. Experience.
  • a sixth embodiment of the do not disturb control device based on the embodiment of the device shown in any one of the foregoing FIG. 8 to FIG. 11 (this embodiment takes FIG. 8 as an example),
  • the Do Not Disturb Control also includes:
  • the incoming call module 50 is configured to acquire an incoming call record of the terminal.
  • the terminal control enters the do not disturb mode through menu selection or other shortcuts, and the control module 30 controls the communication message received by the terminal not to ring, vibrate, and illuminate the display. A reminder of the way.
  • the incoming call module 50 monitors and records the incoming call information.
  • the recorded caller information includes the caller ID and the time of the call.
  • the caller ID is used to identify different incoming calls, for example, a phone number, a contact name, and the like as an incoming call identifier.
  • the caller ID and the caller time correspond to each other, and the corresponding caller time can be obtained according to the caller ID.
  • the corresponding caller ID can be obtained according to the caller ID.
  • the incoming call module 50 stores the recorded incoming call information and obtains an incoming call record.
  • the frequency module 60 is configured to acquire an incoming frequency of a preset type of incoming call event according to the incoming call record.
  • the frequency module 60 acquires the incoming call frequency of the preset type of incoming call event according to the incoming call record.
  • the preset type of incoming call event is an incoming call of a known contact.
  • the known incoming call is simply referred to.
  • the known incoming call in this embodiment is that the incoming phone number and the corresponding contact name are recorded in the contact of the terminal, that is, the call that the user knows is called, such as the user's colleague.
  • Known contacts, friends, and family are recorded in the contact of the terminal, that is, the call that the user knows is called, such as the user's colleague.
  • the known contact person may be more familiar with the user's work and life schedule, when the user's known contact frequency of the contact is high, the user may be considered to have ended the conference, training, etc., or the user is currently in the off-duty state. Or the known contact needs to contact the user for emergency affairs. In this case, you can use the displacement information of the terminal to determine whether you want to exit the Do Not Disturb mode.
  • the incoming call frequency is the number of incoming calls for the currently known incoming call within the preset time.
  • the contact of the currently known incoming call is A
  • the preset time is 10 minutes
  • the incoming call frequency is the number of incoming calls of the contact A within 10 minutes before the incoming call time of the currently known incoming call.
  • the frequency module 60 calculates the number of incoming calls of the same contact of the currently known incoming call according to the incoming call identification and the incoming call time of the known incoming call in the incoming call record, and the number of incoming calls is the incoming call frequency of the currently known incoming call. That is, the incoming frequency of the preset type of incoming call event.
  • the frequency determining module 70 is configured to determine whether the incoming frequency of the preset type incoming call event reaches a preset frequency threshold.
  • the frequency determining module 70 determines whether the incoming frequency of the preset type incoming call event reaches a preset frequency threshold.
  • the preset frequency threshold is the number of calls of the same known incoming call in the preset time, and can be flexibly set according to actual needs, and the preset time for defining the frequency threshold is the same as the preset time of the incoming frequency.
  • the incoming call frequency of the preset type incoming call event is greater than or equal to the preset frequency threshold, it is determined that the incoming frequency of the preset type incoming call event reaches a preset frequency threshold; the incoming call frequency of the preset type incoming call event is less than the preset frequency threshold. , it is determined that the incoming frequency of the preset type incoming call event does not reach the preset frequency threshold.
  • the preset frequency threshold is 2 calls within 10 minutes. If the currently known incoming call contacts the current terminal 2 times or more within 10 minutes, it is determined that the current known incoming call frequency reaches the preset frequency. Threshold; if the currently known incoming call contacts the current terminal once or less within 10 minutes, it is determined that the incoming frequency of the currently known incoming call does not reach the preset frequency threshold, and the determination result is obtained.
  • the frequency judging module 70 obtains the judgment result of the incoming frequency of the preset type incoming call event.
  • control module 30 is further configured to
  • the terminal is controlled to exit the do not disturb mode.
  • the control module 30 controls the terminal to exit the Do Not Disturb mode or prompt the user to exit the Do Not Disturb mode.
  • the control module 30 controls the terminal to exit the do not disturb mode.
  • the terminal incoming call event is continuously monitored, and the incoming call information is recorded.
  • the displacement module 20 controls the GPS module or the AGPS module to perform positioning.
  • AGPS positioning can be preferentially selected.
  • other modules with positioning functions can be controlled to locate the terminal.
  • the displacement module 20 controls the GPS module or the AGPS module to locate the terminal, and obtains the current location information of the terminal.
  • the obtained location information includes information such as the current time, the coordinates of the terminal, and the like. Then, the displacement module 20 acquires the displacement information of the terminal according to the initial position information of the terminal and the current position information.
  • control module 30 controls the terminal to exit the Do Not Disturb mode or prompt the user to exit the Do Not Disturb mode.
  • the control module 30 controls the terminal to exit the do not disturb mode.
  • the control terminal maintains the do not disturb mode, and continues to detect whether the terminal is in a motion state, and acquires displacement information of the terminal; if the frequency of the preset type of incoming event does not reach the preset If the frequency threshold is set, the control terminal maintains the do not disturb mode, continues to listen to the incoming call event of the terminal, and acquires the incoming call frequency of the preset type of incoming call event.
  • the incoming call module 50 acquires the incoming call record of the terminal; then, according to the incoming call record, the frequency module 60 acquires the incoming call frequency of the preset type incoming call event; the frequency determining module 70 determines the preset type of incoming call. Whether the incoming call frequency of the event reaches the preset frequency threshold; if the displacement information of the terminal satisfies the preset condition, and the incoming call frequency of the preset type incoming call event reaches the preset The frequency threshold is set, and the control module 30 controls the terminal to exit the do not disturb mode.
  • control module 30 includes:
  • the prompting unit 31 is configured to provide a selection interface for the user to select whether to exit the do not disturb mode if the displacement information meets the preset condition and the incoming frequency of the preset type incoming call event reaches a preset frequency threshold.
  • the prompting unit 31 prompts the user to select whether to exit the do not disturb mode.
  • the prompting unit 31 may illuminate the display screen of the terminal, and provide a notification interface to notify the user whether to exit the do not disturb mode.
  • a selection button is provided in the notification interface for the user to select, for example: yes and no, exit and no exit.
  • the prompting unit 31 can provide a prompt mode such as vibration, ringing, etc., to remind the user whether to select whether to exit the do not disturb mode currently.
  • a prompt mode such as vibration, ringing, etc.
  • the prompting unit 31 acquires the selection result of the user.
  • the control unit 32 is configured to control the terminal to exit the Do Not Disturb mode if an instruction to exit the Do Not Disturb mode is detected.
  • control unit 32 controls the terminal to exit the do not disturb mode and resume the prompting of the terminal communication message.
  • control unit 32 continues to keep the terminal in the Do Not Disturb mode without prompting the terminal to receive the communication message.
  • control unit 32 implements the corresponding processing according to the user's selection.
  • the prompting unit 31 if the displacement information meets the preset condition, and the incoming frequency of the preset type incoming call event reaches the preset frequency threshold, the prompting unit 31 provides a selection interface for the user to select whether to exit the do not disturb mode; When the instruction of the do not disturb mode is exited, the control unit 32 controls the terminal to exit the do not disturb mode.
  • the control unit 32 controls the terminal to exit the do not disturb mode.
  • the embodiment can perform the corresponding processing based on the user's selection by selecting whether to exit the do not disturb mode by the user, so that the user still needs to maintain the do not disturb mode.
  • the flexible handling under special circumstances makes the control of the terminal do not disturb mode more intelligent and user-friendly, which improves the user experience.
  • the embodiment of the present invention further provides a computer readable storage medium, which stores program instructions, and when the program instructions are executed by the processor, can implement a do not disturb control method provided by an embodiment of the present invention.
  • the technical solution of the invention realizes the intelligent control of the terminal do not disturb mode, and avoids the problem that the user cannot receive the important message prompt in time due to the user forgetting to exit the do not disturb mode, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本文公开了一种勿扰控制方法,该方法包括:终端处于勿扰模式时,获取所述终端的初始位置信息;根据所述初始位置信息,获取所述终端的位移信息;若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。本发明的技术方案实现了对终端勿扰模式的智能控制,避免了由于用户忘记退出勿扰模式而导致无法及时收到重要消息的提示的问题,提升了用户体验。

Description

勿扰控制方法和装置 技术领域
本文涉及通讯技术领域,尤其涉及一种勿扰控制方法和装置。
背景技术
随着当前通讯技术的发展,手机、平板电脑等终端已成为人们生活和工作中的重要工具。当用户在休息、开会、上课、培训等环境中时,由于需要保持安静或注意力集中,不希望被来电、短信等消息打扰。为了满足用户的免打扰需要,很多手机都有勿扰功能。用户开启勿扰模式后,手机正常接收通信消息,但不进行提示,避免用户被打扰。
当用户在结束休息、开会、上课、培训等时,通常会忘记立即退出勿扰模式,手机一直处于勿扰模式会导致用户可能会漏掉重要的电话或消息,给用户带来了不便。因此,目前终端勿扰模式的控制不够智能化,无法满足用户在实际应用中的需求。并且,目前的研发方向主要在于如何快速的进入勿扰模式,并没有考虑到用户忘记退出勿扰模式时带来的困扰。
发明内容
以下是对本文详细描述的主题的概述,本概述并非是为了限制权利要求的保护范围。
本文公开了一种勿扰控制方法和装置,旨在解决终端勿扰模式的控制不够智能的技术问题。
为实现上述目的,本文公开了提供一种勿扰控制方法,所述勿扰控制方法包括以下步骤:
终端处于勿扰模式时,获取所述终端的初始位置信息;
根据所述初始位置信息,获取所述终端的位移信息;
若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
可选地,所述根据所述初始位置信息,获取所述终端的位移信息的步骤 包括:
检测所述终端是否处于运动状态;
若所述终端处于运动状态,则获取所述终端的当前位置信息;
根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
可选地,所述若所述终端处于运动状态,则获取所述终端的当前位置信息的步骤包括:
若所述终端处于运动状态,则记录所述终端的运动时长;
若所述运动时长达到预设的时间阈值,则获取所述终端的当前位置信息。
可选地,所述检测所述终端是否处于运动状态的步骤之后,还包括:
若在预设的检测时间内未检查到所述终端处于运动状态,则获取所述终端的当前位置信息,则执行如下步骤:根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
可选地,所述位移信息包括水平位移;所述预设的条件为预设的距离阈值;在所述若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式的步骤之前,还包括:
判断所述水平位移是否达到所述预设的距离阈值;
若所述水平位移达到所述预设的距离阈值,则判定所述位移信息满足预设的条件。
可选地,所述终端处于勿扰模式时,获取所述终端的初始位置信息的步骤之后,还包括:
获取所述终端的来电记录;
根据所述来电记录,获取预设类型来电事件的来电频率;
判断所述预设类型来电事件的来电频率是否达到预设的频率阈值;
其中,所述若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式的步骤包括:
若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率 达到预设的频率阈值,则控制所述终端退出勿扰模式。
可选地,所述若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式的步骤包括:
若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式;
若检测到退出勿扰模式的指令,则控制所述终端退出勿扰模式。
此外,为实现上述目的,本文还公开了一种勿扰控制装置,所述勿扰控制装置包括:
初始模块,设置为终端处于勿扰模式时,获取所述终端的初始位置信息;
位移模块,设置为根据所述初始位置信息,获取所述终端的位移信息;
控制模块,设置为若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
可选地,所述位移模块包括:
检测单元,设置为检测所述终端是否处于运动状态;
位置单元,设置为若所述终端处于运动状态,则获取所述终端的当前位置信息;
位移单元,设置为根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
可选地,所述位置单元包括:
记录子单元,设置为若所述终端处于运动状态,则记录所述终端的运动时长;
位置子单元,设置为若所述运动时长达到预设的时间阈值,则获取所述终端的当前位置信息。
可选地,所述位置单元还设置为,
若在预设的检测时间内未检查到所述终端处于运动状态,则获取所述终端的当前位置信息。
可选地,所述位移信息包括水平位移;所述预设的条件为预设的距离阈值;所述勿扰控制装置还包括:
位移判断模块,设置为判断所述水平位移是否达到所述预设的距离阈值;若所述水平位移达到所述预设的距离阈值,则判定所述位移信息满足预设的条件。
可选地,所述勿扰控制装置还包括:
来电模块,设置为获取所述终端的来电记录;
频率模块,设置为根据所述来电记录,获取预设类型来电事件的来电频率;
频率判断模块,设置为判断所述预设类型来电事件的来电频率是否达到预设的频率阈值;
所述控制模块还设置为,若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式。
可选地,所述控制模块包括:
提示单元,设置为若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式;
控制单元,设置为若检测到退出勿扰模式的指令,则控制所述终端退出勿扰模式。
本发明实施例提出的一种勿扰控制方法和装置,终端处于勿扰模式时,获取终端的初始位置信息;根据初始位置信息,获取所述终端的位移信息;若位移信息满足预设的条件,则控制终端退出勿扰模式。本发明实施例根据终端的位移信息,智能判断用户是否已离开当前的勿扰环境,从而根据判定 结果确定是否需要退出当前的勿扰模式。本发明实现了对终端勿扰模式的智能控制,避免了由于用户忘记退出勿扰模式而无法导致及时收到重要消息的提示,提升了用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明勿扰控制方法第一实施例的流程示意图;
图2为本发明勿扰控制方法第二实施例的流程示意图;
图3为本发明勿扰控制方法第三实施例的流程示意图;
图4为本发明勿扰控制方法第四实施例的流程示意图;
图5为本发明勿扰控制方法第五实施例的流程示意图;
图6为本发明勿扰控制方法第六实施例的流程示意图;
图7为本发明勿扰控制方法第七实施例的流程示意图;
图8为本发明勿扰控制装置第一实施例的功能模块示意图;
图9为本发明勿扰控制装置第二实施例的功能模块示意图;
图10为本发明勿扰控制装置第三实施例、第四实施例的功能模块示意图;
图11为本发明勿扰控制装置第五实施例的功能模块示意图;
图12为本发明勿扰控制装置第六实施例的功能模块示意图;
图13为本发明勿扰控制装置第七实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的较佳实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明的技术方案,并不用于限定本发明的范围。
本发明实施例提供的方法包括:终端处于勿扰模式时,获取所述终端的初始位置信息;根据所述初始位置信息,获取所述终端的位移信息;若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
由于现有技术终端勿扰模式的控制不够智能化,无法满足用户在实际应用中的需求。并且,目前的研发方向主要在于如何快速的进入勿扰模式,并没有考虑到用户忘记退出勿扰模式时带来的困扰。
本文公开了一种解决方案,根据终端的位移信息,智能判断用户是否已离开当前的勿扰环境,从而根据判定结果确定是否需要退出当前的勿扰模式。本发明实现了对终端勿扰模式的智能控制,避免了由于用户忘记退出勿扰模式而无法及时收到重要消息的提示,提升了用户体验。
参照图1,一种勿扰控制方法的第一实施例,所述勿扰控制方法包括:
步骤S10、终端处于勿扰模式时,获取所述终端的初始位置信息。
本发明实施例通过终端获取用户位移的变化,智能分析用户所处的环境的变化,从而根据环境变化判断终端当前是否需要退出勿扰模式,实现了勿扰模式的智能控制。当然,本方法也可以通过勿扰控制装置控制终端实现。
本实施例中,勿扰模式指终端正常接收通讯消息,但不对用户进行铃声、振动、点亮显示屏等方式的提醒。其中,通讯消息包括电话呼入、短信、邮件、闹钟和应用软件的推送消息等。
用户根据实际应用场景,控制终端进入勿扰模式时,终端进行定位,获取终端当前的位置信息作为初始位置信息。
可选地,作为一种实施方式,终端可以控制GPS(Global Positioning System,全球定位系统)模块或者AGPS(Assisted Global Positioning System,辅助全球卫星定位系统)模块进行定位。其中,AGPS定位结合了GPS定位和蜂窝基站定位的优势,相较于GPS定位缩短了定位时间,并且降低了终端的功耗。因此,在终端当前开启移动网络的连接时,可优先选择AGPS定位。当然,也可以控制其他具有定位功能的模块对终端进行定位。
终端控制GPS模块或AGPS模块对终端进行定位,得到终端当前的位置信息。得到的位置信息包括当前的时间、终端的坐标等信息。
然后,终端将当前的时间作为初始时刻、当前的坐标作为初始坐标,进行存储,得到初始位置信息。得到的初始位置信息包括初始时刻和初始坐标。
步骤S20、根据所述初始位置信息,获取所述终端的位移信息。
在得到终端的初始位置信息后,终端根据初始位置信息获取终端的位移 信息。
可选地,作为一种实施方式,终端控制计时器,以初始时刻作为起始时刻,进行计时。终端监测当前时间。
终端预设有定位频率,用于根据定位频率对终端进行定位,获取终端的位置信息。例如,预设的定位频率为每10分钟一次,则10分钟为获取终端位置信息的时间间隔,每隔10分钟获取一次终端的位置信息。预设的定位频率可以由用户根据实际需要灵活设置。
取初始时刻为T1,预设的定位频率为每隔T2时间对终端进行一次定位。,取当前时刻为T3,在T3=T1+T2时,终端获取当前位置信息。当前位置信息包括终端的当前时刻和当前坐标。
然后,终端根据初始坐标和当前坐标,获取终端的水平位移,并将得到的水平位移作为终端的位移信息。需要说明的是,终端的位移信息为终端从初始时刻到当前时刻,所发生的水平位移,不考虑终端在移动后高度的变化。
步骤S30、若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
在获取终端的位移信息后,判断位移信息是否满足预设的条件。若位移信息满足预设的条件,则控制终端退出勿扰模式。
可选地,作为一种实施方式,预设的条件为终端的水平位移达到预设的距离阈值。其中,距离阈值为用户或终端预先设置的水平位移距离,通常取值范围为30米至1000米,可根据用户的应用场景实际需要进行灵活设置。
终端判断当前的水平位移是否达到了预设的距离阈值。若当前终端的水平位移大于或等于距离阈值,则判定当前终端的水平位移达到了预设的距离阈值;若当前终端的水平位移小于预设的距离阈值,则判定当前终端的水平位移未达到预设的距离阈值。
若当前终端的水平位移达到了预设的距离阈值,也即终端的位移信息满足预设的条件,则可视为用户当前已完成会议、培训等,离开初始场地,此时,终端控制退出勿扰模式,恢复对通讯消息的提示。或,
终端点亮终端显示屏,提供通知界面通知用户是否需要退出勿扰模式。若用户选择是,则控制终端退出勿扰模式,恢复对通讯消息的提示;若用户选择否,则继续保持勿扰模式,不提示终端收到的通讯消息。
若当前终端的水平位移未达到预设的距离阈值,也即终端的位移信息不满足预设的条件,则继续计时,在T4=T3+t2时,对终端进行定位,获取终端的当前位置信息。然后,根据终端的当前位置信息和初始位置信息,获取终端的位移信息。然后,判断终端的位移信息是否满足预设的条件,并根据判定结果执行相应的操作。
由此,实现了终端勿扰模式的智能控制。
在本实施例中,终端处于勿扰模式时,获取终端的初始位置信息;然后根据终端的初始位置信息,获取终端的位移信息;若终端的位移信息满足预设的条件,则控制终端退出勿扰模式。本实施例通过终端的位移信息,智能判断用户是否已离开当前的勿扰环境,从而根据判定结果确定是否需要退出当前的勿扰模式。本实施例实现了对终端勿扰模式的智能控制,避免了由于用户忘记退出勿扰模式而无法导致及时收到重要消息的提示,提升了用户体验。
可选地,参照图2,一种勿扰控制方法的第二实施例,基于上述图1所示的实施例,所述步骤S20包括:
步骤S21、检测所述终端是否处于运动状态。
目前,为了提升用户的操作体验,终端通常安装有重力传感器,重力传感器通过感测重力变化,获取终端的动态加速度,从而根据得到的加速度绘制加速度曲线。可以根据加速度曲线,计算终端的走路、跑步或骑行等状态。
当用户携带终端走动、跑步或骑行时,可以通过重力传感器检测终端的运动状态,从而获取用户的运动状态。若用户持续处于运动状态,则可认为用户已结束休息、会议或培训等,或者用户已经下班离开办公场所,离开勿扰环境。
作为一种实施方式,终端可以通过控制终端中的重力传感器(Gravity-sensor),检测终端是否处于运动状态。本实施例中,终端的运动状态包括但不限定于跑步、走路或骑行等状态。
步骤S22、若所述终端处于运动状态,则获取所述终端的当前位置信息。
若检测到终端当前处于运动状态,则获取终端的当前位置信息。
可选地,若终端当前处于跑步、走路或骑行等运动状态,则进行GPS定 位或AGPS定位,获取终端的当前位置信息。当前位置信息包括终端的当前坐标。
步骤S23、根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
在获取终端的当前位置信息后,终端根据初始坐标和当前坐标,获取水平位移,并将得到的水平位移作为终端的位移信息。
需要说明的是,终端的位移信息为终端从初始时刻到当前时刻,所发生的水平位移,不考虑终端在移动后高度的变化。
由此,得到终端的位移信息。
需要说明的是,终端在处于运动状态时,可以实时获取终端的当前位置信息,从而获取终端的位移信息判断是否满足预设的条件;也可以根据预设的定位频率获取终端的当前位置信息,从而获取终端的位移信息判断是否满足预设的条件,可根据实际需要灵活设定。
在本实施例中,检测终端是否处于运动状态;若终端处于运动状态,则获取终端的当前位置信息;并根据初始位置信息和当前位置信息,获取终端的位移信息。本实施例持续检测终端的运动状态,在终端处于运动状态时,用户可能正在离开或已经离开需要勿扰的环境,此时获取用户的当前位置信息,对终端运动状态的监测有效提高了对终端当前所处环境判断的正确性,更加智能化的控制终端的勿扰模式。
可选地,参照图3,一种勿扰控制方法的第三实施例,基于上述图2所示的实施例,所述步骤S22包括:
步骤S221、若所述终端处于运动状态,则记录所述终端的运动时长。
若检测到终端当前处于运动状态,则记录终端的运动时长。
可选地,作为一种实施方式,终端控制计时器计时,以检测到终端处于运动状态的时间为初始时间,开始计时,记录终端的持续运动时长,直至终端停止运动状态。
若终端停止运动状态后重新进入运动状态,则获取终端停止运动状态到重新进入运动状态的中止时间。若终端的中止时间小于预设的中止时间阈值,则判定终端持续保持运动状态,将终端的中止时间计入运动时长,并继续计 时;若终端的中止时间大于或等于预设的中止时间阈值,则判定终端持续中断运动状态,仅获取终端停止运动状态时已经记录的运动时长作为终端的运动时长。
若终端的运动时长超过预设的最大计时时长,也即用户的运动时间过长,则自动停止计时,得到最大计时时长作为终端的运动时间。
由此,得到终端的运动时长。得到的运动时长为终端的持续运动时长,也即用户的持续运动时长。
步骤S222、若所述运动时长达到预设的时间阈值,则获取所述终端的当前位置信息。
在得到终端的运动时长后,判断终端的运动时长是否达到预设的时间阈值。
预设的时间阈值为用户或终端预先设置的时间阈值,可根据实际需要灵活设置。若终端的运动时长大于或等于预设的时间阈值,则判定终端的运动时长达到预设的时间阈值;若终端的运动时长小于预设的时间阈值,则判定终端的运动时长未达到预设的时间阈值。
例如,预设的时间阈值为30秒,若终端的运动时长大于或等于30秒,则判定终端的运动时长达到预设的时间阈值;若终端的运动时长小于30秒,则判定终端的运动时长未达到预设的时间阈值。
由此,得到判定结果。
若终端的运动时长达到预设的时间阈值,则进行GPS定位或AGPS定位,获取终端的当前位置信息。当前位置信息包括终端的当前坐标。
若终端的运动时长未达到预设的时间阈值,则继续检测终端是否处于运动状态。
在本实施例中,若终端处于运动状态,则记录述终端的运动时长;若运动时长达到预设的时间阈值,则获取终端的当前位置信息。本实施例持续检测终端的运动状态,在运动状态持续时间超过预设的时间阈值时,用户可能正在离开或已经离开需要勿扰的环境,对终端运动状态的监测有效提高了对终端当前所处环境判断的正确性,更加智能化的控制终端的勿扰模式。在运动状态持续时间超过预设的时间阈值时,获取终端当前的位置信息,并根据终端的初始位置信息得到终端的位移信息,避免了对终端进行频繁进行定位, 并且节省了终端频繁进行定位的功耗,提高了用户体验。
可选地,参照图4,一种勿扰控制方法的第四实施例,基于上述图2或图3所示的实施例(本实施例以图3为例),所述步骤S21之后,还包括:
步骤S24、若在预设的检测时间内未检查到所述终端处于运动状态,则获取所述终端的当前位置信息,并转入执行步骤S23。
在本实施例中,在终端进入勿扰状态后,终端持续检测运动状态。
以终端进入勿扰状态的时间为初始时间,终端控制计时器开始计时。
若在预设的检测时间内,未检测到终端处于运动状态,也即预设的检测时间内,终端未发生运动,则终端控制GPS模块或AGPS模块对终端进行定位,获取终端当前的位置信息。
然后,根据终端的初始位置信息和当前位置信息,获取终端的位移信息。得到的位移信息为终端当前时刻所在位置与初始时刻所在位置的水平距离。然后,根据得到的位移信息,分析终端当前是否需要退出勿扰模式。
需要说明的是,预设的检测时间可以是用户或者终端预先设置的,可根据实际应用需要灵活设置。
在本实施例中,若在预设的检测时间内未检查到终端处于运动状态,则获取终端的当前位置信息,并根据终端的初始位置信息和当前位置信息获取终端的位移信息。本实施例通过预设检测时间,有效避免了未检测到终端处于运动状态,但实际上终端有发生位移的情况,实现了对终端多种应用场景的判断,提高了对终端当前所处环境进行判断的正确性,更加智能化的控制终端的勿扰模式,提高了用户体验。
可选地,参照图5,一种勿扰控制方法的第五实施例,基于上述图1、图2、图3或图4所示的实施例(本实施例以图1为例),所述位移信息包括水平位移,所述预设的条件为预设的距离阈值,所述步骤S30之前,还包括:
步骤S40、判断所述水平位移是否达到所述预设的距离阈值。
终端的位移信息包括终端的水平位移,本实施例不考虑终端在重力加速度方向的位移,避免用户近距离更换办公场地导致错处退出勿扰模式,例如:办公场地的变化仅仅为办公室高度的变化时,用户不需要退出勿扰模式。
终端预设有距离阈值,预设的距离阈值为终端的水平位移距离。需要说明的是,距离阈值为用户或终端预先设置的水平位移距离,通常取值范围为30米至1000米,可根据用户的应用场景实际需要进行灵活设置。
终端判断当前的水平位移是否达到了预设的距离阈值。若当前终端的水平位移大于或等于预设的距离阈值,则判定当前终端的水平位移达到了预设的距离阈值;若当前终端的水平位移小于预设的距离阈值,则判定当前终端的水平位移未达到预设的距离阈值。
例如,距离阈值为50米,若当前终端的水平位移达大于或等于50米,则判定当前终端的水平位移达到了预设的距离阈值;若当前终端的水平位移小于50米,则判定当前终端的水平位移未达到预设的距离阈值。
步骤S50、若所述水平位移达到所述预设的距离阈值,则判定所述位移信息满足预设的条件。
由此,得到了对终端位移信息的判定结果。
在本实施例中,位移信息包括水平位移,预设的条件为预设的距离阈值,在获取终端的位移信息后,判断终端的水平位移是否达到预设的距离阈值;若水平位移达到预设的距离阈值,则判定位移信息满足预设的条件。本实施例仅考虑终端内的水平位移情况,避免了办公场地近距离的变化如高度变化等导致的错误退出勿扰模式,提升了勿扰模式控制的智能化水平,更加人性化,提升了用户体验。
可选地,参照图6,一种勿扰控制方法的第六实施例,基于上述图1至图5任一项所示的实施例(本实施例以图5为例),所述步骤S10之后,还包括:
步骤S60、获取所述终端的来电记录。
当用户需要关闭终端对收到的通信消息的提示时,通过菜单选择或者其他快捷方式控制终端进入勿扰模式,终端控制对终端收到的通讯消息不进行铃声、振动或点亮显示屏等方式的提醒。
在终端进入勿扰模式后,终端监听并记录来电信息。记录的来电信息包括来电标识和来电时间。
其中,来电标识用于识别不同的来电,例如以电话号码、联系人名称等作为来电标识。来电标识和来电时间相互对应,根据来电标识可以获取对应的来电时间。当同一来电标识有多次来电时,根据此来电标识可以获取对应的多次来电时间。
终端存储记录的来电信息,得到来电记录。
步骤S70、根据所述来电记录,获取预设类型来电事件的来电频率。
在得到来电记录后,终端根据来电记录获取预设类型来电事件的来电频率。
可选的一种实施方式中,预设类型来电事件为已知联系人的来电,本实施例中简称已知来电。本实施例中所指已知来电,为呼入的电话号码和对应的联系人名称在终端的联系人中有记载,也即,是用户已知的联系人呼入的电话,例如用户的同事、朋友和家人等已知联系人。
由于已知联系人可能更为熟悉用户的工作和生活时间安排,在用户已知的联系人的呼入频率较高时,可认为用户当前已经结束会议、培训等,或者用户当前已经处于下班状态,或者已知联系人当前有紧急事务需要联系用户,此时,可以结合终端的位移信息,判断是否需要退出勿扰模式。
来电频率为预设时间内当前已知来电的来电次数。例如,当前已知来电的联系人为A,预设时间为10分钟,则来电频率为当前已知来电的来电时间前10分钟之内,联系人A的来电次数。
可选地,终端根据来电记录中已知来电的来电标识和来电时间,计算预设时间内,当前已知来电的同一联系人的来电次数,得到的来电次数即为当前已知来电的来电频率,也即预设类型来电事件的来电频率。
步骤S80、判断所述预设类型来电事件的来电频率是否达到预设的频率阈值。
在获取预设类型来电事件的来电频率后,判断预设类型来电事件的来电频率是否达到预设的频率阈值。
可选地,作为一种实施方式,预设的频率阈值为预设时间内同一已知来电的来电次数,可根据实际需要灵活设置,并且,定义频率阈值的预设时间与来电频率的预设时间相同。
若预设类型来电事件的来电频率大于或等于预设的频率阈值,则判定预 设类型来电事件的来电频率达到了预设的频率阈值;预设类型来电事件的来电频率小于预设的频率阈值,则判定预设类型来电事件的来电频率未达到预设的频率阈值。
例如,预设的频率阈值为10分钟内2次来电,若当前已知来电的联系人在10分钟内呼入当前终端2次及以上,则判定当前已知来电的来电频率达到预设的频率阈值;若当前已知来电的联系人在10分钟内呼入当前终端1次及以下,则判定当前已知来电的来电频率未达到预设的频率阈值,得到判定结果。
由此,得到对预设类型来电事件的来电频率判断结果。
可选地,所述步骤S30包括:
步骤S31、若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式。
在得到位移信息和预设类型来电事件的来电频率的判断结果后,作为一种实施方式,若位移信息满足预设的条件,且预设类型来电事件的来电频率达到预设的频率阈值,则控制终端退出勿扰模式或提示用户退出勿扰模式。
由此,实现了在位移信息满足预设的条件,且预设类型来电事件的来电频率达到预设的频率阈值时,控制终端退出勿扰模式。
若预设类型来电事件的来电频率未达到预设的频率阈值,则继续监听终端来电事件,并记录来电信息。
可选地,作为另一种实施方式,在当前预设类型来电事件的来电频率达到预设的频率阈值后,终端控制GPS模块或者AGPS模块进行定位。在终端当前开启移动网络的连接时,可优先选择AGPS定位。当然,也可以控制其他具有定位功能的模块对终端进行定位。
终端控制GPS模块或AGPS模块对终端进行定位,得到终端当前的位置信息。得到的位置信息包括当前的时间、终端的坐标等信息。然后,终端根据终端的初始位置信息和当前位置信息,获取终端的位移信息。
若终端的位移信息满足预设的条件,则控制终端退出勿扰模式或提示用户退出勿扰模式。
由此,实现了在位移信息满足预设的条件,且预设类型来电事件的频率达到预设的频率阈值时,控制终端退出勿扰模式。
需要说明的是,若终端的位移信息不满足预设的条件,则控制终端保持勿扰模式,继续检测终端是否处于运动状态,获取终端的位移信息;若预设类型来电事件的频率未达到预设的频率阈值,则控制终端保持勿扰模式,继续监听终端的来电事件,获取预设类型来电事件的来电频率。
在本实施例中,终端处于勿扰模式时,获取终端的来电记录;然后,根据来电记录,获取预设类型来电事件的来电频率;判断预设类型来电事件的来电频率是否达到预设的频率阈值;若终端的位移信息满足预设的条件,并且预设类型来电事件的来电频率达到预设的频率阈值,则控制终端退出勿扰模式。本实施例通过根据终端的来电事件和位移变化,综合判定当前环境是否需要退出勿扰模式,提高了对用户当前状态分析的准确性,控制勿扰模式的退出也更加智能化和人性化,提高了用户体验。
可选地,参照图7,一种勿扰控制方法的第七实施例,基于上述图6所示的实施例,所述步骤S31包括:
步骤S311、若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式。
可选地,作为一种实施方式,终端可以点亮显示屏,提供通知界面通知用户是否需要退出勿扰模式。通知界面中提供选择按钮供用户选择,例如:是和否,退出和不退出等。
同时,可以提供振动、铃声等提示方式,以提醒用户选择当前是否需要退出勿扰模式。
步骤S312、若检测到退出勿扰模式的指令,则控制所述终端退出勿扰模式。
若检测到用户输入的退出勿扰模式的指令,也即用户选择退出勿扰模式,则终端控制退出勿扰模式,恢复对终端通讯消息的提示。
若用户选择不退出勿扰模式,则继续保持终端处于勿扰模式中,不提示终端收到的通讯消息。
由此,实现了根据用户的选择,进行相应的处理。
在本实施例中,若位移信息满足预设的条件,且预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式;若检测到退出勿扰模式的指令,则控制终端退出勿扰模式。本实施例通过对终端位移信息和预设类型来电事件的来电频率的判定,实现了对终端位移和来电情况的综合分析,进一步精确的确定终端当前的场景状态;在分析得到终端当前可以退出勿扰模式的情况下,本实施例通过由用户选择是否退出勿扰模式,基于用户的选择进行相应的处理,实现了用户仍然需要保持勿扰模式的特殊情况下的灵活处理,对终端勿扰模式的控制更加智能化和人性化,提升了用户体验。
参照图8,本文公开了一种勿扰控制装置的第一实施例,所述勿扰控制装置包括:
初始模块10,设置为终端处于勿扰模式时,获取所述终端的初始位置信息。
本发明实施例通过勿扰控制装置获取用户位移的变化,智能分析用户所处的环境,从而根据环境判断终端当前是否需要退出勿扰模式,实现了勿扰模式的智能控制。
本实施例中,勿扰模式指终端正常接收通讯消息,但不对用户进行铃声、振动、点亮显示屏等方式的提醒。其中,通讯消息包括电话呼入、短信、邮件、闹钟和应用软件的推送消息等。
用户根据实际应用场景,控制终端进入勿扰模式时,初始模块10对终端进行定位,获取终端当前的位置信息作为初始位置信息。
可选地,初始模块10可以控制GPS(Global Positioning System,全球定位系统)模块或者AGPS(Assisted Global Positioning System,辅助全球卫星定位系统)模块进行定位。其中,AGPS定位结合了GPS定位和蜂窝基站定位的优势,相较于GPS定位缩短了定位时间,并且降低了终端的功耗。因此,在终端当前开启移动网络的连接时,可优先选择AGPS定位。当然,也可以控制其他具有定位功能的模块对终端进行定位。
初始模块10控制GPS模块或AGPS模块对终端进行定位,得到终端当前的位置信息。得到的位置信息包括当前的时间、终端的坐标等信息。
然后,初始模块10将当前的时间作为初始时刻、当前的坐标作为初始坐标,进行存储,得到初始位置信息。得到的初始位置信息包括初始时刻和初始坐标。
位移模块20,设置为根据所述初始位置信息,获取所述终端的位移信息。
在得到终端的初始位置信息后,位移模块20根据初始位置信息获取终端的位移信息。
可选地,作为一种实施方式,位移模块20控制计时器,以初始时刻作为起始时刻,进行计时。位移模块20监测终端的当前时间。
位移模块20预设有定位频率,位移模块20设置为根据定位频率对终端进行定位,获取终端的位置信息。例如,预设的定位频率为每10分钟一次,则10分钟为获取终端位置信息的时间间隔,每隔10分钟进行一次对终端的定位。预设的定位频率可以由用户根据实际需要灵活设置。
取初始时刻为T1,预设的定位频率为每隔T2时间对终端进行一次定位。,取当前时刻为T3,在T3=T1+T2时,位移模块20获取终端的当前位置信息。当前位置信息包括终端的当前时刻和当前坐标。
然后,位移模块20根据终端的初始坐标和当前坐标,获取终端的水平位移,并将得到的水平位移作为终端的位移信息。需要说明的是,终端的位移信息为终端从初始时刻到当前时刻,所发生的水平位移,不考虑终端在移动后高度的变化。
控制模块30,设置为若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
在获取终端的位移信息后,控制模块30判断位移信息是否满足预设的条件。若位移信息满足预设的条件,则控制终端退出勿扰模式。
可选地,作为一种实施方式,预设的条件为终端的水平位移达到预设的距离阈值。其中,距离阈值为用户或终端预先设置的水平位移距离,通常取值范围为30米至1000米,可根据用户的应用场景实际需要进行灵活设置。
控制模块30判断终端当前的水平位移是否达到了距离阈值。若当前终端的水平位移大于或等于距离阈值,则判定当前终端的水平位移达到了距离阈值;若当前终端的水平位移小于距离阈值,则判定当前终端的水平位移未达到预设的距离阈值。
若当前终端的水平位移达到了距离阈值,也即终端的位移信息满足预设的条件,则可视为用户当前已完成会议、培训等,离开固定场地,此时,控制模块30控制终端退出勿扰模式,恢复对通讯消息的提示。或,
控制模块30点亮终端显示屏,提供通知界面通知用户是否需要退出勿扰模式。若用户选择是,则控制终端退出勿扰模式,恢复对通讯消息的提示;若用户选择否,则继续保持勿扰模式,不提示终端收到的通讯消息。
若当前终端的水平位移未达到预设的距离阈值,也即终端的位移信息不满足预设的条件,位移模块20则继续计时,在T4=T3+t2时,对终端进行定位,获取终端的当前位置信息。然后,根据终端的当前位置信息和初始位置信息,获取终端的位移信息。然后,控制模块30判断终端的位移信息是否满足预设的条件,并根据判定结果执行相应的操作。
由此,实现了终端勿扰模式的智能控制。
在本实施例中,终端处于勿扰模式时,初始模块10获取终端的初始位置信息;然后,位移模块20根据终端的初始位置信息,获取终端的位移信息;若终端的位移信息满足预设的条件,则控制模块30控制终端退出勿扰模式。本实施例通过终端的位移信息,智能判断用户是否已离开当前的勿扰环境,从而根据判定结果确定是否需要退出当前的勿扰模式。本实施例实现了对终端勿扰模式的智能控制,避免了由于用户忘记退出勿扰模式而无法导致及时收到重要消息的提示,提升了用户体验。
可选地,参照图9,一种勿扰控制装置的第二实施例,基于上述图8所示的实施例,所述位移模块20包括:
检测单元21,设置为检测所述终端是否处于运动状态。
目前,为了提升用户的操作体验,终端通常安装有重力传感器,重力传感器通过感测重力变化,获取终端的动态加速度,从而根据得到的加速度绘制加速度曲线。可以根据加速度曲线,计算终端的走路、跑步或骑行等状态。
当用户携带终端走动、跑步或骑行时,可以通过重力传感器检测终端的运动状态,从而获取用户的运动状态。若用户持续处于运动状态,则可认为用户已结束休息、会议、培训等,或者用户已经下班离开办公场所,离开勿扰环境。
可选地,作为一种实施方式,检测单元21通过控制终端中的重力传感器(Gravity-sensor),检测终端是否处于运动状态。本实施例中,终端的运动状态包括但不限定于跑步、走路或骑行等状态。
位置单元22,设置为若所述终端处于运动状态,则获取所述终端的当前位置信息。
若检测到终端当前处于运动状态,则位置单元22获取终端的当前位置信息。
若终端当前处于跑步、走路或骑行等运动状态,则位置单元22进行GPS定位或AGPS定位,获取终端的当前位置信息。当前位置信息包括终端的当前坐标。
位移单元23,设置为根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
在获取终端的当前位置信息后,位移单元23根据初始坐标和当前坐标,获取水平位移,并将得到的水平位移作为终端的位移信息。
需要说明的是,终端的位移信息为终端从初始时刻到当前时刻,所发生的水平位移,不考虑终端在移动后高度的变化。
由此,位移单元23得到终端的位移信息。
需要说明的是,终端在处于运动状态时,位置单元22可以实时获取终端的当前位置信息,从而获取终端的位移信息判断是否满足预设的条件;位置单元22也可以根据预设的定位频率获取终端的当前位置信息,从而获取终端的位移信息判断是否满足预设的条件,可根据实际需要灵活设定。
在本实施例中,21检测终端是否处于运动状态;若终端处于运动状态,则位置单元22获取终端的当前位置信息;位移单元23根据初始位置信息和当前位置信息,获取终端的位移信息。本实施例持续检测终端的运动状态,在终端处于运动状态时,用户可能正在离开或已经离开需要勿扰的环境,此时获取用户的当前位置信息,对终端运动状态的监测有效提高了对终端当前所处环境判断的正确性,更加智能化的控制终端的勿扰模式。
可选地,参照图10,一种勿扰控制装置的第三实施例,基于上述图9所示的实施例,所述位置单元22包括:
记录子单元221,设置为若所述终端处于运动状态,则记录所述终端的运动时长。
若检测单元21检测到终端当前处于运动状态,则记录子单元221记录终端的运动时长。
可选地,作为一种实施方式,记录子单元221控制计时器计时,以检测到终端处于运动状态的时间为初始时间,开始计时,记录终端的持续运动时长,直至终端停止运动状态。
若终端停止运动状态后重新进入运动状态,则获取终端停止运动状态到重新进入运动状态的中止时间。若终端的中止时间小于预设的中止时间阈值,则判定终端持续保持运动状态,将终端的中止时间计入运动时长,并继续计时;若终端的中止时间大于或等于预设的中止时间阈值,则判定终端持续中断运动状态,仅获取终端停止运动状态时已经记录的运动时长作为终端的运动时长。
若终端的运动时间超过预设的最大计时时长,也即用户的运动时间过长,则自动停止计时,得到最大计时时长作为终端的运动时间。
由此,记录子单元221得到终端的运动时长。得到的运动时长为终端的持续运动时长,也即用户的持续运动时长。
位置子单元222,设置为若所述运动时长达到预设的时间阈值,则获取所述终端的当前位置信息。
在得到终端的运动时长后,位置子单元222判断终端的运动时长是否达到预设的时间阈值。
预设的时间阈值为用户或终端预先设置的时间阈值,可根据实际需要灵活设置。若终端的运动时长大于或等于预设的时间阈值,则位置子单元222判定终端的运动时长达到预设的时间阈值;若终端的运动时长小于预设的时间阈值,则位置子单元222判定终端的运动时长未达到预设的时间阈值。
例如,预设的时间阈值为30秒,若终端的运动时长大于或等于30秒,则判定终端的运动时长达到预设的时间阈值;若终端的运动时长小于30秒,则判定终端的运动时长未达到预设的时间阈值。
由此,位置子单元222得到判定结果。
若终端的运动时长达到预设的时间阈值,则位置子单元222进行GPS定 位或AGPS定位,获取终端的当前位置信息。当前位置信息包括终端的当前坐标。
若终端的运动时长未达到预设的时间阈值,则检测单元21继续检测终端是否处于运动状态。
在本实施例中,若终端处于运动状态,则记录子单元221记录述终端的运动时长;若运动时长达到预设的时间阈值,则位置子单元222获取终端的当前位置信息。本实施例持续检测终端的运动状态,在运动状态持续时间超过预设的时间阈值时,用户可能正在离开或已经离开需要勿扰的环境,对终端运动状态的监测有效提高了对终端当前所处环境判断的正确性,更加智能化的控制终端的勿扰模式。在运动状态持续时间超过预设的时间阈值时,获取终端当前的位置信息,并根据终端的初始位置信息得到终端的位移信息,避免了对终端进行频繁进行定位,并且节省了终端频繁进行定位的功耗,提高了用户体验。
可选地,参照图10,一种勿扰控制装置的第四实施例,基于上述图9所示的装置的第二实施例或图10所示的装置的第三实施例(本实施例以图10所示的本发明勿扰控制装置第三实施例为例),所述位置单元22还设置为,
若在预设的检测时间内未检查到所述终端处于运动状态,则获取所述终端的当前位置信息。
在本实施例中,在终端进入勿扰状态后,检测单元21持续检测终端的运动状态。
以终端进入勿扰状态的时间为初始时间,位置单元22控制计时器开始计时。
若在预设的检测时间内,检测单元21未检测到终端处于运动状态,也即预设的检测时间内,终端未发生运动,则位置单元22控制GPS模块或AGPS模块对终端进行定位,获取终端当前的位置信息。
然后,位移单元23根据终端的初始位置信息和当前位置信息,获取终端的位移信息。得到的位移信息为终端当前时刻所在位置与初始时刻所在位置的水平距离。然后,控制模块30根据得到的位移信息,分析终端当前是否需要退出勿扰模式。
需要说明的是,预设的检测时间可以是用户或者终端预先设置的,可根据实际应用需要灵活设置。
在本实施例中,若在预设的检测时间内未检查到终端处于运动状态,则位置单元22获取终端的当前位置信息,并根据终端的初始位置信息和当前位置信息获取终端的位移信息。本实施例通过预设检测时间,有效避免了未检测到终端处于运动状态,但实际上终端有发生位移的情况,实现了对终端多种应用场景的判断,提高了对终端当前所处环境进行判断的正确性,更加智能化的控制终端的勿扰模式,提高了用户体验。
可选地,参照图11,一种勿扰控制装置的第五实施例,基于上述图8、图9或图10所示的任一装置实施例(本实施例以图8为例),所述位移信息包括水平位移,所述预设的条件为预设的距离阈值,所述勿扰控制装置还包括:
位移判断模块40,设置为判断所述水平位移是否达到所述预设的距离阈值;若所述水平位移达到所述预设的距离阈值,则判定所述位移信息满足预设的条件。
终端的位移信息包括终端的水平位移,本实施例不考虑终端在重力加速度方向的位移,避免用户近距离更换办公场地导致错处退出勿扰模式,例如:办公场地的变化仅仅为办公室高度的变化时,用户不需要退出勿扰模式。
位移判断模块40预设有距离阈值,预设的距离阈值为终端的水平位移距离。需要说明的是,距离阈值为用户或位移判断模块40预先设置的水平位移距离,通常取值范围为30米至1000米,可根据用户的应用场景实际需要进行灵活设置。
位移判断模块40判断当前的水平位移是否达到了预设的距离阈值。若当前终端的水平位移大于或等于距离阈值,则判定当前终端的水平位移达到了预设的距离阈值;若当前终端的水平位移小于距离阈值,则判定当前终端的水平位移未达到预设的距离阈值。
例如,距离阈值为50米,若当前终端的水平位移达大于或等于50米,则判定当前终端的水平位移达到了距离阈值;若当前终端的水平位移小于50米,则判定当前终端的水平位移未达到预设的距离阈值。
若当前终端的水平位移大于或等于距离阈值,则判定当前终端的位移信息满足预设的条件;若当前终端的水平位移小于距离阈值,则判定当前终端的位移信息不满足预设的条件。
由此,位移判断模块40得到了对终端位移信息的判定结果。
在本实施例中,位移信息包括水平位移,预设的条件为预设的距离阈值,在获取终端的位移信息后,位移判断模块40判断终端的水平位移是否达到预设的距离阈值;若水平位移达到预设的距离阈值,则判定位移信息满足预设的条件。本实施例仅考虑终端内的水平位移情况,避免了办公场地近距离的变化如高度变化等导致的错误退出勿扰模式,提升了勿扰模式控制的智能化水平,更加人性化,提升了用户体验。
可选地,参照图12,一种勿扰控制装置的第六实施例,基于上述图8至图11任一项所示的装置的实施例(本实施例以图8为例),所述勿扰控制装置还包括:
来电模块50,设置为获取所述终端的来电记录。
当用户需要关闭终端对收到的通信消息的提示时,通过菜单选择或者其他快捷方式控制终端进入勿扰模式,控制模块30控制对终端收到的通讯消息不进行铃声、振动、点亮显示屏等方式的提醒。
在终端进入勿扰模式后,来电模块50监听并记录来电信息。记录的来电信息包括来电标识和来电时间。
其中,来电标识用于识别不同的来电,例如以电话号码、联系人名称等作为来电标识。来电标识和来电时间相互对应,根据来电标识可以获取对应的来电时间。当同一来电标识有多次来电时,根据此来电标识可以获取对应的多次来电时间。
来电模块50存储记录的来电信息,得到来电记录。
频率模块60,设置为根据所述来电记录,获取预设类型来电事件的来电频率。
在得到来电记录后,频率模块60根据来电记录获取预设类型来电事件的来电频率。
可选地,作为一种实施方式,预设类型来电事件为已知联系人的来电, 本实施例中简称已知来电。本实施例中所指已知来电,为呼入的电话号码和对应的联系人名称在终端的联系人中有记载,也即,是用户已知的联系人呼入的电话,例如用户的同事、朋友和家人等已知联系人。
由于已知的联系人可能更为熟悉用户的工作和生活时间安排,在用户已知联系人的呼入频率较高时,可认为用户当前已经结束会议、培训等,或者用户当前已经处于下班状态,或者已知联系人当前有紧急事务需要联系用户,此时,可以结合终端的位移信息,判断是否需要退出勿扰模式。
来电频率为预设时间内当前已知来电的来电次数。例如,当前已知来电的联系人为A,预设时间为10分钟,则来电频率为当前已知来电的来电时间前10分钟之内,联系人A的来电次数。
频率模块60根据来电记录中已知来电的来电标识和来电时间,计算预设时间内,当前已知来电的同一联系人的来电次数,得到的来电次数即为当前已知来电的来电频率,也即预设类型来电事件的来电频率。
频率判断模块70,设置为判断所述预设类型来电事件的来电频率是否达到预设的频率阈值。
在获取预设类型来电事件的来电频率后,频率判断模块70判断预设类型来电事件的来电频率是否达到预设的频率阈值。
可选地,预设的频率阈值为预设时间内同一已知来电的来电次数,可根据实际需要灵活设置,并且,定义频率阈值的预设时间与来电频率的预设时间相同。
若预设类型来电事件的来电频率大于或等于预设的频率阈值,则判定预设类型来电事件的来电频率达到了预设的频率阈值;预设类型来电事件的来电频率小于预设的频率阈值,则判定预设类型来电事件的来电频率未达到预设的频率阈值。
例如,预设的频率阈值为10分钟内2次来电,若当前已知来电的联系人在10分钟内呼入当前终端2次及以上,则判定当前已知来电的来电频率达到预设的频率阈值;若当前已知来电的联系人在10分钟内呼入当前终端1次及以下,则判定当前已知来电的来电频率未达到预设的频率阈值,得到判定结果。
由此,频率判断模块70得到对预设类型来电事件的来电频率判断结果。
对应的,所述控制模块30还设置为,
若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式。
在得到位移信息和预设类型来电事件的来电频率的判断结果后,作为一种实施方式,若位移信息满足预设的条件,且预设类型来电事件的来电频率达到预设的频率阈值,则控制模块30控制终端退出勿扰模式或提示用户退出勿扰模式。
由此,实现了在位移信息满足预设的条件,且预设类型来电事件的来电频率达到预设的频率阈值时,控制模块30控制终端退出勿扰模式。
若预设类型来电事件的来电频率未达到预设的频率阈值,则继续监听终端来电事件,并记录来电信息。
可选地,在当前预设类型来电事件的来电频率达到预设的频率阈值后,位移模块20控制GPS模块或者AGPS模块进行定位。在终端当前开启移动网络的连接时,可优先选择AGPS定位。或者,也可以控制其他具有定位功能的模块对终端进行定位。
位移模块20控制GPS模块或AGPS模块对终端进行定位,得到终端当前的位置信息。得到的位置信息包括当前的时间、终端的坐标等信息。然后,位移模块20根据终端的初始位置信息和当前位置信息,获取终端的位移信息。
若终端的位移信息满足预设的条件,则控制模块30控制终端退出勿扰模式或提示用户退出勿扰模式。
由此,实现了在位移信息满足预设的条件,且已知来电的频率达到预设的频率阈值时,控制模块30控制终端退出勿扰模式。
需要说明的是,若终端的位移信息不满足预设的条件,则控制终端保持勿扰模式,继续检测终端是否处于运动状态,获取终端的位移信息;若预设类型来电事件的频率未达到预设的频率阈值,则控制终端保持勿扰模式,继续监听终端的来电事件,获取预设类型来电事件的来电频率。
在本实施例中,终端处于勿扰模式时,来电模块50获取终端的来电记录;然后,根据来电记录,频率模块60获取预设类型来电事件的来电频率;频率判断模块70判断预设类型来电事件的来电频率是否达到预设的频率阈值;若终端的位移信息满足预设的条件,并且预设类型来电事件的来电频率达到预 设的频率阈值,则控制模块30控制终端退出勿扰模式。本实施例通过根据终端的已知来电和位移变化,综合判定当前环境是否需要退出勿扰模式,提高了对用户当前状态分析的准确性,控制勿扰模式的退出也更加智能化和人性化,提高了用户体验。
可选地,参照图13,一种勿扰控制装置的第七实施例,基于上述图12所示的实施例,所述控制模块30包括:
提示单元31,设置为若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式。
若终端的位移信息满足预设的频率,并且已知来电的频率达到预设的频率阈值,则提示单元31提示用户选择是否退出勿扰模式。
可选地,提示单元31可以点亮终端的显示屏,提供通知界面通知用户是否需要退出勿扰模式。通知界面中提供选择按钮供用户选择,例如:是和否,退出和不退出等。
同时,提示单元31可以提供振动、铃声等提示方式,以提醒用户选择当前是否需要退出勿扰模式。
然后,提示单元31获取用户的选择结果。
控制单元32,设置为若检测到退出勿扰模式的指令,则控制所述终端退出勿扰模式。
若检测到用户输入的退出勿扰模式的指令,也即用户选择退出勿扰模式,则控制单元32控制终端退出勿扰模式,恢复对终端通讯消息的提示。
若用户选择不退出勿扰模式,则控制单元32继续保持终端处于勿扰模式中,不提示终端收到的通讯消息。
由此,控制单元32实现了根据用户的选择,进行相应的处理。
在本实施例中,若位移信息满足预设的条件,且预设类型来电事件的来电频率达到预设的频率阈值,则提示单元31提供选择界面供用户选择是否退出勿扰模式;若检测到退出勿扰模式的指令,则控制单元32控制终端退出勿扰模式。本实施例通过对终端位移信息和预设类型来电事件的来电频率的判定,实现了对终端位移和来电情况的综合分析,进一步精确的确定终端当前 的场景状态;在分析得到终端当前可以退出勿扰模式的情况下,本实施例通过由用户选择是否退出勿扰模式,基于用户的选择进行相应的处理,实现了用户仍然需要保持勿扰模式的特殊情况下的灵活处理,对终端勿扰模式的控制更加智能化和人性化,提升了用户体验。
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被处理器执行时可实现本发明实施例所提供的一种勿扰控制方法。
以上仅为本发明的可选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
工业实用性
本发明的技术方案实现了对终端勿扰模式的智能控制,避免了由于用户忘记退出勿扰模式而导致无法及时收到重要消息提示的问题,提升了用户体验。

Claims (14)

  1. 一种勿扰控制方法,包括以下步骤:
    终端处于勿扰模式时,获取所述终端的初始位置信息;
    根据所述初始位置信息,获取所述终端的位移信息;
    若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
  2. 如权利要求1所述的勿扰控制方法,其中,所述根据所述初始位置信息,获取所述终端的位移信息的步骤包括:
    检测所述终端是否处于运动状态;
    若所述终端处于运动状态,则获取所述终端的当前位置信息;
    根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
  3. 如权利要求2所述的勿扰控制方法,其中,所述若所述终端处于运动状态,则获取所述终端的当前位置信息的步骤包括:
    若所述终端处于运动状态,则记录所述终端的运动时长;
    若所述运动时长达到预设的时间阈值,则获取所述终端的当前位置信息。
  4. 如权利要求3所述的勿扰控制方法,其中,所述检测所述终端是否处于运动状态的步骤之后,还包括:
    若在预设的检测时间内未检测到所述终端处于运动状态,则获取所述终端的当前位置信息,则执行如下步骤:根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
  5. 如权利要求1所述的勿扰控制方法,其中,所述位移信息包括水平位移;所述预设的条件为预设的距离阈值;在所述若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式的步骤之前,还包括:
    判断所述水平位移是否达到所述预设的距离阈值;
    若所述水平位移达到所述预设的距离阈值,则判定所述位移信息满足预设的条件。
  6. 如权利要求1-5任一项所述的勿扰控制方法,其中,所述终端处于勿扰模式时,获取所述终端的初始位置信息的步骤之后,还包括:
    获取所述终端的来电记录;
    根据所述来电记录,获取预设类型来电事件的来电频率;
    判断所述预设类型来电事件的来电频率是否达到预设的频率阈值;
    其中,所述若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式的步骤包括:
    若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式。
  7. 如权利要求6所述的勿扰控制方法,其中,所述若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式的步骤包括:
    若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式;
    若检测到退出勿扰模式的指令,则控制所述终端退出勿扰模式。
  8. 一种勿扰控制装置,包括:
    初始模块,设置为终端处于勿扰模式时,获取所述终端的初始位置信息;
    位移模块,设置为根据所述初始位置信息,获取所述终端的位移信息;
    控制模块,设置为若所述位移信息满足预设的条件,则控制所述终端退出勿扰模式。
  9. 如权利要求8所述的勿扰控制装置,其中,所述位移模块包括:
    检测单元,设置为检测所述终端是否处于运动状态;
    位置单元,设置为若所述终端处于运动状态,则获取所述终端的当前位置信息;
    位移单元,设置为根据所述初始位置信息和所述当前位置信息,获取所述终端的位移信息。
  10. 如权利要求9所述的勿扰控制装置,其中,所述位置单元包括:
    记录子单元,设置为若所述终端处于运动状态,则记录所述终端的运动时长;
    位置子单元,设置为若所述运动时长达到预设的时间阈值,则获取所述终端的当前位置信息。
  11. 如权利要求10所述的勿扰控制装置,其中,所述位置单元还设置为,
    若在预设的检测时间内未检测到所述终端处于运动状态,则获取所述终端的当前位置信息。
  12. 如权利要求8所述的勿扰控制装置,其中,所述位移信息包括水平位移;所述预设的条件为预设的距离阈值;所述勿扰控制装置还包括:
    位移判断模块,设置为判断所述水平位移是否达到所述预设的距离阈值;若所述水平位移达到所述预设的距离阈值,则判定所述位移信息满足预设的条件。
  13. 如权利要求8-12任一项所述的勿扰控制装置,还包括:
    来电模块,设置为获取所述终端的来电记录;
    频率模块,设置根据所述来电记录,获取预设类型来电事件的来电频率;
    频率判断模块,设置为判断所述预设类型来电事件的来电频率是否达到预设的频率阈值;
    所述控制模块还设置为,若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则控制所述终端退出勿扰模式。
  14. 如权利要求13所述的勿扰控制装置,其中,所述控制模块包括:
    提示单元,设置为若所述位移信息满足预设的条件,且所述预设类型来电事件的来电频率达到预设的频率阈值,则提供选择界面供用户选择是否退出勿扰模式;
    控制单元,设置为若检测到退出勿扰模式的指令,则控制所述终端退出勿扰模式。
PCT/CN2016/080167 2016-01-19 2016-04-25 勿扰控制方法和装置 WO2016197723A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610033824.8 2016-01-19
CN201610033824.8A CN106982290A (zh) 2016-01-19 2016-01-19 勿扰控制方法和装置

Publications (1)

Publication Number Publication Date
WO2016197723A1 true WO2016197723A1 (zh) 2016-12-15

Family

ID=57503097

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080167 WO2016197723A1 (zh) 2016-01-19 2016-04-25 勿扰控制方法和装置

Country Status (2)

Country Link
CN (1) CN106982290A (zh)
WO (1) WO2016197723A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112869561A (zh) * 2021-02-07 2021-06-01 河北红岸基地科技有限公司 一种饮水机控制方法
WO2023010262A1 (zh) * 2021-08-03 2023-02-09 广东高驰运动科技有限公司 水下环境探测装置、探测方法、鱼竿及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846513A (zh) * 2017-11-01 2018-03-27 上海掌门科技有限公司 勿扰模式的实现方法与设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1164808A1 (en) * 2000-06-16 2001-12-19 Yugen Kaisha OFA Design Office Automatic working mode switching system for mobile stations
JP2007288458A (ja) * 2006-04-14 2007-11-01 Yozan Inc 携帯端末及び該携帯端末を備えた位置監視システム
CN102685305A (zh) * 2011-03-14 2012-09-19 深圳市同洲软件有限公司 一种移动终端切换情景模式的方法及移动终端
CN103327162A (zh) * 2012-03-21 2013-09-25 华为技术有限公司 情景模式设置方法及终端设备
CN103491258A (zh) * 2013-10-08 2014-01-01 锤子科技(北京)有限公司 一种静音计时方法、装置及移动终端
CN104967742A (zh) * 2015-06-17 2015-10-07 努比亚技术有限公司 在静音模式下防止漏接电话的方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916470B (zh) * 2014-03-28 2017-06-30 北京农业信息技术研究中心 导航监控中移动目标位置状态智能推送方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1164808A1 (en) * 2000-06-16 2001-12-19 Yugen Kaisha OFA Design Office Automatic working mode switching system for mobile stations
JP2007288458A (ja) * 2006-04-14 2007-11-01 Yozan Inc 携帯端末及び該携帯端末を備えた位置監視システム
CN102685305A (zh) * 2011-03-14 2012-09-19 深圳市同洲软件有限公司 一种移动终端切换情景模式的方法及移动终端
CN103327162A (zh) * 2012-03-21 2013-09-25 华为技术有限公司 情景模式设置方法及终端设备
CN103491258A (zh) * 2013-10-08 2014-01-01 锤子科技(北京)有限公司 一种静音计时方法、装置及移动终端
CN104967742A (zh) * 2015-06-17 2015-10-07 努比亚技术有限公司 在静音模式下防止漏接电话的方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112869561A (zh) * 2021-02-07 2021-06-01 河北红岸基地科技有限公司 一种饮水机控制方法
WO2023010262A1 (zh) * 2021-08-03 2023-02-09 广东高驰运动科技有限公司 水下环境探测装置、探测方法、鱼竿及存储介质

Also Published As

Publication number Publication date
CN106982290A (zh) 2017-07-25

Similar Documents

Publication Publication Date Title
CN104836909B (zh) 一种来电自动接通的方法及装置
US9712643B2 (en) Method and device for calling a taxi
CN105682196B (zh) 通信控制方法、装置和可穿戴设备
EP3089056B1 (en) Method and device for personalised information display
CN105933539B (zh) 音频播放的控制方法、装置及终端
US20070037610A1 (en) Methods and apparatus for conserving battery power in a cellular or portable telephone
EP3130967B1 (en) Method for managing an alarm clock and system associated
CN104580730B (zh) 闹钟提醒方法及装置
CN104937520A (zh) 用于基于身体活动水平的变化自动调节通知操作的方法和装置
RU2644410C2 (ru) Способ для напоминания и устройство напоминания
CN104301534A (zh) 一种智能调整移动终端场景模式的方法及装置
CN104158955A (zh) 事件提醒方法及装置
CN102427492A (zh) 自动设置服务功能的方法及移动装置
US9996065B2 (en) Methods and devices for controlling appliances
WO2017096809A1 (zh) 一种来电提示方法和系统
WO2014126767A1 (en) Automatic notification upon trigger detection
US20160309310A1 (en) System and method for providing an intelligent reminder for commencing a live communications session
CN107872576A (zh) 闹钟提醒方法、装置及计算机可读存储介质
CN109034747B (zh) 任务提醒方法及装置
WO2016197723A1 (zh) 勿扰控制方法和装置
CN105100484B (zh) 一种结束语音通话的方法、装置和系统
CN101834947A (zh) 一种关闭手机闹钟的智能系统和方法
CN108108090B (zh) 通信消息提醒方法及装置
CN102638760A (zh) 一种根据地理位置控制闹钟响铃的方法及其手持装置
CN110457100A (zh) 应用程序显示方法、装置、设备以及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16806621

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16806621

Country of ref document: EP

Kind code of ref document: A1