[go: up one dir, main page]

CN108810250A - fall detection method and related product - Google Patents

fall detection method and related product Download PDF

Info

Publication number
CN108810250A
CN108810250A CN201810414932.9A CN201810414932A CN108810250A CN 108810250 A CN108810250 A CN 108810250A CN 201810414932 A CN201810414932 A CN 201810414932A CN 108810250 A CN108810250 A CN 108810250A
Authority
CN
China
Prior art keywords
mobile terminal
speed
time
state
falling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810414932.9A
Other languages
Chinese (zh)
Inventor
张强
郑灿杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810414932.9A priority Critical patent/CN108810250A/en
Publication of CN108810250A publication Critical patent/CN108810250A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

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

Abstract

The embodiment of the application discloses a fall detection method and a related product. The method comprises the following steps: when the mobile terminal is detected to be switched from an overweight state to a weightlessness state, determining a first speed of the mobile terminal; determining the free fall time of the mobile terminal according to the first speed; and calculating the target falling height of the mobile terminal according to the free falling time. The embodiment of the application is beneficial to improving the accuracy and the reliability of the falling height detected when the mobile terminal falls.

Description

跌落检测方法及相关产品Drop detection method and related products

技术领域technical field

本申请涉及移动终端技术领域,具体涉及跌落检测方法及相关产品。This application relates to the technical field of mobile terminals, in particular to a drop detection method and related products.

背景技术Background technique

随着智能手机等移动终端的大量普及应用,智能手机能够支持的应用越来越多,功能越来越强大,智能手机向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。用户在使用该智能手机的过程中,由于某些原因可能会滑落智能手机,导致智能手机跌落损坏,因此需要对智能手机的跌落高度进行检测从而确定跌落原因以及跌落保护措施。With the popularization and application of mobile terminals such as smartphones, more and more applications can be supported by smartphones, and the functions are becoming more and more powerful. Smartphones are developing in a diversified and personalized direction, becoming an indispensable electronic product in users' lives. . In the process of using the smartphone, the user may slip the smartphone due to some reasons, resulting in damage to the smartphone. Therefore, it is necessary to detect the drop height of the smartphone to determine the cause of the drop and the fall protection measures.

发明内容Contents of the invention

本申请实施例提供了跌落检测方法及相关产品,可以在移动终端跌落时提高检测到的跌落高度的准确性。The embodiment of the present application provides a drop detection method and related products, which can improve the accuracy of the detected drop height when the mobile terminal is dropped.

第一方面,本申请实施例提供了一种跌落检测方法,应用于移动终端,所述方法包括:In the first aspect, the embodiment of the present application provides a drop detection method applied to a mobile terminal, and the method includes:

在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度;When detecting that the mobile terminal is switched from an overweight state to a weightless state, determining a first speed of the mobile terminal;

根据所述第一速度确定所述移动终端的自由落体时间;determining the free fall time of the mobile terminal according to the first speed;

根据所述自由落体时间计算所述移动终端的目标跌落高度。Calculate the target drop height of the mobile terminal according to the free fall time.

第二方面,本申请实施例提供了一种跌落检测方法,包括检测单元、确定单元和处理单元,In the second aspect, the embodiment of the present application provides a drop detection method, including a detection unit, a determination unit, and a processing unit,

所述检测单元,用于在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度;The detection unit is configured to determine the first speed of the mobile terminal when it is detected that the mobile terminal is switched from an overweight state to a weightless state;

所述确定单元,用于根据所述第一速度确定所述移动终端的自由落体时间;The determining unit is configured to determine the free fall time of the mobile terminal according to the first speed;

所述处理单元,用于根据所述自由落体时间计算所述移动终端的目标跌落高度。The processing unit is configured to calculate the target drop height of the mobile terminal according to the free fall time.

第三方面,本申请实施例提供一种移动终端,包括处理器、存储器以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be processed by the executed by a computer, and the program includes instructions for executing the steps in any one of the methods in the first aspect of the embodiments of the present application.

第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面或第二方面任一方法中所描述的部分或全部步骤。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables the computer to execute the For example, some or all of the steps described in any method of the first aspect or the second aspect.

可以看出,本申请实施例中,移动终端首先在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度,其次,根据所述第一速度确定所述移动终端的自由落体时间,最后,根据所述自由落体时间计算所述移动终端的目标跌落高度。由于移动终端在发生跌落时可能会存在不是直接向下跌落的情况,在检测到移动终端处于超重状态时确定移动终端向上的第一速度,从而可确定移动终端跌落到最高位置时的时间进而确定自由落体的时间,计算得到移动终端的跌落高度,有利于提高检测到的跌落高度的准确性和可靠性。It can be seen that in the embodiment of the present application, the mobile terminal first determines the first speed of the mobile terminal when it detects that the mobile terminal is switched from an overweight state to a weightless state, and secondly, determines the first speed of the mobile terminal according to the first speed. The free fall time of the mobile terminal, and finally, calculate the target drop height of the mobile terminal according to the free fall time. Since the mobile terminal may not fall directly downward when it falls, the first upward speed of the mobile terminal can be determined when it is detected that the mobile terminal is in an overweight state, so that the time when the mobile terminal falls to the highest position can be determined and then determined The free-fall time is calculated to obtain the drop height of the mobile terminal, which is beneficial to improving the accuracy and reliability of the detected drop height.

附图说明Description of drawings

下面将对本申请实施例所涉及到的附图作简单地介绍。The drawings involved in the embodiments of the present application will be briefly introduced below.

图1是本申请实施例提供的一种跌落检测方法的流程示意图;FIG. 1 is a schematic flow diagram of a drop detection method provided in an embodiment of the present application;

图2是本申请实施例提供的另一种跌落检测方法的流程示意图;Fig. 2 is a schematic flow chart of another drop detection method provided by the embodiment of the present application;

图3是本申请实施例提供的另一种跌落检测方法的流程示意图;Fig. 3 is a schematic flow chart of another drop detection method provided by the embodiment of the present application;

图4是本申请实施例提供的一种移动终端的结构示意图;FIG. 4 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;

图5是本申请实施例提供的一种移动终端的功能单元组成框图;FIG. 5 is a block diagram of functional units of a mobile terminal provided by an embodiment of the present application;

图6是本申请实施例提供的一种电子设备的结构示意图;FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为移动终端。本发明实施例所涉及到的操作系统是对硬件资源进行统一管理,并向用户提供业务接口的软件系统。The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals. The operating system involved in the embodiment of the present invention is a software system that uniformly manages hardware resources and provides service interfaces to users.

下面结合附图对本申请实施例进行介绍。Embodiments of the present application will be described below in conjunction with the accompanying drawings.

请参阅图1,图1是本申请实施例提供了一种跌落检测方法的流程示意图,应用于移动终端,本跌落检测方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flow diagram of a drop detection method provided by an embodiment of the present application, which is applied to a mobile terminal. The drop detection method includes:

