Screen display method of terminal device, terminal device, computer-readable storage medium, and computer program product
By turning off and restarting the gyroscope when the terminal device falls, the problem of gyroscope damage when the device falls is solved, ensuring the normal display of the display and the improvement of user experience.
Patent Information
- Application Number
- CN202310129195.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-11-23
- Filing Date
- 2023-02-07
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2043-02-07
AI Technical Summary
The prior art cannot effectively protect the gyroscope when the terminal device falls, resulting in damage to the gyroscope, which in turn affects the interface switching between the internal and external display screens and affects the user experience.
When the terminal device is in a weightless state, turn off the gyroscope and pause the execution of the folding angle algorithm. When the weightless state ends, turn on the gyroscope and re-execute the folding angle algorithm to protect the gyroscope and ensure the normal display of the display.
By protecting the gyroscope, the gyroscope is avoided, the correct interface display of the internal and external display screens is ensured, and the user experience is improved.
Smart Images

Figure CN118075394B_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on November 23, 2022, with application number 202211475893.6 and application name “Drop Protection Method for Terminal Equipment”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a screen display method for a terminal device. Background Art
[0003] With the development of terminal technology, foldable terminal devices have emerged, which can be equipped with multiple display screens. For inward-folding foldable terminal devices, their display screens may include an inner display screen and an outer display screen (referred to as "inner and outer display screens"). In use, the terminal device will determine which display screen displays the interface based on the judgment of the terminal device state by its gyroscope. The change of the terminal device state will bring about the switching of the display state of the display screen. Specifically, the terminal device state may refer to the unfolding angle of the inner display screen of the terminal device. However, in actual use, the gyroscope inside the terminal device may be damaged due to the terminal device falling, which will cause the interface displayed by the inner display screen and the outer display screen of the terminal device to be unable to switch or errors will occur during switching (referred to as "the inner and outer display screens do not switch or switch randomly"), so the terminal device needs to be protected from falling.
[0004] At present, there is a screen display method for a terminal device, which performs corresponding intervention operations when detecting that the terminal device is in a falling state, so as to prevent the screen of the terminal device from being broken by the impact of external force. However, this method only protects the display screen of the terminal device from being broken, and does not consider protecting the gyroscope inside the terminal device, and thus cannot avoid the problem that the internal and external display screens may not be switched or switched randomly due to damage to the gyroscope, affecting the user experience. Summary of the invention
[0005] The present application provides a screen display method for a terminal device, which can implement drop protection for a gyroscope in the terminal device when the terminal device falls, thereby avoiding damage to the gyroscope and enabling internal and external display screens to correctly display interfaces, thereby improving user experience.
[0006] In a first aspect, a screen display method of a terminal device is provided, which is applied to a terminal device including an inner display screen, an outer display screen and a gyroscope, the method comprising: determining whether the terminal device is in a weightless state; when the terminal device is in a weightless state, turning off the gyroscope and stopping the execution of a folding angle algorithm; when the terminal device is no longer in a weightless state, turning on the gyroscope again and obtaining an angular velocity through the gyroscope; based on the angular velocity, executing the folding angle algorithm to obtain an unfolding angle of the inner display screen; based on the unfolding angle of the inner display screen, displaying a corresponding interface through the inner display screen or the outer display screen.
[0007] The screen display method of the terminal device of the embodiment of the present application is that when the terminal device is in a weightless state, the terminal device powers off the gyroscope, that is, turns off the gyroscope, and suspends the execution of the folding angle algorithm. This is beneficial to avoid interface errors displayed on the internal and external display screens after the gyroscope is turned off. After the fall scene is over, the gyroscope is powered on, that is, the gyroscope is turned on, and the folding angle algorithm is executed again. In this way, the gyroscope in the terminal device can be protected from falling when the terminal device falls, thereby avoiding damage to the gyroscope and enabling the internal and external display screens to correctly display the interface, thereby improving the user experience.
[0008] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: after turning off the gyroscope for a first preset time period, determining whether the terminal device is still in a weightless state; if in a weightless state, extending the turning off time of the gyroscope and the stopping execution time of the folding angle algorithm.
[0009] In the embodiment of the present application, extending the shutdown time of the gyroscope is beneficial to avoid damage to the internal circuit of the gyroscope. Extending the stop execution time of the folding angle algorithm can prevent the terminal device from using the historical data reported by the gyroscope to execute the folding angle algorithm, which is beneficial to improve the accuracy of the folding angle calculation, thereby facilitating the correct interface display.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the duration for which the folding angle algorithm stops executing is a second preset duration, and the second preset duration is greater than or equal to the first preset duration.
[0011] In an embodiment of the present application, the second preset time length is greater than or equal to the first preset time length, which can prevent the start execution time of the folding angle algorithm from being earlier than the time when the gyroscope is turned on, and prevent the terminal device from obtaining an incorrect folding angle due to the inability to obtain the data reported by the gyroscope in real time due to the gyroscope being turned off, thereby avoiding display errors on the internal and external display screen interfaces.
[0012] In combination with the first aspect, in certain implementations of the first aspect, when the terminal device is no longer in a weightless state, the gyroscope is turned back on, and the angular velocity is obtained through the gyroscope, including: when the terminal device is neither in a weightless state nor in an overweight state, the gyroscope is turned back on, and the angular velocity is obtained through the gyroscope.
[0013] In an embodiment of the present application, when the terminal device is neither in a weightless nor overweight state, re-enabling the gyroscope can prevent damage to the internal circuit of the gyroscope when the gyroscope falls due to weightlessness or falls due to weightlessness after being overweight.
[0014] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: when the terminal device is not in a weightless state, determining whether the terminal device is in an overweight state; if in an overweight state, extending the shutdown time of the gyroscope and the stop execution time of the folding angle algorithm.
[0015] In an embodiment of the present application, if the terminal device is in an overweight state, extending the shutdown time of the gyroscope and the stopping execution time of the folding angle algorithm is beneficial to avoid damage to the internal circuit of the gyroscope and to facilitate correct interface display. To avoid repetition, it will not be repeated here.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: based on the expansion angle of the inner display screen, executing a posture algorithm to obtain posture information of the inner display screen; based on the expansion angle of the inner display screen, displaying a corresponding interface through the inner display screen or the outer display screen, including: based on the expansion angle and posture information of the inner display screen, displaying a corresponding interface through the inner display screen or the outer display screen.
[0017] In combination with the first aspect, in certain implementations of the first aspect, determining whether the terminal device is in a weightless state includes: acquiring data of three coordinate axes in a three-dimensional coordinate system; if the absolute values of the differences between the data of the three coordinate axes and 0.5×g are all less than preset values, then it is determined that the terminal device is in a weightless state, and g represents the acceleration of gravity.
[0018] In combination with the first aspect, in certain implementations of the first aspect, determining whether the terminal device is in a weightless state includes: obtaining data of three coordinate axes in a three-dimensional coordinate system; if the data of the three coordinate axes are all less than a first preset threshold, determining that the terminal device is in a weightless state.
[0019] In a second aspect, another screen display method for a terminal device is provided, which is applied to a terminal device including an inner display screen, an outer display screen and a gyroscope, the method comprising: determining whether the terminal device is in a weightless state; when the terminal device is in a weightless state, turning off the gyroscope; when the terminal device is no longer in a weightless state, turning on the gyroscope again and obtaining an angular velocity through the gyroscope; based on the angular velocity, executing a folding angle algorithm to obtain an unfolding angle of the inner display screen; based on the unfolding angle of the inner display screen, displaying a corresponding interface through the inner display screen or the outer display screen.
[0020] According to the screen display method of the terminal device in the embodiment of the present application, when the terminal device is in a weightless state, the terminal device powers off the gyroscope, that is, turns off the gyroscope, and after the falling scene ends, the gyroscope is powered on, that is, turns on the gyroscope. In this way, the gyroscope in the terminal device can be protected from falling when the terminal device falls, thereby avoiding damage to the gyroscope and improving the user experience.
[0021] According to a third aspect, another screen display method for a terminal device is provided, which is applied to a terminal device including an inner display screen, an outer display screen and a gyroscope, the method including: determining whether the terminal device is in a weightless state; when the terminal device is in a weightless state, stopping the execution of a folding angle algorithm; when the terminal device is no longer in a weightless state, acquiring an angular velocity through a gyroscope; based on the angular velocity, executing a folding angle algorithm to acquire an unfolding angle of the inner display screen; and based on the unfolding angle of the inner display screen, displaying a corresponding interface through the inner display screen or the outer display screen.
[0022] The screen display method of the terminal device in the embodiment of the present application is that when the terminal device is in a weightless state, the terminal device suspends the execution of the folding angle algorithm, which is beneficial to avoid interface errors displayed on the inner and outer display screens. After the falling scene ends, the folding angle algorithm is re-executed. In this way, the inner and outer display screens can correctly display the interface when the terminal device falls, thereby improving the user experience.
[0023] In a fourth aspect, a screen display method for a terminal device is provided, which is applied to a terminal device including an inner display screen, an outer display screen and a magnetic sensor, the method comprising: acquiring a magnetic value between the inner display screens through the magnetic sensor; determining posture information of the inner display screen based on the magnetic value; and displaying a corresponding interface through the inner display screen or the outer display screen based on the posture information.
[0024] In an embodiment of the present application, the terminal device performs screen switching between the inner and outer display screens based on a magnetic sensor. This method can be applied to more scenarios. For example, the terminal device can still perform screen switching between the inner and outer display screens in the case of continuous weightlessness, thereby improving the user experience.
[0025] In combination with the fourth aspect, in certain implementations of the fourth aspect, the posture information of the inner display screen is determined based on the magnetic value, including: when the magnetic value is greater than or equal to a fourth preset threshold, determining that the inner display screen is in a closed state; when the magnetic value is less than the fourth preset threshold, determining that the inner display screen is in an unfolded state.
[0026] In combination with the fourth aspect, in some implementations of the fourth aspect, the folding form of the inner display screen is inward folding or outward folding.
[0027] In a fifth aspect, a terminal device is provided, comprising: a processor and a memory, wherein the processor is used to read instructions stored in the memory to execute a method in any possible implementation of the above-mentioned various aspects.
[0028] Optionally, there are one or more processors and one or more memories.
[0029] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0030] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0031] The terminal device in the fifth aspect mentioned above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0032] In a sixth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the above-mentioned aspects.
[0033] In the seventh aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instruction) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the above-mentioned aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1It is a schematic diagram of a partial circuit structure of a gyroscope provided in an embodiment of the present application;
[0035] Figure 2 is a schematic diagram of a partial circuit structure of another gyroscope provided in an embodiment of the present application;
[0036] Figure 3 is a schematic diagram of a mobile phone with internal and external display screens provided in an embodiment of the present application;
[0037] Figure 4 is a schematic flow chart of a screen display method of a terminal device provided in an embodiment of the present application;
[0038] Figure 5 is a schematic flow chart of another screen display method of a terminal device provided in an embodiment of the present application;
[0039] Figure 6 is a schematic flow chart of another screen display method of a terminal device provided in an embodiment of the present application;
[0040] Figure 7 is a schematic flow chart of a screen display method of another terminal device provided in an embodiment of the present application;
[0041] Figure 8 It is a schematic block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0043] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0044] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0045] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0046] The terminal device involved in the embodiments of the present application is a device with internal and external display screens, which can be a mobile phone, a tablet computer, a personal computer (PC), a smart screen, an artificial intelligence (AI) speaker, a headset, a car machine device, and a wearable terminal device such as a smart watch. It can also be various teaching auxiliary tools (such as learning machines, early education machines), smart toys, portable robots, personal digital assistants (PDA), augmented reality technology (AR) equipment, virtual reality (VR) equipment, etc. It can also be a device with mobile office functions, a device with smart home functions, a device with audio and video entertainment functions, a device supporting smart travel, etc. It should be understood that the embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
[0047] With the development of terminal technology, foldable terminal devices have emerged, and such terminal devices may be provided with multiple display screens. For an inward-folding foldable terminal device, its display screen may include an inner display screen and an outer display screen. The inner display screen may be an inward-folding display screen, and the outer display screen may be a half-non-foldable display screen, a full-surface non-foldable display screen, a half-foldable display screen, or a full-surface foldable display screen, etc., which is not limited in the embodiments of the present application.
[0048] When the inner display screen is closed and in a folded state, the outer display screen of the terminal device is lit and displays the interface while the inner display screen is in an off state. When the inner display screen is in an unfolded state, the inner display screen of the terminal device is lit and displays the interface while the outer display screen is in an off state. During the use of the terminal device, the terminal device will determine which display screen displays the interface based on the judgment of the terminal device state by its gyroscope. The change of the terminal device state will cause the display screen display state to switch. Specifically, the terminal device state can refer to the unfolding angle of the inner display screen of the terminal device. However, in actual use, the gyroscope inside the terminal device may be damaged due to the terminal device falling, which will cause the interface displayed by the inner display screen and the outer display screen to be unable to switch or errors will occur during switching (referred to as "the inner and outer display screens do not switch or switch randomly"), so the terminal device needs to be protected from falling.
[0049] At present, there is a screen display method for a terminal device. When the terminal device is detected to be in a falling state, the method uses the falling shape of the terminal device when it falls and the screen type of the terminal device to perform corresponding intervention operations to avoid the problem of the screen of the terminal device being shattered due to the impact of external forces such as mechanical force. However, this method only protects the display screen of the terminal device from falling, and does not consider protecting the gyroscope inside the terminal device. In other words, this method does not consider the possibility that the internal circuit part of the gyroscope may be damaged due to the terminal device falling. This method also does not take into account the problem that if the terminal device falls and the gyroscope is damaged, the internal and external display screens will not be cut or cut randomly, which affects the user experience.
[0050] In order to solve the above problems, the present application provides a screen display method for a terminal device. When the terminal device is in a falling state, the terminal device turns off the gyroscope to avoid damage to the internal circuit part of the gyroscope caused by the resonance between the internal working frequency of the gyroscope and the impact frequency when the electronic device collides. At the same time, the terminal device also suspends the display of the internal and external display screens. After the terminal device is no longer in a falling state, the gyroscope is turned on again, and the internal and external display screens re-display the interface, which is conducive to improving the drop protection efficiency of the terminal device when it falls, ensuring the normal display of the internal and external display screens, and improving the user experience.
[0051] It should also be understood that when the gyroscope is powered on, the internal voltage of the gyroscope is relatively high, and there is a large potential difference between the movable part of the microelectromechanical system (MEMS) and the detection electrode. When the terminal device falls and is hit, the collision deformation may cause the movable part of the MEMS to contact the detection electrode, resulting in a short circuit, thereby damaging the internal circuit part of the gyroscope. Turning off the gyroscope is to power off the gyroscope, which can also be understood as a state where there is no high voltage inside the gyroscope, and can also be understood as putting the gyroscope into a sleep state. Therefore, the embodiment of the present application avoids damage to the gyroscope by turning off the gyroscope when the terminal device is in a falling state, specifically, to avoid damage to the internal circuit of the gyroscope.
[0052] Figure 1 The schematic diagram shows a partial circuit structure 100 of a gyroscope. Figure 1 As shown, the MEMS movable part 103 can move up and down, and when working, there is a large potential difference between this part and the detection electrode 101 or the detection electrode 102. When the terminal device falls and is hit, due to the collision deformation, the MEMS movable part 103 and the detection electrode 101 on the left, or the MEMS movable part 103 and the detection electrode 102 on the right may come into contact, resulting in a short circuit, thereby damaging the internal circuit part of the gyroscope. Therefore, when the terminal device is in a falling state, the gyroscope is powered off to avoid damage to the internal circuit of the gyroscope.
[0053] Figure 2 The schematic diagram shows a partial circuit structure 200 of a gyroscope. Figure 2 As shown, the MEMS movable part 203 can move left and right, and when working, there is a large potential difference between this part and the detection electrode 201 or the detection electrode 202. When the terminal device falls and is hit, due to the collision deformation, the MEMS movable part 203 and the detection electrode 202 below, or the MEMS movable part 203 and the detection electrode 201 above may come into contact, resulting in a short circuit, thereby damaging the internal circuit part of the gyroscope. Therefore, when the terminal device is in a falling state, the gyroscope is powered off to avoid damage to the internal circuit of the gyroscope.
[0054] Below, taking the terminal device as a mobile phone as an example, the terminal device with internal and external display screens involved in the embodiments of the present application is introduced.
[0055] Figure 3 Schematic diagram of a mobile phone with inner and outer display screens according to an embodiment of the present application. The mobile phone has left and right sides, which can rotate relative to each other around a central rotation axis to close and unfold. The mobile phone also has an inner display screen and an outer display screen, the inner display screen is a foldable display screen, and the outer display screen is a full non-foldable display screen. Figure 3 As shown in a, when the two sides of the phone are closed and folded, that is, the inner display screen is not unfolded, the outer display screen of the phone will light up and display the interface, while the inner display screen is in the off state. Figure 3 As shown in b and c in FIG, when the two sides of the mobile phone are unfolded, that is, the inner display screen is unfolded to 180 degrees, the inner display screen of the mobile phone is bright and displays the interface, while the outer display screen is in the off state. Figure 3 As shown in d, during the transition from the folded state to the unfolded state on both sides of the mobile phone, when the unfolding angle of the inner display screen is greater than or equal to 45 degrees, the inner display screen of the terminal device is converted from the screen-off state to the bright screen display interface, and the outer display screen is converted from the bright screen display interface to the screen-off state.
[0056] The following is an introduction to the screen display method of the terminal device of the embodiment of the present application. The method can be applied to the falling scene of the terminal device. The method is performed by the terminal device with internal and external display screens.
[0057] Figure 4 4 is a schematic flow chart of a screen display method 400 of a terminal device according to an embodiment of the present application. The method 400 comprises the following steps:
[0058] S401, detecting the acceleration of the terminal device.
[0059] Exemplarily, the acceleration of the terminal device may be detected based on an acceleration sensor.
[0060] S402, based on the acceleration of the terminal device, determine whether the terminal device is in a weightless state. If the terminal device is not in a weightless state, continue to execute S401.
[0061] In a possible implementation, in an established three-dimensional coordinate system, the acceleration of the terminal device has acceleration components on the three coordinate axes, and whether the terminal device is in a weightless state can be determined based on the three acceleration components. Optionally, the three acceleration components of the acceleration of the terminal device are respectively compared with a first preset threshold value. If the three acceleration components are all less than the first preset threshold value, it is determined that the terminal device is in a weightless state. Exemplarily, the first preset threshold value can be any value between 0.4×g and 0.6×g (g represents the acceleration due to gravity, generally 9.8m / s 2 ). Optionally, the above three acceleration components can be compared with 0.5×g respectively. If the three acceleration components are all close to 0.5×g, the terminal device is in a weightless state.
[0062] Optionally, it is possible to determine whether the terminal device is in a weightless state for multiple consecutive times before determining that the terminal device is indeed in a weightless state. For example, if the terminal device is determined to be in a weightless state at a first moment, and is also determined to be in a weightless state at a second moment thereafter, it is determined that the terminal device is in a weightless state, thereby preventing erroneous judgments. The duration between the first moment and the second moment is not limited.
[0063] If it is determined that the terminal device is in a weightless state, S403 is executed: the gyroscope is turned off, and the execution of the folding angle algorithm and the attitude algorithm is suspended.
[0064] It should be understood that in a terminal device with internal and external display screens, the gyroscope includes a main gyroscope and a secondary gyroscope, and the gyroscope in the embodiment of the present application is a general term for the main gyroscope and the secondary gyroscope. The gyroscope can report angular velocity information to the processor, and the processor executes the folding angle algorithm and the attitude algorithm based on the angular velocity information.
[0065] Exemplarily, the gyroscope may be a gyroscope sensor. In a terminal device having internal and external display screens, the gyroscope sensor includes a main gyroscope sensor and a secondary gyroscope sensor.
[0066] It should also be understood that turning off the gyroscope in the embodiment of the present application may mean turning off only the main gyroscope, only the auxiliary gyroscope, or both the main gyroscope and the auxiliary gyroscope at the same time, and the embodiment of the present application is not limited to this.
[0067] S404, start a first timer to count the shutdown duration of the gyroscope, and start a second timer to count the pause execution duration of the folding angle algorithm and the attitude algorithm. The timing duration of the first timer is a first preset duration, and the timing duration of the second timer is a second preset duration, and the second preset duration is greater than or equal to the first preset duration.
[0068] It should be understood that in the embodiment of the present application, the shutdown time of the gyroscope is the first preset time, and the suspension execution time of the folding angle algorithm and the attitude algorithm is the second preset time.
[0069] Optionally, the shutdown time of the gyroscope depends on the falling scene, so the first preset time can be set according to the falling scene.
[0070] It should be understood that the above-mentioned falling scene can be that the terminal device directly falls on a plane (such as the ground), or falls on an object first and then falls on a plane again, or falls on a plane and then bounces off the plane and falls on the plane again. The terminal device first falls on an object and then falls on a plane again, or falls on a plane and then bounces off the plane and falls on the plane again is called "secondary fall".
[0071] Exemplarily, the first preset time length can be set to 1 to 2 seconds, and the second preset time length can be set to 1.1 to 2.1 seconds. Specifically, if the gyroscope shutdown time is set to 1 second, the folding angle algorithm and the attitude algorithm shutdown time can be set to 1.1 seconds. When the initial velocity of the terminal device is zero, according to h=gt2 / 2 (where t represents the falling time and h represents the falling height), during the 1 second period when the gyroscope is turned off, the terminal device can fall from a maximum height of 4.9 meters, so that the terminal device is in a closed state during the entire falling period. The falling height of a general free fall scenario does not exceed 2 meters, so the above preset time length can ensure that the gyroscope of the terminal device, the folding angle algorithm, and the attitude algorithm are in a closed state during a general falling scenario.
[0072] S405: When the first timer times out, detect acceleration.
[0073] Specifically, the expiration of the first timer indicates that the falling scene has ended, and the terminal device can detect the acceleration again to ensure that it is no longer in a weightless state, thereby preventing the terminal device from falling again.
[0074] In a possible implementation, after the terminal device determines that it is in a weightless state in S402, it stops detecting acceleration, and starts detecting acceleration again after the first timer times out in S405 to determine whether it is still in a weightless state.
[0075] In another possible implementation, the terminal device continuously detects acceleration during the entire process, thereby detecting in real time whether it is in a weightless state during the entire process.
[0076] S406: Based on the above acceleration, determine whether the terminal device is in a weightless state.
[0077] The judgment method of this step is the same as the judgment method of S402 above, which will not be repeated here. If the terminal device is in a weightless state, execute S407. If the terminal device is not in a weightless state, execute S408.
[0078] S407, if the terminal device is in a weightless state, extend the timing, that is, extend the duration of the first timer and the second timer. Exemplarily, it can be extended by 1 second. After the timing is extended, execute S405.
[0079] S408, after the terminal device is no longer in a weightless state, the gyroscope is turned on again, and the folding angle algorithm and the attitude algorithm are initialized.
[0080] It should be understood that after the terminal device turns on the gyroscope again, the folding angle algorithm and the attitude algorithm need to be re-executed. When the terminal device re-executes the folding angle algorithm and the attitude algorithm, the terminal device needs to initialize the folding angle algorithm and the attitude algorithm (for example, the terminal device can clear the existing parameters in the folding angle algorithm and the attitude algorithm) to prevent the processor from using the historical angular velocity reported to the processor by the gyroscope (i.e., the angular velocity reported to the processor before the gyroscope was turned off) to continue to execute the algorithm.
[0081] S409, obtaining the new acceleration and angular velocity information of the gyroscope after the terminal device turns on the gyroscope.
[0082] It should be understood that the angular velocity information of the gyroscope includes a first angular velocity of the main gyroscope and a second angular velocity of the auxiliary gyroscope, and the first angular velocity is different from the second angular velocity.
[0083] S410, obtaining an unfolding angle of an inner display screen of the terminal device based on a folding angle algorithm, a new acceleration of the terminal device, a first angular velocity, and a second angular velocity.
[0084] It should be understood that by inputting the new acceleration of the terminal device, the first angular velocity of the main gyroscope and the second angular velocity of the secondary gyroscope into the folding angle algorithm, the unfolding angle of the inner display screen of the terminal device can be obtained.
[0085] S411, obtaining posture information based on the unfolding angle of the inner display screen and the posture algorithm.
[0086] Specifically, the terminal device inputs the expansion angle of its internal display screen into the posture algorithm to obtain posture information.
[0087] It should be understood that the posture information indicates the unfolding state of the inner display screen of the terminal device. For example, if the posture information is 1, it indicates that the inner display screen is not unfolded. If the posture information is 2, it indicates that the inner display screen is in any state between not unfolded and fully unfolded. If the posture information is 3, it indicates that the inner display screen is in a fully unfolded state.
[0088] S412, based on the posture information, the inner display screen or the outer display screen displays a corresponding interface.
[0089] In an optional manner, the terminal device can display in combination with the posture information and the expansion angle of the inner display screen. Exemplarily, when the posture information is 1, the outer display screen of the terminal device displays the corresponding interface, and the inner display screen is in an off-screen state. When the posture information is 2 and the expansion angle of the inner display screen is greater than or equal to the second preset threshold, the inner display screen of the terminal device displays the corresponding interface, and the outer display screen is in an off-screen state. When the posture information is 2 and the expansion angle of the inner display screen is less than the second preset threshold, the outer display screen of the terminal device displays the corresponding interface, and the inner display screen is in an off-screen state. When the posture information is 3, the inner display screen of the terminal device displays the corresponding interface, and the outer display screen is in an off-screen state. The above-mentioned second preset threshold can be any value between 0 and 180 degrees, wherein the second preset threshold does not include 0 degrees and 180 degrees.
[0090] It should be understood that the above-mentioned posture algorithm and S409 may be optional steps, and the inner and outer display screens of the terminal device may directly display the corresponding interface based on the unfolding angle of the inner display screen. For example, when the unfolding angle is less than the second preset threshold, the outer display screen of the terminal device displays the corresponding interface, and the inner display screen is in an off-screen state. When the unfolding angle is greater than or equal to the second preset threshold, the inner display screen of the terminal device displays the corresponding interface, and the outer display screen is in an off-screen state.
[0091] The screen display method of the terminal device of the embodiment of the present application is that when the terminal device is in a weightless state, the terminal device powers off the gyroscope, that is, turns off the gyroscope, and suspends the execution of the folding angle algorithm and the attitude algorithm. This is beneficial to avoid interface errors displayed on the internal and external display screens after the gyroscope is turned off. After the fall scene ends, the gyroscope is powered on, that is, the gyroscope is turned on, and the folding angle algorithm and the attitude algorithm are re-executed. In this way, the gyroscope in the terminal device can be protected from falling when the terminal device falls, thereby avoiding damage to the gyroscope and enabling the internal and external display screens to correctly display the interface, thereby improving the user experience.
[0092] Figure 5 1 is a schematic flow chart of a screen display method 500 of another terminal device according to an embodiment of the present application. The method 500 comprises the following steps:
[0093] S501 to S507 are the same as S401 to S407 in the above method 400 and are not described again here.
[0094] S508: Based on the acceleration, determine whether the terminal device is in an overweight state.
[0095] In a possible implementation, in an established three-dimensional coordinate system, the acceleration of the terminal device has acceleration components on the three coordinate axes, and the acceleration components of the three coordinate axes of the acceleration of the terminal device are respectively compared with the third preset threshold value. If the acceleration component of at least one of the three coordinate axes is greater than the third preset threshold value, the terminal device is in an overweight state. Exemplarily, the third preset threshold value may be g (g represents the acceleration due to gravity, which is generally 9.8 m / s 2 ).
[0096] If the terminal device is in an overweight state, S507 is executed to extend the timing, that is, to extend the duration of the first timer and the second timer. For example, the timer can be extended by 1 second. After the timer is extended, S505 is executed.
[0097] S509 to S513 are the same as S408 to S412 in the above method 400 and are not described again here.
[0098] The difference between method 500 and method 400 is that a step of determining whether the terminal device is in an overweight state is added. The overweight state scenario may be that the terminal device falls and then rebounds. If the terminal device is in an overweight state after the timer times out, the terminal device can extend the timer and wait for a period of time (for example, 1 second) until the terminal device is neither in an overweight state nor in a weightless state, and then turn on the gyroscope to execute the folding angle algorithm and the attitude algorithm.
[0099] In this way, the scenario of a second fall of the terminal device can be covered, so as to better protect the gyroscope in the terminal device, thereby avoiding damage to the gyroscope and making the internal and external display screens display the interface correctly, thereby improving the user experience.
[0100] It should be understood that the execution order of the above S506 and S508 is only an example. In other possible implementations, the terminal device may execute S508 first and then S506, or execute S506 and S508 at the same time. The embodiments of the present application are not limited to this.
[0101] Figure 6 8 is a schematic flow chart of a screen display method 800 of another terminal device according to an embodiment of the present application. The method 800 comprises the following steps:
[0102] S601, detecting the acceleration of the terminal device.
[0103] Exemplarily, the acceleration of the terminal device may be detected based on an acceleration sensor.
[0104] S602, based on the acceleration of the terminal device, determine whether the terminal device is in a weightless state. If the terminal device is not in a weightless state, continue to execute S601.
[0105] S603: If the terminal device is in a weightless state, suspend the execution of the folding angle algorithm and the attitude algorithm.
[0106] S604, start a second timer to count the pause execution duration of the folding angle algorithm and the posture algorithm.
[0107] S605: When the second timer times out, detect acceleration.
[0108] In a possible implementation, after the terminal device determines that it is in a weightless state in S602, it stops detecting acceleration, and starts detecting acceleration again after the first timer times out in S605 to determine whether it is still in a weightless state.
[0109] In another possible implementation, the terminal device continuously detects acceleration during the entire process, thereby detecting in real time whether it is in a weightless state during the entire process.
[0110] S606: Based on the above acceleration, determine whether the terminal device is in a weightless state.
[0111] If the terminal device is in a weightless state, execute S607. If the terminal device is not in a weightless state, execute S608.
[0112] Optionally, it is possible to determine whether the terminal device is in a weightless state multiple times in succession before determining that the terminal device is indeed in a weightless state. To avoid repetition, it will not be described here.
[0113] S607: If the terminal device is in a weightless state, extend the timer, that is, extend the duration of the second timer. For example, it can be extended by 1 second. After the timer is extended, execute S605.
[0114] Optionally, S608, based on the acceleration, determine whether the terminal device is in an overweight state.
[0115] If the terminal device is in an overweight state, S607 is executed to extend the timer, that is, to extend the duration of the second timer. For example, the timer may be extended by 1 second. After the timer is extended, S605 is executed.
[0116] If the terminal device is not in an overweight state, execute S609.
[0117] S609, initializing the folding angle algorithm and the posture algorithm.
[0118] S610, obtaining new acceleration and angular velocity information of the gyroscope after the terminal device turns on the gyroscope.
[0119] S611, obtaining an unfolding angle of an inner display screen of the terminal device based on a folding angle algorithm, a new acceleration of the terminal device, a first angular velocity, and a second angular velocity.
[0120] S612, obtaining posture information based on the unfolding angle of the inner display screen and the posture algorithm.
[0121] S613, based on the posture information, the inner display screen or the outer display screen displays a corresponding interface.
[0122] It should be understood that the relevant specific details of the embodiments of the present application can refer to the description of the above-mentioned method 400 and method 500, which will not be repeated here.
[0123] The screen display method of the terminal device in the embodiment of the present application is that when the terminal device is in a weightless state, the terminal device suspends the execution of the folding angle algorithm and the posture algorithm, which is beneficial to avoid interface errors displayed on the internal and external display screens. After the falling scene is over, the folding angle algorithm and the posture algorithm are re-executed. In this way, the internal and external display screens can correctly display the interface when the terminal device falls, thereby improving the user experience.
[0124] Figure 7 700 is a schematic flow chart of a screen display method 700 of another terminal device according to an embodiment of the present application. The method 700 includes the following steps:
[0125] S701, detecting the acceleration of the terminal device.
[0126] S702, based on the acceleration of the terminal device, determine whether the terminal device is in a weightless state. If the terminal device is not in a weightless state, continue to execute S701.
[0127] S703: If the terminal device is in a weightless state, turn off the gyroscope.
[0128] S704, start a first timer to count the shutdown time of the gyroscope.
[0129] S705: When the first timer times out, detect acceleration.
[0130] S706: Based on the above acceleration, determine whether the terminal device is in a weightless state.
[0131] If the terminal device is in a weightless state, execute S707. If the terminal device is not in a weightless state, execute S708.
[0132] S707: If the terminal device is in a weightless state, extend the timer, that is, extend the duration of the first timer. For example, it can be extended by 1 second. After the timer is extended, execute S705.
[0133] Optionally, S708, based on the acceleration, determine whether the terminal device is in an overweight state.
[0134] If the terminal device is in an overweight state, S707 is executed to extend the timer, that is, to extend the duration of the first timer. For example, the timer may be extended by 1 second. After the timer is extended, S705 is executed.
[0135] If the terminal device is not in an overweight state, execute S709.
[0136] S709, restart the gyroscope.
[0137] It should be understood that the relevant specific details of the embodiments of the present application can refer to the description of the above-mentioned method 400 and method 500, which will not be repeated here.
[0138] According to the screen display method of the terminal device in the embodiment of the present application, when the terminal device is in a weightless state, the terminal device powers off the gyroscope, that is, turns off the gyroscope, and after the falling scene ends, the gyroscope is powered on, that is, turns on the gyroscope. In this way, the gyroscope in the terminal device can be protected from falling when the terminal device falls, thereby avoiding damage to the gyroscope and improving the user experience.
[0139] It should be understood that in the above example, the terminal device detects the acceleration of the terminal device through an acceleration sensor. If the acceleration sensor is damaged or the terminal device is in a state of continuous weightlessness in a space scene, the terminal device can use a magnetic sensor to perform inner and outer screen switching.
[0140] Specifically, the terminal device can first obtain the magnetic value between the inner display screens through the magnetic sensor, and then determine the posture information of the inner display screen of the terminal device according to the magnetic value, and switch the inner and outer display screens based on the posture information to display the corresponding interface.
[0141] It should be understood that the magnetic value will change with the folding angle of the inner display screen of the terminal device. When the folding angle becomes smaller, the magnetic sensor is affected by a greater magnetism and the magnetic value becomes larger; when the folding angle of the inner display screen becomes larger, the magnetic sensor is affected by a smaller magnetism and the magnetic value becomes smaller. A certain magnetic value threshold can be set. When the magnetic value is greater than or equal to the preset threshold, the outer display screen displays the corresponding interface. When the magnetic value is less than the preset threshold, the inner display screen displays the corresponding interface.
[0142] Exemplarily, when the magnetic value is greater than or equal to the fourth preset threshold, the magnetic field around the magnetic sensor becomes larger, the folding angle of the inner display screen of the terminal device is small, the threshold is met for the closed state, and the inner display screen of the terminal device is in the closed state. When the magnetic value is less than the fourth preset threshold, the magnetic field around the magnetic sensor becomes smaller, the folding angle of the inner display screen of the terminal device is large, the threshold is met for the unfolded state, and the inner display screen of the terminal device is in the unfolded state.
[0143] It should be understood that the posture information of this method is determined based on different methods from the posture information in the above method 600. Switching the internal and external display screens based on the posture information to display the corresponding interface is similar to the above method 600 and will not be described in detail here.
[0144] In an embodiment of the present application, the terminal device performs screen switching between the inner and outer display screens based on a magnetic sensor. This method can be applied to more scenarios. For example, the terminal device can still perform screen switching between the inner and outer display screens in the case of continuous weightlessness, thereby improving the user experience.
[0145] Optionally, the folding form of the inner display screen of the terminal device can be inward folding or outward folding.
[0146] It should be understood that the inner folding may include horizontal folding and vertical folding, and the outer folding may also include horizontal folding and vertical folding, which is not limited in the embodiments of the present application. The horizontal folding may be understood as folding along the long axis of the terminal device, and the vertical folding may be understood as folding along the short axis of the terminal device, for example, folding the terminal device in half along the short axis direction.
[0147] It should also be understood that the size of the serial numbers of the above steps does not mean the order of execution. The execution order of each step should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0148] Figure 8 The present invention provides a terminal device 800. The terminal device 800 includes a processor 801 and a memory 802. The processor 801 and the memory 802 communicate with each other through an internal connection path. The memory 802 is used to store instructions, and the processor 801 is used to execute the instructions stored in the memory 802.
[0149] It should be understood that the terminal device 800 can be specifically the terminal device in the above embodiment, and can be used to execute the various steps and / or processes corresponding to the terminal device in the above method embodiment. Optionally, the memory 802 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 801 may be used to execute instructions stored in the memory, and when the processor 801 executes instructions stored in the memory 802, the processor 801 is used to execute the various steps and / or processes of the above method embodiment corresponding to the terminal device.
[0150] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0151] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0152] The present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the method corresponding to the terminal device in the above embodiment.
[0153] The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the terminal device shown in the above embodiment.
[0154] The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims
1. A screen display method of a terminal device, characterized in that: Applied to a terminal device including an inner display screen, an outer display screen and a gyroscope, the method comprises: Determining whether the terminal device is in a weightless state; When the terminal device is in a weightless state, turning off the gyroscope and stopping the execution of the folding angle algorithm; When the terminal device is no longer in a weightless state, re-enabling the gyroscope and obtaining the angular velocity through the gyroscope; Based on the angular velocity, re-execute the folding angle algorithm to obtain the unfolding angle of the inner display screen; Based on the unfolding angle of the inner display screen, a corresponding interface is displayed through the inner display screen or the outer display screen.
2. The method according to claim 1, characterized in that The method further comprises: After turning off the gyroscope for a first preset time, determining whether the terminal device is still in a weightless state; If the device is in a weightless state, the shutdown time of the gyroscope and the stop execution time of the folding angle algorithm are extended.
3. The method according to claim 2, characterized in that The duration for stopping execution of the folding angle algorithm is a second preset duration, and the second preset duration is greater than or equal to the first preset duration.
4. The method according to claim 1, characterized in that When the terminal device is no longer in a weightless state, re-enabling the gyroscope and obtaining the angular velocity through the gyroscope includes: When the terminal device is neither in a weightless state nor in an overweight state, the gyroscope is turned on again and the angular velocity is acquired through the gyroscope.
5. The method according to claim 1, characterized in that: The method further comprises: When the terminal device is not in a weightless state, determining whether the terminal device is in an overweight state; If the vehicle is in an overweight state, the shutdown time of the gyroscope and the stop execution time of the folding angle algorithm are extended.
6. The method according to claim 1, characterized in that The method further comprises: Based on the unfolding angle of the inner display screen, executing a posture algorithm to obtain posture information of the inner display screen; The displaying a corresponding interface through the inner display screen or the outer display screen based on the unfolding angle of the inner display screen includes: Based on the unfolding angle of the inner display screen and the posture information, a corresponding interface is displayed through the inner display screen or the outer display screen.
7. The method according to any one of claims 1 to 6, characterized in that The determining whether the terminal device is in a weightless state comprises: Get the data of three coordinate axes in the three-dimensional coordinate system; If the absolute values of the differences between the data of the three coordinate axes and 0.5×g are all smaller than preset values, it is determined that the terminal device is in a weightless state, and g represents the acceleration of gravity.
8. The method according to any one of claims 1 to 6, characterized in that The determining whether the terminal device is in a weightless state comprises: Get the data of three coordinate axes in the three-dimensional coordinate system; If the data of the three coordinate axes are all less than a first preset threshold, it is determined that the terminal device is in a weightless state.
9. A terminal device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the terminal device executes the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 8.
11. A computer program product, characterized in that The computer program product includes a computer program code, and when the computer program code is executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Mobile terminal and method for preventing falling-caused failure of touch screen of mobile terminal
CN103279719A
Method for turning on / off power supply and mobile terminal
CN106878551A
Impact angle acquisition method and related product
CN108769380A
Distance detection method and device, electronic equipment and storage medium
CN113721825A
Cited By
Screen display method for terminal device
EP4564794A1
Screen display method for terminal device
WO2024109402A1