[go: up one dir, main page]

CN115242922B - Screen protection method and device, electronic equipment and storage medium - Google Patents

Screen protection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115242922B
CN115242922B CN202210864620.4A CN202210864620A CN115242922B CN 115242922 B CN115242922 B CN 115242922B CN 202210864620 A CN202210864620 A CN 202210864620A CN 115242922 B CN115242922 B CN 115242922B
Authority
CN
China
Prior art keywords
electronic device
motion data
display area
state
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.)
Active
Application number
CN202210864620.4A
Other languages
Chinese (zh)
Other versions
CN115242922A (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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210864620.4A priority Critical patent/CN115242922B/en
Publication of CN115242922A publication Critical patent/CN115242922A/en
Application granted granted Critical
Publication of CN115242922B publication Critical patent/CN115242922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/18Telephone sets specially adapted for use in ships, mines, or other places exposed to adverse environment
    • H04M1/185Improving the shock resistance of the housing, e.g. by increasing the rigidity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种屏幕保护方法、装置、电子设备及存储介质,该屏幕保护方法应用于电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开,该方法包括:在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态;响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。本方法可以实现对卷轴式的电子设备的屏幕的良好保护。

This application discloses a screen protection method, device, electronic equipment and storage medium. The screen protection method is applied to electronic equipment. The screen of the electronic equipment includes a first display area and a second display area. The second display area Selectively close or expand relative to the first display area, the method includes: when detecting that the electronic device is in a weightless state, determining that the electronic device is in a falling state based on current motion data of the electronic device; In response to the electronic device being in a falling state, the second display area is controlled to be closed relative to the first display area. This method can achieve good protection for the screen of the roll-type electronic device.

Description

屏幕保护方法、装置、电子设备及存储介质Screen protection method, device, electronic equipment and storage medium

技术领域Technical field

本申请涉及电子设备技术领域,更具体地,涉及一种屏幕保护方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a screen protection method, device, electronic equipment and storage medium.

背景技术Background technique

电子设备,例如手机、平板电脑等,已经成为人们日常生活中最常用的消费型电子产品之一。屏幕是电子设备上用于显示用户界面的部分,随着显示技术的急速进步,出现了卷轴类型的电子设备,该类型的电子设备不仅可以展开屏幕以提供较大的显示区域,还能够合拢屏幕使显示区域变小而方便用户携带。但是,该类型的电子设备的屏幕容易在使用过程中发生损坏。Electronic devices, such as mobile phones, tablets, etc., have become one of the most commonly used consumer electronic products in people's daily lives. The screen is the part of the electronic device used to display the user interface. With the rapid advancement of display technology, scroll-type electronic devices have emerged. This type of electronic device can not only expand the screen to provide a larger display area, but also close the screen. Make the display area smaller and easier for users to carry. However, the screen of this type of electronic device is prone to damage during use.

发明内容Contents of the invention

本申请提出了一种屏幕保护方法、装置、电子设备及存储介质,可以实现对卷轴式的电子设备的屏幕的良好保护。This application proposes a screen protection method, device, electronic equipment and storage medium, which can achieve good protection of the screen of roll-type electronic equipment.

第一方面,本申请实施例提供了一种屏幕保护方法,应用于电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开,所述方法包括:在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态;响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。In a first aspect, embodiments of the present application provide a screen protection method, which is applied to an electronic device. The screen of the electronic device includes a first display area and a second display area, and the second display area is selectively relative to the The first display area is closed or expanded, and the method includes: when detecting that the electronic device is in a weightless state, determining that the electronic device is in a falling state based on current motion data of the electronic device; and responding to the electronic device. The device is in a falling state, and the second display area is controlled to be closed relative to the first display area.

第二方面,本申请实施例提供了一种屏幕保护装置,应用于电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开,所述装置包括:状态检测模块以及屏幕控制模块,其中,所述状态检测模块用于在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态;所述屏幕控制模块用于响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。In a second aspect, embodiments of the present application provide a screen protection device, which is applied to an electronic device. The screen of the electronic device includes a first display area and a second display area, and the second display area is selectively relative to the The first display area is folded or expanded, and the device includes: a status detection module and a screen control module, wherein the status detection module is configured to, when detecting that the electronic device is in a weightless state, based on the The current motion data determines that the electronic device is in a falling state; the screen control module is configured to control the second display area to close relative to the first display area in response to the electronic device being in a falling state.

第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行上述第一方面提供的屏幕保护方法。In a third aspect, embodiments of the present application provide an electronic device, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to execute the screen saver method provided by the above-mentioned first aspect.

第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的屏幕保护方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium. Program code is stored in the computer-readable storage medium. The program code can be called by a processor to execute the screen provided in the first aspect. Protection methods.

本申请提供的方案,电子设备的屏幕包括第一显示区域以及第二显示区域,且第二显示区域选择性地相对第一显示区域合拢或展开,通过在检测到电子设备处于失重状态的情况下,基于电子设备的当前运动数据确定电子设备处于跌落状态,响应于电子设备处于跌落状态,控制第二显示区域相对第一显示区域合拢。由此,可以准确检测到电子设备处于跌落状态,并控制电子设备的屏幕合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。In the solution provided by this application, the screen of the electronic device includes a first display area and a second display area, and the second display area is selectively closed or expanded relative to the first display area. When it is detected that the electronic device is in a weightless state, , it is determined based on the current motion data of the electronic device that the electronic device is in a falling state, and in response to the electronic device being in a falling state, controlling the second display area to close relative to the first display area. As a result, it is possible to accurately detect that the electronic device is in a falling state, and control the screen of the electronic device to close, thereby reducing damage to the screen caused by impact when the electronic device falls, and achieving screen protection for roll-type electronic devices.

附图说明Description of the drawings

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

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

图2示出了本申请实施例提供的电子设备的另一种结构示意图。FIG. 2 shows another schematic structural diagram of an electronic device provided by an embodiment of the present application.

图3示出了根据本申请一个实施例的屏幕保护方法流程图。Figure 3 shows a flow chart of a screen protection method according to an embodiment of the present application.

图4示出了根据本申请另一个实施例的屏幕保护方法流程图。Figure 4 shows a flow chart of a screen protection method according to another embodiment of the present application.

图5示出了根据本申请又一个实施例的屏幕保护方法流程图。Figure 5 shows a flow chart of a screen protection method according to yet another embodiment of the present application.

图6示出了根据本申请再一个实施例的屏幕保护方法流程图。Figure 6 shows a flow chart of a screen protection method according to yet another embodiment of the present application.

图7示出了根据本申请一个实施例的屏幕保护装置的一种框图。Figure 7 shows a block diagram of a screen protection device according to an embodiment of the present application.

图8是本申请实施例的用于执行根据本申请实施例的屏幕保护方法的电子设备的框图。FIG. 8 is a block diagram of an electronic device used to perform a screen protection method according to an embodiment of the present application.

图9是本申请实施例的用于保存或者携带实现根据本申请实施例的屏幕保护方法的程序代码的存储单元。Figure 9 is a storage unit used to save or carry the program code for implementing the screen saver method according to the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those in the technical field to better understand the solution of the present application, the technical solution in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application.

随着电子设备的显示技术的发展,越来越多电子设备采用卷轴类型的屏幕,卷轴类型的电子设备不仅可以在使用过程中为用户提供较大的显示区域,还能够在不需要大的显示区域的情况下将屏幕合拢,从而方便用户携带。With the development of display technology in electronic devices, more and more electronic devices use scroll-type screens. Scroll-type electronic devices can not only provide users with a larger display area during use, but also can provide users with a larger display area without the need for a large display screen. The screen is closed when the area is selected, making it easier for users to carry it.

但是,卷轴类型的电子设备由于在屏幕完全展开时,屏幕的尺寸较大,若电子设备发生跌落,则屏幕会很大概率遭受撞击而导致屏幕损坏,。并且,卷轴类型的电子设备的屏幕成本高,维修会耗费较大的人力和物力。However, the size of the screen of a roll-type electronic device is relatively large when the screen is fully unfolded. If the electronic device falls, the screen will most likely be impacted and damaged. In addition, the screen cost of scroll-type electronic equipment is high, and maintenance will consume a lot of manpower and material resources.

针对上述问题,发明人提出了本申请实施例提供的屏幕保护方法、装置、电子设备以及存储介质,可以准确检测到电子设备处于跌落状态,并控制电子设备的屏幕合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。其中,具体的屏幕保护方法在后续的实施例中进行详细的说明。In response to the above problems, the inventor proposes a screen protection method, device, electronic device and storage medium provided by embodiments of the present application, which can accurately detect that the electronic device is in a falling state and control the screen of the electronic device to close, thereby reducing the risk of the electronic device falling. Damage to the screen caused by impact, achieving screen protection for scroll-type electronic devices. The specific screen protection method will be described in detail in subsequent embodiments.

下面先对本申请实施例涉及的场景进行介绍。The scenarios involved in the embodiments of this application are first introduced below.

如图1所示,图1示出了一种卷轴类型的电子设备100,电子设备100包括屏幕130,所述屏幕130包括第一显示区域131以及第二显示区域132,所述第二显示区域132选择性地相对所述第一显示区域131合拢或展开,由此,第一显示区域131与第二显示区域132可以同时进行显示或非同时进行显示。如图1所示,在屏幕130展开时,第二显示区域132相对所述第一显示区域131展开,此时,第一显示区域131与第二显示区域132同时进行显示;如图2所示,在屏幕130合拢时,第二显示区域132相对所述第一显示区域131隐藏,此时,第一显示区域131与第二显示区域132非同时进行显示。其中,屏幕130可以为柔性显示屏。As shown in Figure 1, Figure 1 shows a scroll type electronic device 100. The electronic device 100 includes a screen 130. The screen 130 includes a first display area 131 and a second display area 132. The second display area 132 is selectively closed or expanded relative to the first display area 131, so that the first display area 131 and the second display area 132 can be displayed simultaneously or non-simultaneously. As shown in Figure 1, when the screen 130 is expanded, the second display area 132 is expanded relative to the first display area 131. At this time, the first display area 131 and the second display area 132 are displayed at the same time; as shown in Figure 2 , when the screen 130 is closed, the second display area 132 is hidden relative to the first display area 131. At this time, the first display area 131 and the second display area 132 are not displayed simultaneously. The screen 130 may be a flexible display screen.

下面再结合附图对本申请实施例提供的屏幕保护方法进行详细介绍。The screen protection method provided by the embodiment of the present application will be introduced in detail below with reference to the accompanying drawings.

请参阅图3,图3示出了本申请一个实施例提供的屏幕保护方法的流程示意图。在具体的实施例中,所述屏幕保护方法应用于上述的电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开。下面将针对图3所示的流程进行详细的阐述,所述屏幕保护方法具体可以包括以下步骤:Please refer to Figure 3. Figure 3 shows a schematic flowchart of a screen protection method provided by an embodiment of the present application. In a specific embodiment, the screen protection method is applied to the above-mentioned electronic device. The screen of the electronic device includes a first display area and a second display area. The second display area is selectively opposite to the first display area. The display area collapses or expands. The process shown in Figure 3 will be described in detail below. The screen protection method may specifically include the following steps:

步骤S110:在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态。Step S110: When it is detected that the electronic device is in a weightless state, determine that the electronic device is in a falling state based on the current motion data of the electronic device.

其中,失重状态指的是电子设备只受到重力作用时的状态,也即自由落体状态。需要说明的是,实际场景中,电子设备处于自由落体状态时,还受到空气阻力作用,但通常空气阻力很小,可以忽略不计,此时可认为终端处于失重状态。在本申请实施例中,电子设备可以通过内部设置的传感器来检测电子设备的状态,以此来检测电子设备是否处于失重状态。Among them, the weightless state refers to the state when the electronic device is only affected by gravity, that is, the state of free fall. It should be noted that in actual scenarios, when an electronic device is in a free fall state, it is also affected by air resistance, but usually the air resistance is very small and can be ignored. At this time, the terminal can be considered to be in a weightless state. In this embodiment of the present application, the electronic device can detect the state of the electronic device through an internal sensor, thereby detecting whether the electronic device is in a weightless state.

在一些实施方式中,电子设备中设置有加速度传感器,通过实时获取电子设备的加速度,并根据获取的加速度确定电子设备是否处于失重状态。其中,可以通过加速度传感器获取互相垂直的三个轴向的加速度,然后判断该三个轴向的加速度是否均小于预设加速度,若断该三个轴向的加速度均小于预设加速度,则可以确定电子设备处于失重状态。In some embodiments, an acceleration sensor is provided in the electronic device to obtain the acceleration of the electronic device in real time, and determine whether the electronic device is in a weightless state based on the obtained acceleration. Among them, the acceleration in three mutually perpendicular axes can be obtained through the acceleration sensor, and then it can be determined whether the acceleration in the three axes is less than the preset acceleration. If the acceleration in the three axes is less than the preset acceleration, then it can be Make sure the electronic device is in a weightless state.

示例性地,以上三个轴向可以是x轴、y轴和z轴,x轴和y轴构成的平面为屏幕所在平面,并且x轴和y轴互相垂直,z轴与x轴和y轴构成的平面垂直,z轴可以取竖直向下为正方向。当电子设备处于静止状态时,加速度传感器中的力臂由于重力作用而产生形变,从而感测到z轴方向的重力加速度g,通常情况下可认为g=9.8m/s2;当电子设备处于自由落体状态时,电子设备中的加速度传感器也处于自由落体状态,此时加速度传感器中的力臂由于重力作用而产生的形变消失,此时加速度传感器感测到z轴的加速度为0,x轴、y轴方向由于没有受到其他外力作用,因此x轴、y轴方向感测到的加速度也为0。For example, the above three axes can be the x-axis, y-axis, and z-axis. The plane formed by the x-axis and the y-axis is the plane where the screen is located, and the x-axis and the y-axis are perpendicular to each other, and the z-axis is perpendicular to the x-axis and the y-axis. The formed plane is vertical, and the z-axis can take vertical downward as the positive direction. When the electronic device is in a stationary state, the force arm in the acceleration sensor deforms due to gravity, thereby sensing the gravity acceleration g in the z-axis direction. Under normal circumstances, it can be considered that g=9.8m/s 2 ; when the electronic device is in In the free fall state, the acceleration sensor in the electronic device is also in the free fall state. At this time, the deformation of the force arm in the acceleration sensor due to gravity disappears. At this time, the acceleration sensor senses that the acceleration of the z-axis is 0 and the x-axis Since the y-axis direction is not affected by other external forces, the acceleration sensed in the x-axis and y-axis directions is also 0.

在该实施方式中,以上预设加速度是电子设备中预先存储的一个加速度数值。例如,预设加速度为9.8m/s2。电子设备通过加速度传感器获取到三个轴向的加速度后,调取电子设备存储器的预设加速度。将三个轴向的加速度大小分别与预设加速度进行比较,以判断该三个轴向的加速度大小是否均小于预设加速度。进行比较时,三个轴向的加速度大小都取绝对值。实际应用中,电子设备处于自由落体状态时,电子设备还会受到空气阻力,空气阻力会对电子设备运动方向(即z轴方向)检测到的加速度产生影响。同时,由于传感器的检测会存在一定误差,因此,自由落体过程中检测到的加速度大小也不一定为0。例如,获取到的x轴加速度大小为0.01m/s2,y轴加速度大小为0.02m/s2,z轴加速度大小为0.05m/s2,则三个轴向的加速度大小均小于预设加速度0.5m/s2,此时可确定为电子设备进入失重状态。In this implementation, the above preset acceleration is an acceleration value pre-stored in the electronic device. For example, the default acceleration is 9.8m/s 2 . After the electronic device obtains the acceleration in three axial directions through the acceleration sensor, it retrieves the preset acceleration in the memory of the electronic device. Compare the acceleration in the three axial directions with the preset acceleration respectively to determine whether the acceleration in the three axial directions is less than the preset acceleration. When making comparisons, the acceleration magnitudes in the three axes are all taken as absolute values. In practical applications, when an electronic device is in a free fall state, the electronic device will also be subject to air resistance, and the air resistance will affect the acceleration detected in the movement direction of the electronic device (ie, the z-axis direction). At the same time, since there will be a certain error in the detection of the sensor, the acceleration detected during free fall is not necessarily 0. For example, if the obtained x-axis acceleration is 0.01m/s 2 , the y-axis acceleration is 0.02m/s 2 , and the z-axis acceleration is 0.05m/s 2 , then the accelerations in the three axes are all smaller than the preset values. With an acceleration of 0.5m/s 2 , it can be determined that the electronic device enters a weightless state.

在本申请实施例中,当电子设备检测到其处于失重状态的情况下,此时电子设备则可能处于跌落状态,也可能是用户正常使用电子设备时使电子设备处于失重状态,例如,用户携带电子设备快速坐下,又例如,用户放置电子设备等,因此,电子设备可以进一步确定其是否处于跌落状态。其中,可以获取电子设备的当前运动数据,并基于当前运动数据确定是否处于跌落状态。In the embodiment of the present application, when the electronic device detects that it is in a weightless state, the electronic device may be in a falling state at this time, or the electronic device may be in a weightless state when the user normally uses the electronic device. For example, the user carries The electronic device quickly sits down, or the user places the electronic device, etc., so the electronic device can further determine whether it is in a dropped state. Among them, the current motion data of the electronic device can be obtained, and whether it is in a falling state is determined based on the current motion data.

在一些实施方式中,当前运动数据可以包括角加速度、线性加速度以及高度数据。其中,角加速度可以由陀螺仪进行检测,陀螺仪又叫角速度传感器,电子设备中通常配置的是三轴陀螺仪,可追踪6个方向的位移变化,获取电子设备在x、y、z三个方向上的角加速度,对手机转动、偏转的动作做很好的测量,从而对电子设备做相应的操作,在电子设备中,通常用到陀螺仪的应用有游戏、相机防抖、导航等;线性加速度可以由加速度传感器进行检测,高度可以由气压计进行检测。当然,检测以上运动数据的具体方式可以不做限定。由于以上当前运动数据中包括多个维度的运动数据,因此基于当前运动数据能够准确地确定电子设备是否处于跌落状态。可以理解地,由于以上当前运动数据包括的数据较多,因此基于当前运动数据确定电子设备是否处于跌落状态时,相比检测电子设备是否处于失重状态所需的处理资源更多,产生的功耗也更大,因此,电子设备在检测到其处于跌落状态的情况下,再基于当前运动数据确定是否处于跌落状态,可以避免不必要的计算,从而节省电子设备的功耗。In some implementations, current motion data may include angular acceleration, linear acceleration, and altitude data. Among them, angular acceleration can be detected by a gyroscope. A gyroscope is also called an angular velocity sensor. Electronic equipment is usually equipped with a three-axis gyroscope, which can track displacement changes in six directions and obtain the three-axis position of the electronic equipment in x, y, and z. The angular acceleration in the direction can be used to measure the rotation and deflection of mobile phones, so as to perform corresponding operations on electronic devices. In electronic devices, gyroscopes are usually used in games, camera anti-shake, navigation, etc.; Linear acceleration can be detected by an acceleration sensor, and altitude can be detected by a barometer. Of course, the specific method of detecting the above motion data does not need to be limited. Since the above current motion data includes motion data in multiple dimensions, whether the electronic device is in a falling state can be accurately determined based on the current motion data. It can be understood that since the above current motion data includes a lot of data, determining whether the electronic device is in a dropped state based on the current motion data requires more processing resources and generates more power consumption than detecting whether the electronic device is in a weightless state. It is also larger. Therefore, when the electronic device detects that it is in a falling state, it can then determine whether it is in a falling state based on the current motion data, which can avoid unnecessary calculations and thus save the power consumption of the electronic device.

在一些实施方式中,电子设备可以将当前运动数据与电子设备中预设的测试得到的跌落时的运动数据进行匹配,若当前运动数据与预设的运动数据匹配,则可以确定电子设备处于跌落状态;若当前运动数据与预设的运动数据不匹配,则可以确定电子设备未处于跌落状态。In some embodiments, the electronic device can match the current motion data with the motion data obtained during a fall from a preset test in the electronic device. If the current motion data matches the preset motion data, it can be determined that the electronic device is in a fall. status; if the current motion data does not match the preset motion data, it can be determined that the electronic device is not in a falling state.

在另一些实施方式中,电子设备中也可以预先设置有用于检测跌落状态的检测模型,该检测模型可以是根据测试得到的跌落时的运动数据训练得到的。电子设备基于当前运动数据确定其是否处于跌落状态时,可以将当前运动数据输入至该检测模型,并根据检测模型输出的结果,确定出其是否处于跌落状态。In other embodiments, the electronic device may also be pre-set with a detection model for detecting a drop state, and the detection model may be trained based on the motion data obtained during the fall during the test. When the electronic device determines whether it is in a falling state based on the current motion data, it can input the current motion data into the detection model, and determine whether it is in a falling state based on the results output by the detection model.

在一些实施方式中,考虑到电子设备被使用时,若一直检测其是否处于失重状态也会产生较大功耗。因此,电子设备可以在满足相应的屏幕保护条件时,再执行检测是否处于失重状态,从而无需一直检测是否处于失重状态,节省电子设备的功耗。In some embodiments, when the electronic device is in use, continuously detecting whether it is in a weightless state will also result in greater power consumption. Therefore, the electronic device can detect whether it is in a weightless state when the corresponding screen protection conditions are met, thereby eliminating the need to constantly detect whether it is in a weightless state, thereby saving power consumption of the electronic device.

在一种可能的实施方式中,由于卷轴类型的电子设备在其屏幕处于展开状态时容易损坏屏幕,因此可以对屏幕的展开状态进行检测,即检测第二显示区域是否相对第一显示区域展开,在第二显示区域相对第一显示区域展开的情况下才执行检测是否处于失重状态。In a possible implementation, since scroll-type electronic devices are prone to damage to the screen when the screen is in an unfolded state, the unfolded state of the screen can be detected, that is, whether the second display area is unfolded relative to the first display area, The detection of whether the second display area is in a weightless state is only performed when the second display area is expanded relative to the first display area.

可选地,电子设备可以检测上述第一显示区域与第二显示区域之间所成的角度,以确定第二显示区域是否处于相对第一显示区域展开的状态;在检测得到第一显示区域与第二显示区域之间所成的角度之后,可以根据上述检测到的角度,确定第二显示区域是否处于相对第一显示区域展开的状态。其中,可以在第一显示区域与第二显示区域之间所成的角度小于设定值时,确定第二显示区域相对第一显示区域合拢;可以在第一显示区域与第二显示区域之间所成的角度大于或等于设定值时,确定第二显示区域相对第一显示区域展开。上述设定值可以为第一显示区域与第二显示区域之间接近平行时的角度值,例如设定值可以为0,也可以为3,也可以为5等。Optionally, the electronic device can detect the angle between the first display area and the second display area to determine whether the second display area is in a state of being expanded relative to the first display area; after detecting the angle between the first display area and the second display area, After determining the angle between the second display areas, it can be determined based on the above detected angle whether the second display area is in a state of being expanded relative to the first display area. Wherein, when the angle between the first display area and the second display area is less than the set value, it can be determined that the second display area is closed relative to the first display area; it can be between the first display area and the second display area. When the angle is greater than or equal to the set value, it is determined that the second display area is expanded relative to the first display area. The above setting value may be an angle value when the first display area and the second display area are nearly parallel. For example, the setting value may be 0, 3, 5, etc.

在该方式中,电子设备可以利用上述角度检测模组检测第一显示区域与第二显示区域之间所成的角度。电子设备也可以检测设置于第一显示区域的磁铁与设置于第二显示区域的磁铁之间的斥力,从而可以根据第一显示区域与第二显示区域之间的磁铁的斥力,确定出第一显示区域与第二显示区域之间所成的角度,可以理解地,设置于第一显示区域的磁铁与设置于第二显示区域的磁铁相距越近时,电子设备检测到的上述磁铁之间斥力越大,而上述磁铁相距越近,则表示第一显示区域与第二显示区域之间所成的角度越小,在第一显示区域与第二显示区域相对展开时,上述磁铁相距最远,因此可以根据上述检测的斥力确定出第一显示区域与第二显示区域之间所成的角度,并确定出第二显示区域是否处于相对第一显示区域展开的状态。当然,具体检测第一显示区域与第二显示区域之间所成角度的方式在本申请实施例中可以不作为限定。In this method, the electronic device can use the above-mentioned angle detection module to detect the angle between the first display area and the second display area. The electronic device may also detect the repulsive force between the magnet provided in the first display area and the magnet provided in the second display area, thereby determining the first display area based on the repulsive force between the magnets between the first display area and the second display area. The angle between the display area and the second display area. It can be understood that when the magnets arranged in the first display area and the magnets arranged in the second display area are closer, the repulsive force between the magnets detected by the electronic device will be The larger the angle is, the closer the magnets are to each other, which means the smaller the angle between the first display area and the second display area. When the first display area and the second display area are relatively unfolded, the magnets are the farthest apart. Therefore, the angle formed between the first display area and the second display area can be determined based on the above-mentioned detected repulsive force, and whether the second display area is in a state of expansion relative to the first display area can be determined. Of course, the specific method of detecting the angle between the first display area and the second display area may not be limited in the embodiments of the present application.

在另一种可能的实施方式中,电子设备中可以设置有屏幕保护模式,若屏幕保护模式处于开启状态,则电子设备可以执行检测是否处于失重状态;若屏幕保护模式未处于开启状态,则电子设备不执行检测是否处于失重状态。该实施方式中,可以设置与屏幕保护模式对应的开关,电子设备可以响应于针对该开关的操作,控制屏幕保护模式处于开启状态或关闭状态,由此,可以实现根据用户的需求,确定是否执行检测是否处于失重状态以及后续步骤,也即根据用户的需求对屏幕进行保护。In another possible implementation, a screen saver mode can be set in the electronic device. If the screen saver mode is turned on, the electronic device can detect whether it is in a weightless state; if the screen saver mode is not turned on, the electronic device The device does not perform detection of weightlessness. In this embodiment, a switch corresponding to the screen saver mode can be set, and the electronic device can respond to the operation of the switch and control the screen saver mode to be on or off, thereby determining whether to execute the screen saver mode according to the user's needs. Detecting whether it is in a weightless state and subsequent steps, that is, protecting the screen according to the user's needs.

步骤S120:响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。Step S120: In response to the electronic device being in a falling state, control the second display area to close relative to the first display area.

在本申请实施例中,在电子设备基于当前运动数据确定出电子设备处于跌落状态的情况下,则可以响应于电子设备处于跌落状态,控制第二显示区域相对第一显示区域合拢,由此使得第二显示区域隐藏于壳体内,有效保护第二显示区域,并且屏幕呈现的尺寸减小,可以减小电子设备撞击时对屏幕产生的伤害,从而实现对卷轴类型的屏幕的有效保护。In the embodiment of the present application, when the electronic device determines that the electronic device is in a falling state based on the current motion data, the second display area can be controlled to close relative to the first display area in response to the electronic device being in a falling state, thereby causing The second display area is hidden in the casing, effectively protecting the second display area, and the screen size is reduced, which can reduce damage to the screen when the electronic device hits it, thereby achieving effective protection for scroll-type screens.

在一些实施方式中,电子设备中可以设置有控制屏幕合拢和展开的电机。电子设备确定出处于跌落状态的情况下,则可以驱动该电机进行工作,以控制第二显示区域相对第一显示区域合拢。In some embodiments, the electronic device may be provided with a motor that controls the closing and unfolding of the screen. When the electronic device determines that it is in a falling state, it can drive the motor to operate to control the second display area to close relative to the first display area.

在一些实施方式中,电子设备基于当前运动数据确定出电子设备处于跌落状态的情况下,电子设备还可以确定其所处的高度,并将确定的高度与预设高度进行比较;若电子设备所处的高度大于或等于预设高度,则可以控制第二显示区域相对第一显示区域合拢;若电子设备所处的高度小于预设高度,则可以不控制第二显示区域相对第一显示区域合拢。其中,电子设备所处的高度可以通过内置在电子设备中的气压计检测。In some embodiments, when the electronic device determines that the electronic device is in a fallen state based on the current motion data, the electronic device can also determine the height at which it is located, and compare the determined height with the preset height; if the electronic device is If the height of the electronic device is greater than or equal to the preset height, the second display area can be controlled to close relative to the first display area; if the height of the electronic device is less than the preset height, the second display area does not need to be controlled to close relative to the first display area. . Among them, the height of the electronic device can be detected by a barometer built into the electronic device.

在该实施方式中,获取电子设备所处的高度是为了确定电子设备是否从一个较低高度的位置处跌落,若电子设备所处的高度小于预设高度,则表示电子设备从一个较低高度的位置处跌落,该情况下,不控制屏幕进行合拢,一方面是由于电子设备会很短的时间内与地面或物体发生撞击,在该跌落到撞击的过程内屏幕无法完全合拢,若在撞击时合拢则容易对屏幕产生二次伤害;另一方面是,从较低高度的位置处跌落,可能不会对电子设备的屏幕造成损坏,因此没有必要控制屏幕合拢,从而减少不必要的功耗。In this implementation, the purpose of obtaining the height of the electronic device is to determine whether the electronic device fell from a lower height. If the height of the electronic device is less than the preset height, it means that the electronic device fell from a lower height. In this case, the screen is not controlled to close. This is because the electronic device will collide with the ground or object in a short period of time. The screen cannot be fully closed during the impact. If it is closed temporarily, it is easy to cause secondary damage to the screen; on the other hand, falling from a lower height may not cause damage to the screen of the electronic device, so there is no need to control the screen to close, thereby reducing unnecessary power consumption. .

在一些实施方式中,电子设备的壳体的四周设置有保护装置,例如保护壳等,保护装置可以选择性地隐藏于壳体内或从壳体内伸出。电子设备在响应于电子设备处于跌落状态,控制第二显示区域相对第一显示区域合拢时,可以同步控制保护装置从壳体内伸出,以对电子设备的屏幕进行保护。In some embodiments, a protective device, such as a protective case, is provided around the housing of the electronic device. The protective device can be selectively hidden in the housing or protruded from the housing. When the electronic device controls the second display area to close relative to the first display area in response to the fact that the electronic device is in a falling state, the electronic device can synchronously control the protection device to extend from the housing to protect the screen of the electronic device.

在一些实施方式中,电子设备基于当前运动数据确定出电子设备处于跌落状态的情况下,还可以控制其内部的马达工作,以使电子设备在空中发生转动,从而释放重力势能,减小跌落后的碰撞时对屏幕的损害。In some embodiments, when the electronic device determines that the electronic device is in a falling state based on the current motion data, it can also control the operation of its internal motor to cause the electronic device to rotate in the air, thereby releasing gravitational potential energy and reducing the risk of falling. Damage to the screen during collision.

本申请实施例提供的屏幕保护方法,通过在检测到电子设备处于失重状态的情况下,再基于当前运动数据确定电子设备是否处于跌落状态,不仅准确检测到电子设备处于跌落状态,还可以节省电子设备的功耗,并在确定出电子设备处于跌落状态的情况下,控制第二显示区域相对第一显示区域合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。The screen protection method provided by the embodiment of the present application, by detecting that the electronic device is in a weightless state, and then determining whether the electronic device is in a falling state based on the current motion data, not only accurately detects that the electronic device is in a falling state, but also can save electronics. The power consumption of the device is determined, and when it is determined that the electronic device is in a dropped state, the second display area is controlled to be closed relative to the first display area, thereby reducing the damage to the screen caused by impact when the electronic device is dropped, and realizing the protection of scroll-type electronic devices. screen saver.

请参阅图4,图4示出了本申请另一个实施例提供的屏幕保护方法的流程示意图。该屏幕保护方法应用于上述的电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开。下面将针对图4所示的流程进行详细的阐述,所述屏幕保护方法具体可以包括以下步骤:Please refer to FIG. 4 , which shows a schematic flowchart of a screen protection method provided by another embodiment of the present application. This screen protection method is applied to the above-mentioned electronic device. The screen of the electronic device includes a first display area and a second display area. The second display area is selectively closed or expanded relative to the first display area. The process shown in Figure 4 will be described in detail below. The screen protection method may specifically include the following steps:

步骤S210:在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态。Step S210: When it is detected that the electronic device is in a weightless state, determine that the electronic device is in a falling state based on the current motion data of the electronic device.

步骤S220:响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。Step S220: In response to the electronic device being in a falling state, control the second display area to close relative to the first display area.

在本申请实施例中,步骤S210以及步骤S220可以参阅其他实施例的内容,在此不再赘述。In the embodiment of the present application, the content of steps S210 and S220 can be referred to other embodiments, and will not be described again here.

步骤S230:响应于检测到所述电子设备处于碰撞状态,暂停控制所述第二显示区域相对所述第一显示区域合拢。Step S230: In response to detecting that the electronic device is in a collision state, suspend the control of the second display area to close relative to the first display area.

在本申请实施例中,电子设备发生跌落时,除了可以在其跌落状态时控制第二显示区域相对第一显示区域合拢,还可以针对电子设备发生跌落的过程中其他阶段进行屏幕的保护。可以理解地,电子设备的跌落过程按照前后顺序主要分为:初始阶段(用户使用电子设备时的正常握持或放置状态)、处于跌落状态的阶段、与地面或物体的碰撞阶段、碰撞后的缓冲阶段和静止状态。在电子设备检测到处于跌落状态时,此时电子设备还处于跌落状态的阶段,控制屏幕进行合拢,然后电子设备在下降一定高度后,处于与地面或物体发生碰撞的碰撞阶段,若与地面或物体发生碰撞时,继续控制屏幕进行合拢,则会使得屏幕与地面或物体发生摩擦,而导致屏幕的二次刮伤或进灰,因此在检测到电子设备处于碰撞状态的情况下,可以暂停控制第二显示区域相对第一显示区域合拢。In the embodiment of the present application, when the electronic device falls, in addition to controlling the second display area to close relative to the first display area when the electronic device falls, the screen can also be protected at other stages during the fall of the electronic device. Understandably, the falling process of electronic equipment is mainly divided into the following order: the initial stage (the normal holding or placing state when the user uses the electronic equipment), the stage in the falling state, the collision stage with the ground or objects, and the post-collision stage. Buffering phase and resting state. When the electronic device detects that it is in a falling state, and the electronic device is still in the falling state, the screen is controlled to close, and then after the electronic device drops to a certain height, it is in the collision stage of colliding with the ground or object. If it collides with the ground or object, When an object collides, continuing to control the screen to close it will cause friction between the screen and the ground or objects, resulting in secondary scratches or dust on the screen. Therefore, when it is detected that the electronic device is in a collision state, the control can be suspended. The second display area is collapsed relative to the first display area.

在一些实施方式中,电子设备可以通过其当前运动数据,确定出电子设备在跌落时所处的阶段。可以理解地,电子设备在处于跌落状态的阶段、与地面或物体的碰撞阶段、碰撞后的缓冲阶段和静止状态的角加速度、线性加速度和所处的高度等会不同,因此基于电子设备的当前运动数据,可以确定出电子设备在跌落时所处的阶段。In some implementations, the electronic device can determine the stage the electronic device is in when it falls through its current motion data. It is understandable that the angular acceleration, linear acceleration, and height of the electronic device will be different during the falling phase, the collision phase with the ground or an object, the buffer phase after the collision, and the stationary state. Therefore, based on the current situation of the electronic device, Motion data can determine the stage an electronic device was in when it was dropped.

步骤S240:响应于检测到所述电子设备处于静止状态,获取所述屏幕的朝向。Step S240: In response to detecting that the electronic device is in a stationary state, obtain the orientation of the screen.

在本申请实施例中,电子设备在于地面或物体发生碰撞后,则会经过碰撞后的缓存阶段后,进入静止状态,在检测到电子设备处于静止状态时,则可以响应于检测到电子设备处于静止状态,继续控制屏幕合拢,以对屏幕进行保护。其中,在继续控制第二显示区域相对第一显示区域合拢之前,可以获取屏幕的朝向,以根据屏幕的朝向确定是否继续控制第二显示区域相对第一显示区域合拢。可选地,电子设备可以通过陀螺仪等检测其姿态,以确定出屏幕的朝向。In the embodiment of the present application, after the electronic device collides with the ground or an object, it will enter a static state after the buffering stage after the collision. When detecting that the electronic device is in a static state, it can respond to detecting that the electronic device is in a static state. In the static state, continue to control the screen to close to protect the screen. Before continuing to control the second display area to close relative to the first display area, the orientation of the screen may be obtained to determine whether to continue to control the second display area to close relative to the first display area according to the orientation of the screen. Optionally, the electronic device can detect its posture through a gyroscope or the like to determine the orientation of the screen.

步骤S250:若所述屏幕的朝向为目标方向,则继续控制所述第二显示区域相对所述第一显示区域合拢,其中,所述目标方向与重力方向相反。Step S250: If the orientation of the screen is a target direction, continue to control the second display area to close relative to the first display area, wherein the target direction is opposite to the direction of gravity.

在本申请实施例中,在获取到屏幕的朝向后,则可以确定屏幕的朝向是否为目标方向,该目标方向与重力方向相反,若屏幕的朝向为目标方向,则表示屏幕朝上,此时则可以控制继续控制第二显示区域相对第一显示区域合拢;反之,若屏幕的朝向不为目标方向,若继续控制第二显示区域相对第一显示区域合拢,则可能会导致屏幕与地面或物体发生摩擦,该情况下,则可以不控制屏幕继续合拢。In the embodiment of the present application, after obtaining the orientation of the screen, it can be determined whether the orientation of the screen is the target direction. The target direction is opposite to the direction of gravity. If the orientation of the screen is the target direction, it means that the screen is facing upward. At this time Then you can continue to control the second display area to close relative to the first display area; conversely, if the orientation of the screen is not the target direction, if you continue to control the second display area to close relative to the first display area, it may cause the screen to be in contact with the ground or object. If friction occurs, you can continue to close the screen without controlling it.

在一些实施方式中,电子设备在检测到其处于静止状态后,还可以检测电子设备的目标硬件模块的工作状态;并根据检测的电子设备的目标硬件模块的状态,生成电子设备的跌落检测报告。其中,目标硬件模块可以包括蓝牙、wifi模块、摄像头模块、sim卡槽等,具体的硬件模块可以不做限定;目标硬件模块的工作状态用于表征目标硬件模块是否正常工作,可选地,可以通过检测目标硬件模块的上电连通状态,以确定目标硬件模块的工作状态。电子设备检测到目标硬件模块的工作状态后,则可以针对本次发生的跌落,生成包括以上目标硬件模块的工作状态的跌落检测报告,以便为维修人员提供参考,以及为厂商对电子设备的维保和改进提供依据。In some embodiments, after detecting that the electronic device is in a stationary state, the electronic device can also detect the working status of the target hardware module of the electronic device; and generate a drop detection report of the electronic device based on the detected status of the target hardware module of the electronic device. . Among them, the target hardware module can include Bluetooth, WiFi module, camera module, SIM card slot, etc., and the specific hardware module is not limited; the working status of the target hardware module is used to indicate whether the target hardware module is working normally. Optionally, Determine the working status of the target hardware module by detecting the power-on connectivity status of the target hardware module. After the electronic device detects the working status of the target hardware module, it can generate a drop detection report including the working status of the target hardware module for this drop, so as to provide reference for maintenance personnel and for manufacturers to maintain electronic equipment. Provide basis for improvement.

在一种可能的实施方式中,电子设备在生成以上跌落检测报告后,可以将该跌落检测报告、跌落时的时间、位置和运动数据等信息上传至厂商服务器,以便为厂商对电子设备的维修和改进提供依据,还可以避免维保时无法判断硬件模块的故障是否由跌落引起。In a possible implementation, after the electronic device generates the above drop detection report, it can upload the drop detection report, the time, location and motion data of the fall and other information to the manufacturer's server, so as to provide maintenance services for the electronic device for the manufacturer. It can also provide a basis for improvement and avoid being unable to determine whether the failure of the hardware module was caused by a drop during maintenance.

可选地,在在检测到电子设备处于失重状态的情况下,若基于电子设备的当前运动数据确定电子设备处于跌落状态,还可以控制摄像头进行拍摄,并对拍摄视频进行保存。在将以上跌落检测报告发送至厂商服务器时,还可以将拍摄视频一并发送至厂商服务器,以便为该跌落检测报告提供证据,以在硬件模块产生故障的情况下进行维保时,证明硬件模块的故障由跌落引起,从而避免不必要的纠纷。Optionally, when it is detected that the electronic device is in a weightless state, and if it is determined that the electronic device is in a falling state based on the current motion data of the electronic device, the camera can also be controlled to shoot and the captured video can be saved. When sending the above drop detection report to the manufacturer's server, the captured video can also be sent to the manufacturer's server to provide evidence for the drop detection report to prove the hardware module during maintenance when the hardware module fails. of failures caused by falls, thus avoiding unnecessary disputes.

本申请实施例提供的屏幕保护方法,通过在检测到电子设备处于失重状态的情况下,再基于当前运动数据确定电子设备是否处于跌落状态,不仅准确检测到电子设备处于跌落状态,还可以节省电子设备的功耗,并在确定出电子设备处于跌落状态的情况下,控制第二显示区域相对第一显示区域合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。另外,还针对电子设备发生跌落后的其他阶段,提供对屏幕的保护措施,更加有效地保护了屏幕。The screen protection method provided by the embodiment of the present application, by detecting that the electronic device is in a weightless state, and then determining whether the electronic device is in a falling state based on the current motion data, not only accurately detects that the electronic device is in a falling state, but also can save electronics. The power consumption of the device is determined, and when it is determined that the electronic device is in a dropped state, the second display area is controlled to be closed relative to the first display area, thereby reducing the damage to the screen caused by impact when the electronic device is dropped, and realizing the protection of scroll-type electronic devices. screen saver. In addition, it also provides screen protection measures for other stages after the electronic device is dropped, protecting the screen more effectively.

请参阅图5,图5示出了本申请又一个实施例提供的屏幕保护方法的流程示意图。该屏幕保护方法应用于上述的电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开。下面将针对图5所示的流程进行详细的阐述,所述屏幕保护方法具体可以包括以下步骤:Please refer to FIG. 5 , which shows a schematic flowchart of a screen protection method provided by yet another embodiment of the present application. This screen protection method is applied to the above-mentioned electronic device. The screen of the electronic device includes a first display area and a second display area. The second display area is selectively closed or expanded relative to the first display area. The process shown in Figure 5 will be described in detail below. The screen protection method may specifically include the following steps:

步骤S310:在检测到所述电子设备处于失重状态的情况下,将当前所述电子设备的当前运动数据与预设运动数据进行匹配,所述预设运动数据包括所述电子设备对应的测试设备处于真实跌落状态下的第一运动数据以及所述测试设备处于使用时的失重状态下的第二运动数据。Step S310: When it is detected that the electronic device is in a weightless state, match the current motion data of the electronic device with preset motion data. The preset motion data includes the test device corresponding to the electronic device. The first motion data in a real fall state and the second motion data in a weightless state when the test device is in use.

电子设备中可以预先存储有其对应的测试设备处于真实跌落状态下的第一运动数据,以及测试设备处于使用时的失重状态下的第二运动数据。其中,第一运动数据以及第二运动数据包括角加速度、线性加速度以及高度数据等;测试设备处于真实跌落状态下的第一运动数据指的是,预先将测试设备进行跌落时测得的运动数据;测试设备处于使用时的失重状态下的第二运动数据指的是,预先对测试设备进行使用并使其处于失重状态时测得的运动数据,例如,可以携带电子设备快速坐下、放置电子设备等情况下测得运动数据。以上第一运动数据以及第二运动数据可以是电子设备出厂前存储于电子设备的,也可以是电子设备被使用后,厂商服务器下发至电子设备进行存储的,在此不做限定。The electronic device may pre-store the first motion data when the corresponding test device is in a real fall state, and the second motion data when the test device is in a weightless state during use. Among them, the first movement data and the second movement data include angular acceleration, linear acceleration, height data, etc.; the first movement data when the test equipment is in a real falling state refers to the movement data measured when the test equipment is dropped in advance. ; The second movement data when the test equipment is in a weightless state during use refers to the movement data measured when the test equipment is used in advance and placed in a weightless state. For example, you can sit down quickly while carrying electronic equipment, place electronic equipment Motion data is measured under conditions such as equipment. The above first motion data and second motion data may be stored in the electronic device before the electronic device leaves the factory, or may be sent to the electronic device for storage by the manufacturer's server after the electronic device is used, which is not limited here.

在本申请实施例中,电子设备在检测到其处于失重状态的情况下,基于其当前运动数据确定是否处于跌落状态时,则可以将当前运动数据与以上第一运动数据以及第二运动数据进行匹配,以根据匹配结果,确定电子设备是否处于跌落状态。In the embodiment of the present application, when the electronic device detects that it is in a weightless state and determines whether it is in a falling state based on its current motion data, the current motion data can be compared with the above first motion data and the second motion data. Match to determine whether the electronic device is in a dropped state based on the matching results.

步骤S320:若所述当前运动数据与所述第一运动数据匹配,且所述当前运动数据与所述第二运动数据不匹配,则确定所述电子设备处于跌落状态。Step S320: If the current motion data matches the first motion data, and the current motion data does not match the second motion data, determine that the electronic device is in a falling state.

在本申请实施例中,电子设备获取到当前运动数据与以上第一运动数据以及第二运动数据之间的匹配结果后,若当前运动数据与第一运动数据匹配,且当前运动数据与第二运动数据不匹配,则表示电子设备处于真实跌落状态下的失重状态,而不是正常使用时的失重状态,因此可以确定其处于跌落状态,由于将当前运动数据分别与第一运动数据以及第二运动数据进行了匹配,并根据匹配结果确定是否处于跌落状态,因此可以实现电子设备是否处于跌落状态的双重检测,提升检测跌落状态的准确性。In the embodiment of the present application, after the electronic device obtains the matching result between the current motion data and the above first motion data and the second motion data, if the current motion data matches the first motion data, and the current motion data matches the second motion data, If the motion data does not match, it means that the electronic device is in a weightless state under a real fall state, rather than a weightless state during normal use. Therefore, it can be determined that it is in a dropped state. Since the current motion data is compared with the first motion data and the second motion data respectively, The data is matched, and whether the electronic device is in a dropped state is determined based on the matching results. Therefore, dual detection of whether the electronic device is in a dropped state can be achieved and the accuracy of detecting the dropped state can be improved.

在一些实施方式中,电子设备获取到当前运动数据与以上第一运动数据以及第二运动数据之间的匹配结果后,若当前运动数据与所述第一运动数据匹配,且当前运动数据与第二运动数据匹配,此时则无法确定直接根据匹配结果确定电子设备是否处于跌落状态。该情况下,可以确定电子设备的触摸状态,若电子设备处于未被触摸的状态,则可以确定电子设备处于跌落状态;若电子设备处于被触控的状态,则可以确定电子设备未处于跌落状态。其中,电子设备可以根据屏幕是否被触摸,以及壳体上设置的触摸传感器、压力传感器等,确定电子设备是否处于被触摸的状态。In some embodiments, after the electronic device obtains the matching result between the current motion data and the above first motion data and the second motion data, if the current motion data matches the first motion data, and the current motion data matches the first motion data, The two motion data are matched. At this time, it is impossible to determine whether the electronic device is in a falling state directly based on the matching results. In this case, the touch state of the electronic device can be determined. If the electronic device is not touched, it can be determined that the electronic device is in a fallen state; if the electronic device is in a touched state, it can be determined that the electronic device is not in a fallen state. . Among them, the electronic device can determine whether the electronic device is in a touched state based on whether the screen is touched and the touch sensor, pressure sensor, etc. provided on the housing.

步骤S330:响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。Step S330: In response to the electronic device being in a falling state, control the second display area to close relative to the first display area.

在本申请实施例中,步骤S330可以参阅其他实施例的内容,在此不再赘述。In the embodiment of this application, the content of step S330 can be referred to other embodiments, and will not be described again here.

本申请实施例提供的屏幕保护方法,通过在检测到电子设备处于失重状态的情况下,再将当前运动数据与测试设备处于真实跌落状态下的第一运动数据以及测试设备处于使用时的失重状态下的第二运动数据进行匹配,并根据匹配结果确定电子设备是否处于跌落状态,由此,可以实现电子设备是否处于跌落状态的双重检测,提升检测跌落状态的准确性。并且在确定出电子设备处于跌落状态的情况下,控制第二显示区域相对第一显示区域合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。The screen protection method provided by the embodiment of the present application, when it is detected that the electronic device is in a weightless state, then combines the current motion data with the first motion data when the test device is in a real fall state and the weightless state when the test device is in use. The second motion data is matched, and whether the electronic device is in a falling state is determined based on the matching result. Thus, dual detection of whether the electronic device is in a falling state can be achieved, and the accuracy of detecting the falling state can be improved. And when it is determined that the electronic device is in a fallen state, the second display area is controlled to be closed relative to the first display area, thereby reducing damage to the screen caused by impact when the electronic device falls, and achieving screen protection for scroll-type electronic devices.

请参阅图6,图6示出了本申请再一个实施例提供的屏幕保护方法的流程示意图。该屏幕保护方法应用于上述的电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开。下面将针对图6所示的流程进行详细的阐述,所述屏幕保护方法具体可以包括以下步骤:Please refer to FIG. 6 , which shows a schematic flowchart of a screen protection method provided by yet another embodiment of the present application. This screen protection method is applied to the above-mentioned electronic device. The screen of the electronic device includes a first display area and a second display area. The second display area is selectively closed or expanded relative to the first display area. The process shown in Figure 6 will be described in detail below. The screen protection method may specifically include the following steps:

步骤S410:在检测到所述电子设备处于失重状态的情况下,将所述电子设备的当前运动数据输入至跌落检测模型,所述跌落检测模型基于所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据训练得到,所述第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据。Step S410: When it is detected that the electronic device is in a weightless state, input the current motion data of the electronic device into a drop detection model. The drop detection model is based on the fact that the test equipment corresponding to the electronic device is in a real drop state. The third motion data is obtained by training with the test device and the fourth motion data is not in the falling state. The fourth motion data at least includes the motion data in the weightless state when the test device is in use.

在本申请实施例中,电子设备中存储有基于所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据训练得到的跌落检测模型,并且第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据。电子设备在检测到其处于失重状态的情况下,基于其当前运动数据确定是否处于跌落状态时,可以将当前运动数据输入至该跌落检测模型,以便根据跌落检测模型输出的结果,确定电子设备是否处于跌落状态。In this embodiment of the present application, the electronic device stores a drop detection model trained based on the third motion data of the test device corresponding to the electronic device in a real fall state and the fourth motion data not in a fall state, and The fourth motion data at least includes motion data when the test device is in a weightless state when in use. When the electronic device detects that it is in a state of weightlessness and determines whether it is in a fall state based on its current motion data, the current motion data can be input to the fall detection model, so that based on the results output by the fall detection model, it can be determined whether the electronic device is in a state of weightlessness. In a dropped state.

在一些实施方式中,跌落检测模型可以通过以下方式训练得到:In some implementations, the fall detection model can be trained in the following manner:

获取所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据,所述第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据;基于所述第三运动数据以及所述第四运动数据,对初始检测模型进行训练,得到所述跌落检测模型。Obtain the third motion data of the test device corresponding to the electronic device when it is in a real fall state and the fourth motion data when it is not in the fall state. The fourth motion data at least includes the weightless state of the test device when in use. motion data; based on the third motion data and the fourth motion data, train the initial detection model to obtain the fall detection model.

其中,初始检测模型可以为神经网络等。通过对第三运动数据标注为跌落状态,将第四运动数据标注为非跌落状态,然后利用标注后的第三运动数据以及第四运动数据,对初始检测模型进行训练,从而可以得到跌落检测模型。Among them, the initial detection model can be a neural network, etc. By labeling the third motion data as a falling state, labeling the fourth motion data as a non-falling state, and then using the labeled third motion data and fourth motion data to train the initial detection model, a fall detection model can be obtained .

在一些实施方式中,以上跌落检测模型可以是由服务器预先根据以上第三运动数据和第四运动数据,对初始检测模型进行训练得到的。服务器在训练得到以上跌落检测模型后,将该跌落检测模型下发至电子设备,并且电子设备对接收的跌落检测模型进行保存。另外,服务器还可以收集用户使用的电子设备在使用过程中真实跌落时的运动数据,以及使用时处于失重状态下的运动数据,并根据收集的运动数据对跌落检测模型进行不断的更新训练,并将更新训练后的跌落检测模型下发至电子设备,从而保证跌落检测模型的准确性。当然,以上跌落检测模型也可以是厂商预先训练得到后,在电子设备出厂前存储于电子设备的。In some implementations, the above drop detection model may be obtained by the server pre-training the initial detection model based on the above third motion data and the above fourth motion data. After the server obtains the above drop detection model through training, it sends the drop detection model to the electronic device, and the electronic device saves the received drop detection model. In addition, the server can also collect the movement data of the user's electronic equipment when it is actually dropped during use, as well as the movement data of the weightless state during use, and continuously update and train the drop detection model based on the collected movement data, and The updated and trained drop detection model is delivered to the electronic device to ensure the accuracy of the drop detection model. Of course, the above drop detection model can also be pre-trained by the manufacturer and stored in the electronic device before it leaves the factory.

步骤S420:基于所述跌落检测模型输出的结果,确定所述电子设备处于跌落状态。Step S420: Based on the result output by the drop detection model, determine that the electronic device is in a dropped state.

在本申请实施例中,在得到跌落检测模型输出的结果后,则可以根据输出结果,确定电子设备是否处于跌落状态。可选地,若输出的结果为第一结果,例如输出0,则可以确定电子设备处于跌落状态;若输出的结果为第二结果,例如输出1,则可以确定电子设备未处于跌落状态。可以理解地,由于以上跌落检测模型训练时所用的样本数据不仅包括真实跌落状态下的运动数据,还包括处于使用时的失重状态下的运动数据,因此训练得到的跌落检测模型能够准确区分真实跌落状态和疑似跌落的状态(即处于使用时的失重状态下的状态),故能够准确检测电子设备是否处于跌落状态。In the embodiment of the present application, after obtaining the output result of the drop detection model, it can be determined whether the electronic device is in a dropped state based on the output result. Optionally, if the output result is a first result, such as output 0, it can be determined that the electronic device is in a dropped state; if the output result is a second result, such as output 1, it can be determined that the electronic device is not in a dropped state. Understandably, since the sample data used in training the above drop detection model not only includes motion data in a real fall state, but also motion data in a weightless state during use, the trained fall detection model can accurately distinguish real falls. state and a suspected dropped state (that is, a state of weightlessness during use), so it can accurately detect whether the electronic device is in a dropped state.

步骤S430:响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。Step S430: In response to the electronic device being in a falling state, control the second display area to close relative to the first display area.

在本申请实施例中,步骤S430可以参阅其他实施例的内容,在此不再赘述。In the embodiment of this application, the content of step S430 can be referred to other embodiments, and will not be described again here.

本申请实施例提供的屏幕保护方法,通过在检测到电子设备处于失重状态的情况下,将当前运动数据输入至预先训练的跌落检测模型,并根据跌落检测模型输出的结果确定是否处于跌落状态,由于以上跌落检测模型训练时所用的样本数据不仅包括真实跌落状态下的运动数据,还包括处于使用时的失重状态下的运动数据,因此训练得到的跌落检测模型能够准确区分真实跌落状态和疑似跌落的状态(即处于使用时的失重状态下的状态),故能够准确检测电子设备是否处于跌落状态。并且在确定出电子设备处于跌落状态的情况下,控制第二显示区域相对第一显示区域合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。The screen protection method provided by the embodiment of the present application inputs the current motion data to a pre-trained drop detection model when it is detected that the electronic device is in a weightless state, and determines whether it is in a dropped state based on the output result of the drop detection model. Since the sample data used in training the above drop detection model not only includes motion data in a real fall state, but also motion data in a weightless state during use, the trained fall detection model can accurately distinguish between a real fall state and a suspected fall. state (that is, the state of weightlessness during use), so it can accurately detect whether the electronic device is in a dropped state. And when it is determined that the electronic device is in a fallen state, the second display area is controlled to be closed relative to the first display area, thereby reducing damage to the screen caused by impact when the electronic device falls, and achieving screen protection for scroll-type electronic devices.

请参阅图7,其示出了本申请实施例提供的一种屏幕保护装置400的结构框图。该屏幕保护装置400应用于上述电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开。该屏幕保护装置400包括:状态检测模块410以及屏幕控制模块420。其中,所述状态检测模块410用于在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态;所述屏幕控制模块420用于响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢。Please refer to FIG. 7 , which shows a structural block diagram of a screen protection device 400 provided by an embodiment of the present application. The screen protector 400 is applied to the above-mentioned electronic device. The screen of the electronic device includes a first display area and a second display area. The second display area is selectively closed or expanded relative to the first display area. The screen saver device 400 includes: a status detection module 410 and a screen control module 420 . Wherein, the state detection module 410 is configured to determine that the electronic device is in a falling state based on the current motion data of the electronic device when it is detected that the electronic device is in a weightless state; the screen control module 420 is configured to In response to the electronic device being in a falling state, the second display area is controlled to be closed relative to the first display area.

在一些实施方式中,屏幕控制模块420还可以用于在所述响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢之后,响应于检测到所述电子设备处于碰撞状态,暂停控制所述第二显示区域相对所述第一显示区域合拢。In some embodiments, the screen control module 420 may also be configured to, after controlling the second display area to close relative to the first display area in response to the electronic device being in a falling state, in response to detecting that the electronic device is in a falling state. The electronic device is in a collision state, and the control of the second display area to close relative to the first display area is suspended.

在一种可能的实施方式中,屏幕控制模块420还可以用于在所述若检测到所述电子设备处于碰撞状态,暂停控制所述第二显示区域相对所述第一显示区域合拢之后,响应于检测到所述电子设备处于静止状态,获取所述屏幕的朝向;若所述屏幕的朝向为目标方向,则继续控制所述第二显示区域相对所述第一显示区域合拢,其中,所述目标方向与重力方向相反。In a possible implementation, the screen control module 420 may also be configured to respond to the pause of controlling the second display area to close relative to the first display area if it is detected that the electronic device is in a collision state. Upon detecting that the electronic device is in a stationary state, obtain the orientation of the screen; if the orientation of the screen is the target direction, continue to control the second display area to close relative to the first display area, wherein the The target direction is opposite to the direction of gravity.

在一些实施方式中,状态检测模块410可以具体用于:在检测到所述电子设备处于失重状态的情况下,将当前所述电子设备的当前运动数据与预设运动数据进行匹配,所述预设运动数据包括所述电子设备对应的测试设备处于真实跌落状态下的第一运动数据以及所述测试设备处于使用时的失重状态下的第二运动数据;若所述当前运动数据与所述第一运动数据匹配,且所述当前运动数据与所述第二运动数据不匹配,则确定所述电子设备处于跌落状态。In some embodiments, the state detection module 410 may be specifically configured to: when detecting that the electronic device is in a weightless state, match the current motion data of the electronic device with preset motion data. Assume that the motion data includes the first motion data of the test device corresponding to the electronic device when it is in a real fall state and the second motion data of the test device when it is in a weightless state during use; if the current motion data is the same as the third motion data, If one motion data matches, and the current motion data does not match the second motion data, it is determined that the electronic device is in a falling state.

在一种可能的实施方式中,状态检测模块410还可以用于:若所述当前运动数据与所述第一运动数据匹配,且所述当前运动数据与所述第二运动数据匹配,确定所述电子设备的触摸状态;若所述电子设备处于未被触摸的状态,则确定所述电子设备处于跌落状态。In a possible implementation, the state detection module 410 may also be configured to: if the current motion data matches the first motion data, and the current motion data matches the second motion data, determine the The touch state of the electronic device; if the electronic device is in an untouched state, it is determined that the electronic device is in a fallen state.

在一些实施方式中,状态检测模块410可以具体用于:在检测到所述电子设备处于失重状态的情况下,将所述电子设备的当前运动数据输入至跌落检测模型,所述跌落检测模型基于所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据训练得到,所述第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据;基于所述跌落检测模型输出的结果,确定所述电子设备处于跌落状态。In some embodiments, the state detection module 410 may be specifically configured to: when detecting that the electronic device is in a weightless state, input the current motion data of the electronic device into a drop detection model, where the drop detection model is based on The third motion data of the test device corresponding to the electronic device when it is in a real fall state and the fourth motion data when it is not in a fall state are obtained through training. The fourth motion data at least includes the weightless state of the test device when it is in use. based on the results output by the drop detection model, it is determined that the electronic device is in a dropped state.

在一种可能的实施方式中,该屏幕保护装置400还可以包括数据获取模块以及模型训练模块。数据获取模块用于获取所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据,所述第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据;模型训练模块用于基于所述第三运动数据以及所述第四运动数据,对初始检测模型进行训练,得到所述跌落检测模型。In a possible implementation, the screen saver 400 may also include a data acquisition module and a model training module. The data acquisition module is used to acquire the third motion data of the test device corresponding to the electronic device when it is in a real fall state and the fourth motion data when it is not in a fall state. The fourth motion data at least includes when the test device is in use. The motion data in the weightless state at that time; the model training module is used to train the initial detection model based on the third motion data and the fourth motion data to obtain the fall detection model.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.

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

综上所述,本申请提供的方案,电子设备的屏幕包括第一显示区域以及第二显示区域,且第二显示区域选择性地相对第一显示区域合拢或展开,通过在检测到电子设备处于失重状态的情况下,基于电子设备的当前运动数据确定电子设备处于跌落状态,响应于电子设备处于跌落状态,控制第二显示区域相对第一显示区域合拢。由此,可以准确检测到电子设备处于跌落状态,并控制电子设备的屏幕合拢,从而减轻电子设备跌落时屏幕因撞击造成的损害,实现对卷轴类型的电子设备的屏幕保护。To sum up, according to the solution provided by this application, the screen of the electronic device includes a first display area and a second display area, and the second display area is selectively closed or expanded relative to the first display area. By detecting that the electronic device is in In the case of a weightless state, it is determined based on the current motion data of the electronic device that the electronic device is in a falling state, and in response to the electronic device being in a falling state, the second display area is controlled to close relative to the first display area. As a result, it is possible to accurately detect that the electronic device is in a falling state, and control the screen of the electronic device to close, thereby reducing damage to the screen caused by impact when the electronic device falls, and achieving screen protection for roll-type electronic devices.

请参考图8,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、电子书、笔记本电脑等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、屏幕130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个应用程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be a smart phone, a tablet computer, an e-book, a notebook computer, or other electronic device capable of running application programs. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a screen 130, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured. For execution by one or more processors 110, one or more application programs are configured to perform the method as described in the preceding method embodiments.

处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。Processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100 . Optionally, the processor 110 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110 and may be implemented solely through a communication chip.

存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc. The storage data area can also store data created during use of the electronic device 100 (such as phone book, audio and video data, chat record data), etc.

屏幕130是用于进行图像显示的显示组件,通常设置在电子设备100的前面板。屏幕130可被设计成为卷轴屏等,本实施例对此不加以限定。The screen 130 is a display component used for image display, and is usually provided on the front panel of the electronic device 100 . The screen 130 may be designed as a scroll screen, etc., which is not limited in this embodiment.

本申请实施例中,屏幕130的显示面板可以为OLED屏幕,其可以是低温多晶硅(LowTemperature Poly-Silicon,LTPS)AMOLED屏幕或低温多晶氧化物(Low TemperaturePolycrystalline Oxide,LTPO)AMOLED屏幕。In this embodiment of the present application, the display panel of the screen 130 may be an OLED screen, which may be a Low Temperature Poly-Silicon (LTPS) AMOLED screen or a Low Temperature Polycrystalline Oxide (LTPO) AMOLED screen.

请参考图9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 9 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 800, and the program code can be called by the processor to execute the method described in the above method embodiment.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。Computer-readable storage medium 800 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any method steps in the above-described methods. These program codes can be read from or written into one or more computer program products. Program code 810 may, for example, be compressed in a suitable form.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (8)

1.一种屏幕保护方法,其特征在于,应用于电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开,所述方法包括:1. A screen protection method, characterized in that it is applied to an electronic device, the screen of the electronic device includes a first display area and a second display area, and the second display area is selectively opposite to the first display area. Collapse or expand, the methods include: 在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态;When it is detected that the electronic device is in a weightless state, determining that the electronic device is in a falling state based on the current motion data of the electronic device; 响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢;In response to the electronic device being in a falling state, controlling the second display area to close relative to the first display area; 响应于检测到所述电子设备处于碰撞状态,暂停控制所述第二显示区域相对所述第一显示区域合拢;In response to detecting that the electronic device is in a collision state, suspending control of the second display area to close relative to the first display area; 响应于检测到所述电子设备处于静止状态,获取所述屏幕的朝向;In response to detecting that the electronic device is in a stationary state, obtaining the orientation of the screen; 若所述屏幕的朝向为目标方向,则继续控制所述第二显示区域相对所述第一显示区域合拢,其中,所述目标方向与重力方向相反。If the orientation of the screen is a target direction, continue to control the second display area to close relative to the first display area, wherein the target direction is opposite to the direction of gravity. 2.根据权利要求1所述的方法,其特征在于,所述在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态,包括:2. The method according to claim 1, wherein when the electronic device is detected to be in a weightless state, determining that the electronic device is in a falling state based on current motion data of the electronic device includes: : 在检测到所述电子设备处于失重状态的情况下,将当前所述电子设备的当前运动数据与预设运动数据进行匹配,所述预设运动数据包括所述电子设备对应的测试设备处于真实跌落状态下的第一运动数据以及所述测试设备处于使用时的失重状态下的第二运动数据;When it is detected that the electronic device is in a weightless state, the current motion data of the electronic device is matched with the preset motion data. The preset motion data includes that the test device corresponding to the electronic device is in a real fall. The first motion data in the state and the second motion data in the weightless state when the test equipment is in use; 若所述当前运动数据与所述第一运动数据匹配,且所述当前运动数据与所述第二运动数据不匹配,则确定所述电子设备处于跌落状态。If the current motion data matches the first motion data, and the current motion data does not match the second motion data, it is determined that the electronic device is in a falling state. 3.根据权利要求2所述的方法,其特征在于,所述若所述当前运动数据与所述第一运动数据匹配,则确定所述电子设备处于跌落状态,还包括:3. The method of claim 2, wherein if the current motion data matches the first motion data, determining that the electronic device is in a falling state, further comprising: 若所述当前运动数据与所述第一运动数据匹配,且所述当前运动数据与所述第二运动数据匹配,确定所述电子设备的触摸状态;If the current motion data matches the first motion data, and the current motion data matches the second motion data, determine the touch state of the electronic device; 若所述电子设备处于未被触摸的状态,则确定所述电子设备处于跌落状态。If the electronic device is not touched, it is determined that the electronic device is in a fallen state. 4.根据权利要求1所述的方法,其特征在于,所述在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态,包括:4. The method according to claim 1, wherein when it is detected that the electronic device is in a weightless state, determining that the electronic device is in a falling state based on current motion data of the electronic device includes: : 在检测到所述电子设备处于失重状态的情况下,将所述电子设备的当前运动数据输入至跌落检测模型,所述跌落检测模型基于所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据训练得到,所述第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据;When it is detected that the electronic device is in a weightless state, the current motion data of the electronic device is input into a drop detection model, and the drop detection model is based on the first test device corresponding to the electronic device being in a real drop state. The third motion data and the fourth motion data that are not in the falling state are obtained through training, and the fourth motion data at least includes the motion data in the weightless state when the test device is in use; 基于所述跌落检测模型输出的结果,确定所述电子设备处于跌落状态。Based on the result output by the drop detection model, it is determined that the electronic device is in a dropped state. 5.根据权利要求4所述的方法,其特征在于,在所述在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态之前,所述方法还包括:5. The method according to claim 4, characterized in that, in the case of detecting that the electronic device is in a weightless state, before determining that the electronic device is in a falling state based on current motion data of the electronic device , the method also includes: 获取所述电子设备对应的测试设备处于真实跌落状态下的第三运动数据以及未处于跌落状态下的第四运动数据,所述第四运动数据至少包括所述测试设备处于使用时的失重状态下的运动数据;Obtain the third motion data of the test device corresponding to the electronic device when it is in a real fall state and the fourth motion data when it is not in the fall state. The fourth motion data at least includes the weightless state of the test device when in use. sports data; 基于所述第三运动数据以及所述第四运动数据,对初始检测模型进行训练,得到所述跌落检测模型。Based on the third motion data and the fourth motion data, an initial detection model is trained to obtain the fall detection model. 6.一种屏幕保护装置,其特征在于,应用于电子设备,所述电子设备的屏幕包括第一显示区域以及第二显示区域,所述第二显示区域选择性地相对所述第一显示区域合拢或展开,所述装置包括:状态检测模块以及屏幕控制模块,其中,6. A screen protection device, characterized in that it is applied to an electronic device, the screen of the electronic device includes a first display area and a second display area, and the second display area is selectively opposite to the first display area. Closed or expanded, the device includes: a status detection module and a screen control module, wherein, 所述状态检测模块用于在检测到所述电子设备处于失重状态的情况下,基于所述电子设备的当前运动数据确定所述电子设备处于跌落状态;The state detection module is configured to determine that the electronic device is in a falling state based on the current motion data of the electronic device when it is detected that the electronic device is in a weightless state; 所述屏幕控制模块用于响应于所述电子设备处于跌落状态,控制所述第二显示区域相对所述第一显示区域合拢;响应于检测到所述电子设备处于碰撞状态,暂停控制所述第二显示区域相对所述第一显示区域合拢;响应于检测到所述电子设备处于静止状态,获取所述屏幕的朝向;若所述屏幕的朝向为目标方向,则继续控制所述第二显示区域相对所述第一显示区域合拢,其中,所述目标方向与重力方向相反。The screen control module is configured to control the second display area to close relative to the first display area in response to the electronic device being in a falling state; and to suspend control of the third display area in response to detecting that the electronic device is in a collision state. The two display areas are closed relative to the first display area; in response to detecting that the electronic device is in a stationary state, obtain the orientation of the screen; if the orientation of the screen is the target direction, continue to control the second display area Collapse relative to the first display area, wherein the target direction is opposite to the direction of gravity. 7.一种电子设备,其特征在于,包括:7. An electronic device, characterized in that it includes: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-5任一项所述的方法。one or more programs, wherein said one or more programs are stored in said memory and configured to be executed by said one or more processors, said one or more programs are configured to perform as claimed The method described in any one of 1-5. 8.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-5任一项所述的方法。8. A computer-readable storage medium, characterized in that program code is stored in the computer-readable storage medium, and the program code can be called and executed by a processor as described in any one of claims 1-5. Methods.
CN202210864620.4A 2022-07-21 2022-07-21 Screen protection method and device, electronic equipment and storage medium Active CN115242922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210864620.4A CN115242922B (en) 2022-07-21 2022-07-21 Screen protection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210864620.4A CN115242922B (en) 2022-07-21 2022-07-21 Screen protection method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115242922A CN115242922A (en) 2022-10-25
CN115242922B true CN115242922B (en) 2023-10-03

Family

ID=83674780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210864620.4A Active CN115242922B (en) 2022-07-21 2022-07-21 Screen protection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115242922B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756200A (en) * 2022-11-21 2023-03-07 Oppo广东移动通信有限公司 Screen point reporting method and device, electronic equipment and computer readable medium
CN117456834A (en) * 2023-10-18 2024-01-26 联想(北京)有限公司 A processing method, electronic equipment and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132909A (en) * 2016-02-26 2017-09-05 联想(北京)有限公司 A kind of guard method and electronic equipment
CN107861640A (en) * 2017-11-06 2018-03-30 珠海市魅族科技有限公司 terminal device, control method and control system for terminal device
CN108234769A (en) * 2018-01-02 2018-06-29 广东欧珀移动通信有限公司 Falling protection method and related product
CN108429852A (en) * 2018-01-29 2018-08-21 广东欧珀移动通信有限公司 Fall protection method and related product
CN110493463A (en) * 2019-08-14 2019-11-22 珠海格力电器股份有限公司 Protection folds processing method and processing device, the pocessor and storage media of screen equipment
CN110891115A (en) * 2019-11-15 2020-03-17 珠海格力电器股份有限公司 Electronic equipment drop protection method and device, storage medium and electronic equipment
CN111641752A (en) * 2020-05-22 2020-09-08 维沃移动通信有限公司 Method, device and electronic device for adjusting screen state
CN112929490A (en) * 2021-01-22 2021-06-08 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597410A (en) * 2019-08-14 2019-12-20 武汉华星光电半导体显示技术有限公司 Flexible display device, intelligent protection method thereof and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132909A (en) * 2016-02-26 2017-09-05 联想(北京)有限公司 A kind of guard method and electronic equipment
CN107861640A (en) * 2017-11-06 2018-03-30 珠海市魅族科技有限公司 terminal device, control method and control system for terminal device
CN108234769A (en) * 2018-01-02 2018-06-29 广东欧珀移动通信有限公司 Falling protection method and related product
CN108429852A (en) * 2018-01-29 2018-08-21 广东欧珀移动通信有限公司 Fall protection method and related product
CN110493463A (en) * 2019-08-14 2019-11-22 珠海格力电器股份有限公司 Protection folds processing method and processing device, the pocessor and storage media of screen equipment
CN110891115A (en) * 2019-11-15 2020-03-17 珠海格力电器股份有限公司 Electronic equipment drop protection method and device, storage medium and electronic equipment
CN111641752A (en) * 2020-05-22 2020-09-08 维沃移动通信有限公司 Method, device and electronic device for adjusting screen state
CN112929490A (en) * 2021-01-22 2021-06-08 维沃移动通信有限公司 Control method of electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN115242922A (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN108390964B (en) A camera protection method and mobile terminal
US11720182B2 (en) Key indication method and electronic device
CN115242922B (en) Screen protection method and device, electronic equipment and storage medium
EP4145259A1 (en) Display control method and apparatus, and electronic device
CN109788137B (en) Falling protection method and terminal equipment
JP5620331B2 (en) Portable electronic device, control method, and control program
US10559273B2 (en) Display screen control method and apparatus and terminal
CN107885635B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN108769380B (en) The method of obtaining the impact angle and related products
JP2013157959A (en) Portable terminal apparatus, voice recognition processing method for the same, and program
CN107748648A (en) Prevent the method and terminal device of fingerprint sensor false triggering
CN110072010B (en) Drop detection method and terminal equipment
CN106453829A (en) Method and device for detecting drop height
CN115280259A (en) Electronic device including display and method of measuring moving distance of display
CN108650409A (en) Display screen resetting method, electronic equipment and storage medium
CN110166586B (en) Content display method and terminal equipment
CN108377293B (en) Electronic device, fall control method and related product
JP6124841B2 (en) Portable device, and method and program for controlling portable device
CN108337370B (en) Fault detection method and related products
TWI626536B (en) Power saving method of operating a portable computing device
CN111404488B (en) an electronic device
CN114338871A (en) Display switching method, device, electronic device and storage medium
US20080140339A1 (en) Six face, multi-event, orientation sensor
CN110162234A (en) A kind of application control method and terminal device
CN109582264B (en) Image display method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant