Method and system for turning off alarm clock of mobile terminal, mobile terminal and medium
By using a gyroscope sensor to detect the change value of the rotation angle on the mobile terminal, the function of automatically turning off the alarm within the preset angle range is realized, which solves the problem of high error shutdown rate caused by misoperation in the prior art, and improves the accuracy and efficiency of turning off the alarm clock.
Patent Information
- Application Number
- CN202311175842.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2025-03-14
AI Technical Summary
The prior art is prone to jitter and erroneous operation caused by external factors when closing the alarm clock of the mobile terminal, resulting in a high shutdown error rate and poor accuracy.
By activating the gyroscope sensor of the mobile terminal, the mobile terminal alarm clock is turned off when the rotation angle change value is detected to be in the preset angle range.
Effectively distinguish between user intentional touch and mobile terminal normal jitter, improve the accuracy and efficiency of turning off the alarm clock, and avoid the phenomenon of turning off the alarm clock by mistake due to external jitter.
Smart Images

Figure CN119629274A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile terminal technology, and in particular to a method, system, mobile terminal and medium for turning off an alarm of a mobile terminal. Background Art
[0002] With the development of communication technology, mobile terminals (such as mobile phones, car-mounted tablet devices, etc.) play more and more roles in people's lives, among which the alarm reminder function is one of its functions.
[0003] In order to improve the efficiency of turning off the alarm, the prior art provides a method for turning off the alarm of a mobile terminal, specifically: when it is determined that an alarm reminder message is output, whether there is information that touches the mobile terminal; when it is detected that there is information that touches the mobile terminal, stop outputting the alarm reminder message.
[0004] However, the prior art of using a mobile terminal to turn off the alarm is prone to misoperation. For example, when the mobile phone is in the user's pocket, the user walking may cause the alarm to turn off, or the vibration of a car-mounted tablet device on a rough road may also cause the alarm to turn off. Summary of the invention
[0005] The present application provides a method, system, mobile terminal and medium for turning off an alarm clock of a mobile terminal, so as to solve the problems of high error rate and poor accuracy in turning off an alarm clock in the prior art.
[0006] According to a first aspect of the present application, a method for turning off an alarm of a mobile terminal is provided, comprising:
[0007] When the alarm of the mobile terminal is activated, activating the gyroscope sensor of the mobile terminal;
[0008] Acquire the posture angle of the mobile terminal detected by the gyroscope sensor, and determine the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal;
[0009] When the rotation angle change value is within a preset angle range, the mobile terminal alarm is turned off.
[0010] Optionally, determining a rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal includes:
[0011] Determining the rotation angle of the gyro sensor of the mobile terminal in a preset direction when it is started as an initial value of the rotation angle;
[0012] Determining a rotation angle of the mobile terminal in a preset direction according to the posture angle of the mobile terminal;
[0013] The absolute value of the difference between the rotation angle of the mobile terminal in the preset direction and the initial value of the rotation angle is determined as the rotation angle change value.
[0014] Optionally, after determining the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal, the method further includes:
[0015] When the rotation angle change value is within a preset angle range, stopping the alarm of the mobile terminal, and counting the number of times the alarm is stopped;
[0016] Determine whether the alarm stop times reaches a preset times threshold;
[0017] When the alarm stop times reaches a preset times threshold, the mobile terminal alarm is turned off.
[0018] Optionally, when stopping the alarm of the mobile terminal, the method further includes:
[0019] A gyroscope sensor of the mobile terminal is deactivated.
[0020] Optionally, after determining whether the alarm stop times reaches a preset times threshold, the method further includes:
[0021] When the number of times the alarm is stopped does not reach the preset number threshold, the alarm of the mobile terminal is played with a delay, and at the time of the delayed playing, the gyroscope sensor of the mobile terminal is restarted.
[0022] According to a second aspect of the present application, a system for turning off an alarm of a mobile terminal is provided, comprising:
[0023] A starting module, used for starting a gyroscope sensor of the mobile terminal when an alarm of the mobile terminal is started;
[0024] An angle calculation module, used to obtain the posture angle of the mobile terminal detected by the gyroscope sensor, and determine the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal;
[0025] The statistical control module is used to turn off the alarm of the mobile terminal when the rotation angle change value is within a preset angle range.
[0026] Optionally, the statistical control module is further used to:
[0027] When the rotation angle change value is within a preset angle range, stopping the alarm of the mobile terminal, and counting the number of times the alarm is stopped;
[0028] Determine whether the alarm stop times reaches a preset times threshold;
[0029] When the alarm stop times reaches a preset times threshold, the mobile terminal alarm is turned off.
[0030] Optionally, the system further comprises: a counting module;
[0031] The counting module is used for counting and outputting when the alarm of the mobile terminal is stopped;
[0032] The statistical control module is also used to count the counting output of the counting module to count the number of times the alarm is stopped.
[0033] According to a third aspect of the present application, there is provided a mobile terminal, comprising: at least one processor and a memory;
[0034] The memory stores computer-executable instructions;
[0035] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method for turning off the alarm of the mobile terminal as described in the first aspect above.
[0036] According to a fourth aspect of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method for turning off the alarm of a mobile terminal as described in the first aspect above.
[0037] According to a fifth aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method for turning off the alarm of a mobile terminal as described in the first aspect.
[0038] The present application provides a method for turning off a mobile terminal alarm, comprising: when the mobile terminal alarm is activated, starting a gyroscope sensor of the mobile terminal; obtaining the posture angle of the mobile terminal detected by the gyroscope sensor, and determining a rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal; when the rotation angle change value is within a preset angle range, turning off the mobile terminal alarm.
[0039] The present application sets the rotation angle change value being within a preset angle range as a necessary condition for turning off the alarm of the mobile terminal. This can effectively distinguish between the user's intentional touch of the mobile terminal and the normal shaking of the mobile terminal during use, thereby preventing the alarm of the mobile terminal from being mistakenly turned off in scenarios where shaking is caused by external factors. This improves the closing efficiency and the accuracy of turning off the alarm.
[0040] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] Figure 1 A flowchart of a method for turning off an alarm of a mobile terminal provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the posture angle of the mobile terminal provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the rotation of a mobile terminal along the X-axis provided in an embodiment of the present application;
[0045] Figure 4 A flowchart of another method for turning off an alarm of a mobile terminal provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of a system for turning off an alarm clock of a mobile terminal provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of a mobile terminal provided in an embodiment of the present application.
[0048] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0049] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0050] The existing technology turns off the alarm by detecting whether the mobile terminal is touched. However, this method is difficult to distinguish between the user's intentional touching of the mobile terminal and the normal shaking of the mobile terminal during use. The data obtained in the two cases of triggering and shaking are not very different. It is difficult to distinguish these two phenomena simply from the data obtained by the sensor, which can easily cause the mobile terminal to turn off the alarm by mistake.
[0051] In order to solve the above technical problems, the overall inventive concept of the present application is to provide a method for improving the accuracy of turning off the alarm of a mobile terminal in the field of mobile terminals.
[0052] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0053] Embodiment 1:
[0054] Figure 1 A flowchart of a method for turning off a mobile terminal alarm provided in an embodiment of the present application. Figure 1 As shown, the method of this embodiment includes the following steps:
[0055] S11. When the alarm of the mobile terminal is activated, the gyroscope sensor of the mobile terminal is activated.
[0056] When the alarm clock application (Application, APP) of the mobile terminal reaches the set time, the gyroscope sensor is activated and the alarm is played. It should be noted that the mobile terminal in this embodiment includes devices such as mobile phones, tablet computers, laptops, and car tablets. The above-mentioned set time is also called the timing time.
[0057] S12: Acquire the posture angle of the mobile terminal detected by the gyroscope sensor, and determine the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal.
[0058] In the embodiment of the present application, the attitude angle of the mobile terminal detected by the gyro sensor is also referred to as sensor data. After the gyro sensor is started, it starts to detect the attitude angle of the mobile terminal. Figure 2 As shown in FIG. 1 , the X-axis, Y-axis and Z-axis are the coordinate axes of the mobile terminal along the short side, long side and thickness direction respectively. This embodiment mainly focuses on the rotation angle of the mobile terminal in the X-axis direction. In other words, the preset direction can refer to Figure 2 and Figure 3 The embodiment of the present application calculates the angle change of the gyroscope sensor on the X-axis to provide data support for effectively distinguishing the user's intentional touching of the mobile terminal and the normal shaking of the mobile terminal during use.
[0059] It should be noted that, in practical applications, the preset direction may refer to at least one of the X-axis, the Y-axis and the Z-axis, and the rotation angle change values of the mobile terminal in each of the three directions may be determined simultaneously.
[0060] S13. When the rotation angle change value is within a preset angle range, turn off the alarm of the mobile terminal.
[0061] In the embodiment of the present application, the preset angle range or the set angle range may be [45°, 90°], [60°, 90°], [80°, 90°], etc. It should be noted that the preset angle range may be adaptively adjusted according to the target scene. Specifically, the present embodiment may identify the target scene in which the mobile terminal is located; and determine two critical values of the preset angle range according to the target scene: a lower limit and an upper limit.
[0062] The target scenarios include but are not limited to: a scenario where the user puts the phone in a pocket while walking, a scenario where the user ties the phone to an arm while running, and a scenario where the user puts the phone on a console while driving. In the driving scenario, affected by the flatness of the road, the embodiment of the present application can adjust the preset angle range.
[0063] The embodiment of the present application can also adaptively adjust the preset angle range according to the user's operating habits (for example, the size of walking steps, the placement of the mobile phone, etc.).
[0064] When the preset directions refer to the X-axis, the Y-axis, and the Z-axis, since this embodiment determines the rotation angle change values of the mobile terminal in each of these three directions, this embodiment can determine whether the rotation angle change value in each direction is within the preset angle range. As long as the rotation angle change value in one direction is within the preset angle range, the mobile terminal alarm can be turned off. This embodiment of the application can provide convenience for users to quickly turn off the mobile terminal alarm.
[0065] The embodiment of the present application provides a method for turning off the alarm of a mobile terminal. When the alarm of the mobile terminal is activated, the gyroscope sensor is activated to detect the angle change of the gyroscope sensor on the X-axis. The user operates the mobile terminal to make the angle change on the X-axis greater than 45°. The main operation of turning off the alarm is to lift the mobile phone when the alarm sounds, so that the angle on the X-axis changes, thereby turning off the alarm.
[0066] The embodiment of the present application takes the rotation angle change value being within a preset angle range as a necessary condition for turning off the alarm of the mobile terminal, which can effectively distinguish between the user's intentional touch of the mobile terminal and the normal shaking of the mobile terminal during use, thereby preventing the alarm of the mobile terminal from being mistakenly turned off in scenarios where shaking is caused by external factors. While improving the closing efficiency, the accuracy of turning off the alarm is also improved.
[0067] In a possible implementation, in step S12, determining a rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal includes the following steps:
[0068] S121. Determine a rotation angle in a preset direction when a gyro sensor of the mobile terminal is started as an initial rotation angle value.
[0069] S122: Determine a rotation angle of the mobile terminal in a preset direction according to the posture angle of the mobile terminal.
[0070] It should be understood that the preset direction is the X-axis. The rotation angle of the mobile terminal in the preset direction may be referred to as the current X-axis rotation angle. The initial value of the rotation angle may refer to the initial value of the X-axis rotation angle when the gyroscope sensor is started, and the initial value may be stored in an angle calculation module, which is a module in the alarm control system, and is also used to update and store the current X-axis rotation angle in real time.
[0071] like Figure 3 As shown, the mobile terminal rotates along the X-axis by an angle α, which is the angle at which the mobile terminal rotates around the shorter side.
[0072] S123: Determine the absolute value of the difference between the rotation angle of the mobile terminal in the preset direction and the initial value of the rotation angle as the rotation angle change value.
[0073] Optionally, the present application embodiment provides the following two scalable methods:
[0074] The embodiment of the present application can also set a preset sound in advance. By combining the two operations of the user making a sound and raising the mobile phone, the accuracy of turning off the alarm of the mobile terminal can be further achieved, and the user's shutdown authority can be effectively identified. Users without shutdown authority cannot effectively turn it off.
[0075] The embodiment of the present application can also be combined with the camera device to perform shutdown control. Specifically, when the rotation angle change value is within the preset angle range, it is determined whether the camera device has captured a face image within a preset time period; if a face image is captured, the face image passes the authentication, and the eyes in the face image are open, the mobile terminal alarm is turned off. The embodiment of the present application can ensure the safety of turning off the mobile terminal alarm in this way.
[0076] A method for turning off an alarm on a mobile terminal provided in an embodiment of the present application can conveniently turn off the alarm, eliminating the need for precise operations required to turn off the alarm by pressing buttons or touching the screen. The simple operation of turning off the alarm improves the user experience.
[0077] Based on the above embodiments, the technical solution of the present application is described in more detail below in conjunction with specific embodiments.
[0078] Embodiment 2:
[0079] Figure 4 A flowchart of another method for turning off the alarm of a mobile terminal provided in an embodiment of the present application. Figure 4 As shown, the method of this embodiment includes the following steps:
[0080] S41. When the alarm of the mobile terminal is activated, the gyroscope sensor is activated and the alarm is played.
[0081] It should be understood that the embodiment of the present application does not specifically limit the model of the gyroscope sensor. The gyroscope sensor is located in the mobile terminal. The specific implementation method of S41 is the same as Figure 1 The S11 in the example is similar and will not be described here.
[0082] S42. Record the initial X-axis angle of the mobile terminal.
[0083] It should be understood that the initial X-axis angle refers to the initial value of the rotation angle in Embodiment 1, which is used to indicate the rotation angle of the mobile terminal on the X-axis when the gyro sensor is started.
[0084] S43, read the current X-axis angle and calculate the angle difference.
[0085] It should be understood that in step S43, this embodiment obtains the posture angle of the mobile terminal detected by the gyroscope sensor, and determines the current X-axis angle based on the posture angle of the mobile terminal. The current X-axis angle refers to the rotation angle in Example 1, which is used to indicate the rotation angle of the mobile terminal on the X-axis after the gyroscope sensor is started. The above angle difference refers to the change in the rotation angle of the mobile terminal in the preset direction in the above Example 1. It should be understood that the specific implementation of S42 to S43 is different from Figure 1 The S12 in is similar and will not be described here.
[0086] S44, determine whether the angle difference is within a preset angle range; if so, execute step S45; if not, continue to execute step S43.
[0087] S45, stop playing the alarm clock, and record the number of times the alarm is stopped.
[0088] It should be understood that the number of times the playback is stopped may also be called the number of times the alarm is stopped, the number of times the alarm is played, the number of times the alarm is turned off, etc.
[0089] It can be known from steps S44 to S45 that if the absolute value of the difference between the current X-axis rotation angle of the mobile terminal and the initial value of the X-axis rotation angle is between 45° and 90°, the alarm is stopped and the number of times the alarm is stopped is recorded.
[0090] It should be noted that, in step S45, when the alarm is stopped from playing, the embodiment of the present application is also used to control the gyroscope sensor of the mobile terminal to be disabled.
[0091] S46, determine whether the number of stop playback times reaches a preset threshold; if not, execute step S47; if so, execute step S48.
[0092] In the embodiment of the present application, the preset number threshold value is also called the set maximum number, maximum value, etc. It can be the default number of the mobile terminal system, or it can be the number configured by the user. The preset number threshold value can be 3 times, 5 times, 8 times, etc. The embodiment of the present application does not specifically limit the specific value of the preset number threshold value.
[0093] S47, delaying the playing of the alarm of the mobile terminal.
[0094] In the embodiment of the present application, the delay time can be 2 minutes, 5 minutes, etc., so the embodiment of the present application does not specifically limit the delay time.
[0095] From the description of step S45 to step S47, it can be seen that in this embodiment, when the recorded number of stop playback times does not reach the set maximum number, the alarm is played again after a delay of 5 minutes and the gyroscope sensor is started to detect the X-axis rotation angle of the mobile terminal, and the above operation is repeated.
[0096] S48. Turn off the alarm of the mobile terminal and end the process.
[0097] From the description of step S46 and step S48, it can be known that in this embodiment, when the recorded number of stop playback times reaches the set maximum number, the alarm clock APP is closed and the alarm is no longer played again.
[0098] The embodiment of the present application provides another method for turning off the alarm of a mobile terminal. When the alarm of the mobile terminal is activated, the gyroscope sensor is activated to detect the angle change of the gyroscope sensor on the X-axis. The user operates the mobile terminal to make the angle change on the X-axis greater than 45°, and the alarm is stopped and the device goes into hibernation for a period of time. When the hibernation ends, the alarm is played again, and the above steps are repeated until the number of delays reaches a certain set threshold, the alarm is no longer played, and the alarm application is turned off.
[0099] That is to say, when the timing time is reached, the method of turning off the alarm of the mobile terminal starts the gyroscope sensor and plays the alarm; records the X-axis rotation angle read by the gyroscope sensor when the alarm starts playing, continuously reads the current rotation angle of the X-axis and calculates the difference between the current X-axis rotation angle and the initial X-axis rotation angle. If the calculated angle difference is not within the set angle range, the alarm is not stopped, and the gyroscope sensor re-reads the X-axis angle and calculates the angle difference. If the calculated angle difference is within the set angle range, the alarm is stopped and the number of times the alarm is stopped is recorded, and the alarm is replayed after waiting for 5 minutes and the gyroscope sensor is started to repeat the operation. When the number of times the alarm is stopped reaches the maximum value, the entire process ends.
[0100] Another method for turning off the alarm of a mobile terminal provided by an embodiment of the present application can conveniently turn off the alarm, eliminating the precise operation required to turn off the alarm by pressing buttons or touching the screen. The simple operation of turning off the alarm improves the user experience, and the delayed start function also avoids the problem of oversleeping when turning off the alarm directly.
[0101] Embodiment 3:
[0102] Figure 5 This is a schematic diagram of the structure of a system for turning off a mobile terminal alarm provided by an embodiment of the present application. The system of this embodiment can be in the form of software and / or hardware. Figure 5 As shown, the system for turning off the alarm of a mobile terminal provided in this embodiment includes: a starting module 51, an angle calculation module 52 and a statistical control module 53. Among them:
[0103] The starting module 51 is used to start the gyroscope sensor of the mobile terminal when the alarm of the mobile terminal is started.
[0104] The angle calculation module 52 is used to obtain the posture angle of the mobile terminal detected by the gyroscope sensor, and determine the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal.
[0105] The statistical control module 53 is used to turn off the alarm of the mobile terminal when the rotation angle change value is within a preset angle range.
[0106] In a possible implementation, the statistical control module 53 is further configured to:
[0107] When the rotation angle change value is within a preset angle range, the alarm of the mobile terminal is stopped, and the number of times the alarm is stopped is counted.
[0108] Determine whether the number of alarm stop times reaches a preset number threshold.
[0109] When the number of alarm stops reaches a preset number threshold, the alarm of the mobile terminal is turned off.
[0110] In one possible implementation, Figure 5 As shown, the system further includes: a counting module 54 .
[0111] The counting module 54 is used for counting and outputting when the alarm of the mobile terminal is stopped.
[0112] The statistical control module 53 is also used to count the counting output of the counting module to count the number of times the alarm is stopped.
[0113] It can be seen from the above description that, for the convenience of description, this embodiment provides a system for turning off the alarm of a mobile terminal for realizing the method of turning off the alarm of a mobile terminal. The system or the alarm control system includes: a gyroscope sensor startup module, an angle calculation module, a counting module and a statistical control module. Among them, the gyroscope sensor startup module is referred to as the startup module. Among them, the gyroscope sensor startup module is used to start the gyroscope sensor and process the sensor data. The angle calculation module is used to calculate the change in the posture angle of the mobile terminal within a set time range. Specifically, the angle calculation module is started after the gyroscope sensor is started, stores the initial X-axis rotation angle when the alarm of the mobile terminal is started, and continuously calculates the absolute value of the difference between the current X-axis rotation angle and the initial value of the X-axis rotation angle. The counting module is used to calculate the number of times the alarm is played. The statistical control module is used to count the data of the counting module and the counting module to control the behavior of the alarm control system.
[0114] The system for turning off the alarm of a mobile terminal provided in this embodiment can be used to execute the method for turning off the alarm of a mobile terminal provided in any of the above method embodiments, and its implementation principle and technical effect are similar, which will not be described in detail here.
[0115] It should be noted that the user information and data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0116] That is to say, in the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0117] According to an embodiment of the present application, the present application also provides a mobile terminal and a readable storage medium.
[0118] Figure 6 A schematic diagram of the structure of a mobile terminal provided in an embodiment of the present application. The mobile terminal includes a receiver 60, a transmitter 61, at least one processor 62 and a memory 63. The mobile terminal composed of the above components can be used to implement the above-mentioned several specific embodiments of the present application, which will not be repeated here.
[0119] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, each step of the method in the above embodiment is implemented.
[0120] An embodiment of the present application also provides a computer program product, including a computer program, which implements each step of the method in the above embodiment when executed by a processor.
[0121] Various embodiments of the systems and techniques described above in the present application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0122] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.
[0123] In the context of the present application, a computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0124] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0125] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data electronic device), or a computing system that includes middleware components (e.g., an application electronic device), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps disclosed in this application can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of this application should be included in the protection scope of this application.
Claims
1. A method for turning off an alarm clock of a mobile terminal, characterized in that: include: When the alarm of the mobile terminal is activated, activating the gyroscope sensor of the mobile terminal; Acquire the posture angle of the mobile terminal detected by the gyroscope sensor, and determine the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal; When the rotation angle change value is within a preset angle range, the mobile terminal alarm is turned off.
2. The method according to claim 1, characterized in that: The step of determining a rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal includes: Determining the rotation angle of the gyro sensor of the mobile terminal in a preset direction when it is started as an initial value of the rotation angle; Determining a rotation angle of the mobile terminal in a preset direction according to the posture angle of the mobile terminal; The absolute value of the difference between the rotation angle of the mobile terminal in the preset direction and the initial value of the rotation angle is determined as the rotation angle change value.
3. The method according to claim 1, characterized in that: After determining the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal, the method further includes: When the rotation angle change value is within a preset angle range, stopping the alarm of the mobile terminal, and counting the number of times the alarm is stopped; Determine whether the alarm stop times reaches a preset times threshold; When the alarm stop times reaches a preset times threshold, the mobile terminal alarm is turned off.
4. The method according to claim 3, characterized in that When stopping the alarm of the mobile terminal, the method further includes: A gyroscope sensor of the mobile terminal is deactivated.
5. The method according to claim 4, characterized in that After determining whether the number of alarm stop times reaches a preset number threshold, the method further includes: When the number of times the alarm is stopped does not reach the preset number threshold, the alarm of the mobile terminal is played with a delay, and at the time of the delayed playing, the gyroscope sensor of the mobile terminal is restarted.
6. A system for turning off the alarm of a mobile terminal, characterized in that: include: A starting module, used for starting a gyroscope sensor of the mobile terminal when an alarm of the mobile terminal is started; An angle calculation module, used to obtain the posture angle of the mobile terminal detected by the gyroscope sensor, and determine the rotation angle change value of the mobile terminal in a preset direction according to the posture angle of the mobile terminal; The statistical control module is used to turn off the alarm of the mobile terminal when the rotation angle change value is within a preset angle range.
7. The system according to claim 6, characterized in that The statistical control module is also used for: When the rotation angle change value is within a preset angle range, stopping the alarm of the mobile terminal, and counting the number of times the alarm is stopped; Determine whether the alarm stop times reaches a preset times threshold; When the alarm stop times reaches a preset times threshold, the mobile terminal alarm is turned off.
8. The system according to claim 7, characterized in that The system further comprises: a counting module; The counting module is used for counting and outputting when the alarm of the mobile terminal is stopped; The statistical control module is also used to count the counting output of the counting module to count the number of times the alarm is stopped.
9. A mobile terminal, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method for turning off the alarm of a mobile terminal as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for turning off the alarm of a mobile terminal as claimed in any one of claims 1 to 5.