Terminal drop detection method and electronic device

By detecting the resultant acceleration and rate of change of acceleration of the mobile terminal, the problem of misjudgment in rotational drop detection is solved, enabling more accurate drop event identification and user alerts, and providing detailed drop information.

CN117135255BActive Publication Date: 2026-03-17BEIJING HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing technologies are prone to misjudgment when detecting mobile terminals falling, especially when they are rotated during a drop, leading to inaccurate detection results.

Method used

The determination of whether a fall has occurred is achieved by detecting the resultant acceleration and the rate of change of resultant acceleration of the equipment, avoiding reliance on the state of weightlessness. Accelerometers are used to collect data and process it to determine whether a fall has occurred.

Benefits of technology

It improves the accuracy of drop detection for mobile terminals, can identify rotational drops and promptly alert users, and provides detailed drop information for analysis and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117135255B_ABST
    Figure CN117135255B_ABST
Patent Text Reader

Abstract

This application provides a terminal drop detection method and an electronic device. In this method, the electronic device detects the resultant acceleration value and the rate of change of resultant acceleration of the device at a preset frequency. If the resultant acceleration value and the rate of change of resultant acceleration meet preset conditions, it can be determined that the device has experienced a drop and contact with the ground. This eliminates the need to detect whether a drop event has occurred through a state of weightlessness, preventing situations where a rotating drop goes undetected, avoiding misjudgments, and improving the accuracy of the device drop detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart terminal technology, and in particular to a terminal drop detection method and electronic device. Background Technology

[0002] With the development and popularization of mobile terminals, they are becoming increasingly integrated into people's daily lives. For example, mobile phones have become an indispensable communication tool in people's lives.

[0003] In daily use of mobile devices, drops are inevitable. The screen or other components may be damaged by drops, leading to a growing demand for drop detection for mobile devices. Therefore, improving the accuracy of mobile device drop detection results is an urgent problem to be solved. Summary of the Invention

[0004] To address the aforementioned technical problems, embodiments of this application provide a terminal drop detection method and an electronic device. In this method, it is not necessary to detect whether a drop event has occurred through a state of weightlessness; instead, it detects the drop event based on the device's resultant acceleration and the rate of change of that acceleration. This avoids situations where a rotating drop goes undetected, preventing misjudgments and improving the accuracy of the drop detection results.

[0005] In a first aspect, embodiments of this application provide a terminal drop detection method. The method includes: an electronic device acquiring its current resultant acceleration value at a preset frequency; if the current resultant acceleration value is greater than a first preset threshold, the electronic device counting a first number of resultant acceleration values ​​greater than a second preset threshold and a second number of resultant acceleration change rates greater than a third preset threshold within a first time period; wherein the end time of the first time period is the current time; if both the first and second numbers are greater than a fourth preset threshold, the electronic device determines that a drop event has occurred.

[0006] In this way, electronic devices do not need to detect whether a drop event has occurred through a state of weightlessness, and there will be no situation where the device rotates and falls without being detected, thus avoiding the problem of misjudgment of detection results and improving the accuracy of device drop detection results.

[0007] According to the first aspect, the rate of change of the resultant acceleration can be the value of the first derivative of the resultant acceleration.

[0008] According to the first aspect, or any implementation of the first aspect above, after the electronic device determines that a drop-to-ground event has occurred, the method further includes: the electronic device taking the current time as the drop-to-ground time of the drop-to-ground event; and the electronic device determining the drop start time of the drop-to-ground event based on the drop-to-ground time.

[0009] In this way, electronic devices can not only know whether a terminal has been dropped and touched the ground, but also obtain detailed information about the drop and touch event.

[0010] According to the first aspect, or any implementation of the first aspect above, the electronic device determines the start time of the drop-to-ground event based on the drop-to-ground contact time, including: the electronic device sequentially taking a detection time before the drop-to-ground contact time as the time to be confirmed; if the rate of change of the terminal's combined acceleration at the time to be confirmed is greater than a fifth preset threshold, and there is a terminal combined acceleration value greater than a sixth preset threshold within a second time period, then the electronic device takes the time to be confirmed as the start time of the drop-to-ground event; wherein, the start time of the second time period is the time to be confirmed.

[0011] Based on the first aspect, or any implementation of the first aspect above, the fall duration and fall height of the terminal are calculated based on the fall start time and the fall contact time.

[0012] In this way, electronic devices can not only know whether a terminal has been dropped and touched the ground, but also obtain detailed information about the drop and touch event, which helps the R&D team analyze the prototype.

[0013] According to the first aspect, or any implementation of the first aspect above, after the electronic device determines that the terminal has fallen and touched the ground, the method further includes: the electronic device displaying first information, the first information being used to remind the user of the terminal falling.

[0014] In this way, when the electronic device detects that it has fallen and hit the ground, it can promptly remind the user.

