Movatterモバイル変換


[0]ホーム

URL:


CN108307059B - Fall protection method and related product - Google Patents

Fall protection method and related product
Download PDF

Info

Publication number
CN108307059B
CN108307059BCN201810065185.2ACN201810065185ACN108307059BCN 108307059 BCN108307059 BCN 108307059BCN 201810065185 ACN201810065185 ACN 201810065185ACN 108307059 BCN108307059 BCN 108307059B
Authority
CN
China
Prior art keywords
falling
determining
electronic device
electronic equipment
screen
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.)
Expired - Fee Related
Application number
CN201810065185.2A
Other languages
Chinese (zh)
Other versions
CN108307059A (en
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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810065185.2ApriorityCriticalpatent/CN108307059B/en
Publication of CN108307059ApublicationCriticalpatent/CN108307059A/en
Application grantedgrantedCritical
Publication of CN108307059BpublicationCriticalpatent/CN108307059B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种跌落保护方法及相关产品,应用于电子设备,所述电子设备包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,所述方法包括:获取所述电子设备的跌落数据;根据所述跌落数据确定所述屏幕发声器的控制参数;根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。本申请实施例在电子设备在跌落状态下,可以控制电子设备的屏幕进行发声,屏幕发声原理在于屏幕振动,从而,可以通过发声减缓电子设备的跌落趋势,进而,对电子设备进行了有效保护,提升了用户体验。

Figure 201810065185

The embodiment of the present application discloses a drop protection method and related products, which are applied to electronic equipment. The electronic equipment includes a processor, a drop detection sensor and a screen sounder connected to the processor, and the method includes: obtaining the drop data of the electronic device; determine control parameters of the screen sounder according to the drop data; control the electronic device to emit sound according to the control parameters, so as to slow down the falling tendency of the electronic device. In the embodiment of the present application, when the electronic device is in a falling state, the screen of the electronic device can be controlled to emit sound. The principle of the screen sound is that the screen vibrates. Therefore, the falling tendency of the electronic device can be slowed down by the sound, and the electronic device is effectively protected. Improved user experience.

Figure 201810065185

Description

Translated fromChinese
跌落保护方法及相关产品Drop protection methods and related products

技术领域technical field

本申请涉及电子设备技术领域,具体涉及一种跌落保护方法及相关产品。The present application relates to the technical field of electronic equipment, and in particular to a drop protection method and related products.

背景技术Background technique

随着电子设备(如:手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the widespread application of electronic devices (such as mobile phones, tablet computers, etc.), electronic devices can support more and more applications, and their functions are becoming more and more powerful. Electronic devices are developing in the direction of diversification and personalization. Indispensable electronic supplies.

电子设备集成度越来越高,维修成本也越来越高。以手机为例,用户最大的痛点就是屏幕容易碎,而屏幕易碎,整部手机几乎没有维修价值,因为大部分厂家维修换屏的价格差不多已经超过该手机本身的置换价格了。而且,目前行业流行2.5D玻璃作为屏幕保护,更加容易跌坏和碎屏,各个主流厂家都在花大量的研发成本研究提高整机的跌落抗摔能力,如何在电子设备跌落时,对电子设备进行跌落保护的问题亟待解决。The integration of electronic equipment is getting higher and higher, and the maintenance cost is getting higher and higher. Taking mobile phones as an example, the biggest pain point for users is that the screen is easily broken, and the screen is fragile, and the entire mobile phone has almost no maintenance value, because the price of most manufacturers to repair and replace the screen has almost exceeded the replacement price of the mobile phone itself. Moreover, 2.5D glass is currently popular in the industry as a screen protector, which is more likely to break and break the screen. Various mainstream manufacturers are spending a lot of research and development costs to study and improve the drop resistance of the whole machine. How to protect the electronic equipment when it falls The issue of drop protection needs to be addressed urgently.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种跌落保护方法及相关产品,可以在电子设备跌落时,对电子设备进行保护,提升了用户体验。The embodiments of the present application provide a drop protection method and related products, which can protect the electronic device when the electronic device is dropped, thereby improving user experience.

第一方面,本申请实施例提供一种电子设备,所述电子设备包括处理器,以及与所述处理器连接的跌落检测传感器和屏幕发声器,其中,In a first aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor, wherein,

所述跌落检测传感器,用于获取所述电子设备的跌落数据;the drop detection sensor for acquiring drop data of the electronic device;

所述处理器,用于根据所述跌落数据确定所述屏幕发声器的控制参数;以及根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。The processor is configured to determine a control parameter of the screen sounder according to the drop data; and control the electronic device to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

第二方面,本申请实施例提供了一种跌落保护方法,应用于电子设备,所述电子设备包括处理器,以及与所述处理器连接的跌落检测传感器和屏幕发声器,其中,所述方法包括:In a second aspect, an embodiment of the present application provides a drop protection method, which is applied to an electronic device, where the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor, wherein the method include:

所述跌落检测传感器,用于获取所述电子设备的跌落数据;the drop detection sensor for acquiring drop data of the electronic device;

所述处理器,用于根据所述跌落数据确定所述屏幕发声器的控制参数;以及根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。The processor is configured to determine a control parameter of the screen sounder according to the drop data; and control the electronic device to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

第三方面,本申请实施例提供了一种跌落保护方法,应用于包括屏幕发声器的电子设备,所述方法包括:In a third aspect, an embodiment of the present application provides a drop protection method, which is applied to an electronic device including a screen sounder, and the method includes:

获取所述电子设备的跌落数据;obtain drop data of the electronic device;

根据所述跌落数据确定所述屏幕发声器的控制参数;Determine the control parameters of the screen sounder according to the drop data;

根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。The electronic device is controlled to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

第四方面,本申请实施例提供了一种跌落保护装置,应用于包括屏幕发声器的电子设备,所述跌落保护装置包括:In a fourth aspect, an embodiment of the present application provides a drop protection device, which is applied to an electronic device including a screen sounder, and the drop protection device includes:

获取单元,用于获取所述电子设备的跌落数据;an acquisition unit for acquiring drop data of the electronic device;

确定单元,用于根据所述跌落数据确定所述屏幕发声器的控制参数;a determining unit for determining control parameters of the screen sounder according to the drop data;

控制单元,用于根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。The control unit is configured to control the electronic device to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

第五方面,本申请实施例提供了一种电子设备,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第三方面中所描述的部分或全部步骤的指令。In a fifth aspect, embodiments of the present application provide an electronic device, including: a processor and a memory; and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, the program comprising instructions for some or all of the steps as described in the third aspect.

第六方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第三方面中所描述的部分或全部步骤的指令。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program causes a computer to execute the third aspect of the embodiment of the present application instructions for some or all of the steps described in .

第七方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第三方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a seventh aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the Part or all of the steps described in the third aspect of the application embodiment. The computer program product may be a software installation package.

实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:

可以看出,本申请实施例中所描述的跌落保护方法及相关产品,其中的电子设备包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,获取电子设备的跌落数据,根据跌落数据确定屏幕发声器的控制参数,根据控制参数控制电子设备进行发声,以减缓电子设备的跌落趋势,因此,在电子设备在跌落状态下,可以控制电子设备的屏幕进行发声,屏幕发声原理在于屏幕振动,从而,可以通过发声减缓电子设备的跌落趋势,进而,对电子设备进行了有效保护,提升了用户体验。It can be seen that, in the drop protection method and related products described in the embodiments of the present application, the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor, and the drop data of the electronic device is obtained. The data determines the control parameters of the screen sounder, and controls the electronic equipment to sound according to the control parameters to slow down the falling trend of the electronic equipment. Therefore, when the electronic equipment is in a falling state, the screen of the electronic equipment can be controlled to sound. The principle of screen sound is the screen Vibration, thus, the falling tendency of the electronic device can be slowed down by sounding, and further, the electronic device is effectively protected, and the user experience is improved.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

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

图1B是本申请实施例公开的一种跌落保护方法的流程示意图;1B is a schematic flowchart of a drop protection method disclosed in an embodiment of the present application;

图2是本申请实施例公开的另一种跌落保护方法的流程示意图;2 is a schematic flowchart of another drop protection method disclosed in an embodiment of the present application;

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

图4A是本申请实施例提供的一种跌落保护装置的结构示意图;4A is a schematic structural diagram of a fall protection device provided by an embodiment of the present application;

图4B是本申请实施例图4A提供的一种跌落保护装置的另一结构示意图;FIG. 4B is another schematic structural diagram of a drop protection device provided in FIG. 4A according to the embodiment of the present application;

图4C是本申请实施例提供的图4B所描述的跌落保护装置的预估单元的结构示意图;4C is a schematic structural diagram of an estimation unit of the fall protection device described in FIG. 4B provided by an embodiment of the present application;

图4D是本申请实施例提供的图4C所描述的预估单元的配置模块的结构示意图;4D is a schematic structural diagram of a configuration module of the estimation unit described in FIG. 4C provided by an embodiment of the present application;

图5是本申请实施例公开的另一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.

具体实施方式Detailed ways

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

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover 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 also includes For other steps or units inherent to 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 appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为电子设备。当然,本申请实施例中的电子设备可以配置一些外围配件,例如,屏幕保护膜、保护套等等。本申请实施例中的电子设备至少可以包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,跌落检测传感器可以包括以下至少一种:加速度传感器、测距传感器、风速风向传感器、摄像头等等,上述摄像头可以为以下至少一种:红外摄像头,可见光摄像头,还可以为双摄像头,依据摄像头设置的位置还可以为:前置摄像头,后置摄像头,侧置摄像头等。屏幕发声器用于驱动屏幕进行发声,屏幕发声器主要包括以下至少一种驱动装置:驱动马达、压电振动器或者激励器,在驱动装置的驱动下,屏幕可以发声,本申请实施例的电子设备的屏幕发声器位于屏幕下方,以压电振动器为例,电子设备中可以安装至少一个压电振动器,用于驱动屏幕振动从而使屏幕发声,压电振动器的振动方向垂直于屏幕,本申请实施例的屏幕发声器可以用于改变电子设备的跌落角度、跌落速度等等。例如,原先电子设备在跌落过程中,屏幕竖直向下,屏幕发声器可以调整跌落角度,调整之后可以是电子设备的后盖竖直向下。上述处理器可以集成Sensor Hub模块,或者,电子设备可以包含Sensor Hub模块,可以通过处理器控制Sensor Hub模块完成下述本申请实施例。The electronic devices 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). equipment, UE), a mobile station (mobile station, MS), a terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as electronic devices. Of course, the electronic device in the embodiment of the present application may be configured with some peripheral accessories, for example, a screen protector, a protective cover, and the like. The electronic device in this embodiment of the present application may include at least a processor, a drop detection sensor and a screen sounder connected to the processor, and the drop detection sensor may include at least one of the following: an acceleration sensor, a ranging sensor, a wind speed and direction sensor, a camera Etc., the above camera can be at least one of the following: an infrared camera, a visible light camera, or a dual camera, and depending on the location of the cameras, it can also be: a front camera, a rear camera, a side camera, and the like. The screen sounder is used to drive the screen to sound, and the screen sounder mainly includes at least one of the following driving devices: a driving motor, a piezoelectric vibrator or an exciter. Under the driving of the driving device, the screen can sound. The electronic equipment of the embodiment of the present application The screen sounder is located below the screen. Taking a piezoelectric vibrator as an example, at least one piezoelectric vibrator can be installed in the electronic device to drive the screen to vibrate to make the screen sound. The vibration direction of the piezoelectric vibrator is perpendicular to the screen. The screen sounder of the application embodiment can be used to change the drop angle, drop speed, etc. of the electronic device. For example, when the original electronic device is dropped, the screen is vertically downward, the screen sounder can adjust the drop angle, and after adjustment, the back cover of the electronic device can be vertically downward. The foregoing processor may integrate a Sensor Hub module, or the electronic device may include a Sensor Hub module, and the following embodiments of the present application may be implemented by controlling the Sensor Hub module through the processor.

下面对本申请实施例进行详细介绍。The embodiments of the present application will be described in detail below.

请参阅图1A,图1A是本发明实施例提供了一种电子设备100的结构示意图,上述电子设备100包括:处理器110、跌落检测传感器120、屏幕发声器130和存储器140,跌落检测传感器120、屏幕发声器130和存储器140均电连接于处理器110。Please refer to FIG. 1A . FIG. 1A is a schematic structural diagram of anelectronic device 100 provided by an embodiment of the present invention. Theelectronic device 100 includes: aprocessor 110 , adrop detection sensor 120 , a screen sounder 130 and amemory 140 , and thedrop detection sensor 120 , thescreen sounder 130 and thememory 140 are all electrically connected to theprocessor 110 .

所述跌落检测传感器120,用于获取所述电子设备的跌落数据;Thedrop detection sensor 120 is used to obtain the drop data of the electronic device;

所述处理器110,用于根据所述跌落数据确定所述屏幕发声器130的控制参数;以及根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。Theprocessor 110 is configured to determine control parameters of the screen sounder 130 according to the drop data; and control the electronic device to emit sound according to the control parameters, so as to slow down the falling tendency of the electronic device.

可以看出,本申请实施例中所描述的电子设备包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,获取电子设备的跌落数据,根据跌落数据确定屏幕发声器的控制参数,根据控制参数控制电子设备进行发声,以减缓电子设备的跌落趋势,因此,在电子设备在跌落状态下,可以控制电子设备的屏幕进行发声,屏幕发声原理在于屏幕振动,从而,可以通过发声减缓电子设备的跌落趋势,进而,对电子设备进行了有效保护,提升了用户体验。It can be seen that the electronic device described in the embodiment of the present application includes a processor, a drop detection sensor and a screen sounder connected to the processor, obtains drop data of the electronic device, and determines the control parameters of the screen sounder according to the drop data, The electronic device is controlled to emit sound according to the control parameters to slow down the falling tendency of the electronic device. Therefore, when the electronic device is in a falling state, the screen of the electronic device can be controlled to emit sound. The principle of screen sound is that the screen vibrates. The falling trend of the device, in turn, effectively protects the electronic device and improves the user experience.

在一个可能的示例中,所述处理器110还具体用于:In a possible example, theprocessor 110 is further specifically configured to:

根据所述跌落数据预估所述电子设备与地面之间的受力,以及确定所述电子设备最先接触地面的硬件部位;Estimate the force between the electronic device and the ground according to the drop data, and determine the hardware part where the electronic device first contacts the ground;

确定与所述硬件部位对应的受力阈值;determining the force threshold corresponding to the hardware part;

在所述受力大于所述受力阈值时,执行所述根据所述跌落数据确定所述屏幕发声器的控制参数的步骤。When the force is greater than the force threshold, the step of determining the control parameter of the screen sounder according to the drop data is performed.

在一个可能的示例中,所述跌落数据包括地面材质、当前跌落速度和跌落高度;In a possible example, the drop data includes ground material, current drop speed and drop height;

在所述根据所述跌落数据预估所述电子设备与地面之间的受力方面,所述处理器110具体用于:In the aspect of estimating the force between the electronic device and the ground according to the drop data, theprocessor 110 is specifically configured to:

确定与所述地面材质对应的缓冲时长;determining the buffer duration corresponding to the ground material;

根据所述当前跌落速度和所述跌落高度确定所述电子设备在落地时的最终跌落速度;Determine the final drop speed of the electronic device when it falls according to the current drop speed and the drop height;

根据所述最终跌落速度、所述缓冲时长以及动量定理确定所述电子设备与地面之间的受力。The force between the electronic device and the ground is determined according to the final drop speed, the buffer duration and the momentum theorem.

在一个可能的示例中,在所述根据所述跌落数据确定所述屏幕发声器的控制参数方面,所述处理器110具体用于:In a possible example, in the aspect of determining the control parameter of the screen sounder according to the drop data, theprocessor 110 is specifically configured to:

确定与所述受力阈值对应的目标跌落速度;determining the target falling speed corresponding to the force threshold;

根据所述最终跌落速度、所述目标跌落速度以及动能守恒定律确定所述屏幕发声器在竖直向上方向需产生的最小能量;Determine the minimum energy that the screen sound generator needs to generate in the vertical upward direction according to the final falling speed, the target falling speed and the law of conservation of kinetic energy;

根据所述最小能量配置所述屏幕发声器的控制参数。The control parameters of the screen sounder are configured according to the minimum energy.

在一个可能的示例中,所述储存器140中预先存储了P个发声片段,所述P为大于1的整数;In a possible example, P sound segments are pre-stored in thestorage 140, where P is an integer greater than 1;

在所述根据所述最小能量配置所述屏幕发声器的控制参数方面,所述处理器110具体用于:In the aspect of configuring the control parameters of the screen sounder according to the minimum energy, theprocessor 110 is specifically configured to:

从所述P个发声片段中选取播放时长小于或等于预设阈值的发声片段,得到Q个发声片段,所述Q为小于所述P的正整数;From the P sounding segments, select sounding segments whose playback duration is less than or equal to a preset threshold to obtain Q sounding segments, where Q is a positive integer less than the P;

确定所述Q个发声片段中每一发声片段在竖直向上方向上产生的能量,得到Q个能量值;determining the energy generated by each of the Q vocal segments in the vertical upward direction to obtain Q energy values;

从所述Q个能量值中选取大于所述最小能量的任一能量值对应的目标发声片段,并获取所述目标发声片段对应的控制参数。A target vocalization segment corresponding to any energy value greater than the minimum energy is selected from the Q energy values, and control parameters corresponding to the target vocalization segment are acquired.

其中,处理器是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器中。Among them, the processor is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory, and calling the data stored in the memory, Perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. Optionally, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor.

基于上述图1A所描述的电子设备,可用于执行如下所描述的一种跌落保护方法,具体如下:Based on the electronic device described in FIG. 1A above, it can be used to implement a drop protection method as described below, specifically as follows:

所述跌落检测传感器120,用于获取所述电子设备的跌落数据;Thedrop detection sensor 120 is used to obtain the drop data of the electronic device;

所述处理器110,用于根据所述跌落数据确定所述屏幕发声器130的控制参数;以及根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。Theprocessor 110 is configured to determine control parameters of the screen sounder 130 according to the drop data; and control the electronic device to emit sound according to the control parameters, so as to slow down the falling tendency of the electronic device.

基于图1A所描述的电子设备,请参阅图1B,为本申请实施例提供的一种跌落保护方法的实施例流程示意图。该跌落保护方法应用于电子设备,所述电子设备包括处理器,以及与所述处理器连接的跌落检测传感器和屏幕发声器,其可包括以下步骤:Based on the electronic device described in FIG. 1A , please refer to FIG. 1B , which is a schematic flowchart of an embodiment of a drop protection method provided by an embodiment of the present application. The drop protection method is applied to an electronic device, and the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor, which may include the following steps:

101、获取电子设备的跌落数据。101. Acquire drop data of the electronic device.

其中,上述跌落数据可以包括以下至少一项数据:跌落时间、跌落位置、跌落角度、跌落时电子设备的运行状态、跌落时用户握持电子设备的姿势、跌落速度、地面材质等等。跌落时间可以由电子设备的系统时钟进行记录。跌落位置可以由电子设备进行定位得到,当然,也可以通过摄像头对环境进行拍摄,得到环境影像,将该环境影像作为跌落位置。跌落角度、跌落速度、地面材质可以通过跌落检测传感器检测得到。跌落时电子设备的运行状态可以包括以下至少一项:熄/亮屏状态、前台运行哪个应用、电子设备的CPU负荷、电子设备的电量等等。跌落时用户握持电子设备的姿势可以为跌落前握持电子设备的姿势,例如,电子设备的机身可以设置压力传感器,进而,可以检测到用户握持电子设备的姿势。The above-mentioned drop data may include at least one of the following data: drop time, drop position, drop angle, operating state of the electronic device during the drop, posture of the user holding the electronic device during the drop, drop speed, ground material, and the like. The drop time can be recorded by the electronic device's system clock. The drop position can be obtained by positioning the electronic device. Of course, the environment can also be photographed by a camera to obtain an environment image, and the environment image can be used as the drop position. The drop angle, drop speed, and ground material can be detected by the drop detection sensor. The operating state of the electronic device when dropped may include at least one of the following: screen off/bright state, which application is running in the foreground, CPU load of the electronic device, power of the electronic device, and the like. The posture of the user holding the electronic device during the fall may be the posture of holding the electronic device before the drop. For example, a pressure sensor may be provided on the body of the electronic device, and further, the posture of the user holding the electronic device may be detected.

可选地,上述跌落数据可以为一段时间或者某个时刻的跌落数据。本申请实施例中的电子设备可以在运动状态下记录电子设备的跌落数据,本申请实施例中,运动状态可以包括跌落状态和非跌落状态。Optionally, the above-mentioned drop data may be drop data for a period of time or a certain moment. The electronic device in the embodiment of the present application may record the drop data of the electronic device in a motion state. In the embodiment of the present application, the motion state may include a drop state and a non-drop state.

例如,可以利用跌落数据判断电子设备的运动状态,例如,用户在跑步,则电子设备也可能出现失重状态,因此,有必要对这一情形加以排除,即判断电子设备是否真的处于跌落状态,跌落状态下的重力加速度会保持不变,依据这个原理,可以获取一段时间的跌落数据,进而,根据这部分跌落数据判断其电子设备是否处于跌落状态。上述电子设备的运动状态可以为跌落状态和非跌落状态。For example, drop data can be used to determine the motion state of the electronic device. For example, if the user is running, the electronic device may also appear in a state of weightlessness. Therefore, it is necessary to exclude this situation, that is, to determine whether the electronic device is really in a falling state. The gravitational acceleration in the falling state will remain unchanged. According to this principle, the falling data for a period of time can be obtained, and then, according to this part of the falling data, it can be judged whether the electronic device is in the falling state. The motion state of the above electronic device may be a drop state and a non-drop state.

可选地,上述步骤101与步骤102之间还可以包括如下步骤:Optionally, theabove steps 101 and 102 may further include the following steps:

根据所述跌落数据判断所述电子设备的运动状态,在所述电子设备的运动状态为跌落状态时,执行步骤102。The motion state of the electronic device is determined according to the drop data, and when the motion state of the electronic device is a drop state,step 102 is performed.

进一步地,上述根据所述跌落数据判断所述电子设备的运动状态,可以包括如下步骤:Further, judging the motion state of the electronic device according to the drop data above may include the following steps:

A1、根据所述跌落数据提取出所述电子设备的加速度变化曲线;A1. Extract the acceleration variation curve of the electronic device according to the drop data;

A2、在所述加速度变化曲线符合预设条件时,确定所述电子设备处于跌落状态,在所述加速度变化曲线不符合所述预设条件时,确定所述电子设备处于非跌落状态。A2. When the acceleration change curve meets the preset condition, determine that the electronic device is in a drop state, and when the acceleration change curve does not meet the preset condition, determine that the electronic device is in a non-drop state.

其中,上述预设条件可以由用户自行设置,或者,系统默认。可以从跌落数据中提取出电子设备的加速度变化曲线,进而,确定该加速度的均值,判断该加速度的均值是否处于第一预设范围,若加速度的均值处于第一预设范围,则说明书加速度变化曲线符合预设条件,或者,可以确定最大加速度和最小加速度,判断该最大加速度以及该最小加速度是否均处于第二预设范围,若该最大加速度以及该最小加速度均处于第二预设范围,则说明加速度变化曲线符合预设条件,上述第一预设范围、第二预设范围均可以由用户自行设置,或者,系统默认。由于通常下,重力加速度g=9.81m/s2,即使在不同的经纬度,或者,也只是稍有变化,就算是受到风力阻挡,也会保持在一个固定范围,因此,本申请实施例基于此,来判断电子设备是否真的处于跌落状态。The above preset conditions may be set by the user, or the system defaults. The acceleration change curve of the electronic device can be extracted from the drop data, and then the average value of the acceleration is determined, and whether the average value of the acceleration is within the first preset range is determined. The curve meets the preset conditions, or the maximum acceleration and the minimum acceleration can be determined, and it is determined whether the maximum acceleration and the minimum acceleration are both within the second preset range. If both the maximum acceleration and the minimum acceleration are within the second preset range, then It means that the acceleration change curve complies with the preset conditions, and the above-mentioned first preset range and second preset range can be set by the user, or the system defaults. Since generally, the gravitational acceleration g=9.81m/s2 , even at different latitudes and longitudes, or only slightly changed, even if it is blocked by wind, it will remain within a fixed range. Therefore, the embodiments of the present application are based on this , to determine whether the electronic device is really in a falling state.

可选地,上述步骤101与上述步骤102之间,还可以包括如下步骤:Optionally, between theabove step 101 and theabove step 102, the following steps may also be included:

根据所述跌落数据确定跌落高度,在所述跌落高度大于预设跌落高度时,执行步骤102,在所述跌落高度小于或等于所述预设跌落高度时,不执行步骤102。The drop height is determined according to the drop data. When the drop height is greater than the preset drop height,step 102 is executed, and when the drop height is less than or equal to the preset drop height,step 102 is not executed.

其中,本申请实施例中,跌落检测传感器可以包括测距传感器,通过该测距传感器检测跌落高度,或者,跌落检测传感器包括双摄像头,利用该双摄像头检测跌落高度。在跌落高度大于预设跌落高度时,则说明该高度可能会对电子设备的屏幕造成较大损坏,因此,可以执行步骤102,对电子设备的屏幕进行跌落保护。在跌落高度小于或等于预设跌落高度,则说明该高度较为安全,一般跌落了不会对电子设备造成损坏。Wherein, in the embodiment of the present application, the drop detection sensor may include a ranging sensor, through which the drop height is detected, or the drop detection sensor includes dual cameras, and the drop height is detected by using the dual cameras. When the drop height is greater than the preset drop height, it means that the height may cause great damage to the screen of the electronic device. Therefore, step 102 can be performed to protect the screen of the electronic device from falling. If the drop height is less than or equal to the preset drop height, it means that the height is relatively safe, and the electronic equipment will not be damaged if it is dropped.

102、根据所述跌落数据确定所述屏幕发声器的控制参数。102. Determine a control parameter of the screen sounder according to the drop data.

其中,跌落数据在一定情况下反映了电子设备的跌落环境,进而,针对不同的跌落环境,可以采用不同的屏幕发声器的控制参数,如此,以在各种环境下,减缓电子设备的跌落趋势,以保护电子设备。Among them, the drop data reflects the drop environment of the electronic device under certain circumstances, and further, for different drop environments, different control parameters of the screen sounder can be used, so as to slow down the drop trend of the electronic device in various environments. , to protect electronic equipment.

可选地,上述控制参数可以为以下至少一种:控制屏幕发声器的控制电压、控制屏幕发声器的控制电流、控制屏幕发声器的控制功率、控制屏幕发声器的发声时长、控制屏幕发声器的发声频率、控制屏幕发声器的发声幅度、控制屏幕发声器的发声周期、控制屏幕发声器的播放音量、控制屏幕发声器的振动音效、控制屏幕发声器的播放音色等等。Optionally, the above-mentioned control parameters can be at least one of the following: control voltage of the screen sounder, control current of the screen sounder, control power of the screen sounder, sound duration of the control screen sounder, control screen sounder control the sounding frequency of the screen sounder, control the sounding amplitude of the screen sounder, control the sounding period of the screen sounder, control the playback volume of the screen sounder, control the vibration sound effect of the screen sounder, control the playback tone of the screen sounder, etc.

可选地,在上述步骤101与步骤102之间,还可以包括如下步骤:Optionally, between theabove steps 101 and 102, the following steps may also be included:

A1、根据所述跌落数据预估所述电子设备与地面之间的受力,以及确定所述电子设备最先接触地面的硬件部位;A1. Estimate the force between the electronic device and the ground according to the drop data, and determine the hardware part where the electronic device first contacts the ground;

A2、确定与所述硬件部位对应的受力阈值;A2. Determine the force threshold corresponding to the hardware part;

A3、在所述受力大于所述受力阈值时,执行步骤102。A3. When the force is greater than the force threshold, performstep 102.

进一步可选地,所述跌落数据包括地面材质、当前跌落速度和跌落高度;Further optionally, the drop data includes ground material, current drop speed and drop height;

其中,电子设备在不同的地面,受到来自地面的缓冲力不一样,因此,可以结合不同的地面材质,以及跌落速度,可以预估出电子设备与地面之间的受力。电子设备的跌落角度可以由跌落检测传感器检测得到,不同的跌落角度,决定了电子设备最先接触地面的硬件部位不一样,具体地,可以预先设置跌落角度与最先接触地面的硬件部位之间的映射关系,该映射关系可以通过大量实验得到。当然,不同的硬件部位所能承受的受力阈值也不一样,例如,屏幕落地与后盖落地的受力阈值不一样,可以理解的是,超过受力阈值的话,电子设备会出现损坏,而小于受力阈值则电子设备相对安全,电子设备的存储器中可以预先存储硬件部位与受力阈值之间的映射关系,进而,根据该映射关系,可以得到最先接触地面的硬件部位对应的受力阈值,在受力大于受力阈值时,这时候电子设备极有可能出现损坏,这时候可以获取电子设备的跌落数据。Among them, the electronic equipment receives different buffering force from the ground on different grounds. Therefore, the force between the electronic equipment and the ground can be estimated by combining different ground materials and drop speeds. The drop angle of the electronic device can be detected by the drop detection sensor. Different drop angles determine that the hardware part of the electronic device that first contacts the ground is different. Specifically, the distance between the drop angle and the hardware part that first contacts the ground can be preset. The mapping relationship can be obtained through a large number of experiments. Of course, the force thresholds that different hardware parts can withstand are different. For example, the force thresholds of the screen landing and the back cover landing are different. It is understandable that if the force threshold is exceeded, the electronic equipment will be damaged. If it is less than the force threshold, the electronic device is relatively safe. The mapping relationship between the hardware part and the force threshold can be pre-stored in the memory of the electronic device, and then, according to the mapping relationship, the force corresponding to the hardware part that first contacts the ground can be obtained. Threshold, when the force is greater than the force threshold, the electronic device is very likely to be damaged at this time, and the drop data of the electronic device can be obtained at this time.

进一步可选地,所述跌落数据包括地面材质、当前跌落速度和跌落高度;上述步骤A1,根据所述跌落数据预估所述电子设备与地面之间的受力,可包括如下步骤:Further optionally, the drop data includes the ground material, the current drop speed and the drop height; the above-mentioned step A1, according to the drop data, estimates the force between the electronic device and the ground, which may include the following steps:

A11、确定与所述地面材质对应的缓冲时长;A11. Determine the buffer duration corresponding to the ground material;

A12、根据所述当前跌落速度和所述跌落高度确定所述电子设备在落地时的最终跌落速度;A12. Determine the final drop speed of the electronic device when it lands according to the current drop speed and the drop height;

A13、根据所述最终跌落速度、所述缓冲时长以及动量定理确定所述电子设备与地面之间的受力。A13. Determine the force between the electronic device and the ground according to the final drop speed, the buffer duration and the momentum theorem.

其中,不同的地面材质对应的缓冲时长不同,可以预先设置地面材质与缓冲时长之间的映射关系,进而,可以利用摄像头检测到地面材质,再根据该映射关系确定与地面材质对应的缓冲时长。当然,在知晓当前跌落速度、当前跌落高度的情况下,可以由自由落体公式得到电子设备在落地时的最终跌落速度,再根据动量定理便可以得到电子设备与之间的受力,具体如下:Wherein, different ground materials have different buffer durations, and a mapping relationship between the ground materials and the buffer duration can be preset, and further, the camera can be used to detect the ground materials, and then the buffer duration corresponding to the ground materials can be determined according to the mapping relationship. Of course, when the current drop speed and current drop height are known, the final drop speed of the electronic device upon landing can be obtained from the free fall formula, and then the force between the electronic device and the electronic device can be obtained according to the momentum theorem, as follows:

mv=ftmv=ft

其中,m为电子设备的质量,m为已知量(电子设备的质量),v为最终跌落速度,t为缓冲时长,f为电子设备与地面之间的受力。Among them, m is the mass of the electronic device, m is a known quantity (the mass of the electronic device), v is the final drop speed, t is the buffer time, and f is the force between the electronic device and the ground.

可选地,上述硬件部位可以为以下一种:屏幕、后盖、壳体、摄像头等等,在此不作具体限定。Optionally, the above-mentioned hardware parts may be one of the following: a screen, a back cover, a casing, a camera, etc., which are not specifically limited here.

进一步可选地,上述步骤102中,根据所述跌落数据确定所述屏幕发声器的控制参数,可包括如下步骤:Further optionally, in theabove step 102, determining the control parameters of the screen sounder according to the drop data may include the following steps:

21、确定与所述受力阈值对应的目标跌落速度;21. Determine the target falling speed corresponding to the force threshold;

22、根据所述最终跌落速度、所述目标跌落速度以及动能守恒定律确定所述屏幕发声器在竖直向上方向需产生的最小能量;22. Determine the minimum energy that the screen sounder needs to generate in the vertical upward direction according to the final drop speed, the target drop speed and the law of conservation of kinetic energy;

23、根据所述最小能量配置所述屏幕发声器的控制参数。23. Configure the control parameters of the screen sounder according to the minimum energy.

其中,由于落地时候的跌落速度不一样,电子设备与地面之间的受力不一样,因而,电子设备中可以预先存储受力阈值与落地跌落速度之间的对应关系,根据该对应关系可以确定受力阈值对应的目标跌落速度。Among them, due to the different falling speeds when landing, the force between the electronic device and the ground is different. Therefore, the corresponding relationship between the force threshold and the landing drop speed can be pre-stored in the electronic device, and can be determined according to the corresponding relationship. The falling speed of the target corresponding to the force threshold.

进而,可以根据如下公式计算出反向运动需产生的最小能量,具体如下:Furthermore, the minimum energy that the reverse motion needs to generate can be calculated according to the following formula, as follows:

Figure GDA0002498303410000091
Figure GDA0002498303410000091

其中,Emin表示最小能量,m表示电子设备的质量,v2表示最终跌落速度,v1表示目标跌落速度。当然,屏幕发声器需要做功的大小不小于上述最小能量,且上述屏幕发声器所需产生的最小能量可在电子设备落地之前完成。依据该最小能量可以得到控制参数,具体地,可以预先设置最小能量与控制参数之间的对应关系,进而,依据该对应关系快速配置屏幕发声器的控制参数。Among them, Emin represents the minimum energy, m represents the mass of the electronic device, v2 represents the final drop speed, and v1 represents the target drop speed. Of course, the size of the work that the screen sounder needs to do is not less than the above-mentioned minimum energy, and the minimum energy required by the above-mentioned screen sounder can be completed before the electronic device is dropped. The control parameters can be obtained according to the minimum energy. Specifically, the corresponding relationship between the minimum energy and the control parameters can be preset, and then the control parameters of the screen sounder can be quickly configured according to the corresponding relationship.

进一步可选地,所述电子设备中预先存储了P个发声片段,所述P为大于1的整数;上述步骤23中,根据所述最小能量配置所述屏幕发声器的控制参数,可包括如下步骤:Further optionally, P sound segments are pre-stored in the electronic device, and P is an integer greater than 1; in the above step 23, the control parameters of the screen sounder are configured according to the minimum energy, which may include the following step:

231、从所述P个发声片段中选取播放时长小于或等于预设阈值的发声片段,得到Q个发声片段,所述Q为小于所述P的正整数;231. From the P sounding segments, select sounding segments whose playback duration is less than or equal to a preset threshold to obtain Q sounding segments, where Q is a positive integer less than the P;

232、确定所述Q个发声片段中每一发声片段在竖直向上方向上产生的能量,得到Q个能量值;232. Determine the energy generated by each of the Q vocal segments in the vertical upward direction, and obtain Q energy values;

233、从所述Q个能量值中选取大于所述最小能量的任一能量值对应的目标发声片段,并获取所述目标发声片段对应的控制参数。233. Select a target vocalization segment corresponding to any energy value greater than the minimum energy from the Q energy values, and acquire a control parameter corresponding to the target vocalization segment.

其中,上述电子设备中可以预先存储P个发声片段,P为大于1的整数。上述预设阈值可以为当前时刻与电子设备在自由落体状态下的落地时刻之间的任一时长。由于电子设备若落地了,屏幕发声器再驱动电子设备的屏幕进行发声,则不会对跌落趋势有任何改变,基于此,可以从Q个发声片段中选取播放时长小于或等于预设阈值的发声片段,得到Q个发声片段,Q为小于P的正整数。由于在跌落状态下,主要是重力导致,因此,需要在竖直方向上方向上产生的能量抵消掉部分重力做功,以降低跌落趋势。Q个发声片段中每一发声片段均会在竖直方向上产生能量,得到Q个能量值,从Q个能量值中选取大于最小能量的任一能量值对应的发声片段,并获取该发声片段对应的控制参数。Wherein, the above-mentioned electronic device may store P sound segments in advance, where P is an integer greater than 1. The above-mentioned preset threshold may be any time period between the current moment and the landing moment of the electronic device in the free fall state. Since if the electronic device falls to the ground, the screen sounder drives the screen of the electronic device to emit sound, and there will be no change in the falling trend. Based on this, the sound with the playback duration less than or equal to the preset threshold can be selected from the Q sound-emitting segments. segment, to obtain Q vocal segments, where Q is a positive integer less than P. Since in the falling state, it is mainly caused by gravity, therefore, the energy generated in the vertical direction needs to offset part of the work done by gravity, so as to reduce the falling tendency. Each of the Q vocal segments will generate energy in the vertical direction, obtain Q energy values, select the vocal segment corresponding to any energy value greater than the minimum energy from the Q energy values, and obtain the vocal segment corresponding control parameters.

其中,上述步骤232中,确定所述Q个发声片段中每一发声片段在竖直向上方向上产生的能量,得到Q个能量值,可包括如下步骤:Wherein, in the above step 232, determining the energy generated by each sounding segment in the vertical upward direction among the Q sounding segments, and obtaining Q energy values, may include the following steps:

2321、对所述电子设备在所述Q个发声片段下的运行轨迹进行模拟,得到Q个运行轨迹;2321. Simulate the running trajectories of the electronic device under the Q sounding segments to obtain Q running trajectories;

2322、基于所述Q个运行轨迹计算所述Q个发声片段中每一发声片段在竖直方向上产生的能量,得到Q个能量值。2322. Calculate, based on the Q running trajectories, the energy generated by each of the Q vocal segments in the vertical direction, to obtain Q energy values.

其中,每一发声片段对应的控制参数为一个已知量,基于当前运动可以模拟出电子设备在每一发声片段下的运动轨迹,进而,通过运动轨迹计算出每一发声片段在竖直方向上产生的能量,得到Q个能量值。Wherein, the control parameter corresponding to each sound segment is a known quantity, and the motion trajectory of the electronic device under each sound segment can be simulated based on the current motion, and further, the vertical direction of each sound segment can be calculated through the motion trajectory. Generated energy, get Q energy values.

103、根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。103. Control the electronic device to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

其中,一方面可以通过控制参数缓解电子设备的跌落趋势,另一方面,通过屏幕发声也可以提醒用户,用户可以快速注意到电子设备跌落了,保障了电子设备的安全性。Among them, on the one hand, the falling tendency of the electronic device can be alleviated by controlling the parameters, and on the other hand, the screen sound can also remind the user, the user can quickly notice that the electronic device has fallen, and the safety of the electronic device is guaranteed.

可选地,上述步骤103之后,还可以包括如下步骤:Optionally, after theabove step 103, the following steps may also be included:

若检测到地面为水环境时,进行断电保护。If it is detected that the ground is in a water environment, power-off protection is performed.

即,当电子设备落入水中时,可以防止电子设备进水。That is, when the electronic device falls into the water, the electronic device can be prevented from entering the water.

可以看出,本申请实施例中所描述的跌落保护方法,应用于电子设备,其中的电子设备包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,获取电子设备的跌落数据,根据跌落数据确定屏幕发声器的控制参数,根据控制参数控制电子设备进行发声,以减缓电子设备的跌落趋势,因此,在电子设备在跌落状态下,可以控制电子设备的屏幕进行发声,屏幕发声原理在于屏幕振动,从而,可以通过发声减缓电子设备的跌落趋势,进而,对电子设备进行了有效保护,提升了用户体验。It can be seen that the drop protection method described in the embodiments of the present application is applied to an electronic device, wherein the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor to obtain drop data of the electronic device, Determine the control parameters of the screen sounder according to the drop data, and control the electronic equipment to sound according to the control parameters to slow down the falling trend of the electronic equipment. Therefore, when the electronic equipment is in the state of falling, the screen of the electronic equipment can be controlled to sound. The principle of screen sound It is because the screen vibrates, so that the falling tendency of the electronic device can be slowed down by sounding, thereby effectively protecting the electronic device and improving the user experience.

与上述一致地,请参阅图2,为本申请实施例提供的一种跌落保护方法的实施例流程示意图。本实施例中所描述的跌落保护方法,主要对上述步骤102进行细化,上述步骤102可包括如下步骤202和步骤203,具体地,本申请实施例可包括以下步骤:Consistent with the above, please refer to FIG. 2 , which is a schematic flowchart of an embodiment of a drop protection method provided by an embodiment of the present application. The drop protection method described in this embodiment mainly refines theabove step 102. Theabove step 102 may include the followingsteps 202 and 203. Specifically, the embodiment of the present application may include the following steps:

201、获取所述电子设备的跌落数据,所述跌落数据包括跌落角度和落地时间。201. Acquire drop data of the electronic device, where the drop data includes a drop angle and a landing time.

202、通过所述跌落角度确定所述电子设备的待旋转角度,所述待旋转角度用于旋转所述电子设备的跌落姿势,使得旋转后所述电子设备的屏幕方向为竖直向上。202. Determine the to-be-rotated angle of the electronic device according to the drop angle, where the to-be-rotated angle is used to rotate the drop posture of the electronic device, so that the screen orientation of the electronic device is vertically upward after the rotation.

其中,不同的跌落角度说明电子设备不同的部位会先接触地面,因此,本申请实施例中为了避免屏幕优先落地,可以通过屏幕发声器对电子设备的跌落姿势进行调整。具体地,可以根据跌落角度确定电子设备的待旋转角度,该待旋转角度用于对电子设备进行旋转,旋转后电子设备的屏幕方向为竖直向上。Wherein, different drop angles indicate that different parts of the electronic device will contact the ground first. Therefore, in this embodiment of the present application, in order to prevent the screen from falling first, the screen sounder can be used to adjust the drop posture of the electronic device. Specifically, the to-be-rotated angle of the electronic device can be determined according to the drop angle, the to-be-rotated angle is used to rotate the electronic device, and the screen orientation of the electronic device is vertically upward after the rotation.

203、确定所述待旋转角度对应的屏幕发声器的控制参数,所述控制参数包括:发声时间和控制功率,所述发声时间小于所述落地时间。203. Determine a control parameter of the screen sounder corresponding to the to-be-rotated angle, where the control parameter includes: sounding time and control power, and the sounding time is less than the landing time.

其中,电子设备中可以预先存储旋转角度与控制参数之间的映射关系,进而,根据该映射关系确定待旋转角度对应的屏幕发声器的控制参数。Wherein, the mapping relationship between the rotation angle and the control parameter may be stored in the electronic device in advance, and then the control parameter of the screen sounder corresponding to the to-be-rotated angle is determined according to the mapping relationship.

204、根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。204. Control the electronic device to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

其中,上述步骤201、204的具体描述可参照图1B所描述的跌落保护方法的对应步骤,在此不再赘述。The specific description of theabove steps 201 and 204 can refer to the corresponding steps of the drop protection method described in FIG. 1B , which will not be repeated here.

可以看出,本申请实施例中所描述的跌落保护方法,应用于电子设备,该电子设备包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,获取电子设备的跌落数据,跌落数据包括跌落角度和落地时间,通过跌落角度确定电子设备的待旋转角度,待旋转角度用于旋转电子设备的跌落姿势,使得旋转后电子设备的屏幕方向为竖直向上,确定待旋转角度对应的屏幕发声器的控制参数,控制参数包括:发声时间和控制功率,发声时间小于落地时间,根据控制参数控制电子设备进行发声,以减缓电子设备的跌落趋势,因此,在电子设备在跌落状态下,可以控制电子设备的屏幕进行发声,屏幕发声原理在于屏幕振动,从而,可以通过发声减缓电子设备的跌落趋势,进而,对电子设备进行了有效保护,提升了用户体验。It can be seen that the drop protection method described in the embodiments of the present application is applied to an electronic device, and the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor, and the drop data of the electronic device is obtained. The data includes the falling angle and the landing time. The falling angle is used to determine the to-be-rotated angle of the electronic device. The to-be-rotated angle is used to rotate the falling posture of the electronic device, so that the screen orientation of the electronic device is vertical after the rotation. Determine the corresponding angle of the electronic device to be rotated. The control parameters of the screen sounder, the control parameters include: sounding time and control power, the sounding time is less than the landing time, and the electronic equipment is controlled to sound according to the control parameters to slow down the falling trend of the electronic equipment. Therefore, when the electronic equipment is in a falling state, The screen of the electronic device can be controlled to emit sound. The principle of the screen sound is the vibration of the screen. Therefore, the falling trend of the electronic device can be slowed down by the sound, and the electronic device is effectively protected and the user experience is improved.

与上述一致地,以下是实施上述跌落保护方法的装置,具体如下:Consistent with the above, the following is an apparatus for implementing the above-mentioned drop protection method, as follows:

与上述一致地,请参阅图3,图3是本申请实施例提供的一种电子设备,包括:处理器和存储器,还可以包括与所述处理器连接的跌落检测传感器、屏幕发声器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行以下步骤的指令:Consistent with the above, please refer to FIG. 3. FIG. 3 is an electronic device provided by an embodiment of the present application, including: a processor and a memory, and may also include a drop detection sensor and a screen sounder connected to the processor; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of:

获取所述电子设备的跌落数据;obtain drop data of the electronic device;

根据所述跌落数据确定所述屏幕发声器的控制参数;Determine the control parameters of the screen sounder according to the drop data;

根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。The electronic device is controlled to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:In one possible example, the program also includes instructions for performing the following steps:

根据所述跌落数据预估所述电子设备与地面之间的受力,以及确定所述电子设备最先接触地面的硬件部位;Estimate the force between the electronic device and the ground according to the drop data, and determine the hardware part where the electronic device first contacts the ground;

确定与所述硬件部位对应的受力阈值;determining the force threshold corresponding to the hardware part;

在所述受力大于所述受力阈值时,执行所述根据所述跌落数据确定所述屏幕发声器的控制参数的步骤。When the force is greater than the force threshold, the step of determining the control parameter of the screen sounder according to the drop data is performed.

在一个可能的示例中,所述跌落数据包括地面材质、当前跌落速度和跌落高度;In a possible example, the drop data includes ground material, current drop speed and drop height;

在所述根据所述跌落数据预估所述电子设备与地面之间的受力方面,所述程序包括用于执行以下步骤的指令:In the aspect of estimating the force between the electronic device and the ground according to the drop data, the program includes instructions for performing the following steps:

确定与所述地面材质对应的缓冲时长;determining the buffer duration corresponding to the ground material;

根据所述当前跌落速度和所述跌落高度确定所述电子设备在落地时的最终跌落速度;Determine the final drop speed of the electronic device when it falls according to the current drop speed and the drop height;

根据所述最终跌落速度、所述缓冲时长以及动量定理确定所述电子设备与地面之间的受力。The force between the electronic device and the ground is determined according to the final drop speed, the buffer duration and the momentum theorem.

在一个可能的示例中,在所述根据所述跌落数据确定所述屏幕发声器的控制参数方面,所述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of determining the control parameters of the screen sounder according to the drop data, the program includes instructions for performing the following steps:

确定与所述受力阈值对应的目标跌落速度;determining the target falling speed corresponding to the force threshold;

根据所述最终跌落速度、所述目标跌落速度以及动能守恒定律确定所述屏幕发声器在竖直向上方向需产生的最小能量;Determine the minimum energy that the screen sound generator needs to generate in the vertical upward direction according to the final falling speed, the target falling speed and the law of conservation of kinetic energy;

根据所述最小能量配置所述屏幕发声器的控制参数。The control parameters of the screen sounder are configured according to the minimum energy.

在一个可能的示例中,所述电子设备中预先存储了P个发声片段,所述P为大于1的整数;In a possible example, P sound segments are pre-stored in the electronic device, and P is an integer greater than 1;

在所述根据所述最小能量配置所述屏幕发声器的控制参数方面,所述程序包括用于执行以下步骤的指令:In terms of configuring the control parameters of the screen sounder according to the minimum energy, the program includes instructions for performing the following steps:

从所述P个发声片段中选取播放时长小于或等于预设阈值的发声片段,得到Q个发声片段,所述Q为小于所述P的正整数;From the P sounding segments, select sounding segments whose playback duration is less than or equal to a preset threshold to obtain Q sounding segments, where Q is a positive integer less than the P;

确定所述Q个发声片段中每一发声片段在竖直向上方向上产生的能量,得到Q个能量值;determining the energy generated by each of the Q vocal segments in the vertical upward direction to obtain Q energy values;

从所述Q个能量值中选取大于所述最小能量的任一能量值对应的目标发声片段,并获取所述目标发声片段对应的控制参数。A target vocalization segment corresponding to any energy value greater than the minimum energy is selected from the Q energy values, and control parameters corresponding to the target vocalization segment are acquired.

请参阅图4A,图4A是本实施例提供的一种跌落保护装置的结构示意图。该跌落保护装置应用于电子设备,所述电子设备包括处理器,以及与所述处理器连接的跌落检测传感器和屏幕发声器,该跌落保护装置可包括:获取单元401、确定单元402和控制单元403,其中,Please refer to FIG. 4A . FIG. 4A is a schematic structural diagram of a drop protection device provided in this embodiment. The drop protection device is applied to an electronic device, the electronic device includes a processor, a drop detection sensor and a screen sounder connected to the processor, and the drop protection device may include: anacquisition unit 401 , adetermination unit 402 and acontrol unit 403, of which,

获取单元401,用于获取所述电子设备的跌落数据;anacquisition unit 401, configured to acquire drop data of the electronic device;

确定单元402,用于根据所述跌落数据确定所述屏幕发声器的控制参数;Adetermination unit 402, configured to determine control parameters of the screen sounder according to the drop data;

控制单元403,用于根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。Thecontrol unit 403 is configured to control the electronic device to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

可选地,如图4B,图4B为本申请实施例图4A所描述的跌落保护装置的又一变型结构,其与图4A相比较,还可以包括:预估单元404,具体如下:Optionally, as shown in FIG. 4B , FIG. 4B is another modified structure of the drop protection device described in FIG. 4A in the embodiment of the present application. Compared with FIG. 4A , it may further include: anestimation unit 404, which is specifically as follows:

预估单元404,用于根据所述跌落数据预估所述电子设备与地面之间的受力,以及确定所述电子设备最先接触地面的硬件部位;Anestimation unit 404, configured to estimate the force between the electronic device and the ground according to the drop data, and determine the hardware part of the electronic device that first contacts the ground;

所述确定单元402,还具体用于:The determiningunit 402 is also specifically used for:

确定与所述硬件部位对应的受力阈值;determining the force threshold corresponding to the hardware part;

在所述受力大于所述受力阈值时,执行所述根据所述跌落数据确定所述屏幕发声器的控制参数的步骤。When the force is greater than the force threshold, the step of determining the control parameter of the screen sounder according to the drop data is performed.

可选地,所述跌落数据包括地面材质、当前跌落速度和跌落高度;Optionally, the drop data includes ground material, current drop speed and drop height;

在所述根据所述跌落数据预估所述电子设备与地面之间的受力方面,所述预估单元具体用于:In the aspect of estimating the force between the electronic device and the ground according to the drop data, the estimating unit is specifically used for:

确定与所述地面材质对应的缓冲时长;determining the buffer duration corresponding to the ground material;

根据所述当前跌落速度和所述跌落高度确定所述电子设备在落地时的最终跌落速度;Determine the final drop speed of the electronic device when it falls according to the current drop speed and the drop height;

根据所述最终跌落速度、所述缓冲时长以及动量定理确定所述电子设备与地面之间的受力。The force between the electronic device and the ground is determined according to the final drop speed, the buffer duration and the momentum theorem.

可选地,如图4C,图4C为图4B所描述的跌落保护装置的确定单元402的具体细化结构,所述确定单元402可以包括:第一确定模块4021和配置模块4022,具体如下:Optionally, as shown in FIG. 4C , FIG. 4C is a detailed structure of thedetermination unit 402 of the drop protection device described in FIG. 4B , and thedetermination unit 402 may include: afirst determination module 4021 and aconfiguration module 4022 , the details are as follows:

第一确定模块4021,用于确定与所述受力阈值对应的目标跌落速度;Thefirst determination module 4021 is used to determine the target drop speed corresponding to the force threshold;

根据所述最终跌落速度、所述目标跌落速度以及动能守恒定律确定所述屏幕发声器在竖直向上方向需产生的最小能量;Determine the minimum energy that the screen sound generator needs to generate in the vertical upward direction according to the final falling speed, the target falling speed and the law of conservation of kinetic energy;

配置模块4022,用于根据所述最小能量配置所述屏幕发声器的控制参数。Aconfiguration module 4022, configured to configure control parameters of the screen sounder according to the minimum energy.

可选地,如图4D,图4D为本申请实施例图4C所描述的确定单元402的配置模块4022的具体细化结构,所述配置模块4022可以包括:选取模块501和第二确定模块502,具体如下:Optionally, as shown in FIG. 4D , FIG. 4D is a detailed structure of theconfiguration module 4022 of thedetermination unit 402 described in the embodiment of the present application in FIG. 4C . Theconfiguration module 4022 may include: aselection module 501 and asecond determination module 502 ,details as follows:

选取模块501,用于从所述P个发声片段中选取播放时长小于或等于预设阈值的发声片段,得到Q个发声片段,所述Q为小于所述P的正整数;Aselection module 501, configured to select a sounding segment whose playback duration is less than or equal to a preset threshold from the P sounding segments, and obtain Q sounding segments, where Q is a positive integer less than the P;

第二确定模块502,用于确定所述Q个发声片段中每一发声片段在竖直向上方向上产生的能量,得到Q个能量值;Thesecond determination module 502 is configured to determine the energy generated by each of the Q vocal segments in the vertical upward direction, and obtain Q energy values;

所述选取模块501,还用于:Theselection module 501 is also used for:

从所述Q个能量值中选取大于所述最小能量的任一能量值对应的目标发声片段,并获取所述目标发声片段对应的控制参数。A target vocalization segment corresponding to any energy value greater than the minimum energy is selected from the Q energy values, and control parameters corresponding to the target vocalization segment are acquired.

可以看出,本申请实施例中所描述的跌落保护装置,应用于电子设备,其中的电子设备包括处理器,以及与处理器连接的跌落检测传感器和屏幕发声器,获取电子设备的跌落数据,根据跌落数据确定屏幕发声器的控制参数,根据控制参数控制电子设备进行发声,以减缓电子设备的跌落趋势,因此,在电子设备在跌落状态下,可以控制电子设备的屏幕进行发声,屏幕发声原理在于屏幕振动,从而,可以通过发声减缓电子设备的跌落趋势,进而,对电子设备进行了有效保护,提升了用户体验。It can be seen that the drop protection device described in the embodiments of the present application is applied to electronic equipment, wherein the electronic equipment includes a processor, a drop detection sensor and a screen sounder connected to the processor to obtain drop data of the electronic equipment, Determine the control parameters of the screen sounder according to the drop data, and control the electronic equipment to sound according to the control parameters to slow down the falling trend of the electronic equipment. Therefore, when the electronic equipment is in the state of falling, the screen of the electronic equipment can be controlled to sound. The principle of screen sound It is because the screen vibrates, so that the falling tendency of the electronic device can be slowed down by sounding, thereby effectively protecting the electronic device and improving the user experience.

可以理解的是,本实施例的跌落保护装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each program module of the drop protection device in this embodiment can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions of the above method embodiments, which will not be repeated here.

本申请实施例还提供了另一种电子设备,如图5所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(personal digital assistant,个人数字助理)、POS(point of sales,销售终端)、车载电脑等任意终端设备,以电子设备为手机为例:The embodiment of the present application also provides another electronic device, as shown in FIG. 5 , for the convenience of description, only the part related to the embodiment of the present application is shown. If the specific technical details are not disclosed, please refer to the method of the embodiment of the present application. part. The electronic device can be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant, personal digital assistant), a POS (point of sales, a sales terminal), a vehicle-mounted computer, etc. The electronic device is a mobile phone as an example:

图5示出的是与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图5,手机包括:射频(radio frequency,RF)电路910、存储器920、输入输出单元930、传感器950、音频电路960、无线保真(wireless fidelity,Wi-Fi)模块970、处理器980、电源990以及屏幕发声器1000等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 5, the mobile phone includes: a radio frequency (RF)circuit 910, amemory 920, an input andoutput unit 930, asensor 950, anaudio circuit 960, a wireless fidelity (Wi-Fi)module 970, aprocessor 980,Power supply 990 and screen sounder 1000 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.

下面结合图5对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone in conjunction with Figure 5:

输入输出单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入输出单元930可包括屏幕933以及生物识别装置931以及其他输入设备932。生物识别装置931可以为以下至少一种:人脸识别装置、指纹识别装置、虹膜识别装置、静脉识别装置、脑电波识别装置等等。输入输出单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input andoutput unit 930 can be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input andoutput unit 930 may include ascreen 933 and abiometric identification device 931 andother input devices 932 . Thebiometric identification device 931 may be at least one of the following: a face identification device, a fingerprint identification device, an iris identification device, a vein identification device, a brain wave identification device, and the like. The input-output unit 930 may also includeother input devices 932 . Specifically,other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

其中,所述处理器980,用于执行如下步骤:Wherein, theprocessor 980 is configured to perform the following steps:

获取所述电子设备的跌落数据;obtain drop data of the electronic device;

根据所述跌落数据确定所述屏幕发声器的控制参数;Determine the control parameters of the screen sounder according to the drop data;

根据所述控制参数控制所述电子设备进行发声,以减缓所述电子设备的跌落趋势。The electronic device is controlled to emit sound according to the control parameter, so as to slow down the falling tendency of the electronic device.

处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/模或块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元,该处理单元可为人工智能芯片、量子芯片;优选的,处理器980可集成应用处理器(例如,CPU,或者,GPU)和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。上述处理器980可以集成Sensor Hub模块,或者,电子设备可以包含Sensor Hub模块,可以通过处理器980控制Sensor Hub模块完成下述本申请实施例。Theprocessor 980 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules or blocks stored in thememory 920, and calling the data stored in thememory 920, Perform various functions of the mobile phone and process data to monitor the mobile phone as a whole. Optionally, theprocessor 980 may include one or more processing units, and the processing unit may be an artificial intelligence chip or a quantum chip; preferably, theprocessor 980 may integrate an application processor (for example, a CPU, or a GPU) and a modulation The demodulation processor, wherein the application processor mainly handles the operating system, user interface and application programs, etc., and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 980. The above-mentionedprocessor 980 may integrate a Sensor Hub module, or the electronic device may include a Sensor Hub module, and the following embodiments of the present application may be implemented by controlling the Sensor Hub module through theprocessor 980 .

此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Additionally,memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobilecommunication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code divisionmultiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Typically, theRF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition,RF circuitry 910 may communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) access, CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short messaging service (short messaging service, SMS) and the like.

手机还可包括至少一种传感器950,传感器950可以为跌落检测传感器,该跌落检测传感器比如:光传感器、运动传感器以及其他传感器等。具体地,光传感器可包括环境传感器及接近传感器,其中,环境传感器可根据环境光线的明暗来调节触控屏幕的亮度,接近传感器可在手机移动到耳边时,关闭触控屏幕和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone may further include at least onesensor 950, and thesensor 950 may be a drop detection sensor, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an environmental sensor and a proximity sensor, wherein the environmental sensor can adjust the brightness of the touch screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch screen and/or the backlight when the mobile phone is moved to the ear . As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。Theaudio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. Theaudio circuit 960 can convert the received audio data into an electrical signal, and transmit it to the speaker 961, and the speaker 961 converts it into a sound signal for playback; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is converted by theaudio circuit 960 After receiving, the audio data is converted into audio data, and then processed by the audiodata playback processor 980, and sent to, for example, another mobile phone through theRF circuit 910, or the audio data is played to thememory 920 for further processing.

Wi-Fi属于短距离无线传输技术,手机通过Wi-Fi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了Wi-Fi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 970. It provides users with wireless broadband Internet access. Although FIG. 5 shows the Wi-Fi module 970, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.

手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to theprocessor 980 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.

尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

前述图1B或图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiment shown in FIG. 1B or FIG. 2 , the method flow of each step can be implemented based on the structure of the mobile phone.

前述图3、图4A~图4D所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 3 and FIG. 4A to FIG. 4D , the functions of each unit can be implemented based on the structure of the mobile phone.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种跌落保护方法的部分或全部步骤。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any part of the drop protection method as described in the above method embodiments or all steps.

本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种跌落保护方法的部分或全部步骤。Embodiments of the present application further provide a computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute the methods described in the foregoing method embodiments Part or all of the steps of any method of fall protection.

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

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

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

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

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

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

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, disk or CD, etc.

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

Claims (8)

1. An electronic device comprising a processor, and a fall detection sensor and a screen sounder connected to the processor, wherein,
the falling detection sensor is used for acquiring falling data of the electronic equipment;
the processor is used for determining control parameters of the screen sounder according to the falling data; controlling the electronic equipment to sound according to the control parameters so as to slow down the falling trend of the electronic equipment;
wherein the processor is further specifically configured to:
predicting the stress between the electronic equipment and the ground according to the falling data, and determining the hardware part of the electronic equipment which is firstly contacted with the ground;
determining a stress threshold corresponding to a hardware part based on a preset mapping relation between the hardware part and the stress threshold;
when the stress is larger than the stress threshold value, executing the step of determining the control parameters of the screen sounder according to the falling data;
the falling data comprises ground material, current falling speed and falling height;
in the aspect of estimating, according to the fall data, a stress between the electronic device and the ground, the processor is specifically configured to:
determining buffer duration corresponding to the ground material based on a mapping relation between the pre-stored ground material and the buffer duration;
determining the final falling speed of the electronic equipment when falling to the ground according to the current falling speed and the falling height;
determining the stress between the electronic equipment and the ground according to the final falling speed, the buffering time length and a momentum theorem;
wherein, in said determining a control parameter of the screen sounder from the fall data, the processor is specifically configured to:
determining a target falling speed corresponding to the stress threshold;
determining the minimum energy required to be generated by the screen sounder in the vertical upward direction according to the final falling speed, the target falling speed and the kinetic energy conservation law;
and configuring control parameters of the screen sounder according to the minimum energy.
2. The electronic device according to claim 1, further comprising a memory in which P utterance sections are pre-stored, wherein P is an integer greater than 1;
in the aspect of configuring the control parameter of the screen sounder according to the minimum energy, the processor is specifically configured to:
selecting sounding segments with the playing time length less than or equal to a preset threshold value from the P sounding segments to obtain Q sounding segments, wherein Q is a positive integer less than P;
determining the energy generated by each sounding segment in the Q sounding segments in the vertical upward direction to obtain Q energy values;
and selecting a target sounding segment corresponding to any energy value larger than the minimum energy from the Q energy values, and acquiring a control parameter corresponding to the target sounding segment.
3. A fall protection method applied to an electronic device, wherein the electronic device comprises a processor, and a fall detection sensor and a screen sounder which are connected with the processor, wherein the method comprises the following steps:
the fall detection sensor acquires fall data of the electronic equipment;
the processor determines control parameters of the screen sounder according to the falling data; controlling the electronic equipment to sound according to the control parameters so as to slow down the falling trend of the electronic equipment;
the method further comprises the following steps: the processor pre-estimates the stress between the electronic equipment and the ground according to the falling data, and determines the hardware part of the electronic equipment which is firstly contacted with the ground; determining a stress threshold corresponding to a hardware part based on a preset mapping relation between the hardware part and the stress threshold; when the stress is larger than the stress threshold value, executing the step of determining the control parameters of the screen sounder according to the falling data;
the falling data comprises ground material, current falling speed and falling height;
the estimating the stress between the electronic equipment and the ground according to the falling data comprises: determining buffer duration corresponding to the ground material based on a mapping relation between the pre-stored ground material and the buffer duration; determining the final falling speed of the electronic equipment when falling to the ground according to the current falling speed and the falling height; determining the stress between the electronic equipment and the ground according to the final falling speed, the buffering time length and a momentum theorem;
wherein,
determining control parameters of the screen sounder according to the fall data includes:
determining a target falling speed corresponding to the stress threshold; determining the minimum energy required to be generated by the screen sounder in the vertical upward direction according to the final falling speed, the target falling speed and the kinetic energy conservation law; and configuring control parameters of the screen sounder according to the minimum energy.
4. A fall protection method applied to an electronic device comprising a screen sounder, the method comprising:
acquiring falling data of the electronic equipment;
determining control parameters of the screen sounder according to the falling data;
controlling the electronic equipment to sound according to the control parameters so as to slow down the falling trend of the electronic equipment;
wherein the method further comprises:
predicting the stress between the electronic equipment and the ground according to the falling data, and determining the hardware part of the electronic equipment which is firstly contacted with the ground;
determining a stress threshold corresponding to a hardware part based on a preset mapping relation between the hardware part and the stress threshold;
when the stress is larger than the stress threshold value, executing the step of determining the control parameters of the screen sounder according to the falling data;
the falling data comprises ground material, current falling speed and falling height;
the estimating the stress between the electronic equipment and the ground according to the falling data comprises:
determining buffer duration corresponding to the ground material based on a mapping relation between the pre-stored ground material and the buffer duration;
determining the final falling speed of the electronic equipment when falling to the ground according to the current falling speed and the falling height;
determining the stress between the electronic equipment and the ground according to the final falling speed, the buffering time length and a momentum theorem;
wherein said determining control parameters for said screen sounder from said fall data comprises:
determining a target falling speed corresponding to the stress threshold;
determining the minimum energy required to be generated by the screen sounder in the vertical upward direction according to the final falling speed, the target falling speed and the kinetic energy conservation law;
and configuring control parameters of the screen sounder according to the minimum energy.
5. The method according to claim 4, wherein P vocalization segments are pre-stored in the electronic device, wherein P is an integer greater than 1;
the configuring control parameters of the screen sounder according to the minimum energy comprises:
selecting sounding segments with the playing time length less than or equal to a preset threshold value from the P sounding segments to obtain Q sounding segments, wherein Q is a positive integer less than P;
determining the energy generated by each sounding segment in the Q sounding segments in the vertical upward direction to obtain Q energy values;
and selecting a target sounding segment corresponding to any energy value larger than the minimum energy from the Q energy values, and acquiring a control parameter corresponding to the target sounding segment.
6. A fall protection device for use in an electronic device including a screen sounder, the fall protection device comprising:
the acquisition unit is used for acquiring falling data of the electronic equipment;
the determining unit is used for determining the control parameters of the screen sounder according to the falling data;
the control unit is used for controlling the electronic equipment to sound according to the control parameters so as to slow down the falling trend of the electronic equipment;
wherein, fall protection device still includes:
the unit is used for predicting the stress between the electronic equipment and the ground according to the falling data and determining the hardware part of the electronic equipment which is firstly contacted with the ground;
the unit is used for determining a stress threshold corresponding to the hardware part based on a preset mapping relation between the hardware part and the stress threshold;
when the stress is larger than the stress threshold value, a determining unit executes the step of determining the control parameters of the screen sounder according to the falling data;
the falling data comprises ground material, current falling speed and falling height;
the estimating the stress between the electronic equipment and the ground according to the falling data comprises: determining buffer duration corresponding to the ground material based on a mapping relation between the pre-stored ground material and the buffer duration; determining the final falling speed of the electronic equipment when falling to the ground according to the current falling speed and the falling height; determining the stress between the electronic equipment and the ground according to the final falling speed, the buffering time length and a momentum theorem;
wherein said determining control parameters for said screen sounder from said fall data comprises:
determining a target falling speed corresponding to the stress threshold;
determining the minimum energy required to be generated by the screen sounder in the vertical upward direction according to the final falling speed, the target falling speed and the kinetic energy conservation law;
and configuring control parameters of the screen sounder according to the minimum energy.
7. An electronic device, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for the method of any of claims 4-5.
8. A computer-readable storage medium, characterized in that,
for storing a computer program, wherein the computer program is adapted to cause a computer to perform the method according to any of claims 4-5.
CN201810065185.2A2018-01-232018-01-23Fall protection method and related productExpired - Fee RelatedCN108307059B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810065185.2ACN108307059B (en)2018-01-232018-01-23Fall protection method and related product

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810065185.2ACN108307059B (en)2018-01-232018-01-23Fall protection method and related product

Publications (2)

Publication NumberPublication Date
CN108307059A CN108307059A (en)2018-07-20
CN108307059Btrue CN108307059B (en)2020-08-14

Family

ID=62866055

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810065185.2AExpired - Fee RelatedCN108307059B (en)2018-01-232018-01-23Fall protection method and related product

Country Status (1)

CountryLink
CN (1)CN108307059B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109408023B (en)*2018-10-132022-04-01Oppo广东移动通信有限公司Screen sounding method and device, control device, electronic equipment and storage medium
WO2020093166A1 (en)*2018-11-072020-05-14World Wide Warranty Life Services Inc.Method and system for detecting presence of a protective case on a portable electronic device during drop impact
CN111447317B (en)*2020-04-012021-03-23北京小米移动软件有限公司Automatic falling position adjusting protective shell, equipment and protective method based on magnetic slider
CN115834761A (en)*2021-09-172023-03-21中国联合网络通信集团有限公司Screen protection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN203289642U (en)*2013-05-072013-11-13瑞声科技(南京)有限公司Screen sounding device
CN203813959U (en)*2014-03-132014-09-03瑞声科技(南京)有限公司Tablet sounding device
CN104680088A (en)*2013-11-292015-06-03中兴通讯股份有限公司Mobile terminal falling prevention method and falling prevention device
CN106371630A (en)*2016-09-062017-02-01广东欧珀移动通信有限公司Falling data processing method, falling data processing device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN203289642U (en)*2013-05-072013-11-13瑞声科技(南京)有限公司Screen sounding device
CN104680088A (en)*2013-11-292015-06-03中兴通讯股份有限公司Mobile terminal falling prevention method and falling prevention device
CN203813959U (en)*2014-03-132014-09-03瑞声科技(南京)有限公司Tablet sounding device
CN106371630A (en)*2016-09-062017-02-01广东欧珀移动通信有限公司Falling data processing method, falling data processing device and mobile terminal

Also Published As

Publication numberPublication date
CN108307059A (en)2018-07-20

Similar Documents

PublicationPublication DateTitle
CN108234769B (en)Fall protection method and related product
CN107767839B (en) Brightness adjustment method and related products
CN108307059B (en)Fall protection method and related product
CN108307383B (en)Data reporting method and related product
CN108595000B (en) Screen brightness adjustment method and device
WO2015188745A1 (en)Audio playback control method, and terminal device
CN108924914B (en) Drop detection method and related products
CN107222914B (en)Application control method and related product
CN106951850B (en)A kind of method and mobile terminal controlling fingerprint recognition mould group
CN106507482B (en) A kind of network positioning method and terminal device
WO2017215652A1 (en)Sound effect parameter adjustment method, and mobile terminal
CN106484326B (en)Data transmission processing method and mobile terminal
CN107800881A (en)Mobile terminal and mobile terminal guard method
CN111371705B (en)Download task execution method and electronic device
CN108762472A (en)Wearable device control method, wearable device and computer readable storage medium
WO2017215635A1 (en)Sound effect processing method and mobile terminal
CN108337370B (en) Fault detection method and related products
CN110064191A (en)Game interaction method, apparatus, system and storage medium based on gyroscope
CN107545163B (en) Unlock control method and related products
CN112764543A (en)Information output method, terminal equipment and computer readable storage medium
CN108121227B (en)Fall protection method and related product
WO2017206903A1 (en)Application control method and related device
CN106850942A (en)The temperature monitoring method of mobile terminal, device and mobile terminal
CN106844057B (en)Data processing method and device and mobile terminal
CN108184026B (en) Drop protection methods and related products

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20200814


[8]ページ先頭

©2009-2025 Movatter.jp