S101,移动终端在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度。S101. When the mobile terminal detects that the mobile terminal is switched from an overweight state to a weightless state, determine a first speed of the mobile terminal.

其中,针对移动终端上抛场景的跌落事件,移动终端原本是基于加速度识别跌落状态,即检测到相邻多组加速度值接近重力加速度即可认为手机处于跌落状态,故而上抛场景中,移动终端脱离人手后,通过加速度计采集加速度,采集到的加速度为重力加速度时,即可识别到移动终端处于跌落状态,并开始进行跌落计时,然而在上抛场景中,移动终端实际上仍然在上升,当上升到最高点后才开始下落,所以移动终端的实际跌落高估应该为最高点至地面的高度。Among them, for the falling event of the mobile terminal throwing scene, the mobile terminal originally recognizes the falling state based on the acceleration, that is, it can be considered that the mobile phone is in the falling state when multiple adjacent groups of acceleration values are detected close to the acceleration of gravity. Therefore, in the throwing scene, the mobile terminal After leaving the hand, the acceleration is collected by the accelerometer. When the collected acceleration is the acceleration of gravity, it can be recognized that the mobile terminal is in a falling state and start timing the fall. However, in the upward throwing scene, the mobile terminal is actually still rising. It starts to fall after rising to the highest point, so the actual drop overestimation of the mobile terminal should be the height from the highest point to the ground.

其中,现有技术的跌落识别策略中,会根据移动终端的跌落时长计算跌落高度,跌落时长的计时起点就是检测到手机处于跌落状态时开始计时,在上抛场景中,若要计算到准确的跌落高度,计时起点应该是移动终端处于最高点对应的时刻,所以为了避免误差,在检测到移动终端处于跌落装状态并开始进行跌落计时获取到跌落时长后,需要减去移动终端上升过程的时长才能得到移动终端自由落体的时间。Among them, in the drop identification strategy of the prior art, the drop height will be calculated according to the drop duration of the mobile terminal. Drop height, the starting point of timing should be the moment when the mobile terminal is at the highest point, so in order to avoid errors, after detecting that the mobile terminal is in the falling state and starting the fall timing to obtain the duration of the fall, the duration of the rising process of the mobile terminal needs to be subtracted In order to obtain the free fall time of the mobile terminal.

其中,移动终端上升过程的时长可以通过初始速度计算得到,移动终端可以通过统计分析加速度计采集到的加速值,得到大多数情况下移动终端脱离人手后对应的加速度值和加速时长,再进一步计算到移动终端的初始速度,得到初始速度后即可计算得到移动终端上升过程的时长。Among them, the duration of the mobile terminal's ascent process can be calculated from the initial speed, and the mobile terminal can statistically analyze the acceleration value collected by the accelerometer to obtain the corresponding acceleration value and acceleration time after the mobile terminal is out of the hands in most cases, and then further calculation To the initial speed of the mobile terminal, the duration of the ascent process of the mobile terminal can be calculated after the initial speed is obtained.

其中,移动终端在脱离人手前进行加速的过程中,处于超重状态,在移动终端脱离人手过后,处于失重状态,在检测到移动终端有超重状态切换到失重状态时,即可计算移动终端的第一速度,第一速度为移动终端脱离人手时的速度。Among them, the mobile terminal is in an overweight state during the acceleration process before leaving the hand, and is in a weightless state after the mobile terminal is out of the hand. When the mobile terminal is detected to switch from the overweight state to the weightless state, the mobile terminal can be calculated. A speed. The first speed is the speed when the mobile terminal is out of the hand.

S102,所述移动终端根据所述第一速度确定所述移动终端的自由落体时间。S102. The mobile terminal determines a free fall time of the mobile terminal according to the first speed.

其中,在得到移动终端的第一速度后,即可计算到移动终端的上抛时长,进而计算的到移动终端自由落体状态下的跌落时长。Wherein, after the first speed of the mobile terminal is obtained, the up-throwing duration of the mobile terminal can be calculated, and then the falling duration of the mobile terminal in a free-fall state can be calculated.

S103,所述移动终端根据所述自由落体时间计算所述移动终端的目标跌落高度。S103. The mobile terminal calculates a target drop height of the mobile terminal according to the free fall time.

其中,移动终端上抛场景的跌落状态包括上升状态和下降状态,下降状态即为自由落体状态,根据移动终端处于自由落体的时长可计算得到移动终端的实际跌落高度。Wherein, the falling state of the mobile terminal upward throwing scene includes a rising state and a falling state, and the falling state is a free-falling state, and the actual falling height of the mobile terminal can be calculated according to the length of time the mobile terminal is in the free-falling body.

可以看出,本申请实施例中,移动终端首先在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度,其次,根据所述第一速度确定所述移动终端的自由落体时间,最后,根据所述自由落体时间计算所述移动终端的目标跌落高度。由于移动终端在发生跌落时可能会存在不是直接向下跌落的情况,在检测到移动终端处于超重状态时确定移动终端向上的第一速度,从而可确定移动终端跌落到最高位置时的时间进而确定自由落体的时间,计算得到移动终端的跌落高度,有利于提高检测到的跌落高度的准确性和可靠性。It can be seen that in the embodiment of the present application, the mobile terminal first determines the first speed of the mobile terminal when it detects that the mobile terminal is switched from an overweight state to a weightless state, and secondly, determines the first speed of the mobile terminal according to the first speed. The free fall time of the mobile terminal, and finally, calculate the target drop height of the mobile terminal according to the free fall time. Since the mobile terminal may not fall directly downward when it falls, the first upward speed of the mobile terminal can be determined when it is detected that the mobile terminal is in an overweight state, so that the time when the mobile terminal falls to the highest position can be determined and then determined The free-fall time is calculated to obtain the drop height of the mobile terminal, which is beneficial to improving the accuracy and reliability of the detected drop height.

在一个可能的示例中,所述确定所述移动终端的第一速度,包括:获取所述移动终端处于超重状态的多组历史加速记录,所述历史加速记录包括加速时长和加速度值;根据所述多组历史加速记录确定所述移动终端的第一速度。In a possible example, the determining the first speed of the mobile terminal includes: acquiring multiple sets of historical acceleration records of the mobile terminal in an overweight state, the historical acceleration records including acceleration duration and acceleration value; according to the The multiple sets of historical acceleration records determine the first speed of the mobile terminal.

其中,为获取移动终端的第一速度,可获取移动终端处于超重状态下的多组历史加速记录,历史加速记录包括加速时长和加速度值,根据多组历史加速记录确定移动终端的第一速度。例如,获取移动终端脱离人手之前的最近的100组历史加速记录,每组历史加速记录包括加速时长和加速度值,由加速度计统计得到,根据这100组历史加速记录,确定移动终端的第一速度。Wherein, in order to obtain the first speed of the mobile terminal, multiple sets of historical acceleration records of the mobile terminal in an overweight state can be obtained. The historical acceleration records include acceleration duration and acceleration value, and the first speed of the mobile terminal is determined according to the multiple sets of historical acceleration records. For example, obtain the latest 100 sets of historical acceleration records before the mobile terminal is out of the hands. Each set of historical acceleration records includes acceleration duration and acceleration value, which are obtained by accelerometer statistics. According to these 100 sets of historical acceleration records, determine the first speed of the mobile terminal .

可见,本示例中,第一速度为移动终端脱离人手后的速度,通过对移动终端的多组历史加速记录进行统计分析可以确定第一速度,从而,有利于确定移动终端上升到跌落最高点的时间。It can be seen that, in this example, the first speed is the speed after the mobile terminal is out of the hand, and the first speed can be determined by performing statistical analysis on multiple sets of historical acceleration records of the mobile terminal, thus, it is beneficial to determine the time when the mobile terminal rises to the highest point of fall. time.

在一个可能的示例中,所述历史加速记录包括加速方向;所述根据所述多组历史加速记录确定所述移动终端的第一速度,包括:从所述多组历史加速记录中获取至少一组加速方向向上的历史加速记录;根据所述至少一组历史加速记录的加速时长以及加速度值确定加速后的速度平均值为所述第一速度。In a possible example, the historical acceleration records include an acceleration direction; the determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records includes: obtaining at least one speed from the multiple sets of historical acceleration records A set of historical acceleration records with an upward acceleration direction; according to the acceleration duration and acceleration value of the at least one set of historical acceleration records, it is determined that the average speed after acceleration is the first speed.

其中,历史加速记录包括加速方向,在获取到移动终端的多组历史加速记录后,可从多组历史加速记录中获取至少一组加速方向向上的历史加速记录,根据至少一组历史加速记录的加速时长和加速度值确定加速后的速度的平均值作为第一速度。例如,获取到移动终端的100组历史加速记录,筛选出连续30组方向向上的历史加速记录,根据每组历史加速记录的加速时长和加速度值确定加速后的速度,将30组历史加速记录对应的速度的平均值作为第一速度存储在移动终端。Wherein, the historical acceleration record includes the acceleration direction. After obtaining multiple sets of historical acceleration records of the mobile terminal, at least one set of historical acceleration records with an upward acceleration direction can be obtained from the multiple sets of historical acceleration records. According to at least one set of historical acceleration records The acceleration duration and the acceleration value determine the average value of the accelerated speed as the first speed. For example, obtain 100 sets of historical acceleration records of the mobile terminal, filter out 30 consecutive sets of historical acceleration records in the upward direction, determine the accelerated speed according to the acceleration duration and acceleration value of each set of historical acceleration records, and match the 30 sets of historical acceleration records to The average value of the speed is stored in the mobile terminal as the first speed.

可见,本示例中,第一速度为对移动终端方向向上的多组历史加速记录进行统计分析得到,通过第一速度可计算出移动终端上升过程时长,即根据公式v=g*t,v为第一速度,g为重力加速度,t为需要计算的上升过程时长。It can be seen that in this example, the first speed is obtained by statistical analysis of multiple sets of historical acceleration records in the upward direction of the mobile terminal, and the duration of the mobile terminal's ascent process can be calculated through the first speed, that is, according to the formula v=g*t, v is The first speed, g is the acceleration of gravity, and t is the duration of the ascent process that needs to be calculated.

在一个可能的示例中,所述移动终端的跌落状态包括第一跌落状态和第二跌落状态,所述第一跌落状态下为所述移动终端的运动方向向上的失重状态,所述第二跌落状态为所述移动终端的运动方向向下的失重状态;所述根据所述第一速度确定所述移动终端的自由落体时间,包括:获取所述移动终端的跌落时间,所述跌落时间包括所述移动终端处于所述第一跌落状态和所述第二跌落状态的时间;根据所述第一速度确定所述移动终端处于第一跌落状态的时间;根据所述跌落时间和所述移动终端处于第一跌落状态的时间确定所述移动终端处于所述第二跌落状态的时间为自由落体时间。In a possible example, the falling state of the mobile terminal includes a first falling state and a second falling state, the first falling state is a weightless state in which the moving direction of the mobile terminal is upward, and the second falling state The state is a weightless state in which the moving direction of the mobile terminal is downward; the determining the free-fall time of the mobile terminal according to the first speed includes: acquiring the falling time of the mobile terminal, and the falling time includes the The time when the mobile terminal is in the first falling state and the second falling state; determine the time when the mobile terminal is in the first falling state according to the first speed; according to the falling time and the time when the mobile terminal is in The time of the first falling state determines that the time when the mobile terminal is in the second falling state is the free fall time.

其中,移动终端上抛场景下的跌落状态包括第一跌落状态和第二跌落状态,第一跌落状态为移动终端运动方向向上的失重状态,第二跌落状态为移动终端运动方向向下的失重状态,在根据第一速度确定移动终端的自由落体时间时,可先获取移动终端跌落时间,跌落时间包括第一跌落状态的时间和第二跌落状态的时间,即移动终端脱离人手后的运动时长。Wherein, the falling state in the upward throwing scene of the mobile terminal includes a first falling state and a second falling state, the first falling state is a weightless state in which the moving direction of the mobile terminal is upward, and the second falling state is a weightless state in which the moving direction of the mobile terminal is downward , when determining the free fall time of the mobile terminal according to the first speed, the fall time of the mobile terminal can be obtained first, and the fall time includes the time of the first fall state and the time of the second fall state, that is, the mobile terminal is out of the hand.

其中,由于根据第一速度和公式可以获取移动终端处于第一跌落状态的时间,因此将跌落时间减去第一跌落状态的时间即可得到移动终端处于第二跌落状态的时间,即移动终端的自由落体时间。Wherein, since the time when the mobile terminal is in the first falling state can be obtained according to the first speed and the formula, the time when the mobile terminal is in the second falling state can be obtained by subtracting the falling time from the time in the first falling state, that is, the time when the mobile terminal is in the second falling state free fall time.

可见,本示例中,通过将移动终端处于跌落状态下的总时长减去移动终端上升到最高点的时间,即可获取到移动终端处于自由落体的时间,从而可计算得到移动终端上抛场景中准确的跌落高度。It can be seen that in this example, the time when the mobile terminal is in free fall can be obtained by subtracting the time when the mobile terminal rises to the highest point from the total time that the mobile terminal is in the falling state, and thus the time in which the mobile terminal is thrown up can be calculated. Accurate drop height.

在一个可能的示例中,所述根据所述第一速度确定所述移动终端的自由落体时间,包括:在检测到所述第一速度减小为零时开始计时;在检测到所述移动终端速度增大到第二速度后减为零时,停止计时,所述计时时间为所述自由落体时间,所述第二速度为所述第二跌落状态下所述移动终端的最大速度。In a possible example, the determining the free fall time of the mobile terminal according to the first speed includes: starting timing when it is detected that the first speed decreases to zero; When the speed increases to a second speed and then decreases to zero, stop counting, the counting time is the free fall time, and the second speed is the maximum speed of the mobile terminal in the second falling state.

其中,在确定移动终端的第一速度后,可通过对移动终端的实时速度进行检测,在检测到第一速度减为零时开始计时,在检测到移动终端的运动速度由零增加到第二速度后又减为零时停止计时,即表明移动终端脱离人手后跌落到地上,得到的计时时长即为移动终端自由落体的时间,第二速度为移动终端处于第二跌落状态下的最大运动速度。Wherein, after the first speed of the mobile terminal is determined, the real-time speed of the mobile terminal can be detected, the timing starts when the first speed is detected to be reduced to zero, and the movement speed of the mobile terminal is increased from zero to the second when it is detected. Stop timing when the speed decreases to zero, which means that the mobile terminal fell to the ground after leaving the hands, and the obtained timing time is the time for the mobile terminal to fall freely, and the second speed is the maximum movement speed of the mobile terminal in the second falling state .

可见,本示例中,通过第一速度确定移动终端的自由落体时间,在第一速度衰减为零后即表明移动终端已经上升到最高点,此时开始计时,在移动终端跌落到地上后停止计时,即可得到移动终端的自由落体时间,进而准确计算得到移动终端上抛场景的跌落高度。It can be seen that in this example, the free fall time of the mobile terminal is determined by the first speed. After the first speed decays to zero, it means that the mobile terminal has risen to the highest point. At this time, the timing is started, and the timing is stopped after the mobile terminal falls to the ground. , the free fall time of the mobile terminal can be obtained, and then the falling height of the mobile terminal upward throwing scene can be accurately calculated.

请参阅图2,图2是本申请实施例提供的一种跌落检测方法的流程示意图,应用于移动终端,如图所示,本跌落检测方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flow diagram of a drop detection method provided in an embodiment of the present application, which is applied to a mobile terminal. As shown in the figure, the drop detection method includes:

S201,移动终端在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度。S201. When the mobile terminal detects that the mobile terminal is switched from an overweight state to a weightless state, determine a first speed of the mobile terminal.

S202,所述移动终端获取所述移动终端的跌落时间,所述跌落时间包括所述移动终端处于第一跌落状态和第二跌落状态的时间,所述移动终端的跌落状态包括第一跌落状态和第二跌落状态,所述第一跌落状态下为所述移动终端的运动方向向上的失重状态,所述第二跌落状态为所述移动终端的运动方向向下的失重状态。S202. The mobile terminal acquires the falling time of the mobile terminal, the falling time includes the time when the mobile terminal is in the first falling state and the second falling state, and the falling state of the mobile terminal includes the first falling state and the time when the mobile terminal is in the second falling state In the second falling state, the first falling state is a weightless state in which the moving direction of the mobile terminal is upward, and the second falling state is a weightless state in which the moving direction of the mobile terminal is downward.

S203,所述移动终端根据所述第一速度确定所述移动终端处于第一跌落状态的时间。S203. The mobile terminal determines a time when the mobile terminal is in a first falling state according to the first speed.

S204,所述移动终端根据所述跌落时间和所述移动终端处于第一跌落状态的时间确定所述移动终端处于所述第二跌落状态的时间为自由落体时间。S204. The mobile terminal determines, according to the falling time and the time when the mobile terminal is in the first falling state, that the time when the mobile terminal is in the second falling state is a free fall time.

S205,所述移动终端根据所述自由落体时间计算所述移动终端的目标跌落高度。S205. The mobile terminal calculates a target drop height of the mobile terminal according to the free fall time.

可以看出,本申请实施例中,移动终端首先在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度,其次,根据所述第一速度确定所述移动终端的自由落体时间,最后,根据所述自由落体时间计算所述移动终端的目标跌落高度。由于移动终端在发生跌落时可能会存在不是直接向下跌落的情况,在检测到移动终端处于超重状态时确定移动终端向上的第一速度,从而可确定移动终端跌落到最高位置时的时间进而确定自由落体的时间,计算得到移动终端的跌落高度,有利于提高检测到的跌落高度的准确性和可靠性。It can be seen that in the embodiment of the present application, the mobile terminal first determines the first speed of the mobile terminal when it detects that the mobile terminal is switched from an overweight state to a weightless state, and secondly, determines the first speed of the mobile terminal according to the first speed. The free fall time of the mobile terminal, and finally, calculate the target drop height of the mobile terminal according to the free fall time. Since the mobile terminal may not fall directly downward when it falls, the first upward speed of the mobile terminal can be determined when it is detected that the mobile terminal is in an overweight state, so that the time when the mobile terminal falls to the highest position can be determined and then determined The free-fall time is calculated to obtain the drop height of the mobile terminal, which is beneficial to improving the accuracy and reliability of the detected drop height.

此外,通过将移动终端处于跌落状态下的总时长减去移动终端上升到最高点的时间,即可获取到移动终端处于自由落体的时间,从而可计算得到移动终端上抛场景中准确的跌落高度。In addition, the time when the mobile terminal is in free fall can be obtained by subtracting the time when the mobile terminal rises to the highest point from the total time that the mobile terminal is in the falling state, so that the accurate drop height in the upward throwing scene of the mobile terminal can be calculated .

请参阅图3,图3是本申请实施例提供的一种跌落检测方法的流程示意图,应用于移动终端,如图所示,本跌落检测方法包括:Please refer to FIG. 3. FIG. 3 is a schematic flow diagram of a drop detection method provided in an embodiment of the present application, which is applied to a mobile terminal. As shown in the figure, the drop detection method includes:

S301,移动终端在检测到所述移动终端由超重状态切换为失重状态时,获取所述移动终端处于超重状态的多组历史加速记录,所述历史加速记录包括加速时长和加速度值。S301. When the mobile terminal detects that the mobile terminal is switched from an overweight state to a weightless state, acquire multiple sets of historical acceleration records of the mobile terminal in the overweight state, where the historical acceleration records include acceleration duration and acceleration value.

S302,所述移动终端根据所述多组历史加速记录确定所述移动终端的第一速度。S302. The mobile terminal determines a first speed of the mobile terminal according to the multiple sets of historical acceleration records.

S303,所述移动终端在检测到所述第一速度减小为零时开始计时。S303. The mobile terminal starts timing when detecting that the first speed decreases to zero.

S304,所述移动终端在检测到所述移动终端速度增大到第二速度后减为零时,停止计时,所述计时时间为所述自由落体时间,所述第二速度为所述第二跌落状态下所述移动终端的最大速度。S304. When the mobile terminal detects that the speed of the mobile terminal increases to a second speed and then decreases to zero, stop counting, the counted time is the free fall time, and the second speed is the second speed. The maximum speed of the mobile terminal in a dropped state.

S305,所述移动终端根据所述自由落体时间计算所述移动终端的目标跌落高度。S305. The mobile terminal calculates a target drop height of the mobile terminal according to the free fall time.

可以看出,本申请实施例中,移动终端首先在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度,其次,根据所述第一速度确定所述移动终端的自由落体时间,最后,根据所述自由落体时间计算所述移动终端的目标跌落高度。由于移动终端在发生跌落时可能会存在不是直接向下跌落的情况,在检测到移动终端处于超重状态时确定移动终端向上的第一速度,从而可确定移动终端跌落到最高位置时的时间进而确定自由落体的时间,计算得到移动终端的跌落高度,有利于提高检测到的跌落高度的准确性和可靠性。It can be seen that in the embodiment of the present application, the mobile terminal first determines the first speed of the mobile terminal when it detects that the mobile terminal is switched from an overweight state to a weightless state, and secondly, determines the first speed of the mobile terminal according to the first speed. The free fall time of the mobile terminal, and finally, calculate the target drop height of the mobile terminal according to the free fall time. Since the mobile terminal may not fall directly downward when it falls, the first upward speed of the mobile terminal can be determined when it is detected that the mobile terminal is in an overweight state, so that the time when the mobile terminal falls to the highest position can be determined and then determined The free-fall time is calculated to obtain the drop height of the mobile terminal, which is beneficial to improving the accuracy and reliability of the detected drop height.

此外,第一速度为移动终端脱离人手后的速度,通过对移动终端的多组历史加速记录进行统计分析可以确定第一速度,从而,有利于确定移动终端上升到最高距离的时间。In addition, the first speed is the speed of the mobile terminal after it is out of the hand, and the first speed can be determined by statistically analyzing multiple sets of historical acceleration records of the mobile terminal, thereby helping to determine the time when the mobile terminal climbs to the highest distance.

此外,通过第一速度确定移动终端的自由落体时间,在第一速度衰减为零后即表明移动终端已经上升到最高点,此时开始计时,在移动终端跌落到地上后停止计时,即可得到移动终端的自由落体时间,进而准确计算得到移动终端上抛场景的跌落高度。In addition, the free fall time of the mobile terminal is determined by the first speed. After the first speed decays to zero, it means that the mobile terminal has risen to the highest point. At this time, the timing is started, and the timing is stopped after the mobile terminal falls to the ground. The free fall time of the mobile terminal, and then accurately calculate the drop height of the mobile terminal throwing scene.

与所述图1、图2、图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种移动终端的结构示意图,该移动终端运行有一个或多个应用程序和操作系统,如图所示,该移动终端包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序不同于所述一个或多个应用程序,且所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令:Consistent with the embodiments shown in FIG. 1, FIG. 2, and FIG. 3, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application. Application program and operating system, as shown in the figure, the mobile terminal includes a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are different from the one or more application programs, and The one or more programs are stored in the memory and are configured to be executed by the processor, the programs including instructions for performing the following steps:

在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度;When detecting that the mobile terminal is switched from an overweight state to a weightless state, determining a first speed of the mobile terminal;

根据所述第一速度确定所述移动终端的自由落体时间;determining the free fall time of the mobile terminal according to the first speed;

根据所述自由落体时间计算所述移动终端的目标跌落高度。Calculate the target drop height of the mobile terminal according to the free fall time.

可以看出,本申请实施例中,移动终端首先在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度,其次,根据所述第一速度确定所述移动终端的自由落体时间,最后,根据所述自由落体时间计算所述移动终端的目标跌落高度。由于移动终端在发生跌落时可能会存在不是直接向下跌落的情况,在检测到移动终端处于超重状态时确定移动终端向上的第一速度,从而可确定移动终端跌落到最高位置时的时间进而确定自由落体的时间,计算得到移动终端的跌落高度,有利于提高检测到的跌落高度的准确性和可靠性。It can be seen that in the embodiment of the present application, the mobile terminal first determines the first speed of the mobile terminal when it detects that the mobile terminal is switched from an overweight state to a weightless state, and secondly, determines the first speed of the mobile terminal according to the first speed. The free fall time of the mobile terminal, and finally, calculate the target drop height of the mobile terminal according to the free fall time. Since the mobile terminal may not fall directly downward when it falls, the first upward speed of the mobile terminal can be determined when it is detected that the mobile terminal is in an overweight state, so that the time when the mobile terminal falls to the highest position can be determined and then determined The free-fall time is calculated to obtain the drop height of the mobile terminal, which is beneficial to improving the accuracy and reliability of the detected drop height.

在一个可能的示例中,在所述确定所述移动终端的第一速度方面,所述程序中的指令具体用于执行以下操作:获取所述移动终端处于超重状态的多组历史加速记录,所述历史加速记录包括加速时长和加速度值;根据所述多组历史加速记录确定所述移动终端的第一速度。In a possible example, in the aspect of determining the first speed of the mobile terminal, the instructions in the program are specifically used to perform the following operations: obtain multiple sets of historical acceleration records of the mobile terminal in an overweight state, the The historical acceleration records include acceleration duration and acceleration value; the first speed of the mobile terminal is determined according to the multiple sets of historical acceleration records.

在一个可能的示例中,所述历史加速记录包括加速方向;在所述根据所述多组历史加速记录确定所述移动终端的第一速度方面,所述程序中的指令具体用于执行以下操作:从所述多组历史加速记录中获取至少一组加速方向向上的历史加速记录;根据所述至少一组历史加速记录的加速时长以及加速度值确定加速后的速度平均值为所述第一速度。In a possible example, the historical acceleration records include an acceleration direction; in terms of determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records, the instructions in the program are specifically used to perform the following operations : Obtain at least one set of historical acceleration records with an upward acceleration direction from the multiple sets of historical acceleration records; determine the average speed after acceleration as the first speed according to the acceleration duration and acceleration value of the at least one set of historical acceleration records .

在一个可能的示例中,所述移动终端的跌落状态包括第一跌落状态和第二跌落状态,所述第一跌落状态下为所述移动终端的运动方向向上的失重状态,所述第二跌落状态为所述移动终端的运动方向向下的失重状态;在所述根据所述第一速度确定所述移动终端的自由落体时间父方面,所述程序中的指令具体用于执行以下操作:获取所述移动终端的跌落时间,所述跌落时间包括所述移动终端处于所述第一跌落状态和所述第二跌落状态的时间;根据所述第一速度确定所述移动终端处于第一跌落状态的时间;根据所述跌落时间和所述移动终端处于第一跌落状态的时间确定所述移动终端处于所述第二跌落状态的时间为自由落体时间。In a possible example, the falling state of the mobile terminal includes a first falling state and a second falling state, the first falling state is a weightless state in which the moving direction of the mobile terminal is upward, and the second falling state The state is a weightless state in which the mobile terminal moves downward; in terms of determining the free fall time of the mobile terminal according to the first speed, the instructions in the program are specifically used to perform the following operations: obtain The falling time of the mobile terminal, the falling time includes the time when the mobile terminal is in the first falling state and the second falling state; according to the first speed, it is determined that the mobile terminal is in the first falling state time; determine the time when the mobile terminal is in the second falling state as the free fall time according to the falling time and the time when the mobile terminal is in the first falling state.

在一个可能的示例中,在所述根据所述第一速度确定所述移动终端的自由落体时间方面,所述程序中的指令具体用于执行以下操作:在检测到所述第一速度减小为零时开始计时;在检测到所述移动终端速度增大到第二速度后减为零时,停止计时,所述计时时间为所述自由落体时间,所述第二速度为所述第二跌落状态下所述移动终端的最大速度。In a possible example, in terms of determining the free-fall time of the mobile terminal according to the first speed, the instructions in the program are specifically used to perform the following operations: When it is zero, start counting; when it is detected that the speed of the mobile terminal increases to the second speed and then decreases to zero, stop counting, the counting time is the free fall time, and the second speed is the second speed The maximum speed of the mobile terminal in a dropped state.

所述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现所述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions of the embodiments of the present application from the perspective of executing the process on the method side. It can be understood that, in order to realize the functions described above, the mobile terminal includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请实施例可以根据所述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the mobile terminal into functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

在采用集成的单元的情况下,图5示出了所述实施例中所涉及的移动终端的一种可能的功能单元组成框图。移动终端500应用于移动终端,所述移动终端上运行有操作系统以及一个或多个应用程序,所述移动终端500包括:检测单元501,确定单元502和处理单元503,In the case of using integrated units, FIG. 5 shows a possible functional unit composition block diagram of the mobile terminal involved in the embodiment. The mobile terminal 500 is applied to a mobile terminal on which an operating system and one or more application programs run, and the mobile terminal 500 includes: a detection unit 501, a determination unit 502 and a processing unit 503,

所述获取单元501,用于在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度;The obtaining unit 501 is configured to determine a first speed of the mobile terminal when it is detected that the mobile terminal switches from an overweight state to a weightless state;

所述确定单元502,用于根据所述第一速度确定所述移动终端的自由落体时间;The determining unit 502 is configured to determine the free fall time of the mobile terminal according to the first speed;

所述处理单元503,用于根据所述自由落体时间计算所述移动终端的目标跌落高度。The processing unit 503 is configured to calculate a target drop height of the mobile terminal according to the free fall time.

在一个可能的示例中,在所述确定所述移动终端的第一速度方面,所述检测单元501具体用于:获取所述移动终端处于超重状态的多组历史加速记录,所述历史加速记录包括加速时长和加速度值;以及用于根据所述多组历史加速记录确定所述移动终端的第一速度。In a possible example, in terms of determining the first speed of the mobile terminal, the detection unit 501 is specifically configured to: obtain multiple sets of historical acceleration records of the mobile terminal in an overweight state, the historical acceleration records Including acceleration duration and acceleration value; and used for determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records.

在一个可能的示例中,所述历史加速记录包括加速方向;在所述根据所述多组历史加速记录确定所述移动终端的第一速度方面,所述检测单元501具体用于:从所述多组历史加速记录中获取至少一组加速方向向上的历史加速记录;以及用于根据所述至少一组历史加速记录的加速时长以及加速度值确定加速后的速度平均值为所述第一速度。In a possible example, the historical acceleration record includes an acceleration direction; in terms of determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records, the detection unit 501 is specifically configured to: Acquiring at least one set of historical acceleration records with an upward acceleration direction from multiple sets of historical acceleration records; and determining the average speed after acceleration as the first speed according to the acceleration duration and acceleration value of the at least one set of historical acceleration records.

在一个可能的示例中,所述移动终端的跌落状态包括第一跌落状态和第二跌落状态,所述第一跌落状态下为所述移动终端的运动方向向上的失重状态,所述第二跌落状态为所述移动终端的运动方向向下的失重状态;在所述根据所述第一速度确定所述移动终端的自由落体时间方面,所述确定单元502具体用于:获取所述移动终端的跌落时间,所述跌落时间包括所述移动终端处于所述第一跌落状态和所述第二跌落状态的时间;以及用于根据所述第一速度确定所述移动终端处于第一跌落状态的时间;以及用于根据所述跌落时间和所述移动终端处于第一跌落状态的时间确定所述移动终端处于所述第二跌落状态的时间为自由落体时间。In a possible example, the falling state of the mobile terminal includes a first falling state and a second falling state, the first falling state is a weightless state in which the moving direction of the mobile terminal is upward, and the second falling state The state is a weightless state in which the moving direction of the mobile terminal is downward; in terms of determining the free fall time of the mobile terminal according to the first speed, the determining unit 502 is specifically configured to: acquire the mobile terminal's Falling time, the falling time includes the time when the mobile terminal is in the first falling state and the second falling state; and is used to determine the time when the mobile terminal is in the first falling state according to the first speed ; and determining the time when the mobile terminal is in the second falling state as the free fall time according to the falling time and the time when the mobile terminal is in the first falling state.

在一个可能的示例中,在所述根据所述第一速度确定所述移动终端的自由落体时间方面,所述确定单元502具体用于:在检测到所述第一速度减小为零时开始计时;以及用于在检测到所述移动终端速度增大到第二速度后减为零时,停止计时,所述计时时间为所述自由落体时间,所述第二速度为所述第二跌落状态下所述移动终端的最大速度。In a possible example, in terms of determining the free fall time of the mobile terminal according to the first speed, the determining unit 502 is specifically configured to: start when it is detected that the first speed decreases to zero timing; and used to stop timing when it is detected that the speed of the mobile terminal increases to a second speed and then decreases to zero, the timing time is the free fall time, and the second speed is the second falling time The maximum speed of the mobile terminal in the state.

需要注意的是,本发明装置实施例所描述的移动终端是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the mobile terminal described in the device embodiment of the present invention is presented in the form of a functional unit. The term "unit" used here should be understood as the broadest meaning possible. The object used to realize the functions described by each "unit" can be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware Processors (shared, dedicated, or chipsets) and memories of programs, combinational logic circuits, and/or other suitable components that provide the functions described above.

其中,获取单元501、确定单元502和处理单元503可以是处理器或控制器。Wherein, the acquiring unit 501, the determining unit 502 and the processing unit 503 may be processors or controllers.

如图6所示,图6是本申请实施例提供了一种电子设备100的结构示意图,所述电子设备100包括:壳体110、设置于所述壳体110内的电路板120、设置于所述壳体110上的显示屏130和摄像头140,所述电路板120上设置有处理器121、传感器122和存储器123,所述传感器122以及存储器123与所述处理器121连接,所述处理器121连接所述显示屏130;其中,As shown in FIG. 6, FIG. 6 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 includes: a housing 110, a circuit board 120 disposed in the housing 110, and a circuit board 120 disposed in the housing 110. The display screen 130 and camera 140 on the housing 110, the circuit board 120 is provided with a processor 121, a sensor 122 and a memory 123, the sensor 122 and the memory 123 are connected to the processor 121, the processing The device 121 is connected to the display screen 130; wherein,

所述处理器121,用于在检测到所述移动终端由超重状态切换为失重状态时,确定所述移动终端的第一速度;以及用于根据所述第一速度确定所述移动终端的自由落体时间;以及用于根据所述自由落体时间计算所述移动终端的目标跌落高度。The processor 121 is configured to determine a first speed of the mobile terminal when it is detected that the mobile terminal is switched from an overweight state to a weightless state; and is used to determine the freedom of the mobile terminal according to the first speed. falling time; and calculating the target drop height of the mobile terminal according to the free fall time.

在一个可能的示例中,在所述确定所述移动终端的第一速度方面,所述处理器121具体用于:获取所述移动终端处于超重状态的多组历史加速记录,所述历史加速记录包括加速时长和加速度值;以及用于根据所述多组历史加速记录确定所述移动终端的第一速度。In a possible example, in terms of determining the first speed of the mobile terminal, the processor 121 is specifically configured to: obtain multiple sets of historical acceleration records of the mobile terminal in an overweight state, the historical acceleration records Including acceleration duration and acceleration value; and used for determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records.

在一个可能的示例中,所述历史加速记录包括加速方向;在所述根据所述多组历史加速记录确定所述移动终端的第一速度方面,所述处理器121具体用于:从所述多组历史加速记录中获取至少一组加速方向向上的历史加速记录;以及用于根据所述至少一组历史加速记录的加速时长以及加速度值确定加速后的速度平均值为所述第一速度。In a possible example, the historical acceleration record includes an acceleration direction; in terms of determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records, the processor 121 is specifically configured to: Acquiring at least one set of historical acceleration records with an upward acceleration direction from multiple sets of historical acceleration records; and determining the average speed after acceleration as the first speed according to the acceleration duration and acceleration value of the at least one set of historical acceleration records.

在一个可能的示例中,所述移动终端的跌落状态包括第一跌落状态和第二跌落状态,所述第一跌落状态下为所述移动终端的运动方向向上的失重状态,所述第二跌落状态为所述移动终端的运动方向向下的失重状态;在所述根据所述第一速度确定所述移动终端的自由落体时间方面,所述处理器121具体用于获取所述移动终端的跌落时间,所述跌落时间包括所述移动终端处于所述第一跌落状态和所述第二跌落状态的时间;以及用于根据所述第一速度确定所述移动终端处于第一跌落状态的时间;以及用于根据所述跌落时间和所述移动终端处于第一跌落状态的时间确定所述移动终端处于所述第二跌落状态的时间为自由落体时间。In a possible example, the falling state of the mobile terminal includes a first falling state and a second falling state, the first falling state is a weightless state in which the moving direction of the mobile terminal is upward, and the second falling state The state is a weightless state in which the moving direction of the mobile terminal is downward; in terms of determining the free-fall time of the mobile terminal according to the first speed, the processor 121 is specifically configured to obtain the falling time of the mobile terminal time, the falling time includes the time when the mobile terminal is in the first falling state and the second falling state; and is used to determine the time when the mobile terminal is in the first falling state according to the first speed; and determining the time when the mobile terminal is in the second falling state as the free fall time according to the falling time and the time when the mobile terminal is in the first falling state.

在一个可能的示例中,在所述根据所述第一速度确定所述移动终端的自由落体时间方面,所述处理器121具体用于:在检测到所述第一速度减小为零时开始计时;以及用于在检测到所述移动终端速度增大到第二速度后减为零时,停止计时,所述计时时间为所述自由落体时间,所述第二速度为所述第二跌落状态下所述移动终端的最大速度。In a possible example, in terms of determining the free-fall time of the mobile terminal according to the first speed, the processor 121 is specifically configured to: start when it is detected that the first speed decreases to zero timing; and used to stop timing when it is detected that the speed of the mobile terminal increases to a second speed and then decreases to zero, the timing time is the free fall time, and the second speed is the second falling time The maximum speed of the mobile terminal in the state.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如所述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括移动终端。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute part or all of any method described in the method embodiments Step, the computer includes a mobile terminal.

本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如所述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the method described in the method embodiment. Some or all of the steps of any method. The computer program product may be a software installation package, and the computer includes a mobile terminal.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.

在所述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解所述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: flash memory disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application scopes based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims (12)

1. A fall detection method is applied to a mobile terminal, and comprises the following steps:
when the mobile terminal is detected to be switched from an overweight state to a weightlessness state, determining a first speed of the mobile terminal;
determining the free fall time of the mobile terminal according to the first speed;
and calculating the target falling height of the mobile terminal according to the free falling time.
2. The method of claim 1, wherein determining the first velocity of the mobile terminal comprises:
acquiring multiple groups of historical acceleration records of the mobile terminal in an overweight state, wherein the historical acceleration records comprise acceleration duration and acceleration values;
and determining a first speed of the mobile terminal according to the multiple groups of historical acceleration records.
3. The method of claim 2, wherein the historical acceleration record includes an acceleration direction; the determining a first velocity of the mobile terminal from the plurality of sets of historical acceleration records includes:
acquiring at least one group of historical acceleration records with an upward acceleration direction from the multiple groups of historical acceleration records;
and determining the average accelerated speed value as the first speed according to the acceleration duration and the acceleration value of the at least one group of historical acceleration records.
4. The method according to any one of claims 1 to 3, wherein the falling state of the mobile terminal comprises a first falling state and a second falling state, the first falling state is a weightless state with the moving direction of the mobile terminal upward, and the second falling state is a weightless state with the moving direction of the mobile terminal downward; the determining the free fall time of the mobile terminal according to the first speed includes:
obtaining fall time of the mobile terminal, wherein the fall time comprises time of the mobile terminal in the first fall state and the second fall state;
determining the time of the mobile terminal in a first falling state according to the first speed;
and determining the time of the mobile terminal in the second falling state as the free falling time according to the falling time and the time of the mobile terminal in the first falling state.
5. The method according to any of claims 1 to 3, wherein said determining a free fall time of the mobile terminal according to the first velocity comprises:
starting timing when the first speed reduction is detected to be zero;
and stopping timing when the speed of the mobile terminal is reduced to zero after being detected to be increased to a second speed, wherein the timing time is the free falling time, and the second speed is the maximum speed of the mobile terminal in the second falling state.
6. A mobile terminal, characterized by comprising a detection unit, a determination unit and a processing unit,
the detection unit is used for determining a first speed of the mobile terminal when the mobile terminal is detected to be switched from an overweight state to a weightlessness state;
the determining unit is used for determining the free fall time of the mobile terminal according to the first speed;
and the processing unit is used for calculating the target falling height of the mobile terminal according to the free falling time.
7. The mobile terminal according to claim 6, wherein in said determining the first speed of the mobile terminal, the detecting unit is specifically configured to: acquiring multiple groups of historical acceleration records of the mobile terminal in an overweight state, wherein the historical acceleration records comprise acceleration duration and acceleration values; and means for determining a first velocity of the mobile terminal based on the plurality of sets of historical acceleration records.
8. The mobile terminal of claim 7, wherein the historical acceleration record includes an acceleration direction; in the aspect of determining the first speed of the mobile terminal according to the multiple sets of historical acceleration records, the detecting unit is specifically configured to: acquiring at least one group of historical acceleration records with an upward acceleration direction from the multiple groups of historical acceleration records; and the acceleration time length and the acceleration value of the at least one group of historical acceleration records are used for determining the average value of the accelerated speeds as the first speed.
9. The mobile terminal according to any of claims 6-8, wherein the falling state of the mobile terminal comprises a first falling state and a second falling state, the first falling state is a weightless state with the moving direction of the mobile terminal upward, and the second falling state is a weightless state with the moving direction of the mobile terminal downward; in the aspect of determining the free fall time of the mobile terminal according to the first speed, the determining unit is specifically configured to: obtaining fall time of the mobile terminal, wherein the fall time comprises time of the mobile terminal in the first fall state and the second fall state; the mobile terminal is used for determining the time of the mobile terminal in a first falling state according to the first speed; and the time for determining that the time for the mobile terminal to be in the second falling state is the free falling time according to the falling time and the time for the mobile terminal to be in the first falling state.
10. The mobile terminal according to any of claims 6-9, wherein, in said determining a free fall time of the mobile terminal according to the first velocity, the determining unit is specifically configured to: starting timing when the first speed reduction is detected to be zero; and the timing device is used for stopping timing when the speed of the mobile terminal is detected to be zero after increasing to a second speed, wherein the timing time is the free falling time, and the second speed is the maximum speed of the mobile terminal in the second falling state.
11. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201810414932.9A 2018-05-03 2018-05-03 fall detection method and related product Pending CN108810250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810414932.9A CN108810250A (en) 2018-05-03 2018-05-03 fall detection method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810414932.9A CN108810250A (en) 2018-05-03 2018-05-03 fall detection method and related product

Publications (1)

Publication Number Publication Date
CN108810250A true CN108810250A (en) 2018-11-13

Family

ID=64093537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810414932.9A Pending CN108810250A (en) 2018-05-03 2018-05-03 fall detection method and related product

Country Status (1)

Country Link
CN (1) CN108810250A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147658A (en) * 2019-05-24 2020-05-12 广东小天才科技有限公司 Falling reminding method of intelligent equipment and intelligent equipment
CN114593727A (en) * 2022-03-04 2022-06-07 东集技术股份有限公司 Method, device, equipment and medium for judging drop state of handheld terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101065674A (en) * 2004-12-01 2007-10-31 飞思卡尔半导体公司 System and method for fall detection
CN101523223A (en) * 2006-10-11 2009-09-02 飞思卡尔半导体公司 Sensor having free fall self-test capability and method therefor
US7730764B2 (en) * 2008-02-15 2010-06-08 Panasonic Corporation Drop detection device and portable apparatus equipped therewith
JP6186888B2 (en) * 2013-05-28 2017-08-30 株式会社デンソーウェーブ Mobile device
CN207200818U (en) * 2017-07-27 2018-04-06 上海传英信息技术有限公司 A kind of Shatter-resistant device and smart machine for smart machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101065674A (en) * 2004-12-01 2007-10-31 飞思卡尔半导体公司 System and method for fall detection
CN101523223A (en) * 2006-10-11 2009-09-02 飞思卡尔半导体公司 Sensor having free fall self-test capability and method therefor
US7730764B2 (en) * 2008-02-15 2010-06-08 Panasonic Corporation Drop detection device and portable apparatus equipped therewith
JP6186888B2 (en) * 2013-05-28 2017-08-30 株式会社デンソーウェーブ Mobile device
CN207200818U (en) * 2017-07-27 2018-04-06 上海传英信息技术有限公司 A kind of Shatter-resistant device and smart machine for smart machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147658A (en) * 2019-05-24 2020-05-12 广东小天才科技有限公司 Falling reminding method of intelligent equipment and intelligent equipment
CN114593727A (en) * 2022-03-04 2022-06-07 东集技术股份有限公司 Method, device, equipment and medium for judging drop state of handheld terminal

Similar Documents

Publication Publication Date Title
CN105571609B (en) A kind of kinematic parameter processing method and mobile terminal
WO2019141085A1 (en) Electronic device, collision data processing method and related products
CN111652161A (en) Crowd overcrowding prediction method, device, electronic device and storage medium
CN108810250A (en) fall detection method and related product
WO2017096959A1 (en) Image collection method and device for terminal
CN109061611A (en) Proximity sensor calibration method and relevant apparatus
CN108259670B (en) Electronic device, drop processing method and related product
CN108377293A (en) Electronic device falls control method and Related product
CN108289149B (en) Falling consciousness recognition method and related product
CN108304123B (en) Page Display Control Method and Related Products
CN114288638A (en) Method, device and electronic device for acquiring score data of virtual game
CN106092484A (en) Method and device for reporting operating data of mobile terminal
CN108270921A (en) The detection method and Related product of drop information
CN106161952B (en) A focusing method, device and mobile terminal
CN108197007A (en) Electronic equipment, data processing method and Related product
CN108600540B (en) Fall detection method and related product
CN108833671A (en) Electronic device drop detection method and related products
CN108307065A (en) Fall reminding method and relevant device
CN109005357B (en) Photographing method, photographing device and terminal equipment
CN108337371B (en) Electronic device, fall protection method, device and computer readable storage medium
CN108307054B (en) Falling information detection method and related product
CN108600538B (en) Fall detection method and related product
CN115134523B (en) Remote control method, remote control device, operation terminal, control device and storage medium
CN108259669B (en) Drop information detection method and related products
CN108777738B (en) Fall adjustment method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication