Mobile terminal falling alarm method and device, terminal, medium and product

Through the mobile terminal's own sensor, the problem of relying on peripheral accessories and poor alarm effects in the prior art is solved, and an efficient mobile terminal drop alarm is achieved.

CN120128653APending Publication Date: 2025-06-10TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311677051.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

The existing mobile phone anti-loss method relies on peripheral accessories, and the alarm effect is poor when falling from pockets and bags.

Method used

Through the proximity sensor, ambient light sensor, acceleration sensor and gyroscope provided by the mobile terminal, it is determined whether the mobile terminal is in a drop state and alert the user. The specific method includes obtaining data of the gyroscope and acceleration sensor when the terminal switches from a closed dark state to a non-closed dark state, and determining the rotation state and acceleration direction to determine whether it is in a fall state.

Benefits of technology

It can effectively alert the mobile terminal to fall without peripheral accessories, improve the alarm effect, and is especially suitable for the drop of terminals in pockets and bags.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128653A_ABST
    Figure CN120128653A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a mobile terminal falling alarm method and device, a terminal, a medium and a product, the method is applied to a mobile terminal, and the method comprises the following steps: when the mobile terminal is switched from a closed dark state to a non-closed dark state, acquiring horizontal angle change data collected by a gyroscope and a position form of the mobile terminal, the acceleration change data is acquired by an acceleration sensor; judging whether the mobile terminal is in a rotating state or not according to the horizontal angle change data; if it is determined that the mobile terminal is in the rotating state, whether the acceleration direction of the mobile terminal is vertical to the ground and faces downwards or not is judged according to the position form and the acceleration change data; if it is determined that the acceleration direction of the mobile terminal is vertical to the ground and faces downwards, it is determined that the mobile terminal is in a falling state, and a user is warned of the falling state. The method provided by the embodiment of the invention is suitable for the condition that the terminal falls in environments such as a pocket.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a method, device, terminal, medium and product for warning of mobile terminal dropping. Background Art

[0002] With the continuous development of mobile terminal technology, the importance of mobile terminals in users' daily lives is also increasing. In various daily behaviors such as traveling, entertainment, and consumption, the figures of users using mobile terminals can be seen everywhere. Mobile terminals such as mobile phones generally store users' personal important data, such as personal privacy data. If the mobile terminal is lost, it may cause the leakage of users' personal important data.

[0003] The current main method for preventing mobile phones from being lost is to establish a communication connection with the mobile phone through other anti-loss accessories (such as Bluetooth headsets) after the mobile phone is lost, and set a lost unlocking password. The mobile phone sends real-time location information to the anti-loss accessory; the anti-loss accessory monitors and determines in real time whether the distance between the anti-loss accessory and the mobile phone is greater than a preset distance according to the real-time location information of the mobile phone; if the distance between the anti-loss accessory and the mobile phone is greater than the preset distance, the mobile phone activates the anti-loss program and the anti-loss accessory gives an alarm.

[0004] This method requires relying on peripheral accessories, and the warning effect for dropping from pockets and bags is relatively poor. Summary of the Invention

[0005] The present invention provides a method, device, terminal, medium and product for warning of mobile terminal dropping, so as to solve the problems that the current mobile phone anti-loss method relies on peripheral accessories and the warning effect for dropping from pockets and bags is relatively poor.

[0006] In a first aspect of an embodiment of the present invention, a method for warning of mobile terminal dropping is provided. The method is applied to a mobile terminal, and the mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor and a gyroscope. The method includes:

[0007] When the mobile terminal switches from a closed dark state to a non-closed dark state, obtaining the horizontal angle change data collected by the gyroscope, the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor; the closed dark state is that the proximity sensor is in a blocked state, and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold; the non-closed dark state is that the proximity sensor is in an unblocked state or the first ambient light brightness is greater than or equal to the preset threshold; the position form is the orientation state of each surface of the position where the mobile terminal is located;

[0008] Judging whether the mobile terminal is in a rotating state according to the horizontal angle change data;

[0009] If it is determined that the mobile terminal is in a rotating state, then determine whether the acceleration direction of the mobile terminal is vertically downward with respect to the ground according to the position form and the acceleration change data;

[0010] If it is determined that the acceleration direction of the mobile terminal is vertically downward with respect to the ground, then determine that the mobile terminal is in a falling state, and alert the user of the falling state.

[0011] Optionally, in the method as described above, the horizontal angle change data includes at least one horizontal angle change value;

[0012] The determining whether the mobile terminal is in a rotating state according to the horizontal angle change data includes:

[0013] Determine whether the number of the horizontal angle change values is multiple;

[0014] If it is determined that the number of the horizontal angle change values is multiple, then determine whether there are two adjacent horizontal angle change values among all the horizontal angle change values that are both greater than a preset angle change threshold; the horizontal angle change values are arranged in the order of gyroscope acquisition;

[0015] If it is determined that there are two adjacent horizontal angle change values that are both greater than the preset angle change threshold, then determine that the mobile terminal is in a rotating state.

[0016] Optionally, in the method as described above, the determining whether the acceleration direction of the mobile terminal is vertically downward with respect to the ground according to the position form and the acceleration change data includes:

[0017] Determine a corresponding preset acceleration threshold according to the position form; the position form is that the mobile terminal is horizontally placed, the mobile terminal is vertically screen-downward, or the mobile terminal is horizontally screen-downward; the mobile terminal is horizontally placed when the plane of the display screen of the mobile terminal is parallel to the ground; the mobile terminal is vertically screen-downward when the plane with the charging port in the mobile terminal is parallel to the ground and the display screen of the mobile terminal is in the vertical screen state; the mobile terminal is horizontally screen-downward when the plane of the display screen of the mobile terminal is perpendicular to the ground and the display screen of the mobile terminal is in the horizontal screen state;

[0018] Compare the acceleration change data with the preset acceleration threshold to generate a comparison result;

[0019] Judge whether the acceleration direction of the mobile terminal is vertically downward with respect to the ground according to the comparison result.

[0020] Optionally, in the method as described above, the acceleration change data includes an x-axis value, a y-axis value, and a z-axis value;

[0021] The comparing the acceleration change data with the preset acceleration threshold to generate a comparison result includes:

[0022] If the position form is that the mobile terminal is placed horizontally, compare the z-axis value in the acceleration change data with a preset acceleration threshold to generate a comparison result;

[0023] If the position form is that the mobile terminal is vertically screen-down, compare the absolute value of the y-axis value in the acceleration change data with a preset acceleration threshold to generate a comparison result;

[0024] If the position form is that the mobile terminal is horizontally screen-down, compare the absolute value of the x-axis value in the acceleration change data with a preset acceleration threshold to generate a comparison result.

[0025] Optionally, in the method as described above, the determining whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the comparison result includes:

[0026] Determine whether the comparison result is that the acceleration change data is greater than the preset acceleration threshold;

[0027] If it is determined that the comparison result is that the acceleration change data is greater than the preset acceleration threshold, determine that the acceleration direction of the mobile terminal is vertically downward to the ground.

[0028] Optionally, in the method as described above, before the mobile terminal switches from the closed dark state to the non-closed dark state, it further includes:

[0029] Obtain the occlusion data collected by the proximity sensor and the second ambient light brightness collected by the ambient light sensor at preset time intervals;

[0030] If the occlusion data is in the occluded state and the second ambient light brightness is greater than or less than the preset threshold, determine that the mobile terminal is in the closed dark state;

[0031] Obtain the occlusion data collected by the proximity sensor and the first ambient light brightness collected by the ambient light sensor in real time;

[0032] And when the proximity sensor is in the unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold, determine that the mobile terminal switches from the closed dark state to the non-closed dark state.

[0033] A second aspect of the embodiments of the present invention provides a mobile terminal drop warning device. The device is located in the mobile terminal, and the mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor, and a gyroscope. The device includes:

[0034] An acquisition module, configured to acquire the horizontal angle change data collected by the gyroscope, the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor when the mobile terminal switches from the closed dark state to the non-closed dark state; the closed dark state is that the proximity sensor is in an occluded state and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold; the non-closed dark state is that the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold; the position form is the orientation state of each surface of the position where the mobile terminal is located.

[0035] A first judgment module, configured to judge whether the mobile terminal is in a rotating state according to the horizontal angle change data.

[0036] A second judgment module, configured to, if it is determined that the mobile terminal is in a rotating state, judge whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data.

[0037] An alarm module, configured to, if it is determined that the acceleration direction of the mobile terminal is vertically downward to the ground, determine that the mobile terminal is in a falling state and alarm the user of the falling state.

[0038] Optionally, for the device as described above, the horizontal angle change data includes at least one horizontal angle change value.

[0039] The first judgment module is specifically configured to:

[0040] Judge whether the number of the horizontal angle change values is multiple; if it is determined that the number of the horizontal angle change values is multiple, then judge whether there are two adjacent horizontal angle change values among all the horizontal angle change values that are greater than a preset angle change threshold; the horizontal angle change values are arranged in the order of collection by the gyroscope; if it is determined that there are two adjacent horizontal angle change values that are greater than the preset angle change threshold, then determine that the mobile terminal is in a rotating state.

[0041] Optionally, for the device as described above, when the second judgment module judges whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data, it is specifically configured to:

[0042] Determine a corresponding preset acceleration threshold according to the position form; the position form is that the mobile terminal is placed horizontally, the mobile terminal is vertically screen-down, or the mobile terminal is horizontally screen-down; the mobile terminal being placed horizontally means that the plane of the display screen of the mobile terminal is parallel to the ground; the mobile terminal being vertically screen-down means that the plane of the mobile terminal with the charging port is parallel to the ground and the display screen of the mobile terminal is in the vertical screen state; the mobile terminal being horizontally screen-down means that the plane of the display screen of the mobile terminal is perpendicular to the ground and the display screen of the mobile terminal is in the horizontal screen state; compare the acceleration change data with the preset acceleration threshold to generate a comparison result; determine whether the acceleration direction of the mobile terminal is vertically downward according to the comparison result.

[0043] Optionally, for the device as described above, the acceleration change data includes an x-axis value, a y-axis value, and a z-axis value;

[0044] When the second determination module compares the acceleration change data with the preset acceleration threshold to generate a comparison result, it specifically is used for:

[0045] If the position form is that the mobile terminal is placed horizontally, then compare the z-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result; if the position form is that the mobile terminal is vertically screen-down, then compare the absolute value of the y-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result; if the position form is that the mobile terminal is horizontally screen-down, then compare the absolute value of the x-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result.

[0046] Optionally, for the device as described above, when the second determination module determines whether the acceleration direction of the mobile terminal is vertically downward according to the comparison result, it specifically is used for:

[0047] Determine whether the comparison result is that the acceleration change data is greater than the preset acceleration threshold; if it is determined that the comparison result is that the acceleration change data is greater than the preset acceleration threshold, then determine that the acceleration direction of the mobile terminal is vertically downward.

[0048] Optionally, for the device as described above, the mobile terminal drop warning device further includes:

[0049] A state switching module, configured to obtain occlusion data collected by a proximity sensor and a second ambient light brightness collected by an ambient light sensor at a preset time interval; if the occlusion data indicates an occluded state and the second ambient light brightness is greater than or less than a preset threshold, determine that the mobile terminal is in a closed dark state; obtain in real time the occlusion data collected by the proximity sensor and the first ambient light brightness collected by the ambient light sensor; and determine that the mobile terminal switches from the closed dark state to a non-closed dark state when the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold.

[0050] A third aspect of an embodiment of the present invention provides a mobile terminal, including: a processor, a memory, a proximity sensor, an ambient light sensor, an acceleration sensor, and a gyroscope; the processor is respectively connected to the memory, the proximity sensor, the ambient light sensor, the acceleration sensor, and the gyroscope;

[0051] The memory stores computer-executable instructions;

[0052] The proximity sensor is configured to determine whether the area corresponding to the proximity sensor in the mobile terminal is in an occluded state;

[0053] The ambient light sensor is configured to collect the ambient light brightness of the mobile terminal;

[0054] The acceleration sensor is configured to collect the acceleration of the mobile terminal;

[0055] The gyroscope is configured to collect the horizontal angle of the mobile terminal;

[0056] The processor executes the computer-executable instructions stored in the memory to implement the mobile terminal drop warning method according to any one of the first aspects.

[0057] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the mobile terminal drop warning method according to any one of the first aspects.

[0058] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the mobile terminal drop warning method according to any one of the first aspects.

[0059] A method, device, terminal, medium and product for warning of mobile terminal dropping provided by an embodiment of the present invention. The method is applied to a mobile terminal, and the mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor and a gyroscope. The method includes: when the mobile terminal switches from a closed dark state to a non-closed dark state, obtaining the horizontal angle change data collected by the gyroscope and the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor; the closed dark state means that the proximity sensor is in a blocked state, and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold; the non-closed dark state means that the proximity sensor is in an unblocked state or the first ambient light brightness is greater than or equal to the preset threshold; the position form is the orientation state of each surface of the position where the mobile terminal is located; judging whether the mobile terminal is in a rotating state according to the horizontal angle change data; if it is determined that the mobile terminal is in a rotating state, then judging whether the acceleration direction of the mobile terminal is vertically downward according to the position form and the acceleration change data; if it is determined that the acceleration direction of the mobile terminal is vertically downward, it is determined that the mobile terminal is in a dropping state, and warning the user of the dropping state. The mobile terminal dropping warning method of the embodiment of the present invention determines whether the mobile terminal drops by obtaining the data collected by the gyroscope and the acceleration sensor when the mobile terminal switches from the closed dark state to the non-closed dark state, and judging whether there is rotation and whether the acceleration is vertically downward based on the collected data. When it is determined that dropping occurs, warning the user of the dropping state, thereby improving the warning effect. At the same time, since the gyroscope and the acceleration sensor are both built-in sensors, the method of the embodiment of the present invention can realize dropping warning through the built-in sensors of the mobile terminal, and is applicable to the situation where the terminal drops in a pocket or a bag. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.

[0061] Figure 1 It is a scene diagram for implementing the mobile terminal dropping warning method of the embodiment of the present invention;

[0062] Figure 2 It is a flowchart of the mobile terminal dropping warning method provided by the present invention Figure 1 ;

[0063] Figure 3 It is a flowchart of the mobile terminal dropping warning method provided by the present invention Figure 2 ;

[0064] Figure 4a It is a schematic diagram of the mobile terminal with the vertical screen facing down for the mobile terminal dropping warning method provided by the present invention;

[0065] Figure 4b Schematic diagram of the mobile terminal with the screen facing downwards in the horizontal position for the mobile terminal dropping warning method provided by the present invention;

[0066] Figure 4c Schematic diagram of the mobile terminal placed horizontally for the mobile terminal dropping warning method provided by the present invention;

[0067] Figure 5 Structural schematic of the mobile terminal dropping warning device provided by the present invention Figure 1 ;

[0068] Figure 6 Structural schematic of the mobile terminal dropping warning device provided by the present invention Figure 2 ;

[0069] Figure 7 Structural schematic diagram of the mobile terminal provided by the present invention.

[0070] Through the above-mentioned drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0071] Here, the exemplary embodiments will be described in detail, and the examples are shown in the 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 implementation manners described in the following exemplary embodiments do not represent all the implementation manners consistent with the present invention. On the contrary, they are merely examples of the devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0072] Next, the technical solutions of the present invention will be described in detail with specific embodiments. The following several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Next, the embodiments of the present invention will be described with reference to the drawings.

[0073] To clearly understand the technical solution of this application, the solutions of the prior art will be introduced in detail first. As more personal services are carried out on mobile terminals, more and more important personal data is stored on mobile terminals, such as mobile phones. The current main mobile terminal anti-loss technology is to establish a communication connection with the mobile phone through other anti-loss accessories (such as Bluetooth headsets) after the mobile phone is lost, and set a lost unlock password. The mobile phone sends real-time location information to the anti-loss accessory. The anti-loss accessory monitors in real time according to the real-time location information of the mobile phone and determines whether the distance between the anti-loss accessory and the mobile phone is greater than a preset distance. If the distance between the anti-loss accessory and the mobile phone is greater than the preset distance, the mobile phone activates the anti-loss program and the anti-loss accessory gives an alarm. After receiving the alarm, the user can cancel the alarm by operating, or determine the location of the mobile phone according to the alarm.

[0074] The above method requires relying on peripheral accessories, and due to the existence of the preset distance, the warning effect for dropping from pockets or bags is poor.

[0075] Therefore, aiming at the problems that the mobile phone anti-loss method in the prior art relies on peripheral accessories and the warning effect for dropping from pockets or bags is poor, the inventor found in the research that to solve this problem, the required data can be collected through the sensors built in the mobile terminal, and it is determined whether the mobile terminal has dropped when the mobile terminal switches from the closed dark state to the non-closed dark state, so as to realize the dropping warning of the mobile terminal.

[0076] Specifically, when the mobile terminal switches from the closed dark state to the non-closed dark state, the horizontal angle change data collected by the gyroscope, the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor are obtained. The closed dark state means that the proximity sensor is in the blocked state and the first ambient light brightness collected by the ambient light sensor is less than the preset threshold. The non-closed dark state means that the proximity sensor is in the unblocked state or the first ambient light brightness is greater than or equal to the preset threshold. The position form is the orientation state of each surface of the position where the mobile terminal is located. It is judged whether the mobile terminal is in a rotating state according to the horizontal angle change data. If it is determined that the mobile terminal is in a rotating state, it is judged whether the acceleration direction of the mobile terminal is vertically downward according to the position form and the acceleration change data. If it is determined that the acceleration direction of the mobile terminal is vertically downward, it is determined that the mobile terminal is in a dropped state and a dropped state warning is given to the user.

[0077] Based on the above creative discovery, the inventor proposed the technical solution of this application.

[0078] Next, the application scenario of the mobile terminal dropping warning method provided by the embodiments of the present invention will be introduced. Such as Figure 1As shown in the figure, 1 is a mobile terminal and 2 is a pocket. Initially, the mobile terminal 1 is located in the pocket 2. Subsequently, due to a breakage appearing below the pocket 2, the mobile terminal 1 slides out of the pocket 2, and the sliding direction is the downward arrow of the dotted line in the figure.

[0079] In this embodiment, when the mobile terminal 1 is located in the pocket 2, the proximity sensor of the mobile terminal is in an occluded state, and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold. Therefore, the mobile terminal 1 is in a closed and dark state. When the mobile terminal 1 slides downward from the pocket 2, the proximity sensor of the mobile terminal is in an unoccluded state or the first ambient light brightness collected by the ambient light sensor is greater than or equal to the preset threshold. At this time, the mobile terminal 1 switches from the closed and dark state to the non-closed and dark state. The mobile terminal 1 performs the following process:

[0080] ① Obtain the horizontal angle change data collected by the gyroscope and the position form of the mobile terminal, as well as the acceleration change data collected by the acceleration sensor. Among them, the position form is the orientation state of each surface of the position where the mobile terminal is located. In the figure, it is the position form where the mobile terminal is in a horizontal screen downward state.

[0081] ② Determine whether it rotates and whether the acceleration direction is vertically downward to the ground: Determine whether the mobile terminal is in a rotating state according to the horizontal angle change data. If it is determined that the mobile terminal is in a rotating state, then determine whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data.

[0082] ③ If it is determined that it rotates and the acceleration direction is vertically downward to the ground, then give an alarm: If it is determined that the acceleration direction of the mobile terminal is vertically downward to the ground, then determine that the mobile terminal is in a falling state and give an alarm to the user about the falling state. The specific alarm method can be to emit an alarm sound, send an alarm message to another terminal of the user, etc.

[0083] The embodiments of the present invention will be introduced below in conjunction with the accompanying drawings of the specification.

[0084] Figure 2 is a schematic flow chart of the mobile terminal falling alarm method provided by the present invention Figure 1 as Figure 2 shown, in this embodiment, the execution subject of the embodiment of the present invention is a mobile terminal falling alarm device, and this mobile terminal falling alarm device can be integrated in a mobile terminal, such as a smart phone, a tablet computer, etc. The mobile terminal of this embodiment includes: a proximity sensor, an ambient light sensor, an acceleration sensor, and a gyroscope. Then, the mobile terminal falling alarm method provided by this embodiment includes the following steps:

[0085] Step S101: When the mobile terminal switches from the closed dark state to the non-closed dark state, obtain the horizontal angle change data collected by the gyroscope, the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor. Here, the closed dark state means that the proximity sensor is in the blocked state and the first ambient light brightness collected by the ambient light sensor is less than the preset threshold. The non-closed dark state means that the proximity sensor is in the unblocked state or the first ambient light brightness is greater than or equal to the preset threshold. The position form is the orientation state of each surface of the position where the mobile terminal is located.

[0086] In this embodiment, the proximity sensor is used to determine whether the area corresponding to the proximity sensor in the mobile terminal is in the blocked state, the ambient light sensor is used to collect the ambient light brightness of the mobile terminal, the acceleration sensor is used to collect the acceleration of the mobile terminal, and the gyroscope is used to collect the horizontal angle of the mobile terminal.

[0087] The application scenarios of the closed dark state can be being in the pocket, being in the bag, etc. The bag can be a backpack, a leather bag, etc. In the above application scenarios, the mobile terminal is in an environment with low light brightness and the proximity sensor is in the blocked state. The preset threshold can be set according to the actual application, and this embodiment does not limit it.

[0088] The horizontal angle change data is the continuously collected horizontal angles and the change values between every two of them. The position form of the mobile terminal is that the mobile terminal is placed horizontally, the mobile terminal is vertically screen-down, or the mobile terminal is horizontally screen-down, which is used to represent the orientation state of each surface of the position where the mobile terminal is located.

[0089] In this embodiment, the proximity sensor, the ambient light sensor, the acceleration sensor, and the gyroscope can establish a communication relationship with the mobile terminal drop warning device through a pre-registered method, so that the mobile terminal drop warning device can obtain the data collected by the proximity sensor, the ambient light sensor, the acceleration sensor, and the gyroscope. When specifically interacting with each sensor, data acquisition and other processing can be performed by calling the underlying sensor change processing function in the mobile terminal. At the same time, the data reported by the underlying sensor data acquisition function can also be listened to. When data is reported, the reported data is obtained. For the gyroscope, the gyroscope data can be obtained by using the terminal screen display function.

[0090] Step S102: Determine whether the mobile terminal is in a rotating state according to the horizontal angle change data.

[0091] In this embodiment, the horizontal angle change data can be calculated by the underlying gyroscope angle calculation function. Since the horizontal angle change data can reflect the horizontal change situation of the mobile terminal, it is possible to determine whether the mobile terminal is in a rotating state based on the horizontal angle change data.

[0092] Step S103: if it is determined that the mobile terminal is in a rotating state, it is determined whether the acceleration direction of the mobile terminal is vertically facing downward according to the position shape and acceleration change data.

[0093] Since there are many types of position forms, when the acceleration direction is vertical to the ground and facing downward, the corresponding acceleration change data is different for different position forms, because it is possible to determine whether the acceleration direction of the mobile terminal is vertical to the ground and facing downward based on the position form and the acceleration change data.

[0094] Step S104: If it is determined that the acceleration direction of the mobile terminal is vertically downward, it is determined that the mobile terminal is in a falling state, and a user is alerted to the falling state.

[0095] In this embodiment, when the acceleration direction of the mobile terminal is vertical to the ground and facing downward, and the mobile terminal rotates, it means that the mobile terminal is in a state of moving downward and rotating at the same time, so it can be determined that the mobile terminal is in a falling state. When in a falling state, an alarm notification can be broadcast or sent by information. After receiving the alarm, the user can unlock and release the alarm by fingerprint recognition, face recognition, password recognition, etc.

[0096] The embodiment of the present invention provides a mobile terminal drop alarm method, device, terminal, medium and product. The method is applied to a mobile terminal. The mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor and a gyroscope. The method includes: when the mobile terminal switches from a closed dark state to a non-closed dark state, horizontal angle change data collected by the gyroscope and the position form of the mobile terminal, as well as acceleration change data collected by the acceleration sensor are obtained. The closed dark state is that the proximity sensor is in a blocked state, and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold. The non-closed dark state is that the proximity sensor is in an unblocked state or the first ambient light brightness is greater than or equal to a preset threshold. The position form is the orientation state of each face of the mobile terminal. Whether the mobile terminal is in a rotating state is determined according to the horizontal angle change data. If it is determined that the mobile terminal is in a rotating state, whether the acceleration direction of the mobile terminal is vertically facing downward is determined according to the position form and the acceleration change data. If it is determined that the acceleration direction of the mobile terminal is vertically facing downward, it is determined that the mobile terminal is in a falling state, and the user is warned of the falling state.

[0097] The mobile terminal dropping warning method according to the embodiment of the present invention obtains the data collected by the gyroscope and the acceleration sensor when the mobile terminal switches from the enclosed dark state to the non-enclosed dark state, and determines whether rotation occurs and whether the acceleration is vertically downward with respect to the ground based on the collected data, so as to determine whether the mobile terminal drops. When it is determined that a drop has occurred, a warning of the dropping state is sent to the user, thereby improving the warning effect. At the same time, since both the gyroscope and the acceleration sensor are built-in sensors, the method according to the embodiment of the present invention can implement dropping warning through the built-in sensors of the mobile terminal, and is applicable to the situation where the terminal drops in a pocket or a bag.

[0098] Figure 3 is a flowchart illustration of the mobile terminal dropping warning method provided by the present invention Figure 2 , as Figure 3 shown, the mobile terminal dropping warning method provided in this embodiment includes the following steps:

[0099] Step S201: When the mobile terminal switches from the enclosed dark state to the non-enclosed dark state, obtain the horizontal angle change data collected by the gyroscope, the position and shape of the mobile terminal, and the acceleration change data collected by the acceleration sensor.

[0100] The implementation manner of S201 in this embodiment is similar to that of S101 in the previous embodiment, and will not be described in detail here.

[0101] Optionally, in this embodiment, before S201, the state of the mobile terminal can also be monitored in real time, specifically as follows:

[0102] Obtain the occlusion data collected by the proximity sensor and the second ambient light brightness collected by the ambient light sensor at a preset time interval.

[0103] If the occlusion data indicates an occluded state and the second ambient light brightness is greater than or less than a preset threshold, it is determined that the mobile terminal is in the enclosed dark state.

[0104] Real-time obtain the occlusion data collected by the proximity sensor and the first ambient light brightness collected by the ambient light sensor.

[0105] And when the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold, it is determined that the mobile terminal switches from the enclosed dark state to the non-enclosed dark state.

[0106] In this embodiment, when the occlusion data indicates an occluded state and the second ambient light brightness is greater than or less than a preset threshold, it is determined that the mobile terminal is in a closed dark state. At this time, the real-time monitoring mode is enabled to monitor the state of the mobile terminal in real time. When the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold, it is determined that the mobile terminal has switched from the closed dark state to a non-closed dark state. The second ambient light brightness and the first ambient light brightness both refer to the ambient light brightness, and are only used for descriptive distinction.

[0107] When the mobile terminal is in a non-closed dark state, it is suspected of falling out of a pocket or a bag. Therefore, further determination is required through subsequent steps.

[0108] In this embodiment, at the bottom layer of the mobile terminal, the proximity event "near" can be used to represent that the mobile terminal is in a closed dark state, and the far event "far" can be used to represent a non-closed dark state. When in the near event, the proximity window display function at the bottom layer can be called to enter the monitoring mode. When the far event is detected, the proximity display removal function is called, and the subsequent judgment process for whether it is a fall is carried out.

[0109] Step S202, determine whether the horizontal angle change value is multiple. If so, execute step S203; if not, execute step S201.

[0110] In this embodiment, the horizontal angle change data includes at least one horizontal angle change value. When the horizontal angle change value is multiple, it means that the mobile terminal is not in a normal moving state and may have experienced a sudden fall.

[0111] Step S203, determine whether there are two adjacent horizontal angle change values among all the horizontal angle change values that are greater than the preset angle change threshold. If so, execute step S204; if not, execute step S201.

[0112] In this embodiment, the horizontal angle change values are arranged in the order of gyroscope acquisition. If two adjacent horizontal angle change values are both greater than the preset angle change threshold, it means that the mobile terminal has undergone a continuous displacement change, and it can be determined that the mobile terminal is in a rotating state. The preset angle change threshold can be set according to actual applications, and this embodiment does not limit it.

[0113] Step S204, determine that the mobile terminal is in a rotating state.

[0114] Step S205: Determine the corresponding preset acceleration threshold according to the position form. The position form includes the mobile terminal being placed horizontally, the mobile terminal with the vertical screen facing downwards, or the mobile terminal with the horizontal screen facing downwards. When the mobile terminal is placed horizontally, the plane of the display screen of the mobile terminal is parallel to the ground. When the mobile terminal has the vertical screen facing downwards, the plane of the mobile terminal where the charging port is located is parallel to the ground, and the display screen of the mobile terminal is in the vertical screen state. When the mobile terminal has the horizontal screen facing downwards, the plane of the display screen of the mobile terminal is perpendicular to the ground, and the display screen of the mobile terminal is in the horizontal screen state.

[0115] When the mobile terminal has the vertical screen facing downwards, as shown in Figure 4a the figure. In the figure, a mobile phone is exemplarily used as the mobile terminal. The plane where the charging port is located in the figure is parallel to the ground, while the plane of the display screen is perpendicular to the ground.

[0116] When the mobile terminal has the horizontal screen facing downwards, as shown in Figure 4b the figure. In the figure, a mobile phone is exemplarily used as the mobile terminal. The plane of the display screen of the mobile terminal in the figure is perpendicular to the ground, and the display screen of the mobile terminal is in the horizontal screen state.

[0117] When the mobile terminal is placed horizontally, as shown in Figure 4c the figure. The figure shows the front view. Figure 4c The position form of the mobile terminal in Figure 4b is the same as that after the position form of the mobile terminal in

[0118] is flipped. Among them, the plane of the display screen of the mobile terminal is parallel to the ground, and the plane where the charging port is located is perpendicular to the ground.

[0119] Optionally, in this embodiment, the acceleration change data includes the x-axis value, the y-axis value, and the z-axis value.

[0120] Specifically, S206 is as follows:

[0121] If the position form is the mobile terminal being placed horizontally, then compare the z-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result.

[0122] If the position form is the mobile terminal with the vertical screen facing downwards, then compare the absolute value of the y-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result.

[0123] If the position form is the mobile terminal with the horizontal screen facing downwards, then compare the absolute value of the x-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result.

[0124] The preset acceleration threshold can be set according to the actual application, and this embodiment does not limit this. For example, Figure 4cWhen the mobile terminal, such as a mobile phone, is placed flat, the xyz values output by the acceleration sensor are generally (0, 0, 10), that is, the preset acceleration threshold can be 10. If it is detected that the z-axis suddenly becomes greater than 10 (no need to add the three axes, only compare the z-axis), it can be considered that the acceleration direction is downward, that is, the mobile terminal falls horizontally downward.

[0125] For example Figure 4a When the mobile terminal, such as a mobile phone, is placed vertically with the charging port facing down, the xyz values output by the acceleration sensor are generally (0, 10, 0), that is, the preset acceleration threshold can be 10. If it is detected that the y-axis suddenly becomes greater than 10 (no need to add the three axes, only compare the y-axis), it can be considered that the acceleration direction is downward, that is, the mobile phone falls with the charging port facing down. When the mobile phone is placed vertically with the earpiece facing down, the xyz values output by the acceleration sensor are generally (0, -10, 0). If it is detected that the y-axis suddenly becomes less than -10, it can be considered that the acceleration direction is downward, that is, the mobile phone falls with the earpiece facing down.

[0126] For example Figure 4b When the mobile terminal, such as a mobile phone, is placed horizontally with the left side facing down, the xyz values output by the acceleration sensor are generally (10, 0, 0), that is, the preset acceleration threshold can be 10. If it is detected that the x-axis suddenly becomes greater than 10 (no need to add the three axes, only compare the x-axis), it can be considered that the acceleration direction is downward, that is, the mobile phone falls with the left side facing down. When the mobile phone is placed horizontally with the right side facing down, the xyz values output by the acceleration sensor are (-10, 0, 0). If it is detected that the x-axis suddenly becomes less than -10, it can be considered that the acceleration direction is downward, that is, the mobile phone falls with the right side facing down.

[0127] Step S207: Determine whether the acceleration direction of the mobile terminal is vertically downward according to the comparison result.

[0128] Optionally, in this embodiment, S207 can be specifically:

[0129] Determine whether the comparison result is that the acceleration change data is greater than the preset acceleration threshold.

[0130] If it is determined that the comparison result is that the acceleration change data is greater than the preset acceleration threshold, it is determined that the acceleration direction of the mobile terminal is vertically downward.

[0131] Since when the mobile terminal is placed horizontally, the z-axis value in the acceleration change data is compared with the preset acceleration threshold, when the mobile terminal is placed vertically downward, the absolute value of the y-axis value in the acceleration change data is compared with the preset acceleration threshold, and when the mobile terminal is placed horizontally downward, the absolute value of the x-axis value in the acceleration change data is compared with the preset acceleration threshold. Therefore, for all three cases, it only needs to be determined that the comparison result is that the acceleration change data is greater than the preset acceleration threshold.

[0132] Step S208: If it is determined that the acceleration direction of the mobile terminal is vertically downward to the ground, it is determined that the mobile terminal is in a falling state, and the user is alerted to the falling state.

[0133] In this embodiment, the implementation manner of S208 is similar to that of S104 in the previous embodiment, and will not be elaborated here.

[0134] Figure 5 Structural schematic of the mobile terminal falling alarm device provided by the present invention Figure 1 , such as Figure 5 shown. In this embodiment, the mobile terminal falling alarm device 300 is located in the mobile terminal. The mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor, and a gyroscope. The mobile terminal falling alarm device 300 includes:

[0135] An acquisition module 301, configured to acquire the horizontal angle change data collected by the gyroscope, the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor when the mobile terminal switches from a closed dark state to a non-closed dark state. The closed dark state means that the proximity sensor is in an occluded state, and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold. The non-closed dark state means that the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold. The position form is the orientation state of each surface of the position where the mobile terminal is located.

[0136] A first judgment module 302, configured to judge whether the mobile terminal is in a rotating state according to the horizontal angle change data.

[0137] A second judgment module 303, configured to, if it is determined that the mobile terminal is in a rotating state, judge whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data.

[0138] An alarm module 304, configured to, if it is determined that the acceleration direction of the mobile terminal is vertically downward to the ground, determine that the mobile terminal is in a falling state, and alert the user to the falling state.

[0139] The mobile terminal falling alarm device provided in this embodiment can execute Figure 2 the technical solution of the method embodiment shown, and its implementation principle and technical effect are similar to those of Figure 2 the method embodiment shown, and will not be elaborated one by one here.

[0140] Figure 6 Structural schematic of the mobile terminal falling alarm device provided by the present invention Figure 2 , such as Figure 6As shown, based on the mobile terminal drop warning device provided in the previous embodiment, the mobile terminal drop warning device provided by the present invention further refines the mobile terminal drop warning device. To distinguish it from the description in the previous embodiment, the mobile terminal drop warning device in this embodiment is described using the mobile terminal drop warning device 400, which specifically includes:

[0141] Optionally, in this embodiment, the horizontal angle change data includes at least one horizontal angle change value.

[0142] The first judgment module 302 is specifically used for:

[0143] Judge whether the horizontal angle change values are multiple. If it is determined that the horizontal angle change values are multiple, then judge whether there are two adjacent horizontal angle change values among all the horizontal angle change values that are greater than the preset angle change threshold. The horizontal angle change values are arranged in the order of gyroscope acquisition. If it is determined that there are two adjacent horizontal angle change values that are greater than the preset angle change threshold, it is determined that the mobile terminal is in a rotating state.

[0144] Optionally, in this embodiment, when the second judgment module 303 judges whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data, it is specifically used for:

[0145] Determine the corresponding preset acceleration threshold according to the position form. The position form is that the mobile terminal is placed horizontally, the mobile terminal is vertically screen-down, or the mobile terminal is horizontally screen-down. The mobile terminal being placed horizontally means that the plane of the mobile terminal display screen is parallel to the ground. The mobile terminal being vertically screen-down means that the plane of the mobile terminal with the charging port is parallel to the ground and the mobile terminal display screen is in the vertical screen state. The mobile terminal being horizontally screen-down means that the plane of the mobile terminal display screen is perpendicular to the ground and the mobile terminal display screen is in the horizontal screen state. Compare the acceleration change data with the preset acceleration threshold to generate a comparison result. Judge whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the comparison result.

[0146] Optionally, in this embodiment, the acceleration change data includes an x-axis value, a y-axis value, and a z-axis value.

[0147] When the second judgment module 303 compares the acceleration change data with the preset acceleration threshold to generate a comparison result, it is specifically used for:

[0148] If the position form is that the mobile terminal is placed horizontally, compare the z-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result. If the position form is that the mobile terminal is vertically screen-down, compare the absolute value of the y-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result. If the position form is that the mobile terminal is horizontally screen-down, compare the absolute value of the x-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result.

[0149] Optionally, in this embodiment, when the second determination module 303 determines whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the comparison result, it is specifically configured to:

[0150] Determine whether the comparison result is that the acceleration change data is greater than the preset acceleration threshold. If it is determined that the comparison result is that the acceleration change data is greater than the preset acceleration threshold, determine that the acceleration direction of the mobile terminal is vertically downward to the ground.

[0151] Optionally, in this embodiment, the mobile terminal drop warning device 400 further includes:

[0152] A state switching module 401, configured to obtain the occlusion data collected by the proximity sensor and the second ambient light brightness collected by the ambient light sensor at a preset time interval. If the occlusion data is in an occluded state and the second ambient light brightness is greater than or less than the preset threshold, determine that the mobile terminal is in a closed dark state. Real-time obtain the occlusion data collected by the proximity sensor and the first ambient light brightness collected by the ambient light sensor. And when the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold, determine that the mobile terminal switches from the closed dark state to the non-closed dark state.

[0153] The mobile terminal drop warning device provided in this embodiment can execute Figures 2 - 4c the technical solutions of the method embodiment shown, and its implementation principle and technical effects are similar to those of Figures 2 - 4c the method embodiment shown, and will not be elaborated herein one by one.

[0154] According to the embodiments of the present invention, the present invention also provides a mobile terminal, a computer-readable storage medium, and a computer program product.

[0155] As Figure 7 shown, Figure 7 is a schematic structural diagram of the mobile terminal provided by the present invention. The mobile terminal is intended for various forms of movable electronic devices, such as tablet computers, smart phones, etc. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described herein and / or claimed.

[0156] As Figure 7As shown, the mobile terminal includes: a processor 501, a memory 502, a proximity sensor 503, an ambient light sensor 504, an acceleration sensor 505, and a gyroscope 506. Each component is interconnected using different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor 501 can process instructions executed within the electronic device.

[0157] The memory 502 is the non-transitory computer-readable storage medium provided by the present invention. Among them, the memory stores instructions executable by at least one processor, so that at least one processor executes the mobile terminal drop warning method provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions, and the computer instructions are used to cause a computer to execute the mobile terminal drop warning method provided by the present invention.

[0158] The proximity sensor 503 is used to determine whether the area corresponding to the proximity sensor 503 in the mobile terminal is in an occluded state. The ambient light sensor 504 is used to collect the ambient light brightness of the mobile terminal. The acceleration sensor 505 is used to collect the acceleration of the mobile terminal. The gyroscope 506 is used to collect the horizontal angle of the mobile terminal.

[0159] The memory 502, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the mobile terminal drop warning method in the embodiments of the present invention (for example, the acquisition module 301, the first judgment module 302, the second judgment module 303, and the warning module 304 shown in the appendix). The processor 501 executes various functional applications and data processing of the mobile terminal by running the non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the mobile terminal drop warning method in the above method embodiments. Figure 5

[0160] At the same time, this embodiment also provides a computer product. When the instructions in the computer product are executed by the processor of the mobile terminal, the mobile terminal can execute the mobile terminal drop warning method of the above embodiment.

[0161] Those skilled in the art will readily think of other implementation schemes of the embodiments of the present invention after considering the specification and practicing the invention disclosed in this application. The present invention aims to cover any variations, uses, or adaptive changes of the embodiments of the present invention, and these variations, uses, or adaptive changes follow the general principles of the embodiments of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the embodiments of the present invention. The specification and the embodiments are only regarded as exemplary, and the true scope and spirit of the embodiments of the present invention are pointed out by the claims.

[0162] It should be understood that the embodiments of the present invention are not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the embodiments of the present invention is only limited by the appended claims.

Claims

1. A method for warning of a mobile terminal falling, characterized in that, the method is applied to a mobile terminal, and the mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor and a gyroscope. The method includes: When the mobile terminal switches from a closed dark state to a non-closed dark state, obtaining the horizontal angle change data collected by the gyroscope and the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor; the closed dark state means that the proximity sensor is in an occluded state, and the first ambient light brightness collected by the ambient light sensor is less than a preset threshold; the non-closed dark state means that the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold; the position form is the facing state of each surface of the position where the mobile terminal is located; Judging whether the mobile terminal is in a rotating state according to the horizontal angle change data; If it is determined that the mobile terminal is in a rotating state, then judging whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data; If it is determined that the acceleration direction of the mobile terminal is vertically downward to the ground, it is determined that the mobile terminal is in a falling state, and the user is warned of the falling state.

2. The method according to claim 1, characterized in that, the horizontal angle change data includes at least one horizontal angle change value; The judging whether the mobile terminal is in a rotating state according to the horizontal angle change data includes: Judging whether the number of the horizontal angle change values is multiple; If it is determined that the number of the horizontal angle change values is multiple, then judging whether there are two adjacent horizontal angle change values among all the horizontal angle change values that are both greater than a preset angle change threshold; the horizontal angle change values are arranged in the order of collection by the gyroscope; If it is determined that there are two adjacent horizontal angle change values that are both greater than the preset angle change threshold, it is determined that the mobile terminal is in a rotating state.

3. The method according to claim 2, characterized in that, The judging whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data includes: Determining a corresponding preset acceleration threshold according to the position form; the position form is that the mobile terminal is horizontally placed, the mobile terminal is vertically screen-down or the mobile terminal is horizontally screen-down; the mobile terminal being horizontally placed means that the plane of the display screen of the mobile terminal is parallel to the ground; the mobile terminal being vertically screen-down means that the plane of the mobile terminal where the charging port is located is parallel to the ground, and the display screen of the mobile terminal is in a vertical screen state; the mobile terminal being horizontally screen-down means that the plane of the display screen of the mobile terminal is perpendicular to the ground, and the display screen of the mobile terminal is in a horizontal screen state; Comparing the acceleration change data with the preset acceleration threshold to generate a comparison result; Judging whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the comparison result.

4. The method according to claim 3, characterized in that, the acceleration change data includes an x-axis value, a y-axis value and a z-axis value; Comparing the acceleration change data with a preset acceleration threshold to generate a comparison result, including: If the position form is that the mobile terminal is placed horizontally, comparing the z-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result; If the position form is that the mobile terminal is vertically screen-down, comparing the absolute value of the y-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result; If the position form is that the mobile terminal is horizontally screen-down, comparing the absolute value of the x-axis value in the acceleration change data with the preset acceleration threshold to generate a comparison result.

5. The method according to claim 4, wherein, Judging whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the comparison result, including: Judging whether the comparison result is that the acceleration change data is greater than the preset acceleration threshold; If it is determined that the comparison result is that the acceleration change data is greater than the preset acceleration threshold, determining that the acceleration direction of the mobile terminal is vertically downward to the ground.

6. The method according to any one of claims 1 to 5, wherein, Before the mobile terminal switches from the closed dark state to the non-closed dark state, further including: Obtaining the occlusion data collected by the proximity sensor and the second ambient light brightness collected by the ambient light sensor at a preset time interval; If the occlusion data is in an occluded state and the second ambient light brightness is less than the preset threshold, determining that the mobile terminal is in the closed dark state; Real-time obtaining the occlusion data collected by the proximity sensor and the first ambient light brightness collected by the ambient light sensor; And when the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold, determining that the mobile terminal switches from the closed dark state to the non-closed dark state.

7. A mobile terminal drop warning device, wherein, The device is located in the mobile terminal, the mobile terminal is provided with a proximity sensor, an ambient light sensor, an acceleration sensor and a gyroscope, and the device includes: An acquisition module, configured to acquire the horizontal angle change data collected by the gyroscope, the position form of the mobile terminal, and the acceleration change data collected by the acceleration sensor when the mobile terminal switches from the closed dark state to the non-closed dark state; the closed dark state is that the proximity sensor is in an occluded state and the first ambient light brightness collected by the ambient light sensor is less than the preset threshold; the non-closed dark state is that the proximity sensor is in an unoccluded state or the first ambient light brightness is greater than or equal to the preset threshold; the position form is the orientation state of each surface of the position where the mobile terminal is located; A first judgment module, configured to judge whether the mobile terminal is in a rotating state according to the horizontal angle change data; A second judgment module, configured to, if it is determined that the mobile terminal is in a rotating state, judge whether the acceleration direction of the mobile terminal is vertically downward to the ground according to the position form and the acceleration change data; An alarm module, which is configured to determine that the mobile terminal is in a falling state if it is determined that the acceleration direction of the mobile terminal is vertically downward to the ground, and alarm the user of the falling state.

8. A mobile terminal, characterized in that, it includes: a processor, a memory, a proximity sensor, an ambient light sensor, an acceleration sensor, and a gyroscope; the processor is respectively connected to the memory, the proximity sensor, the ambient light sensor, the acceleration sensor, and the gyroscope; the memory stores computer-executable instructions; the proximity sensor is configured to determine whether the area corresponding to the proximity sensor in the mobile terminal is in an occluded state; the ambient light sensor is configured to collect the ambient light brightness of the mobile terminal; the acceleration sensor is configured to collect the acceleration of the mobile terminal; the gyroscope is configured to collect the horizontal angle of the mobile terminal; the processor executes the computer-executable instructions stored in the memory to implement the mobile terminal falling alarm method according to any one of claims 1 to 6.

9. 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 mobile terminal falling alarm method according to any one of claims 1 to 6.

10. A computer program product, including a computer program, characterized in that, when the computer program is executed by a processor, it implements the mobile terminal falling alarm method according to any one of claims 1 to 6.