[0015] According to the first aspect, or any implementation of the first aspect above, after the electronic device determines that the terminal has fallen and touched the ground, the method further includes: the electronic device sending an instruction message to an associated device with which it has established a communication connection, so that the associated device reminds the user of the terminal fall according to the instruction message.

[0016] In this way, when an electronic device detects that it has fallen to the ground, it can promptly remind the user, which is especially useful in situations where the device has fallen without the user's knowledge.

[0017] According to the first aspect, or any of the above implementations of the first aspect, the electronic device is a mobile phone, and the associated device is a smartwatch.

[0018] According to the first aspect, or any implementation of the first aspect above, after the electronic device determines that a drop and contact event has occurred, the method further includes: the electronic device sending relevant information about the device drop and contact event to the cloud server so that the cloud server stores the relevant information.

[0019] The relevant information for equipment drop events can include the start time of the drop, the time of impact, the duration of the drop, and the height of the drop.

[0020] In this way, the cloud server stores relevant information about the drop and impact events of electronic devices. These phenomena can be used for research on the distribution of device drop data, end-user profiling, and can also serve as a valid basis for device failure analysis.

[0021] Secondly, embodiments of this application provide an electronic device. The electronic device includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when executed by the one or more processors, the electronic device performs the following steps: the electronic device acquires its current resultant acceleration value at a preset frequency; if the current resultant acceleration value is greater than a first preset threshold, the electronic device counts a first number of resultant acceleration values ​​greater than a second preset threshold and a second number of resultant acceleration change rates greater than a third preset threshold within a first time period; wherein the end time of the first time period is the current time; if both the first and second numbers are greater than a fourth preset threshold, the electronic device determines that a fall-to-ground event has occurred.

[0022] According to the second aspect, the rate of change of the resultant acceleration can be the value of the first derivative of the resultant acceleration.

[0023] According to the second aspect, or any implementation of the second aspect above, when the computer program is executed by one or more processors, the electronic device performs the following steps: after the electronic device determines that a drop-to-ground event has occurred, the electronic device takes the current time as the drop-to-ground time of the drop-to-ground event; the electronic device determines the drop start time of the drop-to-ground event based on the drop-to-ground time.

[0024] According to the second aspect, or any implementation of the second aspect above, when the computer program is executed by one or more processors, the electronic device performs the following steps: the electronic device sequentially takes a detection time before the moment of impact with the ground as the moment to be confirmed; if the rate of change of the terminal's combined acceleration at the moment to be confirmed is greater than a fifth preset threshold, and there is a terminal combined acceleration value greater than a sixth preset threshold within the second time period, then the electronic device takes the moment to be confirmed as the start time of the fall event; wherein, the start time of the second time period is the moment to be confirmed.

[0025] According to the second aspect, or any implementation of the second aspect above, when the computer program is executed by one or more processors, the electronic device performs the following steps: calculating the duration and height of the fall based on the start time of the fall and the time of contact with the ground.

[0026] According to the second aspect, or any implementation thereof, when the computer program is executed by one or more processors, the electronic device performs the following steps: after the electronic device determines that a drop event has occurred, the electronic device displays first information to alert the user of the terminal drop.

[0027] According to the second aspect, or any implementation thereof, when the computer program is executed by one or more processors, the electronic device performs the following steps: after the electronic device determines that a terminal has fallen to the ground, the electronic device sends an instruction message to an associated device with which it has established a communication connection, so that the associated device reminds the user of the terminal fall according to the instruction message.

[0028] According to the second aspect, or any implementation of the second aspect above, the electronic device is a mobile phone, and the associated device is a smartwatch.

[0029] According to the second aspect, or any implementation thereof, when a computer program is executed by one or more processors, the electronic device performs the following steps: after the electronic device determines that a drop-to-ground event has occurred, the electronic device sends relevant information about the device drop-to-ground event to a cloud server so that the cloud server stores the relevant information.

[0030] The second aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the second aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0031] Thirdly, embodiments of this application provide a computer-readable storage medium. This computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the terminal drop detection method of the first aspect and any one thereof.

[0032] The third aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the third aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0033] Fourthly, embodiments of this application provide a computer program product, including a computer program that, when run, causes a computer to execute a terminal drop detection method as described in the first aspect or any one of the first aspects.

[0034] The fourth aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the fourth aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0035] Fifthly, this application provides a chip including a processing circuit and transceiver pins. The transceiver pins and the processing circuit communicate with each other via an internal connection path. The processing circuit executes a terminal drop detection method as described in the first aspect or any one thereof, to control the receiving pin to receive signals and to control the transmitting pin to transmit signals.

[0036] The fifth aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the fifth aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here. Attached Figure Description

[0037] Figure 1a This is a schematic diagram illustrating an application scenario;

[0038] Figure 1b This is a schematic diagram illustrating the acceleration change of a mobile terminal as an example.

[0039] Figure 2a This is a schematic diagram illustrating an application scenario;

[0040] Figure 2b This is a schematic diagram illustrating the acceleration change of a mobile terminal as an example.

[0041] Figure 3 A schematic diagram of the hardware structure of an electronic device as an example;

[0042] Figure 4 A schematic diagram of the software structure of an electronic device as an example;

[0043] Figure 5 This is an example of a module interaction diagram;

[0044] Figure 6 A schematic flowchart illustrating the terminal drop detection method provided in this application embodiment;

[0045] Figure 7 A schematic diagram illustrating the process for determining the moment of impact and the moment of initiation of the fall, provided in an embodiment of this application;

[0046] Figure 8 This is a schematic diagram illustrating an application scenario;

[0047] Figure 9 This is a schematic diagram illustrating an application scenario;

[0048] Figure 10 This is a schematic diagram illustrating an application scenario;

[0049] Figures 11a-11b This is a schematic diagram illustrating one application scenario. Detailed Implementation

[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0051] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0052] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0053] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0054] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0055] Mobile devices inevitably experience drops during user operation, and detailed information about these drops is invaluable to device manufacturers. Specifically, information such as whether a drop occurred, the duration and height of the drop, is extremely helpful for product development teams analyzing prototype issues, especially for new form factor devices (such as foldable phones) where historical data is scarce. Furthermore, collecting detailed drop event data also contributes to the optimization and evolution of drop test standards. Therefore, drop event detection for mobile devices is absolutely essential.

[0056] Mobile terminals (such as mobile phones) are equipped with accelerometers, which detect data to identify the terminal's motion state. A stationary accelerometer measures an acceleration value of 1G (where G is the acceleration due to gravity). When the mobile terminal's motion changes, the acceleration value measured by the accelerometer changes. Therefore, the mobile terminal can determine whether a drop has occurred based on the acceleration value measured by the accelerometer.

[0057] The following explanation uses a mobile phone as an example.

[0058] In one situation, such as Figure 1a As shown, the phone is in free fall. Regardless of the direction of the fall, the acceleration measured by the accelerometer during the phone's free fall is 0G. (Refer to...) Figure 1b Before the phone was dropped, the accelerometer measured an acceleration of 1G; during the drop, the accelerometer measured an acceleration of 0G; when the phone was impacted upon landing, the accelerometer showed an abnormal peak in acceleration; and when the phone came to rest on the ground, the acceleration returned to 1G.

[0059] In another case, such as Figure 2a As shown, the phone rotates (e.g., spins) during the fall. During this rotational fall, the acceleration value measured by the accelerometer will not be 0G. Referring to 2b, before the phone falls, the accelerometer measures an acceleration of 1G; during the fall, the acceleration value measured by the accelerometer is not 0G, but may reach 3G or even higher; at the moment of impact upon landing, the acceleration value measured by the accelerometer also shows an abnormal peak; when the phone comes to rest on the ground, the acceleration value measured by the accelerometer returns to 1G. The acceleration value measured by the accelerometer during the phone's rotation during the fall is caused by centripetal acceleration and centrifugal acceleration. Specifically, when the phone rotates during the fall, it is subjected to centripetal force (the force that keeps the object at the center of rotation) and centrifugal force (the force that moves the object away from the center of rotation).

[0060] Currently, drop detection algorithms for mobile phones typically use an accelerometer in the phone to detect the phone's acceleration in each direction (hereinafter referred to as triaxial acceleration) and the resultant acceleration of the three axes. If both the triaxial acceleration and the resultant acceleration are close to zero, it can be determined that the phone may have been dropped. However, if the phone rotates during the drop (e.g., spins), the algorithm may miss the rotational drop, leading to a misjudgment.

[0061] To address the aforementioned issues, this application provides a terminal drop detection method. This method can detect both rotating and free-falling drops, thereby improving the accuracy of mobile terminal drop detection results.

[0062] The terminal devices mentioned in the embodiments of this application may include electronic devices such as mobile phones, tablets, wearable devices, and handheld game consoles.

[0063] like Figure 3 The diagram shown is a structural schematic of the electronic device 100. Optionally, the electronic device 100 can be referred to as a terminal or a terminal device; this application does not impose any limitation. It should be noted that the structural schematic of the electronic device 100 is applicable to the aforementioned mobile phone. Taking a mobile phone as an example, the electronic device 100 can be a candybar phone or a foldable screen phone; this application does not impose any limitation on the embodiments. It should be understood that... Figure 3 The electronic device 100 shown is only one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. Figure 3 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0064] Electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include pressure sensors, gyroscope sensors, accelerometers, temperature sensors, motion sensors, barometric pressure sensors, magnetic sensors, distance sensors, proximity sensors, fingerprint sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0065] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0066] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0067] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.

[0068] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0069] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0070] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0071] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0072] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0073] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.

[0074] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.

[0075] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0076] Electronic device 100 implements display functions through a GPU, display screen 194, and application processor. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0077] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0078] Taking electronic device 100 as a foldable screen device as an example, display screen 194 may include a first display screen and a second display screen. Accordingly, electronic device 100 implements display functions through a GPU, the first display screen, the second display screen, and an application processor. For example, the first display screen serves as the inner screen of electronic device 100 for displaying interfaces, images, videos, etc. The second display screen serves as the outer screen of electronic device 100 for displaying user-preset display styles such as images, videos, or text. The inner screen of electronic device 100 can be configured as a foldable display screen, referred to as a foldable screen. The foldable screen can be a single, integrally molded flexible display screen, or a spliced ​​display screen composed of multiple flexible display screens and hinges between each pair of flexible display screens, or a spliced ​​display screen composed of multiple rigid screens and hinges between each pair of rigid screens. This application embodiment does not limit this.

[0079] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0080] Camera 193 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0081] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to perform data storage functions.

[0082] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121, such as enabling the electronic device 100 to implement the terminal drop detection method in this embodiment. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0083] In this embodiment, the program storage area can be used to store the program of the terminal drop detection method, and the data storage area can be used to store the terminal's three-axis acceleration and the resultant acceleration of the three-axis acceleration detected by the acceleration sensor.

[0084] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0085] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0086] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A. In some embodiments, the electronic device 100 may be equipped with multiple speakers 170A.

[0087] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0088] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0089] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0090] A pressure sensor is used to sense pressure signals and can convert these signals into electrical signals. In some embodiments, the pressure sensor may be located on the display screen 194. The electronic device 100 may also calculate the position of a touch based on the detection signal from the pressure sensor.

[0091] A gyroscope sensor can be used to determine the motion attitude of an electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor.

[0092] An accelerometer can detect the magnitude of acceleration of an electronic device 100 in various directions (typically three axes). When the electronic device 100 is stationary, the accelerometer can detect the magnitude and direction of gravity. Accelerometers can also be used to identify the posture of electronic devices, and are applied in applications such as screen orientation switching and pedometers.

[0093] For example, the acceleration sensor may be integrated on the printed circuit board where the processor 110 is located.

[0094] In this embodiment of the application, the accelerometer can output the collected acceleration data to the processor 110. The processor 110 processes the acceleration data to obtain the terminal combined acceleration value, and determines whether the electronic device 100 has experienced a drop event based on the terminal combined acceleration value, especially whether the electronic device 100 has experienced a rotational drop event based on the terminal combined acceleration value.

[0095] When the electronic device 100 is a foldable screen device (such as a foldable screen phone), at least two accelerometers can be built into the foldable screen device. One accelerometer can be used to determine the magnitude of the acceleration of the first display unit of the foldable screen in various directions, and another accelerometer can be used to determine the magnitude of the acceleration of the second display unit of the foldable screen in various directions. Accordingly, in this embodiment, each accelerometer can output the collected acceleration data to the processor 110. The processor 110 processes the acceleration data to obtain the terminal combined acceleration value, and determines whether the electronic device 100 has experienced a drop event based on the terminal combined acceleration value, particularly whether the electronic device 100 has experienced a rotational drop event.

[0096] A touch sensor, also known as a "touch panel," can be located on the display screen 194. The touch sensor and display screen 194 together form a touchscreen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. It then transmits the detected touch operation to the application processor to determine the type of touch event.

[0097] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0098] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.).

[0099] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0100] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.

[0101] Figure 4This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0102] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android Runtime and system libraries, and the kernel layer.

[0103] The application layer can include a series of application packages.

[0104] like Figure 4 As shown, the application package can include applications such as camera, gallery, WLAN, and Bluetooth. The application package can also include applications such as calling, calendar, maps, navigation, music, video, and SMS.

[0105] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0106] like Figure 4 As shown, the application framework layer may include a window manager, content provider, view system, resource manager, notification manager, drop detection service, etc.

[0107] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0108] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0109] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0110] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0111] The notification manager allows applications to display notifications in the status bar. These can be used to deliver announcements or notifications, and can disappear automatically after a short pause without user interaction. For example, the notification manager can be used to notify users of download completion or message alerts.

[0112] In this embodiment of the application, the drop detection service is used to detect whether an electronic device has experienced a drop event, specifically, it can be used to detect whether an electronic device has experienced a rotational drop event.

[0113] The Android Runtime consists of core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.

[0114] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0115] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0116] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0117] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0118] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0119] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0120] A 2D graphics engine is a graphics engine for 2D drawing.

[0121] The kernel layer is the layer between hardware and software. It includes at least display drivers, audio drivers, Wi-Fi drivers, and sensor drivers. The hardware includes at least a processor, display screen, Wi-Fi module, and sensors (such as an accelerometer).

[0122] Understandable, Figure 4The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer layers than illustrated, and each layer may include more or fewer components; this application does not impose any limitations.

[0123] It is understood that, in order to implement the terminal drop detection method in the embodiments of this application, the electronic device includes hardware and / or software modules that perform various functions. Based on the algorithm steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0124] This application provides a terminal drop detection method. In this method, instead of detecting a drop event based on the terminal's weightlessness, the method detects the drop event based on changes in acceleration values ​​detected by an internal accelerometer. This prevents situations where a rotating drop goes undetected, avoiding misjudgments and improving the accuracy of drop detection results.

[0125] The execution subject of the terminal drop detection method provided in this application embodiment can be the aforementioned terminal device, or it can be a functional module and / or functional entity within the terminal device capable of implementing the drop detection method. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any limitations. The following explanation uses the execution of the terminal drop detection method by a drop detection service as an example.

[0126] like Figure 5 The diagram shows the interaction between each module. (Refer to...) Figure 5 The process of the terminal drop detection method provided in this application embodiment specifically includes:

[0127] S110, the accelerometer outputs the collected data to the sensor driver.

[0128] An accelerometer, installed inside the terminal, collects the magnitude of the terminal's acceleration along the x, y, and z axes in real time and sends the collected data to the sensor driver for data processing.

[0129] S120, the sensor driver determines the final acceleration value of the terminal based on the data collected by the accelerometer and outputs the final acceleration value to the drop detection service.

[0130] In this embodiment, an acceleration data processing algorithm can be integrated into the sensor driver. The sensor driver can then calculate the final acceleration value of the terminal based on this algorithm. For example, if the terminal is a candybar device, the sensor driver can calculate the final acceleration value based on data collected by one accelerometer. As another example, if the terminal is a foldable screen device, the sensor driver can calculate the final acceleration value based on data collected by multiple accelerometers.

[0131] The sensor driver sends the determined terminal acceleration value to the drop detection service so that the drop detection service can determine whether a drop event has occurred based on the terminal's acceleration value.

[0132] The processing of data collected by the accelerometer by the sensor driver can be referred to in existing technologies and will not be elaborated here.

[0133] S130, the drop detection service determines whether a drop event has occurred on the terminal based on changes in the terminal's combined acceleration value.

[0134] The drop detection service detects changes in the terminal's combined acceleration value at a preset frequency based on the sensor-driven reported value, and determines whether a drop event has occurred based on the changes in the terminal's combined acceleration value.

[0135] Figure 6 A flowchart illustrating the terminal drop event detection method provided in an embodiment of this application is shown. Figure 6 As shown, the specific process of this terminal drop event detection method includes:

[0136] S1301, the drop detection service obtains the current acceleration value of the terminal at a preset frequency.

[0137] In one possible implementation, the drop detection service stores all terminal combined acceleration values ​​reported by the sensor driver and reads the terminal's current combined acceleration value at a preset frequency. That is, the drop detection service reads the terminal's current combined acceleration value every certain period of time. Here, the terminal's current acceleration value can be understood as the terminal's most recently reported combined acceleration value by the sensor driver, or as the terminal's most recently stored combined acceleration value by the drop detection service.

[0138] For example, the preset frequency can be once every few hundred milliseconds, but this embodiment does not limit the preset frequency.

[0139] S1302, the drop detection service determines whether the resultant acceleration value at the current moment is greater than the first preset threshold. If yes, then execute S1303; otherwise, execute S1301.

[0140] Since the terminal will be impacted when it lands, and the resultant acceleration value of the terminal when it is impacted is relatively large, the drop detection service can make a preliminary judgment on whether the terminal has been dropped based on whether the resultant acceleration value is too large.

[0141] If the current combined acceleration value of the terminal is not greater than the first preset threshold, the drop detection service can determine that the terminal has not experienced a drop event, and then continue to detect whether the terminal has an excessively large combined acceleration value at a preset frequency.

[0142] If the current resultant acceleration value of the terminal is greater than the first preset threshold, the drop detection service needs to further combine the terminal's resultant acceleration value before the current moment to determine whether a drop event has occurred.

[0143] S1303, the drop detection service statistics terminal counts the first number of resultant acceleration values ​​greater than the second preset threshold and the second number of resultant acceleration first derivative values ​​greater than the third preset threshold within a first time period; wherein, the end time of the first time period is the current time and the duration is the first preset duration.

[0144] The first derivative, a calculus term, is used to represent the rate of change of a function. In this embodiment, the first derivative of the resultant acceleration represents the rate of change of the resultant acceleration. For example, if the letter 'a' represents the resultant acceleration, then 'a' can represent the first derivative of the resultant acceleration. Accordingly, the value of 'a(t0)' represents the terminal resultant acceleration value at time t0, and the value of 'a'(t0)' corresponds to the value of the first derivative of the resultant acceleration at time t0.

[0145] For example, after receiving the terminal resultant acceleration value reported by the sensor driver, the drop detection service calculates the first derivative value of the resultant acceleration and stores these first derivative values ​​of the resultant acceleration along with the corresponding terminal resultant acceleration value.

[0146] For example, the sensor driver not only calculates the resultant acceleration value of the terminal, but also calculates the corresponding first derivative value of the resultant acceleration, and reports the resultant acceleration value of the terminal and the corresponding first derivative value of the resultant acceleration together to the drop detection service.

[0147] It should be noted that in this embodiment, the first derivative of acceleration is used to represent the rate of change of the resultant acceleration. If other variables exist that can be used to represent the rate of change of the resultant acceleration, then the value of these variables can also be used as the basis for the drop detection service to determine whether a drop event has occurred on the terminal. This embodiment does not limit this.

[0148] When the drop detection service detects that the resultant acceleration value at the current moment is greater than a first preset threshold, the drop detection service statistically analyzes the resultant acceleration values ​​and the first derivative values ​​of the resultant acceleration over a period of time prior to that moment (such as the first time period mentioned in S1303). The drop detection service determines whether the resultant acceleration values ​​of each terminal detected during that time period are greater than a second preset threshold, and whether the corresponding first derivative values ​​of the resultant acceleration are greater than a third preset threshold, and statistically analyzes the number of terminal resultant acceleration values ​​and the number of first derivative values ​​of the resultant acceleration that meet the judgment conditions.

[0149] Wherein, the first quantity represents the number of resultant acceleration values ​​greater than the second preset threshold within the first time period, and the second quantity represents the number of resultant acceleration first derivative values ​​greater than the third preset threshold within the first time period. For example, if there are n1 resultant acceleration values ​​greater than the second preset threshold within the first time period, then the first quantity is n1; if there are n2 resultant acceleration first derivative values ​​greater than the third preset threshold within the first time period, then the first quantity is n2.

[0150] S1304, the drop detection service determines whether the first quantity and the second quantity are both greater than the fourth preset threshold. If yes, then execute S1305; otherwise, execute S1301.

[0151] The drop detection service determines whether the number of resultant acceleration values ​​greater than the second preset threshold (i.e., the first number) and the number of resultant acceleration first derivative values ​​greater than the third preset threshold (i.e., the second number) within the first time period are both greater than the fourth preset threshold.

[0152] If either the first or second quantity is not greater than the fourth preset threshold, the drop detection service can determine that the terminal has not experienced a drop event at the current moment. If both the first and second quantities are greater than the fourth preset threshold, the drop detection service can determine that a drop event has occurred at the current moment.

[0153] S1305, The drop detection service determines that a drop and ground contact event has occurred at the current moment.

[0154] In this embodiment, the drop detection service execution S1301 to S1305 can be specifically used to determine whether the terminal has experienced a rotational drop and ground contact event.

[0155] In one optional implementation, the drop detection service executes the detection algorithm corresponding to S1301 to S1305 to detect whether the terminal has experienced a rotational drop and contact with the ground, and the drop detection service uses other detection algorithms to detect whether the terminal has experienced a free fall and contact with the ground.

[0156] S1306, The drop detection service determines the moment of impact and the moment of initiation of a drop event.

[0157] Once the drop detection service determines that a terminal has experienced a drop and contact event, it can further determine the moment of contact and the start time of the drop. As the names suggest, the moment of contact refers to the moment when the terminal hits a supporting surface (such as the ground), and the start time of the drop refers to the moment when the terminal begins to fall.

[0158] Figure 7 This illustration shows a schematic diagram of the process for determining the moment of impact and the moment of initiation of the fall, as provided in an embodiment of this application.

[0159] like Figure 7 As shown, the process for determining the moment of impact and the moment of fall in a fall-to-ground event includes:

[0160] S13061, The drop detection service uses the current moment as the moment of impact for this drop-to-ground event.

[0161] In this embodiment, the drop detection service acquires the resultant acceleration value of the terminal at a certain preset frequency at a certain moment. If the resultant acceleration value is greater than a first preset threshold, and the resultant acceleration value in the first time period before that moment is greater than a first number of times the second preset threshold is exceeded, and the first derivative of the resultant acceleration value is greater than a second number of times the third preset threshold is exceeded, both are greater than a fourth preset threshold, then the drop detection service can confirm that the terminal has experienced a drop and touch-the-ground event, and can use this moment as the drop and touch-the-ground moment. That is, if the drop detection service executes S1301 to S1305 to confirm that the terminal has experienced a drop and touch-the-ground event, then the moment corresponding to the resultant acceleration value acquired in S1301 can be used as the drop and touch-the-ground moment of this drop and touch-the-ground event.

[0162] S13062, The drop detection service sequentially uses each detection moment before the moment of impact as the current moment to be confirmed.

[0163] Next, the drop detection service can determine the start time of the drop event by going back from the moment of impact.

[0164] The drop detection service uses each detection moment before the moment of impact as a pending fall start moment, which can be temporarily referred to as a pending confirmation moment. The drop detection service arranges each detection moment before the moment of impact in descending order of its distance from the current moment (i.e., the moment of impact), and then sequentially uses each detection moment as the current pending confirmation moment to determine whether it is the start moment of this fall event.

[0165] It should be noted that each detection time is determined according to the preset frequency used by the drop detection service, that is, the time corresponding to the combined acceleration values ​​of each terminal stored.

[0166] S13063, the drop detection service determines whether the first derivative of the terminal's combined acceleration at the current moment to be confirmed is greater than the fifth preset threshold. If yes, then execute S13064; otherwise, execute S13062.

[0167] One of the conditions that must be met at the start of the drop is that the first derivative of the terminal acceleration at that moment is greater than the fifth preset threshold. Therefore, the drop detection service first determines whether the first derivative of the terminal acceleration at the current moment to be confirmed is greater than the fifth preset threshold.

[0168] If the first derivative of the terminal acceleration at the current moment to be confirmed is not greater than the fifth preset threshold, then the current moment to be confirmed is not the start time of the fall event. In this case, the fall detection service will continue to determine whether the next detection time is the start time of the fall in reverse order of the detection time.

[0169] If the first derivative of the terminal acceleration at the current moment to be confirmed is greater than the fifth preset threshold, then further judgment will be made on whether the current moment to be confirmed is the start of the fall.

[0170] S13064, The drop detection service determines a second time period corresponding to the current time to be confirmed, wherein the start time of the second time period is the current time to be confirmed, and the duration is a second preset duration.

[0171] Assuming the current time to be confirmed is t1, the drop detection service determines a time period corresponding to t1, that is, a time period starting from t1 (i.e., the second time period). Then, the drop detection service can determine whether t1 is the start time of this drop-to-ground event based on the terminal's combined acceleration value within this time period.

[0172] S13065, the drop detection service determines whether there is a terminal acceleration value greater than the sixth preset threshold during the second time period. If yes, then execute S13066; otherwise, execute S13062.

[0173] The drop detection service statistically analyzes the combined acceleration values ​​of each terminal within the second time period corresponding to the current time to be confirmed (e.g., time t1), and determines whether there is a terminal acceleration value greater than the sixth preset threshold. If there is a terminal combined acceleration value greater than the sixth preset threshold, then the current time to be confirmed can be used as the drop start time of this drop-to-ground event.

[0174] If there is no terminal acceleration value greater than the sixth preset threshold, then the current moment to be confirmed cannot be used as the start moment of this drop-to-ground event. In this case, the drop detection service still needs to continue to determine whether the next detection time is the start moment of the drop by following the reverse order of the detection times.

[0175] S13066, The drop detection service uses the current unconfirmed time as the drop start time.

[0176] In other words, by analyzing the various detection moments before the moment of impact, taking moment t1 as an example, if the first derivative of the terminal acceleration at moment t1 is greater than the fifth preset threshold, and there is a terminal acceleration value greater than the sixth preset threshold within a time period starting from moment t1, then moment t1 can be taken as the start moment of the fall event.

[0177] S1307, Drop detection service calculates the drop height of the terminal.

[0178] After determining the fall start time and fall contact time of the fall event, the fall detection service can calculate the terminal's fall height based on the fall start time and fall contact time.

[0179] Assuming that time t1 is the start time of the fall and time t2 is the time of the fall, then the duration of the fall is t = t2 - t1.

[0180] Therefore, we can conclude that the drop height of the terminal is H = 1 / 2gt. 2 Where g is the acceleration due to gravity.

[0181] At this point, the drop detection service can obtain relevant information about the drop event, including: the start time of the drop, the time of the fall to the ground, the duration of the drop, and the height of the fall.

[0182] It should be noted that this embodiment does not limit the values ​​of the first preset threshold, the second preset threshold, the third preset threshold, the fourth preset threshold, the fifth preset threshold, and the sixth preset threshold.

[0183] In one possible application scenario, when the mobile phone detects a drop event, it displays an information prompt box 201 on its current display screen to indicate the result of the drop event detection. For example, as shown... Figure 8 As shown, the information prompt box 201 can display information such as "Your phone may have been dropped" or "Please check the integrity of your phone." For example, the information prompt box 201 can also display "After-sales service center information is xxx," to push nearby after-sales service centers to the user. Figure 8The example shows the phone's current display interface as the main screen. However, the phone's display interface for the information prompt box 201 can also be any application interface, lock screen interface, Always On Display (AOD) interface, etc. This embodiment does not limit this.

[0184] In another possible application scenario, when a mobile phone detects a drop event, it sends relevant information about the drop event to a cloud server (or the cloud). For example, see... Figure 9 The drop detection service in the mobile phone monitors in real time whether a drop event has occurred. Upon detection, it reports relevant information about the event, such as the start time, impact time, duration, and height of the drop, to a cloud server for storage. In this application scenario, this information can be used for research on terminal drop data distribution, user profiling, and as a valuable basis for terminal failure analysis.

[0185] In this application scenario, when the mobile phone detects a drop event, it can not only send relevant information about the drop event to the cloud server, but also simultaneously display an information prompt box 201 on its current display screen to indicate the result of the drop event detection. For an explanation of the information prompt box displayed on the mobile phone screen, please refer to the foregoing; it will not be repeated here.

[0186] In another possible application scenario, when the mobile phone detects a drop event, it sends the drop event detection result to other terminal devices with which it has established a communication connection. For example, see... Figure 10 When a phone detects a drop, it sends the result to a smartwatch with which it has a communication connection, alerting the user to the fall. In one possible scenario, the phone slips out of the user's pocket and falls to the ground unnoticed. In this case, the phone detects the drop and sends the result to the smartwatch, providing a timely notification.

[0187] Reference Figure 11aWhen the phone sends the detection result of a drop to the ground to the smartwatch with which it has established a communication connection, the smartwatch alerts the wearer to the phone drop. The alert message 301 can be displayed on the screen, such as "Your phone may have been dropped," or "Please check the integrity of your phone," etc. If the alert message is too long, it can be scrolled on the smartwatch; this embodiment does not limit this. Simultaneously, the smartwatch can also vibrate and / or ring to enhance the effectiveness of the phone drop alert. (Refer to...) Figure 11b The smartwatch can also display a 302 notification message, such as "After-sales service center information is xxx", to push nearby after-sales service centers to the user.

[0188] In this application scenario, when the mobile phone detects a drop event, it can not only send the drop event detection result to other terminal devices with which it has established a communication connection, but also simultaneously display an information prompt box 201 on its current display screen to indicate the terminal's drop event detection result. For an explanation of the information prompt box displayed on the mobile phone screen, please refer to the foregoing; it will not be repeated here.

[0189] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the terminal drop detection method in the above embodiment.

[0190] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the terminal drop detection method in the above embodiment.

[0191] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to execute the terminal drop detection method in the above method embodiments.

[0192] In this embodiment, the electronic devices (such as mobile phones), computer storage media, computer program products, or chips are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0193] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0194] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0195] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A terminal drop detection method, characterized by, The method comprises: acquiring a current moment combined acceleration value of the terminal at a preset frequency; if the current moment combined acceleration value is greater than a first preset threshold, counting a first number of combined acceleration values greater than a second preset threshold and a second number of first-order derivative values of the combined acceleration greater than a third preset threshold within a first time period, wherein the end moment of the first time period is the current moment; if the first number and the second number are both greater than a fourth preset threshold, determining that the terminal has experienced a drop-to-ground event; taking the current moment as a drop-to-ground moment of the drop-to-ground event; sequentially taking one detection moment before the drop-to-ground moment as a to-be-confirmed moment; if the first-order derivative value of the combined acceleration of the terminal at the to-be-confirmed moment is greater than a fifth preset threshold and there is a terminal combined acceleration value greater than a sixth preset threshold within a second time period, taking the to-be-confirmed moment as a drop-starting moment of the drop-to-ground event, wherein the start moment of the second time period is the to-be-confirmed moment; and determining the to-be-confirmed moment according to the preset frequency.

2. The method of claim 1, wherein: according to the drop-starting moment and the drop-to-ground moment, calculating a drop duration and a drop height of the terminal.

3. The method according to claim 1 or 2, characterized in that, In the step of determining that the terminal has experienced a drop-to-ground event, the method further comprises: displaying first information by the terminal, wherein the first information is used for reminding a user of terminal drop.

4. The method according to claim 1 or 2, characterized in that, In the step of determining that the terminal has experienced a drop-to-ground event, the method further comprises: sending indication information to an associated device in communication connection with the terminal drop, so that the associated device reminds the user of terminal drop according to the indication information.

5. The method of claim 4, wherein, The terminal is a mobile phone, and the associated device is a smart watch.

6. The method of claim 1 or 2, wherein, In the step of determining that the terminal has experienced a drop-to-ground event, the method further comprises: sending related information of the terminal drop-to-ground event to a cloud server, so that the cloud server stores the related information.

7. An electronic device, comprising: The method comprises: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the terminal drop detection method of any one of claims 1-6.

8. A computer readable storage medium comprising a computer program, characterized in that, When the computer programs run on the electronic device, the electronic device executes the terminal drop detection method of any one of claims 1-6.

Citation Information

Patent Citations

  • Drop detection method and terminal device

    CN110072010A