Display screen protection method, electronic equipment and computer readable storage medium
By detecting foreign objects on the display screen in electronic devices and preventing folding, the problem of easy damage to the display screen during folding of electronic devices is solved, effectively protecting the display screen, and improving the service life and user experience of the device.
Patent Information
- Application Number
- CN202510577620.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-06-20
AI Technical Summary
During the folding process of electronic equipment, due to the high attractiveness of the magnetic suction components, the display screen is susceptible to mechanical stress from foreign objects, causing scratches, pits and even irreversible damage, reducing the service life of the equipment and user experience.
During the process of folding the electronic device, check whether there are foreign objects on the display screen. If foreign objects are present, the electronic device is prevented from being folded and/or reminder information is displayed on the display. If no foreign object is present, the electronic device is allowed to be folded to a closed state.
By detecting and preventing damage to the display screen caused by foreign objects, it effectively prevents damage to the display screen during closing or folding, and improves the service life and user experience of electronic devices.
Smart Images

Figure CN120183294A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminal devices, and in particular, to a display screen protection method, an electronic device, and a computer-readable storage medium. Background Art
[0002] The form design of electronic devices (such as smart phones and tablet devices) is gradually evolving towards a foldable direction to meet the dual needs of users for portability and large-screen display. A foldable electronic device can provide a large-sized display screen in the unfolded state, and significantly reduce its volume in the folded state, making it convenient to carry.
[0003] To achieve the stable closing of a foldable electronic device, a magnetic attraction component is usually used for auxiliary positioning. Specifically, permanent magnets are arranged on both sides of the fuselage, and the folded device is closely attached through the attraction force between magnetic poles, avoiding accidental unfolding caused by external forces or vibrations.
[0004] However, during the closing or folding process of an electronic device, it is inevitable that there are foreign objects. When the electronic device is closed, the attraction force of the magnetic attraction component is relatively large, and the display screen will be subjected to relatively large mechanical stress from foreign objects, resulting in scratches, pits or even irreversible damage to the display screen, reducing the service life of the electronic device and the user experience. Summary of the Invention
[0005] This application provides a display screen protection method, an electronic device, and a computer-readable storage medium to solve the problem that foreign objects on the display screen of an electronic device during folding will damage the display screen.
[0006] In a first aspect, this application provides a display screen protection method, which is applied to an electronic device with a folding function. The electronic device includes a display screen. The method includes: during the folding process of the electronic device, detecting whether there are foreign objects on the display screen; if there are foreign objects on the display screen, preventing the electronic device from being folded, and / or, displaying a reminder message on the display screen; if there are no foreign objects on the display screen, not displaying a reminder message on the display screen, and the electronic device can be folded to a closed state.
[0007] The display screen protection method provided by the embodiments of this application detects whether there are foreign objects on the display screen during the folding process of the electronic device. When there are foreign objects on the display screen, preventing the electronic device from being continuously folded, and / or, displaying a reminder message on the display screen to prompt the user to clean the foreign objects in time; when there are no foreign objects on the display screen, not displaying a reminder message on the display screen, and the electronic device can be folded to a closed state. In this way, it can help the user protect the display screen, effectively prevent the display screen from being damaged due to being abraded by foreign objects during the closing or folding process, and improve the service life of the electronic device and the user experience.
[0008] In combination with the first aspect, in a possible implementation of the first aspect, during the folding process of the electronic device, detecting whether there is foreign matter on the display screen includes: during the folding process of the electronic device, detecting the folding angle at which the electronic device is folded; if it is detected that the folding angle continues to decrease, then detecting whether there is foreign matter on the display screen. In this way, based on the change trend of the folding angle, the degree to which the electronic device is folded to the closed state can be accurately judged, and the foreign matter detection process can be started in a timely manner.
[0009] In combination with the first aspect, in a possible implementation of the first aspect, the electronic device includes a piezoelectric sensor, and the piezoelectric sensor is used to detect the deformation of the display screen and generate a piezoelectric signal; and if it is detected that the folding angle continues to decrease, then detecting whether there is foreign matter on the display screen includes: if it is detected that the folding angle continues to decrease, then obtaining the piezoelectric signal generated by the piezoelectric sensor; based on the change characteristics of the piezoelectric signal, detecting whether there is foreign matter on the display screen. In this way, when the electronic device is folded, whether there is foreign matter on the display screen can be accurately judged through the change characteristics of the piezoelectric signal of the piezoelectric sensor, and the user can be reminded in a timely manner to protect the display screen.
[0010] In combination with the first aspect, in a possible implementation of the first aspect, the electronic device includes a motion sensor and an AD converter; and if the motion sensor detects that the folding angle continues to decrease, then obtaining the piezoelectric signal generated by the piezoelectric sensor includes: if the motion sensor detects that the folding angle continues to decrease, then the HAL layer sets the first flag to TRUE; in response to the first flag being set to TRUE, the AD converter is turned on, and the piezoelectric signal is periodically reported to the HAL layer; the HAL layer periodically obtains the piezoelectric signal reported by the AD converter. In this way, the on and off of the AD converter can be controlled by the value of the first flag bit to determine whether to read the piezoelectric signal for the foreign matter detection process, avoiding resource waste.
[0011] In combination with the first aspect, in a possible implementation of the first aspect, the method further includes: if the motion sensor detects that the folding angle does not continue to decrease, then the HAL layer sets the first flag to FALSE, and in response to the first flag being set to FALSE, the AD converter is turned off; where the folding angle not continuing to decrease includes one of the folding angle not changing, the folding angle increasing, the folding angle being 0°, and the folding angle being 180°. In this way, the on and off of the AD converter can be controlled by the value of the first flag bit to determine whether to read the piezoelectric signal for the foreign matter detection process, avoiding wasting resources.
[0012] In combination with the first aspect, in a possible implementation of the first aspect, based on the change characteristics of the piezoelectric signal, detecting whether there is foreign matter on the display screen includes: the HAL layer calls the HAL function to judge the change characteristics of the piezoelectric signal; if the HAL function judges that the piezoelectric signal continuously increases, it is determined that there is foreign matter on the display screen, and the second flag is set to TRUE. The second flag is a flag indicating whether there is foreign matter on the display screen; if the HAL function judges that the piezoelectric signal does not continuously increase, it is determined that there is no foreign matter on the display screen, and the second flag is set to FALSE; where the piezoelectric signal not continuously increasing includes one of no voltage signal, no change in the piezoelectric signal, and a decrease in the piezoelectric signal. In this way, it is possible to determine whether there is foreign matter on the display screen according to the change characteristics of the piezoelectric signal, improving the accuracy of foreign matter detection; it is also possible to set the second flag to different values based on different foreign matter detection results to accurately remind the user to clean the foreign matter when it is detected that there is foreign matter on the display screen, avoiding waste of resources due to repeated reminders.
[0013] In combination with the first aspect, in a possible implementation of the first aspect, the method further includes: when the piezoelectric signal does not continuously increase, if the motion sensor detects that the folding angle is 0°, the HAL layer sets the second flag to FALSE. In this way, it can be explained that there is no foreign matter on the display screen, and the piezoelectric signal will not be read for feature judgment in the future, and the current foreign matter detection process ends, avoiding waste of resources.
[0014] In combination with the first aspect, in a possible implementation of the first aspect, if there is foreign matter on the display screen, preventing the electronic device from being folded and / or displaying a reminder message on the display screen includes: when there is foreign matter on the display screen, judging whether the current folding angle of the electronic device is greater than or equal to the first angle; if the current folding angle is greater than or equal to the first angle, a reminder message is displayed on the display screen; if the current folding angle is less than the first angle, preventing the electronic device from being folded and displaying a reminder message on the display screen. In this way, different protection methods can be executed on the display screen of the electronic device based on foreign matter of different sizes, protecting the display screen from damage while avoiding waste of resources.
[0015] In combination with the first aspect, in a possible implementation manner of the first aspect, the electronic device includes a first body, a second body, and a chip select switch. The first body is provided with a first magnetic component, the second body is provided with a second magnetic component, and the chip select switch is connected to at least one of the first magnetic component and the second magnetic component; and, if the current folding angle is less than a first angle, preventing the electronic device from being folded includes: when the current folding angle is less than the first angle, the HAL layer controls the chip select switch to adjust the polarities of the first magnetic component and the second magnetic component to be the same, so that the first body and the second body bounce open to prevent the electronic device from being folded. In this way, a more direct method can be used to remind the user to clean foreign objects in time to avoid damage to the display screen caused by extrusion.
[0016] In combination with the first aspect, in a possible implementation manner of the first aspect, the electronic device includes a motor; and, the method further includes: when there is a foreign object on the display screen, the HAL layer controls the motor to vibrate for a preset duration through a HAL function. In this way, another method can be provided to remind the user to clean foreign objects in time to avoid damage to the display screen caused by extrusion of foreign objects.
[0017] In combination with the first aspect, in a possible implementation manner of the first aspect, the method further includes: when the electronic device is unfolded to a second angle, the HAL layer controls the chip select switch to adjust the polarities of the first magnetic component and the second magnetic component to be opposite, and sets the second flag to FALSE through a HAL function to cancel the display of the reminder message, and controls the motor to stop vibrating, where the second angle is greater than the first angle. In this way, after completing a display screen protection process, the various hardware parameters of the electronic device return to the initial operating state to facilitate the next foreign object detection process to protect the display screen.
[0018] In combination with the first aspect, in a possible implementation manner of the first aspect, when the electronic device is in the unfolded state, if a foreign object is detected on the display screen, the reminder message is not displayed on the display screen. In this way, resource waste can be avoided.
[0019] In a second aspect, the present application further provides a display screen protection device. The display screen protection device includes a detection module for detecting whether there is a foreign object on the display screen during the folding process of the electronic device; a first control module for preventing the electronic device from being folded and / or displaying a reminder message on the display screen when there is a foreign object on the display screen; and a second control module for not displaying a reminder message on the display screen when there is no foreign object on the display screen, and the electronic device can be folded to the closed state.
[0020] The display protection device provided by the embodiments of the present application detects whether there is foreign matter on the display screen during the folding process of the electronic device. When there is foreign matter on the display screen, it prevents the electronic device from being further folded, and / or displays a reminder message on the display screen to prompt the user to clean the foreign matter in time; when there is no foreign matter on the display screen, no reminder message is displayed on the display screen, and the electronic device can be folded to the closed state. In this way, it can help the user protect the display screen, effectively prevent the display screen from being damaged due to being abraded by foreign matter during the closing or folding process, so as to improve the service life and user experience of the electronic device.
[0021] In a third aspect, the present application provides an electronic device, including: a display screen, a first body, a second body, a rotating shaft mechanism, a piezoelectric sensor, a motor, a first magnetic component, and a second magnetic component; the first body and the second body are rotatably connected through the rotating shaft mechanism, and the display screen covers the first body, the rotating shaft mechanism, and the second body; the piezoelectric sensor is located on the display screen; the motor is located in any one of the first body and the second body; the first magnetic component is located on one of the first body and the second body, and the second magnetic component is located on the other of the first body and the second body, and the first magnetic component and the second magnetic component are opposite in position; one of the first body and the second body includes a processor and a memory, and the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the display screen protection method provided by the first aspect and any one of its possible implementation manners.
[0022] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions run on an electronic device, the electronic device executes the display screen protection method provided by the first aspect and any one of its possible implementation manners.
[0023] In a fifth aspect, the embodiments of the present application provide a computer program product, and when the computer program product runs on an electronic device, the electronic device executes the display screen protection method provided by the first aspect and any one of its possible implementation manners.
[0024] It can be understood that the electronic device, the computer-readable storage medium, and the computer program product provided by the above-mentioned various aspects are all applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here. Description of the Drawings
[0025] In order to more clearly illustrate the technical solutions of the present application, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
[0026] Figure 1 It is a schematic structural diagram of a foldable electronic device; Figure 2 It is a schematic structural diagram of a foldable electronic device during the folding process; Figure 3 It is a schematic hardware structure diagram of the electronic device provided by the embodiment of the present application; Figure 4 It is a schematic software structure diagram of the electronic device provided by the embodiment of the present application; Figure 5 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application; Figure 6 It is a schematic structural diagram of the display screen and the piezoelectric sensor provided by the embodiment of the present application; Figure 7 It is the first flow schematic diagram of the display screen protection method provided by the embodiment of the present application; Figure 8 It is a flow schematic diagram of the electronic device detecting the folding angle provided by the embodiment of the present application; Figure 9 It is an interaction process schematic diagram of the electronic device detecting the folding angle provided by the embodiment of the present application; Figure 10 It is a flow schematic diagram of the electronic device executing the foreign object detection process provided by the embodiment of the present application; Figure 11 It is the first scenario diagram of the foreign object detected during the folding process of the electronic device provided by the embodiment of the present application; Figure 12 It is the second scenario diagram of the foreign object detected during the folding process of the electronic device provided by the embodiment of the present application; Figure 13 It is an interaction process schematic diagram of the electronic device displaying a reminder message provided by the embodiment of the present application; Figure 14 It is an interface schematic diagram of the display screen displaying a reminder message provided by the embodiment of the present application; Figure 15 It is an interaction process schematic diagram of the electronic device controlling the body to pop open provided by the embodiment of the present application; Figure 16 It is an interaction process schematic diagram of the electronic device controlling the motor to vibrate provided by the embodiment of the present application; Figure 17 It is the second flow chart of the display screen protection method provided by the embodiment of the present application; Figure 18 It is a schematic structural diagram of the display screen protection device provided by the embodiment of the present application; Figure 19 It is a schematic structural diagram of the display screen protection device provided by another embodiment of the present application; Figure 20It is a schematic structural diagram of a chip system provided by an embodiment of the present application. Detailed implementation manners
[0027] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0028] In the description of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B. The "and / or" herein is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, "at least one" means one or more, and "a plurality" means two or more. The terms such as "first" and "second" do not limit the quantity and execution order, and the terms such as "first" and "second" do not necessarily mean different.
[0029] It should be noted that in the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly, using words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0030] In addition, in the present application, orientation terms such as "upper", "lower", "left", and "right" are defined relative to the orientation of the components shown in the accompanying drawings. It should be understood that these directional terms are relative concepts, and they are used for relative description and clarification, and they can change accordingly with the change of the orientation of the components placed in the accompanying drawings.
[0031] Next, the application scenarios of the embodiments of the present application will be described first.
[0032] Figure 1 It is a schematic structural diagram of a foldable electronic device.
[0033] Such as Figure 1As shown, the foldable electronic device may include a first housing 10, a second housing 20, a screen 30, and a rotating shaft assembly 40. The first housing 10 and the second housing 20 are respectively disposed on both sides of the axis direction of the rotating shaft assembly 40. The first housing 10 and the second housing 20 are respectively connected to the rotating shaft assembly 40 and can rotate through the rotating shaft assembly 40, so that the included angle between the first housing 10 and the second housing 20 decreases until the foldable electronic device presents a closed state; or the included angle between the first housing 10 and the second housing 20 increases until the foldable electronic device presents an unfolded state (such as Figure 1 the state shown). Among them, the foldable electronic device can also be unfolded or folded to an intermediate state, and the intermediate state can be any state between the unfolded state and the closed state.
[0034] The screen 30 covers the first housing 10, the second housing 20, and the rotating shaft assembly 40 and is respectively connected to the first housing 10 and the second housing 20. The rotation of the first housing 10 and the second housing 20 can drive the screen 30 to bend or unfold. Exemplarily, the screen 30 can adopt a bendable flexible screen, and the screen 30 has a bending area, so that the screen 30 can bend in the bending area along with the rotation of the rotating shaft assembly 40.
[0035] The screen 30 moves along with the foldable electronic device, and the state of the foldable electronic device is the same as that of the rotating shaft assembly 40. When the foldable electronic device is in the unfolded state, the rotating shaft assembly 40 is also in the unfolded state. In the unfolded state, the first housing 10 and the second housing 20 are parallelly distributed on both sides of the rotating shaft assembly 40, and the screen 30 is tiled on the rotating shaft assembly 40 in the unfolded state, and the screen 30 is fully displayed, so that the foldable electronic device has a large display area to improve the user's viewing experience and operation experience. When the foldable electronic device is in the closed state, the rotating shaft assembly 40 is also in the closed state. In the closed state, the first housing 10 and the second housing 20 are oppositely distributed on both sides of the rotating shaft assembly 40, and the rotating shaft assembly 40 presses the screen 30 into a water droplet shape. When the foldable electronic device is in the closed state, the planar size of the foldable electronic device is small, which is convenient for the user to carry and store. When the foldable electronic device is in the intermediate state, the rotating shaft assembly 40 is also in the intermediate state.
[0036] According to the different rotation directions of the first housing 10 and the second housing 20, the flexible screen may be hidden inside the fuselage or surround the outside of the fuselage when the foldable electronic device is in the closed state. Among them, when the first housing 10 and the second housing 20 are folded towards the front of the flexible screen, the flexible screen is hidden inside the fuselage when the foldable electronic device is in the closed state. This kind of foldable electronic device can be called an in-foldable screen electronic device. For example, an in-foldable screen mobile phone (such as Figure 2The structure shown); when the first housing 10 and the second housing 20 are folded towards the back of the flexible screen, the flexible screen wraps around the outside of the fuselage when the foldable electronic device is in the closed state. Such a foldable electronic device can be called an outer-foldable screen electronic device, such as an outer-foldable screen mobile phone (this structure is not shown in the figure).
[0037] It should be noted that electronic components such as circuit boards, camera modules, speaker modules, and batteries can be arranged inside the first housing 10 and the second housing 20, which will not be listed one by one here.
[0038] To facilitate the description of the positions of the various components in the foldable electronic device, a three-dimensional coordinate system is exemplarily established based on the foldable electronic device in the embodiments of the present application. Among them, the x-axis direction is the width direction of the foldable electronic device, the y-axis direction is the length direction of the foldable electronic device, and the z-axis direction is the thickness direction of the foldable electronic device.
[0039] Figure 2 is a schematic structural diagram of a foldable electronic device during the folding process. Among them, Figure 2 in (a) shows the structure in the closed state, Figure 2 in (b) shows the structure during the folding process.
[0040] As Figure 2 shown in (a), taking the foldable electronic device as an inner-foldable screen electronic device as an example, when the foldable electronic device is folded to the closed state, the parts of the screen 30 on the first housing 10 and the second housing 20 face each other.
[0041] The foldable electronic device further includes a first magnet 11 and a second magnet 21. The first magnet 11 is arranged on the first housing 10, and the second magnet 21 is arranged on the second housing 20; the first magnet 11 and the second magnet 21 are located on opposite sides of the screen 30, and the first magnet 11 and the second magnet 21 are symmetrically arranged.
[0042] When the first housing 10 and the second housing 20 are folded to the closed state, the first magnet 11 and the second magnet 21 are attracted to each other, so that the first housing 10 and the second housing 20 are closely attached to each other. In this way, it is possible to prevent the foldable electronic device from being accidentally opened when carrying the foldable electronic device.
[0043] However, during the folding process of the foldable electronic device, as Figure 2 shown in (b), it is inevitable that there are foreign objects 50 between the first housing 10 and the second housing 20. For example, the foreign object 50 is located between the parts of the screen on the first housing 10 and the second housing 20, or is adsorbed by the first magnet 11 and / or the second magnet 21 and is located at a position close to the screen 30. Among them, the foreign object 50 includes but is not limited to pens, balls, corners of clothes, or other hard objects, etc.
[0044] During the closing or folding process, foreign object 50 will press against the screen 30. Due to the large attraction between the first magnet 11 and the second magnet 21, the screen 30 is subjected to a large mechanical stress, resulting in scratches, pits or even irreversible damage, seriously affecting the service life and user experience of the foldable electronic device.
[0045] To solve the above problems, an embodiment of the present application provides a display screen protection method.
[0046] The display screen protection method provided by the embodiment of the present application can be applied to an electronic device. The electronic device in the embodiment of the present application includes, but is not limited to, a folding screen mobile phone, a laptop computer, a personal digital assistant (Personal Digital Assistant, PDA), a workstation device, a large screen device (such as: smart screen, smart TV, etc.), a wearable device (such as: smart bracelet, smart watch), a handheld game console, a home game console, a virtual reality (Virtual Reality, VR) device, an augmented reality (Augmented Reality, AR) device, a mixed reality device, an in-vehicle intelligent terminal, etc. The present application does not limit the specific technologies and specific device forms adopted by the electronic device. The electronic device involved in the present application may be equipped with Android®, Harmony OS®, iOS® or other operating systems, and the present application does not limit this.
[0047] Figure 3 It is a schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application.
[0048] As Figure 3 shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 122, antenna 01, antenna 02, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a display screen 191, a camera 192, a motor 193, a chip select switch 194, an electromagnet 195, an AD converter 196, etc. Among them, the sensor module 180 may include a touch sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a geomagnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a piezoelectric sensor 180H, etc. Among them, the gyroscope sensor 180B, the barometric pressure sensor 180C, the geomagnetic sensor 180D, the acceleration sensor 180E, etc. can all be used to detect the motion state of the electronic device. Therefore, they can also be called motion sensors.
[0049] The processor 110 may include one or more processing units. For example, the processor 110 may include a Central Processing Unit (CPU), an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a System Control Processor Firmware (SCP), an Analog Devices Digital Signal Processor (ADSP), a baseband processor, and / or a Neural-network Processing Unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0050] In the embodiments of this application, the SCP is a dedicated processor (or microcontroller) in an embedded system, and is usually responsible for managing key tasks such as underlying hardware resources, power control, system initialization, and security monitoring. It is independent of the main processor (such as the CPU or application processor) and realizes system-level control functions by running firmware, ensuring the efficient, stable, and secure operation of the entire system. The SCP is usually a low-power microcontroller (such as the ARM Cortex-M series), integrated in a System-on-Chip (SoC) or motherboard; it includes dedicated peripheral interfaces (I2C, SPI, GPIO, etc.) and memory (ROM / RAM) for direct interaction with hardware modules. The SCP firmware is stored in a non-volatile memory (such as Flash) and loaded into memory for execution when the system starts; the firmware includes a state machine, event-driven logic, or a Real-Time Operating System (RTOS) to ensure a quick response to hardware events.
[0051] In the embodiments of the present application, the AP is the core processor in an embedded system or intelligent device, mainly responsible for running operating systems (such as Android, iOS, Linux), user applications, and complex computing tasks. Different from dedicated processors (such as SCP, DSP), the AP is oriented towards general computing, emphasizing high performance and multitasking capabilities, and is commonly found in smartphones, tablets, Internet of Things devices, and in-vehicle infotainment systems. The AP runs a complete operating system (OS), manages process scheduling, memory allocation, and file systems; supports multitasking, for example, running applications such as games, video playback, and communication simultaneously. The AP drives the graphical user interface (GUI), processes interactive operations such as touch input and voice commands; accelerates graphics rendering through the GPU to achieve smooth animations and high-resolution displays.
[0052] In the embodiments of the present application, the AP processor can be connected to the motor 193, chip select switch 194, display screen 191, etc. The AP processor can integrate a motor drive chip to drive the motor coil according to an electrical signal, causing the motor 193 to physically vibrate. The AP processor can integrate a display controller (Display Controller) to convert digital signals into RGB electrical signals to control the display screen 191 to turn on. The AP processor can control the electromagnet to change its polarity through the chip select switch 194.
[0053] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0054] The DSP is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0055] The NPU is a neural network (Neural-Network, NN) computing processor. By learning from the structure of biological neural networks, such as learning from the transmission mode between human brain neurons, it can quickly process input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.
[0056] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bus (USB) interface, etc. These interfaces are used to connect to other components in the electronic device 100.
[0057] It can be understood that the interface connection relationships among the modules illustrated in the embodiments of the present application are only illustrative descriptions and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0058] The memory may include an internal memory 122. The internal memory 122 may include one or more Random Access Memories (RAMs) and one or more Non-Volatile Memories (NVMs).
[0059] The random access memory can be directly read and written by the processor 110, and can be used to store the operating system or executable programs (such as machine instructions) of other running programs, and can also be used to store data of users and application programs, etc. The non-volatile memory can also store executable programs and store data of users and application programs, etc., and can be pre-loaded into the random access memory for the processor 110 to directly read and write.
[0060] The external memory interface 120 can be used to connect to an external non-volatile memory to implement the storage capacity expansion of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function.
[0061] The wireless communication function of the electronic device 100 can be implemented through antenna 01, antenna 02, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, baseband processor, etc.
[0062] Antenna 01 and antenna 02 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, antenna 01 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0063] The mobile communication module 150 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through antenna 01, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through antenna 01 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 can be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 can be provided in the same device.
[0064] The modulation and demodulation processor can include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through the audio device, or displays an image or video through the display screen 191. In some embodiments, the modulation and demodulation processor can be an independent device. In some other embodiments, the modulation and demodulation processor can be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
[0065] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 receives electromagnetic waves via the antenna 02, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 02 for radiation.
[0066] In some embodiments, the antenna 01 of the electronic device 100 is coupled to the mobile communication module 110, and the antenna 02 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technologies.
[0067] The electronic device 100 implements the display function through the GPU, the display screen 191, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 191 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0068] The display screen 191 is used to display images, videos, etc. The display screen 191 includes a display panel. In some embodiments, the electronic device may include one or N display screens 191, where N is a positive integer greater than 1. The display screen 191 includes a display panel. The display panel may adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0069] In the embodiments of the present application, the display screen 191 can be used to display reminder information.
[0070] The electronic device 100 can implement the shooting function through an ISP, a camera 192, a video codec, a GPU, a display screen 191, an application processor, etc.
[0071] The ISP is used to process the data fed back by the camera 192. For example, when taking a photo, the shutter is opened, and light passes through the lens and is transmitted to the camera photosensitive element. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 192.
[0072] The camera 192 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard RGB, YUV, etc. formats. In some embodiments, the electronic device 100 may include one or N cameras 192, where N is a positive integer greater than 1.
[0073] The motor 193 can generate vibration prompts. The motor 193 can be used for incoming call vibration prompts, touch vibration feedback, or abnormal reminder feedback. For example, touch operations for different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations on different areas of the display screen 191 can also correspond to different vibration feedback effects by the motor 193.
[0074] The chip select switch (CS) 194 is part of the hardware circuit and is used to select the target magnet or electromagnet through a level signal (high / low), controlling the current direction to change the magnetism (such as adsorption or release). The polarity control of the chip select switch 194 is usually achieved through GPIO (General Purpose Input Output) or SPI / I²C bus driving. Among them, GPIO control: the chip select signal is switched by configuring the GPIO pin level (high / low) through the kernel driver. Bus protocol: If the chip select switch 194 is used for SPI / I²C devices (such as an electromagnet driver chip), the kernel's SPI / I²C subsystem manages the bus timing and chip select signal.
[0075] The electromagnet 195 is used to assist in the folding and unfolding of the display screen 191. For example, when the electronic device is folded, the polarities of the electromagnets on the two bodies of the electronic device are opposite, and the electromagnets attract each other to make the two bodies fit tightly. When the electronic device is unfolded, the polarities of the electromagnets on the two bodies of the electronic device are the same, and the electromagnets repel each other to make the two bodies bounce open.
[0076] The AD converter 196 can be an analog-to-digital converter and is used to convert analog signals (such as piezoelectric sensor data) into digital signals.
[0077] The touch sensor 180A, also known as the "touch control device". The touch sensor 180A can be set on the display screen 191, and the touch sensor 180A and the display screen 191 form a touch screen, also known as the "touch control screen". The touch sensor 180A is used to detect touch operations on or near it. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event.
[0078] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100.
[0079] The barometric pressure sensor 180C is used to measure barometric pressure.
[0080] The geomagnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the geomagnetic sensor 180D to detect the opening and closing of the flip leather case.
[0081] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0082] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve rapid focusing.
[0083] The proximity light sensor 180G may include, for example, a light-emitting diode and a light detector, such as a photodiode.
[0084] The piezoelectric sensor 180H is a sensor based on the piezoelectric effect, which can convert mechanical energy (such as pressure, vibration, acceleration) into an electrical signal, or convert an electrical signal into mechanical deformation through the inverse piezoelectric effect. Its core principle is: direct piezoelectric effect: when mechanical force is applied to certain crystal materials, charges will be generated on the surface of the material (mechanical energy → electrical energy); inverse piezoelectric effect: when an electric field is applied to the material, the material will deform (electrical energy → mechanical energy). The piezoelectric sensor 180H is mainly used to detect physical quantities such as dynamically changing forces, vibrations, and pressures and is suitable for high-frequency signal detection. The piezoelectric sensor can be made of materials such as quartz crystals, piezoelectric ceramics (PZT), polymer materials (such as polyvinylidene fluoride film (PVDF)), or composite materials.
[0085] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present invention, the Android system with a layered architecture is taken as an example to exemplarily illustrate the software structure of the electronic device 100.
[0086] Figure 4 It is a schematic diagram of the software structure of the electronic device provided by the embodiments of the present application.
[0087] As Figure 4 shown, the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0088] The application layer may include a series of application packages. Exemplarily, the application packages may include applications such as a camera, a gallery, a calendar, a call, a map, a navigation, music, a video, and a short message.
[0089] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0090] Exemplarily, the application framework layer may include a window manager, an input manager (InputManager), a sensor manager (SensorManager), a phone manager, a resource manager, a notification manager, etc.
[0091] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0092] The input manager can be used to monitor the input events of the user. For example, click events, swipe events, etc. performed by the user's finger on the display screen 191 of the electronic device 100. By monitoring the input events, the electronic device 100 can determine whether the electronic device 100 is being used.
[0093] The sensor manager is used to monitor the data returned by each sensor in the electronic device 100, such as motion sensor data, proximity light sensor data, temperature sensor data, etc. Using the data returned by each sensor, the electronic device 100 can determine whether it has jitter, or whether the display screen 191 is blocked, etc.
[0094] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of call states (including answering, hanging up, etc.).
[0095] The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
[0096] The notification manager enables the application to display notification information in the status bar. It can be used to convey messages of the notification type, and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as the notification of a background running application, and can also be a notification that appears on the screen in the form of a dialogue window. For example, prompt text information in the status bar, emit a prompt tone, the electronic device vibrates, the indicator light flashes, etc.
[0097] In the embodiment of the present application, the application framework layer further includes an interface for triggering the vibration of the motor, and the vibration of the motor is triggered through this interface.
[0098] The Android Runtime includes core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.
[0099] The core libraries consist of two parts: one part is the functional functions that the Java language needs to call, and the other part is the core libraries of Android.
[0100] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0101] The system libraries can include multiple functional modules. For example: Surface Manager, Media Libraries, 3D graphics processing libraries (such as: OpenGL, EGL), 2D graphics engine (such as: SGL), game engine, foreign object detection module, etc.
[0102] The Surface Manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0103] The Media Libraries support the playback and recording of various common audio and video formats, as well as static image files, etc. The Media Libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0104] The 3D graphics processing libraries are used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0105] The 2D graphics engine is a drawing engine for 2D drawing.
[0106] In the embodiments of the present application, the foreign object detection module can detect whether there is a foreign object 50 on the display screen 191 during the folding process of the electronic device. When there is a foreign object 50 on the display screen 191, the user is reminded by means such as displaying a reminder message, motor vibration, and the two body parts bouncing open, so as to clean the foreign object 50 in time and avoid damaging the display screen 191.
[0107] It should be noted here that in the embodiments of the present application, the foreign object detection module can be set as an independent module in the HAL layer, or integrated in the SCP processor, or can be set in other software layers according to the actual situation. The embodiments of the present application do not limit the specific setting method of the foreign object detection module. The embodiments of the present application only take the foreign object detection module as an independent module in the HAL layer for exemplary illustration.
[0108] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0109] The kernel layer may include a basic kernel, an extended kernel, a Hardware Abstraction Layer (HAL), and a driver layer.
[0110] The basic kernel can implement corresponding core functions such as memory management, task management, inter-process communication, and interrupt management based on interfaces such as a Memory (Mem) interface, a Task interface, an Inter-Process Communication (IPC) interface, and an interrupt interface.
[0111] The HAL layer can abstract the hardware operation interface to encapsulate the underlying driver interface into a unified Application Programming Interface (API). In this way, the hardware abstraction layer can simplify the complexity of hardware operations for applications.
[0112] It should be noted here that in the embodiments of this application, only the HAL layer is used as an example to illustrate a part of the kernel layer. In fact, the HAL layer can also be independent of the kernel layer, and the embodiments of this application do not limit this.
[0113] The driver layer at least includes a display driver, a camera driver, an audio driver, a sensor driver, a Graphics Driver, a motor driver, an AD converter driver, a chip select switch driver, etc.
[0114] In the embodiments of this application, the graphics driver can be used to manage and control the GPU in a computer system and related graphics functions and display devices.
[0115] In the embodiments of this application, the display driver can manage and control the lighting of the display screen 191, display reminder information, etc.
[0116] In the embodiments of this application, the sensor driver can manage and control the turning on and off of the gyroscope sensor 180B, the acceleration sensor 180E, the piezoelectric sensor 180H, etc.
[0117] In the embodiments of this application, the motor driver can control the vibration of the motor 193.
[0118] In the embodiments of this application, the AD converter driver can manage the turning on and off of the AD converter 196 to control whether the AD converter 196 reports the data of the piezoelectric sensor 180H to the HAL layer.
[0119] In the embodiments of the present application, the chip select switch drive can manage the closing and opening of the chip select switch 194 to control the change in the polarity of the electromagnet 195.
[0120] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0121] The following embodiments of the present application will be exemplarily described with the display protection scenario of an in-foldable screen mobile phone as the electronic device.
[0122] Figure 5 It is a schematic structural diagram of the electronic device provided by the embodiments of the present application.
[0123] As Figure 5 shown, in some embodiments, the electronic device 100 has a foldable function. The electronic device 100 includes a display screen 191, a first body 101, a second body 102, a rotating shaft mechanism 103, a first magnetic component 104, a second magnetic component 105, and a piezoelectric sensor 180H.
[0124] The first body 101 and the second body 102 are respectively arranged on both sides of the axis direction of the rotating shaft mechanism 103. The first body 101 and the second body 102 are respectively connected to the rotating shaft mechanism 103 and can rotate through the rotating shaft mechanism 103, so that the included angle between the first body 101 and the second body 102 decreases until the foldable electronic device presents a closed state; or the included angle between the first body 101 and the second body 102 increases until the foldable electronic device presents an unfolded state (such as Figure 1 the state shown). Among them, the foldable electronic device can also be unfolded or folded to an intermediate state, and the intermediate state can be any state between the unfolded state and the closed state.
[0125] The display screen 191 covers the first body 101, the second body 102, and the rotating shaft mechanism 103, and is respectively connected to the first body 101 and the second body 102. The rotation of the first body 101 and the second body 102 can drive the display screen 191 to bend or unfold. Exemplarily, the display screen 191 can adopt a bendable flexible screen, and the screen 30 has a bending area, so that the display screen 191 can bend in the bending area along with the rotation of the rotating shaft mechanism 103.
[0126] It should be noted that other structural contents of the electronic device 100 can refer to Figure 1 the structural contents of the foldable electronic device shown, which will not be elaborated here.
[0127] Figure 6 This is a schematic structural diagram of a display screen and a piezoelectric sensor provided by an embodiment of the present application.
[0128] As Figure 6 shown, in some embodiments, the piezoelectric sensor 180H is located on the display screen 191, and the piezoelectric sensor 180H can adopt a piezoelectric thin film.
[0129] The piezoelectric thin film is an ultra-thin flexible piezoelectric material made of a polymer or composite material, with a thickness usually between a few micrometers and several hundred micrometers. Its core characteristics are both piezoelectric effect (mutual conversion between mechanical energy and electrical energy) and flexible deformability. The piezoelectric thin film can convert mechanical energy and electrical energy mutually, is lightweight and has good flexibility. Under the same force condition, the output voltage of the piezoelectric thin film is 10 times higher than that of piezoelectric ceramics, and the piezoelectric thin film is thinner, more bend-resistant, suitable for non-planar or dynamic environments, and is widely used in fields such as flexible electronic devices, sensors, actuators, and energy collectors.
[0130] The piezoelectric thin film has characteristics such as flexible bendability (can conform to curved surfaces or dynamic surfaces, such as human skin and mechanical joints), high sensitivity (responds quickly to tiny pressure or vibration, such as tactile detection), wide frequency response (supports signal detection from low-frequency vibration to high-frequency ultrasound), low power consumption (self-powered characteristic, such as can output signals without an external power source), and lightweight (suitable for integration into wearable devices or micro-systems).
[0131] Exemplarily, the material of the piezoelectric thin film can adopt PVDF (polyvinylidene fluoride), PVDF-TrFE (copolymer), nanocomposite materials, or lead-free piezoelectric thin films, etc.
[0132] The display screen 191 includes a display panel (panel), which is not shown in the figure. The piezoelectric thin film is pasted on the lower surface of the display panel through a composite tape 106, that is, the surface of the display screen 191 facing the inside of the electronic device. When the piezoelectric thin film is attached to the back of the display screen 191, since the display screen 191 is a flexible screen, when the electronic device is closed and is squeezed due to the presence of the foreign object 50, the display screen 191 will deform, and at this time, the piezoelectric thin film will generate a piezoelectric signal. Based on the magnitude of the piezoelectric signal, it can be determined whether the current display screen 191 is squeezed by the foreign object 50, and then the electronic device is controlled to perform corresponding actions to prevent the display screen 191 from being damaged.
[0133] Combined Figure 5 and Figure 6 shown, the display screen 191 can include a first display area 1911 and a second display area 1912. The first display area 1911 covers the first body 101 and part of the rotating shaft mechanism 103, and the second display area 1912 covers the second body 102 and another part of the rotating shaft mechanism 103.
[0134] When the electronic device 100 is in the closed state, the first display area 1911 and the second display area 1912 face each other. When the electronic device 100 is in the unfolded state, the display directions of the first display area 1911 and the second display area 1912 are the same. Herein, the display direction refers to the direction facing the user's face.
[0135] The piezoelectric film is attached to any one of the first display area 1911 and the second display area 1912. Exemplarily, Figure 5 it is shown that the piezoelectric film is attached to the surface of the first display area 1911 facing the inside of the electronic device. In other embodiments, the piezoelectric film can also be attached to the second display area 1912 or the entire surface area of the display screen 191.
[0136] The first magnetic component 104 is located on one of the first body 101 and the second body 102, and the second magnetic component 105 is located on the other of the first body 101 and the second body 102. Exemplarily, the first magnetic component 104 is located on the first body 101, and the second magnetic component 105 is located on the second body 102.
[0137] The first magnetic component 104 and the second magnetic component 105 are located on opposite sides of the display screen 191, and the first magnetic component 104 and the second magnetic component 105 are symmetrically arranged. The number of the first magnetic component 104 is the same as that of the second magnetic component 105, and they are in one-to-one correspondence.
[0138] The first magnetic component 104 can adopt a conventional magnet, and the second magnetic component 105 can adopt an electromagnet, or vice versa, or both the first magnetic component 104 and the second magnetic component 105 adopt electromagnets. In this way, it is convenient to adjust the polarities of the first magnetic component 104 and the second magnetic component 105 so that their polarities are the same or opposite, and then the two bodies of the electronic device repel or attract each other.
[0139] In the normal application scenario, the polarities of the first magnetic component 104 and the second magnetic component 105 are opposite, so that when the first body 101 and the second body 102 are folded to the closed state, the first magnetic component 104 and the second magnetic component 105 are attracted to each other, making the first body 101 and the second body 102 fit tightly. In this way, it can prevent the electronic device from being accidentally opened when carrying the electronic device with you.
[0140] During the process of folding the electronic device to the closed state, if there is a foreign object 50 on the display screen 191, the polarities of the first magnetic component 104 and the second magnetic component 105 can be controlled to be the same based on the piezoelectric signal generated by the piezoelectric sensor 180H, so that the first body 101 and the second body 102 bounce open to prevent the electronic device from folding to the closed state and avoid damaging the display screen 191.
[0141] In the electronic device provided by the embodiment of the present application, a piezoelectric sensor 180H is attached to the back of the display screen 191, and a first magnetic component 104 and a second magnetic component 105 are respectively and correspondingly arranged on the first body 101 and the second body 102. During the process of folding the electronic device to the closed state, if there is a foreign object 50 on the display screen 191, the piezoelectric sensor 180H generates a piezoelectric signal, and based on the change characteristics of the piezoelectric signal, it is determined that the current display screen 191 is being squeezed by the foreign object 50, and then the polarities of the first magnetic component 104 and the second magnetic component 105 are controlled to be the same, so that the first body 101 and the second body 102 bounce open to prevent the electronic device from folding to the closed state. In this way, it can help the user protect the display screen 191, effectively prevent the display screen 191 from being damaged due to being abraded by the foreign object 50 during the closing or folding process, and improve the service life and user experience of the electronic device.
[0142] Figure 7 It is the first process schematic diagram of the display screen protection method provided by the embodiment of the present application.
[0143] As Figure 7 shown, in some embodiments, the display screen protection method provided by the embodiment of the present application is applied to an electronic device, and this method may include the following steps S101 to step S103: Step S101, during the process of folding the electronic device, detect whether there is a foreign object on the display screen.
[0144] The timing or triggering condition for the electronic device to detect the foreign object 50 may include detecting that the electronic device is being folded. Exemplarily, when the user pushes the first body 101 and the second body 102 and folds the two bodies towards each other, the foreign object detection module in the electronic device starts to work to detect whether there is a foreign object 50 on the display screen 191.
[0145] Figure 8 It is the process schematic diagram of the electronic device detecting the folding angle provided by the embodiment of the present application; Figure 9 It is the interactive process schematic diagram of the electronic device detecting the folding angle provided by the embodiment of the present application.
[0146] As Figure 8 and Figure 9 shown, in some embodiments, step S101 may include the following steps S201 - S202: Step S201, during the process of folding the electronic device, detect the folding angle of the electronic device being folded.
[0147] Step S202, if it is detected that the folding angle continuously becomes smaller, then detect whether there is a foreign object on the display screen.
[0148] In step S201, the electronic device uses a motion sensor to identify the angle during the folding process of the electronic device to detect the folding angle of the electronic device in real time. Among them, the motion sensor includes a gyroscope sensor 180B and an acceleration sensor 180E, etc.
[0149] The gyroscope sensor 180B is used to measure the angular velocity of the electronic device (the rotation rate around the x / y / z axes, unit: rad / s), and the acceleration sensor 180E detects the linear acceleration of the device (including the gravity component, unit: m / s²). It should be noted that the process of detecting the folding angle can also be assisted by a Hall sensor to judge the opening and closing state of the electronic device through magnetic field changes.
[0150] During the folding process of the electronic device, the bending of the display screen 191 triggers a change in sensor data. Exemplarily, the kernel layer calls the sensor driver module to drive the gyroscope sensor 180B and the acceleration sensor 180E in the hardware layer to start detecting data. For example, the acceleration sensor 180E detects the center of gravity shift, and the gyroscope sensor 180B captures the rotation signal.
[0151] The sensor driver reads the raw data detected by each sensor and reports it to the HAL layer. Exemplarily, the gyroscope sensor 180B detects the angular velocity of the electronic device rotating around the y-axis, and the acceleration sensor 180E detects the acceleration of the electronic device in the z-axis.
[0152] The HAL layer converts the raw data detected by the gyroscope sensor 180B and the acceleration sensor 180E into standard units, and fuses the multi-sensor data to calculate the accurate folding angle. And, based on the change trend of the folding angle, it judges whether to start the foreign object detection process.
[0153] In step S202, when the electronic device detects that the folding angle is continuously decreasing, it can be determined that the electronic device is in the folding process, and the foreign object detection process can be started. At this time, the HAL layer calls the HAL function to start the foreign object detection module to execute the foreign object detection process to detect whether there is a foreign object on the display screen 191.
[0154] If it is detected that the folding angle does not continuously decrease, for example, the electronic device is folded and then unfolded, in this scenario, the foreign object detection module is not called to execute the foreign object detection process.
[0155] It should be noted that the sensor manager in the application framework layer of the electronic device can also receive the sensor event (folding angle) reported by the HAL layer to trigger the layout switch of the display screen 191. The application layer dynamically adjusts the UI layout according to the folding angle sent down by the application framework layer, such as switching from the unfolded UI to the folded UI, or split-screen display, keyboard zooming, etc.
[0156] In some embodiments, the electronic device includes a piezoelectric sensor 180H, which is used to detect the deformation of the display screen 191 and generate a piezoelectric signal.
[0157] When the motion sensor detects that the folding angle is continuously decreasing, step S202 may include the following steps S301 - S302: Step S301, if it is detected that the folding angle is continuously decreasing, obtain the piezoelectric signal generated by the piezoelectric sensor.
[0158] Step S302, based on the change characteristics of the piezoelectric signal, detect whether there is a foreign object on the display screen.
[0159] The piezoelectric sensor 180H is attached to the back of the display screen 191 to detect the deformation of the display screen 191 in real time. Exemplarily, the kernel layer of the electronic device calls the sensor driver module to drive the piezoelectric sensor 180H to turn on. It should be noted that the startup timing of the piezoelectric sensor 180H is synchronized with the startup of the operating system of the electronic device.
[0160] When the electronic device is folded, if there is a foreign object 50 on the display screen 191, the display screen 191 is squeezed and deformed, and then the piezoelectric sensor 180H detects the deformation and generates a piezoelectric signal. As the squeezing force increases, the piezoelectric signal gradually increases.
[0161] In this way, the electronic device can accurately determine whether the current display screen 191 is squeezed by the foreign object 50 based on the change trend of the piezoelectric signal.
[0162] Figure 10 It is a schematic flowchart of the foreign object detection process executed by the electronic device provided in the embodiments of the present application.
[0163] Combined Figure 4 、 Figure 8 and Figure 10 As shown, in some embodiments, the electronic device includes an AD converter, which is used to receive the piezoelectric signal of the piezoelectric sensor 180H. The piezoelectric sensor 180H periodically sends the generated piezoelectric signal to the AD converter to complete the conversion of the data format.
[0164] When detecting whether there is a foreign object 50 on the display screen 191 based on the change characteristics of the piezoelectric signal, step S301 may include the following steps S401 - S403: Step S401, if the motion sensor detects that the folding angle is continuously decreasing, the HAL layer sets the first flag to TRUE.
[0165] Step S402, in response to the first flag being set to TRUE, the AD converter is turned on, and the piezoelectric signal is periodically reported to the HAL layer.
[0166] Step S403: The HAL layer periodically obtains the piezoelectric signals reported by the AD converter.
[0167] The first flag bit indicates whether the AD converter is enabled or disabled, and can also be understood as the flag bit indicating whether the AD converter reports piezoelectric signals. Exemplarily, when the first flag bit is TRUE, the AD converter is enabled and can report piezoelectric signals; when the first flag bit is FALSE, the AD converter is disabled and stops reporting piezoelectric signals.
[0168] By using the value of the first flag bit to enable or disable the AD converter, the reporting action of the piezoelectric signals can be controlled. In this way, when the folding angle of the electronic device continuously decreases, the foreign object detection process can be performed based on the piezoelectric signals to improve the accuracy of foreign object detection and avoid wasting resources.
[0169] In step S401, when the motion sensor detects that the folding angle of the electronic device continuously decreases, the HAL layer sets the first flag bit in the HAL function to TRUE.
[0170] In some embodiments, if the motion sensor detects that the folding angle does not continuously decrease, where the folding angle not continuously decreasing includes one of the folding angle remaining unchanged, the folding angle increasing, the folding angle being 0°, and the folding angle being 180°, in this scenario, the foreign object detection module is not called to execute the foreign object detection process. At this time, the first flag bit is set to FALSE, the AD converter is in the disabled state, and the action of reporting the piezoelectric signals to the HAL layer stops.
[0171] In step S402, in response to the first flag bit being TRUE, the kernel layer of the electronic device calls the AD converter driver module to drive the AD converter to enable.
[0172] The piezoelectric sensor 180H continuously detects the deformation of the display screen 191 and generates corresponding piezoelectric signals. The piezoelectric sensor 180H periodically sends the continuously generated piezoelectric signals to the AD converter, and uses the AD converter to perform data conversion on the piezoelectric signals in the form of analog signals to obtain piezoelectric signals in the form of digital signals, and periodically reports the piezoelectric signals in the form of digital signals (hereinafter referred to as piezoelectric signals) to the HAL layer.
[0173] In step S403, the HAL layer periodically reads the piezoelectric signals from the AD converter through the HAL function, so as to subsequently detect whether there is a foreign object 50 on the display screen 191 based on the change characteristics of the piezoelectric signals.
[0174] In some embodiments, the activation timing of the AD converter can also be when the electronic device is in a non-closed state. The HAL function further includes a third flag bit, which is a flag bit indicating whether the electronic device is in a closed state. When the third flag bit is TRUE, it indicates that the electronic device is in a closed state; when the third flag bit is FALSE, it indicates that the electronic device is in an unclosed state. It should be noted that a Hall sensor, a gyroscope sensor 180B, and an acceleration sensor 180E can be used to detect whether the electronic device is in a closed state, which will not be elaborated here.
[0175] Exemplarily, when the first flag bit is TRUE, it is determined whether the electronic device is in a closed state according to the value of the third flag bit. If the electronic device is in a non-closed state (the third flag bit is FALSE), the AD converter is activated; if the electronic device is in a closed state (the third flag bit is TRUE), the AD converter is not activated.
[0176] In this way, the electronic device can activate the AD converter when the first flag bit is TRUE and it is not in a closed state, which can not only ensure timely reporting of the piezoelectric signal to ensure the efficiency of detecting foreign objects, but also avoid resource waste.
[0177] Referring again to Figure 10 the content shown, in some embodiments, when detecting whether there is a foreign object 50 on the display screen 191 based on the piezoelectric signal, step S302 may include the following steps S501 - step S503: Step S501, the HAL layer calls the HAL function to determine the change characteristics of the piezoelectric signal.
[0178] Step S502, if the HAL function determines that the piezoelectric signal continuously increases, it is determined that there is a foreign object on the display screen, and the second flag bit is set to TRUE. The second flag bit is a flag bit indicating whether there is a foreign object on the display screen.
[0179] Step S503, if the HAL function determines that the piezoelectric signal does not continuously increase, it is determined that there is no foreign object on the display screen, and the second flag bit is set to FALSE.
[0180] In step S501, as the folding operation of the electronic device continues, if there is a foreign object 50 on the display screen 191, the extrusion force on the display screen 191 gradually increases, and the piezoelectric signal generated by the piezoelectric sensor 180H gradually increases; if there is no foreign object 50 on the display screen 191, the display screen 191 will not be subjected to an extrusion force, and the piezoelectric sensor 180H will not generate a piezoelectric signal; if there is a foreign object 50 on the display screen 191 and then the foreign object 50 slides off by itself, the extrusion force on the display screen 191 then disappears, and the piezoelectric sensor 180H first generates a piezoelectric signal and then becomes smaller until there is no signal. In this way, it is possible to accurately determine whether there is a foreign object 50 on the display screen 191 according to the change characteristics of the piezoelectric signal.
[0181] It should be noted that the above embodiments only exemplarily show the scenarios in which different changes in the piezoelectric signal are caused by the foreign object 50 on the display screen, and do not constitute a limitation on the specific scenarios, and may also include other application scenarios, which will not be elaborated here.
[0182] In step S502, when there is a foreign object 50 on the display screen 191, if the electronic device is continuously folded, the piezoelectric signal detected by the piezoelectric sensor will gradually increase. In this way, when the piezoelectric signal continuously increases, it can be determined that there is a foreign object 50 on the display screen 191, and the second flag bit in the HAL function is set to TRUE. The second flag bit refers to the flag bit indicating that there is a foreign object 50 on the display screen 191.
[0183] In step S503, if the piezoelectric signal does not continuously increase, it can be determined that there is no foreign object 50 on the display screen 191, and the second flag bit in the HAL function is set to FALSE. Among them, the situation where the piezoelectric signal does not continuously increase includes but is not limited to no piezoelectric signal, no change in the piezoelectric signal, and decrease in the piezoelectric signal.
[0184] In this way, it is possible to determine whether there is a foreign object 50 on the display screen 191 according to the change characteristics of the piezoelectric signal, improving the accuracy of foreign object detection; and based on different foreign object detection results, the second flag bit is set to different values to accurately remind the user to clean the foreign object when it is detected that there is a foreign object 50 on the display screen 191, avoiding waste of resources due to repeated reminders.
[0185] Refer to again Figure 10 As shown in the content, in some embodiments, the display screen protection method may further include the following step S504: Step S504, when the piezoelectric signal does not continuously increase, if the motion sensor detects that the folding angle is 0°, the HAL layer sets the second flag bit to FALSE.
[0186] When the piezoelectric signal does not continue to increase, it indicates that there is no foreign object 50 on the display screen 191, and the HAL layer sets the second flag to FALSE.
[0187] To avoid wasting resources, the electronic device makes a judgment based on the currently detected folding angle. If the folding angle is 0°, it means the electronic device has been folded to the closed state, and there is no need to execute the foreign object detection process subsequently. Therefore, the HAL layer sets the first flag to FALSE, stops reading the piezoelectric signal detected by the piezoelectric sensor, and this foreign object detection process ends.
[0188] Step S102, if there is a foreign object on the display screen, prevent the electronic device from being folded, and / or display a reminder message on the display screen.
[0189] When the electronic device determines that there is a foreign object 50 on the display screen 191, corresponding protection measures can be taken to prevent the display screen 191 from being damaged by the extrusion of the foreign object 50. Among them, the protection measures include, but are not limited to, preventing the electronic device from being folded, displaying a reminder message on the display screen 191, and motor vibration, etc., in one or more combinations.
[0190] For different types of foreign objects 50, the corresponding sizes are different, and thus the ways to protect the display screen 191 of the electronic device can also be different. In this way, while protecting the display screen 191 from being damaged, resource waste can also be avoided.
[0191] In some embodiments, step S102 may include the following steps S1021 - S1023: Step S1021, when there is a foreign object on the display screen, determine whether the folding angle is greater than or equal to the first angle.
[0192] Step S1022, if the folding angle is greater than or equal to the first angle, display a reminder message on the display screen.
[0193] Step S1023, if the folding angle is less than the first angle, prevent the electronic device from being folded, and display a reminder message on the display screen.
[0194] During the folding process of the electronic device, as the piezoelectric signal detected by the piezoelectric sensor continuously and gradually increases, when it is determined that there is a foreign object 50 on the display screen 191, determine the corresponding protection method for the display screen based on the current folding angle of the electronic device.
[0195] Figure 11 It is the first scenario diagram of the foreign object detected during the folding process of the electronic device provided by the embodiments of the present application.
[0196] Such as Figure 11As shown, when the foreign object 50 is of a large size and the electronic device detects the foreign object 50 on the display screen 191, the current folding angle of the electronic device is β1, and the current folding angle β1 is greater than or equal to the first angle β.
[0197] When the current folding angle β1 is greater than or equal to the first angle β, it indicates that the size of the foreign object 50 on the display screen 191 is relatively large, and the degree of folding of the electronic device is relatively low, that is, there is still a large angle to be folded to the closed state.
[0198] In this scenario, the electronic device can prompt the user by displaying a reminder message on the display screen 191, so as to clean the foreign object 50 in time and avoid damage to the display screen 191 caused by continued folding of the electronic device.
[0199] Figure 12 It is the second scenario diagram of the foreign object detected during the folding process of the electronic device provided by the embodiment of the present application.
[0200] As Figure 12 shown in (a) below, when the foreign object 50 is of a small size and the electronic device detects the foreign object 50 on the display screen 191, the current folding angle of the electronic device is β2, and the current folding angle β2 is less than the first angle β.
[0201] When the current folding angle β2 is less than the first angle β, it indicates that the size of the foreign object 50 on the display screen 191 is relatively small, and the degree of folding of the electronic device is relatively high, that is, there is still a small angle to be folded to the closed state.
[0202] In this urgent scenario, the electronic device can either prompt the user by displaying a reminder message on the display screen 191, or prevent the electronic device from being folded, so as to more directly remind the user to clean the foreign object in time and avoid damage to the display screen 191.
[0203] Figure 13 It is a schematic diagram of the interaction process of the electronic device displaying a reminder message provided by the embodiment of the present application.
[0204] Combined with Figure 10 and Figure 13 shown, in some embodiments, when detecting the foreign object 50 on the display screen 191 and the electronic device displays a reminder message, at the software architecture level of the electronic device, the application layer calls the UI component to display the reminder message. The application framework layer calls the window manager to create a reminder window, calls to trigger UI rendering, and calls to synthesize graphics.
[0205] The system library renders the text and background of the prompt information through OpenGL ES (2D / 3D graphics rendering API) or Vulkan (graphics and computing API), and uses SurfaceFlinger (compositor) to composite multiple layers (such as status bar, reminder window) into the final frame.
[0206] The HAL layer allocates graphics buffers and passes display parameters (resolution, refresh rate) to the kernel layer.
[0207] The kernel layer calls the display driver (such as drivers / gpu / drm / msm) to process the frame buffer data and sends the pixel data to the display screen 191 through the MIPIDSI bus.
[0208] The hardware layer calls the GPU to complete the final pixel rendering, and the display controller converts the digital signal into an RGB electrical signal, and sends it to the display 191 to light up the screen and display the reminder information.
[0209] Figure 14 This is a schematic diagram of an interface for displaying reminder information on a display screen provided in an embodiment of the present application.
[0210] like Figure 14 As shown, exemplarily, the reminder information can be displayed in the form of a pop-up window 1911 in the current display page of the display screen 191, and the content of the reminder information includes "There is a foreign object on the display screen. To avoid damaging the display screen, please clean it up in time!" or other information to remind the user.
[0211] If the electronic device is in the screen-off state during the foreign object detection process, the electronic device will first turn on the screen and then display the reminder message; if the electronic device is in the screen-on state, the reminder message will be displayed directly.
[0212] After seeing the reminder message displayed on the display screen, the user unfolds the electronic device to clean up the foreign object 50.
[0213] In some embodiments, the method of preventing the electronic device from being folded may include preventing the electronic device from being further folded, and springing two bodies of the electronic device apart in the opposite direction of folding.
[0214] Combination Figure 5, the electronic device includes a first body 101, a second body 102, and a chip select switch 194. The first body 101 is provided with a first magnetic component 104, and the second body 102 is provided with a second magnetic component 105. At least one of the first magnetic component 104 and the second magnetic component 105 uses an electromagnet. The chip select switch 194 is electrically connected to the magnetic component that uses the electromagnet among the first magnetic component and the second magnetic component. Exemplarily, the first magnetic component 104 uses an electromagnet, the second magnetic component 105 uses a conventional magnet, and the chip select switch 194 is electrically connected to the first magnetic component 104.
[0215] Refer again to Figure 11 As shown, in some embodiments, when the current folding angle β1 is greater than or equal to the first angle β, the space provided by the current folding angle β1 of the electronic device is sufficient for the user to take out the foreign object 50, and the electronic device can be in the current folded state without performing the action of the body popping open. In this scenario, the polarities of the first magnetic component 104 and the second magnetic component 105 remain unchanged and are both the initial polarities, that is, the polarities of the first magnetic component 104 and the second magnetic component 105 are opposite.
[0216] Refer again to Figure 10 , Figure 12 As shown in (a) and (b) in, in some embodiments, when the current folding angle β2 is less than the first angle β, the space provided by the current folding angle β2 of the electronic device is not sufficient for the user to take out the foreign object 50, and in order to protect the display screen 191, the two bodies of the electronic device need to be separated by a sufficient angle.
[0217] Thus, when preventing the electronic device from being folded, step S1023 may include the following step S10231: Step S10231, when the current folding angle is less than the first angle, the HAL layer controls the chip select switch to adjust the polarities of the first magnetic component and the second magnetic component to be the same, so that the first body and the second body pop open to prevent the electronic device from being folded.
[0218] When there is a foreign object 50 on the display screen 191, the electronic device controls the change of the electromagnet polarity, so that the polarities of the first magnetic component 104 and the second magnetic component 105 are the same, so that the first body 101 and the second body 102 pop open. Figure 12 As shown in (b) in, the folding angle of the electronic device increases from β2 to β3 to prevent the electronic device from being folded and avoid damaging the display screen 191 due to the electronic device being continuously folded. Among them, the angle β3 is the popping open angle.
[0219] In the embodiments of the present application, the device for controlling the change of the electromagnet polarity may be the chip select switch 194, and the electronic device controls the switch state of the chip select switch 194 to control the change of the polarity of the electromagnet in either the first magnetic assembly 104 or the second magnetic assembly 105.
[0220] Figure 15 FIG. 4 is a schematic diagram of the interaction process of the electronic device provided by the embodiments of the present application for controlling the body to pop open.
[0221] Combined with Figure 10 and Figure 15 As shown, in some embodiments, when the electronic device controls the change of the electromagnet polarity, the application layer of the electronic device sends a "change polarity" request to the application framework layer, and the application framework layer sends this request to the HAL layer.
[0222] The HAL layer converts the received "change polarity" request into a driver command, calls the chip select switch driver of the kernel layer, and sends a polarity switching instruction to the chip select switch 194 of the hardware layer. The chip select switch 194 switches the current direction of the first magnetic assembly 104 using the electromagnet according to the polarity switching instruction, changing the polarity of the corresponding magnetic assembly, so that the polarity of the first magnetic assembly 104 is the same as the polarity of the second magnetic assembly 105.
[0223] In this way, the first body 101 and the second body 102 of the electronic device pop open due to the same polarity, and the folding angle of the electronic device increases to the second angle α to prevent the electronic device from being folded and avoid damage to the display screen 191 caused by foreign objects being squeezed. In addition, the control of the chip select switch 194 is strictly restricted in the kernel driver, which can ensure the safety and efficiency of hardware operations.
[0224] Referring again to Figure 10 As shown, in some embodiments, the electronic device may include a motor 193; and, when it is determined that there is a foreign object 50 on the display screen 191, the display screen protection method may further include step S1024: Step S1024, when there is a foreign object on the display screen, the HAL layer controls the motor to vibrate for a preset duration through the HAL function.
[0225] To protect the display screen 191 and remind the user to clean the foreign object 50 on the display screen 191 in time, when the electronic device detects that there is a foreign object 50 on the display screen 191, it may also remind the user by controlling the vibration of the motor 193. Exemplarily, the vibration duration of the motor 193 may be a preset duration, such as 3 seconds, 5 seconds, or other durations.
[0226] Figure 16 FIG. 5 is a schematic diagram of the interaction process of the electronic device provided by the embodiments of the present application for controlling the motor to vibrate.
[0227] Combined withFigure 10 and Figure 16 As shown, in some embodiments, when controlling the vibration of the motor 193, the application layer of the electronic device calls the Android Vibrator API (vibration interface) to trigger vibration.
[0228] The application framework layer calls the VibratorService (vibration service) to receive the application request, verify the permissions, and convert the vibration parameters (duration, intensity) into a format recognizable by the HAL layer.
[0229] The system library or HAL layer calls the Vibrator HAL interface through hardware / libhardware (HAL function), and converts the control signal (such as PWM duty cycle) according to the hardware type of the motor (rotor motor / linear motor).
[0230] The motor driver in the kernel layer receives the instruction from the HAL layer, and sends a control signal (such as adjusting the voltage of the motor driver chip) to the motor driver chip in the hardware layer through the GPIO or I²C bus.
[0231] The motor driver chip in the hardware layer drives the motor coil according to the electrical signal, and the motor 193 vibrates physically.
[0232] In this way, the vibration of the motor 193 is used to remind the user to clean the foreign object 50 on the display screen 191 in time, and the continuous folding of the electronic device can be avoided, thereby avoiding damage to the display screen 191 caused by the extrusion of the foreign object 50.
[0233] In some embodiments, after the electronic device detects the foreign object 50 on the display screen 191 and reminds the user to clean the foreign object in time by means of displaying a reminder message, controlling the body to pop open, and vibrating the motor, etc., the foreign object detection process is completed.
[0234] Figure 17 It is the second flowchart of the display screen protection method provided by the embodiments of the present application.
[0235] As Figure 17 shown, after the foreign object detection process is completed, the display screen protection method may further include step S601: Step S601, when the electronic device is unfolded to the second angle, the HAL layer controls the chip select switch, adjusts the polarities of the first magnetic component and the second magnetic component to be opposite, and sets the second flag to FALSE through the HAL function to cancel the display reminder message, and controls the motor to stop vibrating.
[0236] After the user sees the reminder information displayed on the display screen, the electronic device is unfolded from the angle β3 to the second angle α to provide sufficient space for the user to clean the foreign object 50. In this scenario, when the electronic device detects that the folding angle is unfolded to the second angle α, it indicates that the foreign object detection process is over, and each hardware of the electronic device returns to the initial operating state. Among them, the second angle α can be 180° or an angle sufficient to clean the foreign object 50; the initial operating state includes that the second flag bit is FALSE, the polarities of the two electromagnets on the body are opposite, the reminder information is not displayed, and the motor 193 does not vibrate, etc.
[0237] The electronic device sets the second flag bit to FALSE to indicate that there is no foreign object 50 on the current display screen 191, which is convenient for the normal progress of the next foreign object detection process. At the same time, when the electronic device detects that the folding angle continues to increase, since the folding angle does not continue to decrease, the first flag bit is synchronously set to FALSE.
[0238] The electronic device controls the UI of the application layer through the application framework layer to close the pop-up window 1911 and cancel the display of the reminder information, that is, the reminder information on the display screen 191 is cancelled. It should be noted that in combination with Figure 14 , the way to cancel the display of the reminder information can also be to click the "X" button on the pop-up window 1911 to close the pop-up window 1911; or click the "Got it" button (not shown in the figure) on the pop-up window 1911 to close the pop-up window 1911. It is also possible to preset the display duration of the reminder information. After the real-time display duration of the reminder information reaches the preset display duration, the electronic device automatically closes the pop-up window 1911. The embodiments of the present application do not specifically limit the way to close the display of the reminder information.
[0239] The electronic device controls the polarities of the first magnetic component 104 and the second magnetic component 105 to be opposite through the chip select switch 194, so that when the electronic device is folded subsequently, the electronic device can be folded to the closed state.
[0240] The electronic device controls the motor to stop vibrating through the HAL layer and the kernel layer, which is convenient for the user to use the electronic device normally subsequently.
[0241] So far, the display screen protection process is completed. Each hardware parameter of the electronic device returns to the initial operating state to facilitate the next foreign object detection process to protect the display screen.
[0242] Step S103, if there is no foreign object on the display screen, the reminder information is not displayed on the display screen, and the electronic device can be folded to the closed state.
[0243] If the electronic device determines that there is no foreign object 50 on the display screen 191, there is no need to display a reminder message on the display screen 191, nor is there a need for the motor 193 to vibrate for reminder, and furthermore, there is no need to prevent the electronic device from being further folded.
[0244] In this way, the electronic device can be normally further folded so that the electronic device is in a closed state, which is convenient for the user to place or carry.
[0245] In some embodiments, the display screen protection method may further include the following step S602: Step S602, when the electronic device is in the unfolded state, if a foreign object is detected on the display screen, no reminder message is displayed on the display screen.
[0246] When the electronic device detects that there is a foreign object 50 on the display screen 191 and the electronic device is in the unfolded state, since the electronic device is not in the folding process, therefore, the display screen 191 will not be extruded by a super large acting force of the foreign object 50 due to closing, and thus will not be damaged. And the user can directly see that there is a foreign object 50 on the display screen 191, and then can fold the electronic device after cleaning the foreign object 50.
[0247] In this way, no reminder message needs to be displayed on the display screen 191 to avoid waste of resources.
[0248] The display screen protection method provided by the embodiment of the present application detects whether there is a foreign object 50 on the display screen 191 based on the piezoelectric signal detected by the piezoelectric sensor 180H during the folding process of the electronic device. If the piezoelectric signal continuously increases, it can be determined that there is a foreign object 50 on the display screen 191. At this time, by controlling the polarities of the first magnetic component 104 and the second magnetic component 105 on the first body 101 and the second body 102 to be the same, the two bodies can be bounced open to prevent the electronic device from being further folded, and / or a reminder message is displayed on the display screen 191 to prompt the user to clean the foreign object in time; if the piezoelectric signal does not continuously increase, it can be determined that there is no foreign object 50 on the display screen 191. At this time, no reminder message is displayed on the display screen 191, and the electronic device can be folded to a closed state. In this way, it can help the user protect the display screen 191, effectively prevent the display screen 191 from being damaged due to being injured by the foreign object 50 during closing or folding, so as to improve the service life and user experience of the electronic device.
[0249] The above mainly introduces the solution provided by the embodiments of the present application from the perspective of an electronic device. It can be understood that in order for the electronic device to implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, in combination with the steps of a display screen protection method described in the embodiments disclosed in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or software of the electronic device driving the hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0250] The embodiments of the present application can divide the above electronic device into functional modules or functional units according to the above method examples. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware, or in the form of a software functional module or functional unit. Among them, the division of modules or units in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0251] Figure 18 It is a schematic structural diagram of a display screen protection device provided by an embodiment of the present application.
[0252] Such as Figure 18As shown in the figure, the display protection device 200 provided in the embodiments of the present application can be applied to the electronic device in the above embodiments. Among them, the display protection device 200 may include a display screen 201, a memory 202, a processor 203, and a communication module 204. The above components can be connected through one or more communication buses 205. The display screen 201 may include a display panel 2011 and a touch sensor 2012. Among them, the display panel 2011 is used to display images, and the touch sensor 2012 can transmit the detected touch operation to the application processor to determine the type of touch event and provide a visual output related to the touch operation through the display panel 2011. The processor 203 may include one or more processing units. For example, the processor 203 may include an application processor, a modulation and demodulation processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The memory 202 is coupled to the processor 203 and is used to store various software programs and / or computer instructions. The memory 202 may include volatile memory and / or non-volatile memory. When the processor executes the computer instructions, the electronic device can execute each function or step executed by the above method embodiments.
[0253] Figure 19 It is a schematic structural diagram of a display protection device provided in another embodiment of the present application.
[0254] As Figure 19 shown, in some other embodiments, the embodiments of the present application also provide a display protection device 300, which can be applied to the electronic device in the above embodiments. Among them, the display protection device 300 includes a detection module 301, a first control module 302, and a second control module 303. Among them, the detection module 301 is used to detect whether there is foreign matter on the display screen during the folding process of the electronic device; the first control module 302 is used to prevent the electronic device from being folded when there is foreign matter on the display screen, and / or display a reminder message on the display screen; the second control module 303 is used to not display a reminder message on the display screen when there is no foreign matter on the display screen, and the electronic device can be folded to a closed state.
[0255] The display protection device provided by the embodiment of the present application detects whether there is foreign matter 50 on the display screen 191 based on the piezoelectric signal detected by the piezoelectric sensor 180H during the folding process of the electronic device. If the piezoelectric signal continuously increases, it can be determined that there is foreign matter 50 on the display screen 191. At this time, the polarities of the first magnetic component 104 and the second magnetic component 105 on the first body 101 and the second body 102 can be controlled to be the same, so that the two bodies bounce open to prevent the electronic device from being folded further, and / or a reminder message can be displayed on the display screen 191 to prompt the user to clean the foreign matter in time; if the piezoelectric signal does not continuously increase, it can be determined that there is no foreign matter 50 on the display screen 191. At this time, no reminder message is displayed on the display screen 191, and the electronic device can be folded to the closed state. In this way, it can help the user protect the display screen 191 and effectively prevent the display screen 191 from being damaged due to being poked by foreign matter 50 during the closing or folding process, so as to improve the service life and user experience of the electronic device.
[0256] The embodiment of the present application also provides an electronic device, which includes a processor and a memory. The processor and the memory are coupled. The memory stores program instructions. When the program instructions are executed by the processor, the processor executes each function or step in the above method embodiment.
[0257] Figure 20 It is a schematic structural diagram of the chip system provided by the embodiment of the present application.
[0258] As Figure 20 shown, the embodiment of the present application also provides a chip system 400, for example, an SoC. The chip system includes at least one processor 401 and at least one interface circuit 402. The processor 401 and the interface circuit 402 can be interconnected by a line. For example, the interface circuit 402 can be used to receive signals from other devices (such as the memory of an electronic device). For another example, the interface circuit 402 can be used to send signals to other devices (such as the processor 401 or the touch screen of an electronic device). Exemplarily, the interface circuit 402 can read the instructions stored in the memory and send the instructions to the processor 401. When the instructions are executed by the processor 401, the electronic device can execute each step in the above embodiment. Of course, the chip system may also include other discrete devices, and the embodiment of the present application does not make specific limitations on this.
[0259] The embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions. When the computer instructions run on the above electronic device, the electronic device executes each function or step executed by the electronic device in the above method embodiment.
[0260] The embodiments of the present application also provide a computer program product. When the computer program product runs on an electronic device, the electronic device is enabled to execute each function or step that the electronic device executes in the above method embodiments.
[0261] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above function modules is used as an example. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above.
[0262] In several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0263] The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0264] In addition, each functional unit in the various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0265] When an integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor (Processor) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.
[0266] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A display screen protection method, characterized in that: Applied to an electronic device with a folding function, the electronic device includes a display screen, and the method includes: During the folding process of the electronic device, detecting whether there is a foreign object on the display screen; If the foreign object exists on the display screen, preventing the electronic device from being folded, and / or displaying a reminder message on the display screen; If the foreign object does not exist on the display screen, the reminder information is not displayed on the display screen, and the electronic device can be folded into a closed state.
2. The method according to claim 1, characterized in that The step of detecting whether there is a foreign object on the display screen during the folding of the electronic device includes: During the process of folding the electronic device, detecting a folding angle of the electronic device; If it is detected that the folding angle continues to decrease, it is detected whether there is a foreign object on the display screen.
3. The method according to claim 2, characterized in that The electronic device includes a piezoelectric sensor, and the piezoelectric sensor is used to detect the deformation of the display screen and generate a piezoelectric signal; And, if it is detected that the folding angle continues to decrease, detecting whether there is a foreign object on the display screen includes: If it is detected that the folding angle continues to decrease, obtaining a piezoelectric signal generated by the piezoelectric sensor; Based on the change characteristics of the piezoelectric signal, it is detected whether there is a foreign object on the display screen.
4. The method according to claim 3, characterized in that The electronic device includes a motion sensor and an AD converter; And, if it is detected that the folding angle continues to decrease, obtaining the piezoelectric signal generated by the piezoelectric sensor includes: If the motion sensor detects that the folding angle continues to decrease, the HAL layer sets the first flag position to TRUE; In response to the first mark position being TRUE, the AD converter is turned on and the piezoelectric signal is periodically reported to the HAL layer; The HAL layer periodically obtains the piezoelectric signal reported by the AD converter.
5. The method according to claim 4, characterized in that The method further comprises: If the motion sensor detects that the folding angle does not continue to decrease, the HAL layer sets the first mark position to FALSE; In response to the first flag position being FALSE, the AD converter is turned off; The fact that the folding angle does not continue to decrease includes one of the following: the folding angle does not change, the folding angle increases, the folding angle is 0°, and the folding angle is 180°.
6. The method according to claim 4, characterized in that The detecting whether there is a foreign object on the display screen based on the change characteristics of the piezoelectric signal includes: The HAL layer calls the HAL function to determine the change characteristics of the piezoelectric signal; If the HAL function determines that the piezoelectric signal continues to increase, it is determined that there is a foreign object on the display screen, and a second mark position is set to TRUE, where the second mark position refers to a mark position indicating whether there is a foreign object on the display screen; If the HAL function determines that the piezoelectric signal does not continue to increase, it is determined that there is no foreign matter on the display screen, and the second mark position is set to FALSE; The fact that the piezoelectric signal does not continue to increase includes one of no voltage signal, no change in the piezoelectric signal, and a decrease in the piezoelectric signal.
7. The method according to claim 6, characterized in that The method further comprises: When the piezoelectric signal does not continue to increase, if the motion sensor detects that the folding angle is 0°, the HAL layer sets the second flag position to FALSE.
8. The method according to claim 6, characterized in that If the foreign object exists on the display screen, preventing the electronic device from being folded, and / or displaying a reminder message on the display screen, comprises: When the foreign object exists on the display screen, determining whether a current folding angle of the electronic device is greater than or equal to a first angle; If the current folding angle is greater than or equal to the first angle, displaying a reminder message on the display screen; If the current folding angle is smaller than the first angle, the electronic device is prevented from being folded, and a reminder message is displayed on the display screen.
9. The method according to claim 8, characterized in that The electronic device comprises a first body, a second body and a chip select switch, the first body is provided with a first magnetic component, the second body is provided with a second magnetic component, and the chip select switch is connected to at least one of the first magnetic component and the second magnetic component; And, if the current folding angle is smaller than the first angle, preventing the electronic device from being folded comprises: When the current folding angle is smaller than the first angle, the HAL layer controls the chip select switch to adjust the polarity of the first magnetic component to be the same as the polarity of the second magnetic component, so that the first body and the second body pop apart to prevent the electronic device from being folded.
10. The method according to claim 9, characterized in that The electronic device includes a motor; and the method further includes: When the foreign object exists on the display screen, the HAL layer controls the motor to vibrate for a preset duration through the HAL function.
11. The method according to claim 10, characterized in that The method further comprises: When the electronic device is unfolded to a second angle, the HAL layer controls the chip select switch, adjusts the polarity of the first magnetic component to be opposite to the polarity of the second magnetic component, and sets the second mark position to FALSE through the HAL function, cancels the display of the reminder information, and controls the motor to stop vibrating, and the second angle is greater than the first angle.
12. The method according to claim 1, characterized in that The method further comprises: When the electronic device is in the unfolded state, if the foreign object is detected on the display screen, the reminder information is not displayed on the display screen.
13. An electronic device, characterized in that: include: A display screen, a first body, a second body, a hinge mechanism, a piezoelectric sensor, a motor, a first magnetic component and a second magnetic component; The first body and the second body are rotatably connected via the hinge mechanism, and the display screen covers the first body, the hinge mechanism and the second body; The piezoelectric sensor is located on the display screen; The motor is located in any one of the first body and the second body; The first magnetic component is located on one of the first body and the second body, the second magnetic component is located on the other of the first body and the second body, and the first magnetic component and the second magnetic component are located opposite to each other; One of the first body and the second body comprises a processor and a memory, wherein the memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the display screen protection method according to any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the display screen protection method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Foldable electronic device and control method thereof
CN118900299A
Display screen folding control method and device, medium, equipment and vehicle
CN119218116A
Screen protection method and system
CN119342130A