Angle detection method, device, terminal, storage medium and program product
By obtaining the impedance value of the folding screen hinge, the opening and closing angle of the folding screen can be directly detected using a prediction model or mapping relationship. This solves the problem of poor flexibility in existing technologies, achieves more efficient angle detection, and reduces costs and complexity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2023-02-23
- Publication Date
- 2026-06-30
AI Technical Summary
In existing technologies, foldable screen terminals suffer from poor flexibility in detecting opening and closing angles, especially due to the increased difficulty in device layout and high circuit complexity caused by the use of gyroscope sensors and magnetic components.
By obtaining the target hinge impedance value corresponding to the folding screen hinge of the terminal, the current opening and closing angle of the folding screen can be directly obtained using a prediction model or mapping relationship. This avoids setting up gyroscope sensors and magnetic components in the terminal, reducing the difficulty of device layout and circuit complexity.
It improves the flexibility of foldable screen opening and closing angle detection, reduces component costs and PCB layout difficulty, avoids the influence of magnetic fields on angle detection results, and improves detection accuracy and efficiency.
Smart Images

Figure CN116294970B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of angle detection technology, and in particular to an angle detection method, device, terminal, storage medium and program product. Background Technology
[0002] Currently, foldable screens are commonly used in mobile phones, tablets and other terminals on the market. In order to achieve better human-computer interaction, it is usually necessary to detect the opening and closing angle of the foldable screen during the opening and closing process, and control the screen switching process of the terminal based on the opening and closing angle.
[0003] Taking a terminal with an inward-folding screen as an example, in related technologies, a gyroscope sensor is usually placed under the left half screen and the right half screen of the terminal. The angle between the left half screen and the right half screen is calculated by the two gyroscope sensors. This angle is the opening and closing angle of the folding screen.
[0004] However, the above-mentioned angle detection method suffers from a lack of flexibility. Summary of the Invention
[0005] This application provides an angle detection method, apparatus, terminal, storage medium, and program product, which can improve the flexibility of angle detection.
[0006] Firstly, an angle detection method is provided, the method comprising:
[0007] Obtain the target hinge impedance value corresponding to the folding screen hinge of the terminal;
[0008] Based on the target hinge impedance value, the current target opening angle of the terminal's folding screen is obtained;
[0009] The folding screen hinge is used to open and close the folding screen.
[0010] Secondly, an angle detection device is provided, the device comprising:
[0011] The first acquisition module is used to acquire the target hinge impedance value corresponding to the folding screen hinge of the terminal;
[0012] The second acquisition module is used to acquire the current target opening angle of the folding screen of the terminal based on the target pivot impedance value;
[0013] The folding screen hinge is used to open and close the folding screen.
[0014] Thirdly, a terminal is provided, the terminal including a foldable screen, a foldable screen hinge, a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described in the first aspect above.
[0015] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the steps of the method described in the first aspect above.
[0016] Fifthly, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.
[0017] The beneficial effects of the technical solutions provided in this application include at least the following:
[0018] By obtaining the target hinge impedance value corresponding to the folding screen hinge of the terminal, which is used to open and close the folding screen, and then obtaining the current target opening and closing angle of the terminal's folding screen based on the target hinge impedance value, this embodiment of the application can directly obtain the current target opening and closing angle of the folding screen through the target hinge impedance value corresponding to the folding screen hinge, without having to set a gyroscope sensor in the terminal to detect the opening and closing angle of the folding screen. This avoids the problems of increased difficulty in device layout and high circuit complexity caused by setting a gyroscope sensor in the terminal. This embodiment of the application does not require adding a gyroscope sensor and related complex circuits to the terminal, reducing the difficulty of device layout and improving the flexibility of folding screen opening and closing angle detection. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of a folding screen and a folding screen hinge in one embodiment;
[0021] Figure 2 Here is a flowchart of an angle detection method in one embodiment;
[0022] Figure 3 Here is a flowchart of an angle detection method in another embodiment;
[0023] Figure 4 This is a schematic diagram of the connection between the PMIC and the folding screen hinge in one embodiment;
[0024] Figure 5 Here is a flowchart of an angle detection method in another embodiment;
[0025] Figure 6This is a structural block diagram of an angle detection device in one embodiment;
[0026] Figure 7 This is a diagram of the internal structure of a terminal in one embodiment. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0028] Currently, foldable screens are commonly used in smartphones, tablets, and other devices. Taking smartphones as an example, foldable phones, as a new form of mobile phone, are currently very popular. To achieve better human-computer interaction, it is usually necessary to detect the real-time opening and closing angle of the foldable screen during its opening and closing process, and control the screen switching, hovering, and other processes of the terminal based on this opening and closing angle to optimize the user experience of the foldable screen.
[0029] In related technologies, there are two main methods for detecting the opening and closing angle:
[0030] 1) Place a gyroscope sensor under the left half screen and the right half screen of the terminal. Calculate the angle between the left half screen and the right half screen using the two gyroscope sensors. This angle is the opening and closing angle of the folding screen.
[0031] 2) Sensors and magnetic components are installed in the cavity formed by the screen and the back cover. The sensors and magnetic components move relative to each other when the screen is folded. The sensors can detect continuously changing magnetic fields. The continuously changing magnetic fields detected by the sensors can establish a one-to-one correspondence with the continuous opening and closing angles of the screen when it is folded.
[0032] However, the problem with the first angle detection method mentioned above is that setting up a gyroscope sensor not only increases the cost of the device, but also increases the difficulty of device layout in the terminal and the complexity of the circuit.
[0033] The problems with the second angle detection method mentioned above are: setting up sensors and magnetic components increases the cost of the devices; the accuracy of the angle detection results is greatly affected by the magnetic field; and setting up magnetic components increases the difficulty of PCB (Printed Circuit Board) layout in the terminal.
[0034] Therefore, the above method suffers from poor flexibility in angle detection.
[0035] In view of this, this application provides an angle detection method. By obtaining the target hinge impedance value corresponding to the folding screen hinge of the terminal, which is used to open and close the folding screen, the current target opening and closing angle of the terminal's folding screen is obtained based on the target hinge impedance value. In this way, this application can directly obtain the current target opening and closing angle of the folding screen through the target hinge impedance value corresponding to the folding screen hinge, without having to set a gyroscope sensor in the terminal to detect the opening and closing angle of the folding screen, and without having to add a gyroscope sensor and related complex circuits in the terminal, reducing the difficulty of device layout, circuit complexity and device cost. This application also eliminates the need to set a sensor and magnetic components in the terminal to detect the opening and closing angle of the folding screen, reducing device cost, and eliminating the use of magnets can avoid the angle detection results being affected by magnetic fields. In addition, it can reduce the difficulty of PCB layout in the terminal. Therefore, this application improves the flexibility of folding screen opening and closing angle detection.
[0036] The following describes the implementation process of the angle detection method provided in the embodiments of this application in the context of the implementation environment of the embodiments of this application.
[0037] The angle detection method provided in this application embodiment can be applied to a terminal. The terminal may include... Figure 1 The diagram shows a foldable screen and a foldable hinge. The terminal can be various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle systems, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc.
[0038] In one embodiment, such as Figure 2 As shown, an angle detection method is provided, which is applied to... Figure 1 Taking a mid-range terminal as an example, the explanation includes the following steps:
[0039] Step 201: The terminal obtains the target hinge impedance value corresponding to the folding screen hinge of the terminal.
[0040] The terminal has a foldable screen that can rotate around the terminal's foldable screen hinge, which is used to open and close the terminal's foldable screen.
[0041] In this embodiment of the application, the folding method of the terminal's foldable screen includes, but is not limited to, folding inward left and right, folding outward left and right, or folding inward up and down. Therefore, the opening and closing method of the foldable screen can be opening and closing inward left and right, opening and closing outward left and right, or opening and closing inward up and down.
[0042] During terminal use, the terminal needs to detect the opening and closing angle of its folding screen and control screen switching, hovering, and other processes based on this opening and closing angle. In this embodiment, in order to detect the current target opening and closing angle of the terminal, the terminal first obtains the target hinge impedance value corresponding to the folding screen hinge of the terminal.
[0043] For example, the frequency at which the terminal acquires the target hinge impedance value corresponding to the folding screen hinge can be consistent with the frequency at which the terminal detects the opening and closing angle of its folding screen. The frequency at which the terminal needs to detect the opening and closing angle of its folding screen can be real-time detection, detection according to a preset time period, or detection of the opening and closing angle of the folding screen if the terminal detects that the folding screen hinge is rotating.
[0044] The target hinge impedance value corresponding to the folding screen hinge refers to the impedance of the folding screen hinge as a whole.
[0045] In one possible implementation, the terminal can apply a preset current to the folding screen hinge and measure the voltage corresponding to the folding screen hinge when the preset current is applied. Then, the terminal can use the voltage and the applied preset current to obtain the target hinge impedance value corresponding to the folding screen hinge.
[0046] In another possible implementation, a corresponding resistance detection circuit can also be set in the terminal to obtain the target hinge impedance value corresponding to the folding screen hinge.
[0047] Step 202: The terminal obtains the current target opening angle of the folding screen based on the target hinge impedance value.
[0048] Typically, the internal mechanical structure of the folding screen hinge in different manufacturers and models of terminals generally includes components such as gears, springs, and screws. When the folding screen hinge opens and closes to different angles, the state of each component inside the hinge also differs. For example, the gear meshing method and the spring compression amount may vary. These different states of the components result in different contact areas. If a current is applied to the folding screen hinge, the path of this current through the hinge will also differ at different opening angles. Therefore, if the folding screen hinge as a whole is considered as a resistor, its impedance will also vary.
[0049] For example, compared to a folding screen with an opening angle of 180° (i.e., the folding screen is fully unfolded), the state of the internal components of the folding screen hinge is necessarily different at the two opening angles (such as different gear meshing methods and different spring compression). The contact area of each component is different at the two opening angles. If the same current is applied to the folding screen hinge at both opening angles, the path of the current through the folding screen hinge from one side to the other is also different, thus the hinge impedance is also different.
[0050] Therefore, in this embodiment of the application, the hinge impedance value of the folding screen hinge at different opening and closing angles can be measured in advance, and the measured hinge impedance value of the folding screen hinge at different opening and closing angles can be applied to the angle detection process.
[0051] For example, the hinge impedance values of multiple terminals at different opening and closing angles can be measured in advance. In one possible implementation, each measured opening and closing angle and its corresponding hinge impedance value are used as a pair of training samples (e.g., each hinge impedance value is used as an input sample, and the opening and closing angle corresponding to the hinge impedance value is used as its supervision label) to train the initial prediction model, and the target prediction model is obtained after convergence.
[0052] In this way, during the angle detection process, the terminal can obtain the pre-trained target prediction model, and then input the target shaft impedance value obtained in step 201 into the target prediction model to obtain the current target opening angle of the terminal's folding screen.
[0053] In another possible implementation, a mapping relationship between the opening angle and the hinge impedance value can be established based on the hinge impedance value of the folding screen at different opening angles. The current target opening angle of the terminal's folding screen can be obtained based on the target hinge impedance value through this mapping relationship. The specific method by which the terminal obtains the current target opening angle of the terminal's folding screen based on the target hinge impedance value is not limited here.
[0054] The above embodiments obtain the target hinge impedance value corresponding to the folding screen hinge of the terminal. This folding screen hinge is used to open and close the folding screen. Then, based on the target hinge impedance value, the current target opening and closing angle of the terminal's folding screen is obtained. In this way, the current target opening and closing angle of the folding screen can be directly obtained through the target hinge impedance value corresponding to the folding screen hinge, without having to set a gyroscope sensor in the terminal to detect the opening and closing angle of the folding screen. This avoids the problems of increased difficulty in device layout and high circuit complexity caused by setting a gyroscope sensor in the terminal. The embodiments of this application do not require adding a gyroscope sensor and related complex circuits to the terminal, reducing the difficulty of device layout and improving the flexibility of folding screen opening and closing angle detection.
[0055] Furthermore, it should be noted that in traditional technologies, a gyroscope sensor is placed under each of the left and right halves of the screen to detect the opening and closing angle. While the gyroscope sensor measures the angle increment, the initial opening and closing angle is difficult to determine, leading to inaccurate results from the terminal detecting the folding screen's opening and closing angle. In contrast, this application's embodiment directly utilizes the target hinge impedance value corresponding to the folding screen's hinge to directly obtain the current target opening and closing angle of the folding screen, eliminating the need for a gyroscope sensor in the terminal. This also avoids the inaccurate opening and closing angle problem caused by the difficulty in determining the initial angle.
[0056] based on Figure 2 The illustrated embodiment can be found in [reference]. Figure 3 This embodiment describes the process by which the terminal obtains the target hinge impedance value corresponding to the folding screen hinge of the terminal. For example... Figure 3 As shown, step 201 includes Figure 3 Step 2011 shown:
[0057] Step 2011: The terminal uses the integrated power management circuit PMIC in the terminal to obtain the target shaft impedance value.
[0058] The PMIC (Power Management IC) in the terminal is an integrated circuit used for voltage conversion, voltage regulation, and battery management. The PMIC can power a variety of loads.
[0059] In this embodiment of the application, the output end of the PMIC can be connected to the hinge of the folding screen. For example, see [link to example]. Figure 4 , Figure 4 This is an exemplary schematic diagram of the connection between the PMIC and the folding screen hinge, as shown below. Figure 4 As shown, the output of the PMIC can be connected to either side of one end of the folding screen hinge (e.g., referred to as the first end). Figure 4 The image shows the connection to the upper right side of the folding screen hinge. For example, it can be connected to the screw on that side of the folding screen hinge. Then, connect the other side of the first end of the folding screen hinge (…). Figure 4 The upper left side of the folding screen hinge shown is grounded. In this way, the folding screen hinge is connected to the PMIC as a resistor, and the terminal can use the PMIC to obtain the target hinge impedance value.
[0060] In one possible implementation, the terminal can control the PMIC to apply a preset current to the folding screen hinge. The preset current can be a micro current. The micro current generates a voltage on the folding screen hinge according to Ohm's law. Then, the terminal can use a preset voltage detection circuit to collect the target voltage value of the voltage. Then, by dividing the target voltage value by the current value of the preset current, the target hinge impedance value is obtained, so as to realize the process of step 2011.
[0061] In another possible implementation, the terminal controls the PMIC to apply a preset current to the folding screen hinge, and uses the analog-to-digital converter (ADC) included in the PMIC to collect the target voltage value corresponding to the folding screen hinge. The terminal then uses the target voltage value and the current value of the preset current to obtain the target hinge impedance value, so as to realize the process of step 2011.
[0062] In other possible implementations, the terminal can also use any circuit in the terminal that includes an ADC function to acquire the target voltage value corresponding to the hinge of the folding screen.
[0063] It should be noted that, since the hinge structure is essentially parallel, in this embodiment, the output terminal of the PMIC can be connected to any region on either side of the folding screen hinge. Furthermore, considering the influence of the path length of the preset current applied by the PMIC to the folding screen hinge, preferably, the output terminal of the PMIC is connected at the 1 / 2 position of the folding screen hinge length, that is, the output terminal of the PMIC is connected to the middle region on either side of the folding screen hinge. This minimizes the path of the preset current applied by the PMIC to the folding screen hinge, resulting in the shortest path for the acquired target voltage value, which is beneficial for improving the accuracy of angle detection.
[0064] The angle detection method in this application improves the flexibility of angle detection by applying a preset current to the folding screen hinge and collecting the target voltage value corresponding to the folding screen hinge through the PMIC in the temporal part of the terminal without adding an additional sensor. The target hinge impedance value is then obtained through simple calculation.
[0065] In one embodiment, based on Figure 2 The illustrated embodiment can be found in [reference]. Figure 5 This embodiment relates to the process by which the terminal obtains the current target opening angle of the terminal's folding screen based on the target hinge impedance value.
[0066] like Figure 5 As shown, step 202 includes Figure 5 The steps shown in 2021:
[0067] Step 2021: The terminal determines the target opening and closing angle corresponding to the target shaft impedance value in a preset mapping relationship based on the target shaft impedance value.
[0068] The mapping relationship includes the correspondence between the impedance values of each shaft and the opening / closing angle.
[0069] In this embodiment, after the hinge impedance values of the folding screen of the terminal are measured in advance at different opening and closing angles, a mapping relationship is established that includes the correspondence between each hinge impedance value and its corresponding opening and closing angle. This mapping relationship can be in the form of a mapping relationship table.
[0070] For example, to improve the accuracy of angle detection, the hinge impedance values of the folding screen hinges of multiple other terminals of the same model as the terminal (which may also include the terminal in the embodiments of this application) can be measured at different opening and closing angles. In this way, for each hinge impedance value, the measured result may contain multiple corresponding opening and closing angles (for example, the opening and closing angles corresponding to the hinge impedance value measured by each terminal are different). The multiple opening and closing angles corresponding to the hinge impedance value can be averaged, and then the average opening and closing angle is stored in the mapping relationship as the opening and closing angle corresponding to the hinge impedance value to improve the accuracy of the mapping relationship.
[0071] In this way, during the angle detection process, after the terminal obtains the target hinge impedance value corresponding to the folding screen hinge of the terminal, it can find the target opening and closing angle corresponding to the target hinge impedance value in the mapping relationship, thus realizing the rapid detection of the opening and closing angle.
[0072] In some possible implementations, the terminal can also update the mapping relationship if the mapping relationship update conditions are met.
[0073] It is understandable that as the terminal ages, the hinge impedance of the folding screen will also change. That is, for the same opening angle, the hinge impedance of the folding screen corresponding to that opening angle when the terminal is manufactured will inevitably be different from the hinge impedance of the folding screen corresponding to that opening angle after the terminal ages. Therefore, the mapping relationship needs to be updated.
[0074] The conditions for updating this mapping relationship are at least related to the aging degree of the terminal. For example, the mapping relationships corresponding to different aging degrees of the terminal can be pre-configured. The mapping relationships corresponding to different aging degrees can be obtained by selecting a terminal with the corresponding aging degree and measuring the correspondence between its shaft impedance values and opening / closing angles.
[0075] For example, the aging level of a terminal can be quantified by the time it has been manufactured. For instance, a terminal that has just been manufactured corresponds to an aging level of 0, a terminal that has been manufactured for six months corresponds to an aging level of 1, a terminal that has been manufactured for one year corresponds to an aging level of 2, and so on.
[0076] This embodiment improves the accuracy of angle detection by updating the mapping relationship, taking into account the fact that the hinge impedance of the folding screen of the terminal will change as the terminal ages.
[0077] In one embodiment, based on Figure 2 In the embodiment shown, the angle detection method may further include the following steps after step 202:
[0078] In step A1, during the next angle detection process, the terminal obtains the angle change value of the foldable screen between two adjacent angle detections. The angle change value is obtained using the angular velocity sensor in the terminal.
[0079] An angular velocity sensor can also be installed in the terminal, which can detect changes in angle. In this embodiment, the shaft impedance detection and the angular velocity sensor can be used together.
[0080] In step A2, the terminal adds the target opening angle and the angle change value to obtain the opening angle of the folding screen corresponding to the next angle detection.
[0081] For example, in a certain angle detection process (e.g., referred to as the first angle detection), the terminal can use the angle detection method described in the above embodiments, that is, by obtaining the target hinge impedance value corresponding to the folding screen hinge of the terminal, and then using the target hinge impedance value to obtain the current target opening and closing angle of the terminal's folding screen. Then, in the next angle detection process, the terminal can obtain the change in the opening and closing angle of the terminal's folding screen between the first angle detection and the next angle detection through an angular velocity sensor, that is, the angle change value.
[0082] Then, the terminal adds the target opening and closing angle obtained from the first angle detection to the angle change value between the first angle detection and the next angle detection, and obtains the opening and closing angle of the folding screen corresponding to the next angle detection. This can also realize the detection of the opening and closing angle of the folding screen.
[0083] In one embodiment, an angle detection method is provided for a terminal, the method comprising:
[0084] Step a: Control the PMIC to apply a preset current to the folding screen hinge of the terminal, and use the ADC included in the PMIC to collect the target voltage value corresponding to the folding screen hinge of the terminal.
[0085] Step b: Using the target voltage value and the preset current value, obtain the target hinge impedance value corresponding to the folding screen hinge.
[0086] Step c: Determine the target opening / closing angle corresponding to the target shaft impedance value in the preset mapping relationship based on the target shaft impedance value.
[0087] The mapping relationship includes the correspondence between the impedance values of each shaft and the opening / closing angle.
[0088] Step d: Update the mapping relationship if the conditions for updating the mapping relationship are met.
[0089] The conditions for updating the mapping relationship are at least related to the aging level of the terminal.
[0090] Step e: During the next angle detection process, obtain the angle change value of the foldable screen between two adjacent angle detections.
[0091] The angle change value is obtained using the angular velocity sensor in the terminal.
[0092] Step f: Add the target opening angle and the angle change value to obtain the opening angle of the folding screen corresponding to the next angle detection.
[0093] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0094] Based on the same inventive concept, this application also provides an angle detection device for implementing the angle detection method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more angle detection device embodiments provided below can be found in the limitations of the angle detection method described above, and will not be repeated here.
[0095] In one embodiment, such as Figure 6 As shown, an angle detection device is provided, comprising:
[0096] The first acquisition module 601 is used to acquire the target hinge impedance value corresponding to the folding screen hinge of the terminal;
[0097] The second acquisition module 602 is used to acquire the current target opening angle of the folding screen of the terminal based on the target pivot impedance value.
[0098] The folding screen hinge is used to open and close the folding screen.
[0099] In one embodiment, the first acquisition module 601 includes:
[0100] The first acquisition unit is used to acquire the target shaft impedance value using the integrated power management circuit (PMIC) in the terminal.
[0101] In one embodiment, the first acquisition unit is specifically used to control the PMIC to apply a preset current to the folding screen hinge, and to use the analog-to-digital converter (ADC) included in the PMIC to acquire the target voltage value corresponding to the folding screen hinge; and to use the target voltage value and the current value of the preset current to acquire the target hinge impedance value.
[0102] In one embodiment, the second acquisition module 602 includes:
[0103] The second acquisition unit is used to determine the target opening angle corresponding to the target shaft impedance value in a preset mapping relationship based on the target shaft impedance value, wherein the mapping relationship includes the correspondence between each shaft impedance value and each opening angle.
[0104] In one embodiment, the second acquisition module 602 further includes:
[0105] An update unit is used to update the mapping relationship when the mapping relationship update conditions are met, wherein the mapping relationship update conditions are at least related to the aging degree of the terminal.
[0106] In one embodiment, the apparatus further includes:
[0107] The third acquisition module is used to acquire the angle change value of the foldable screen between two adjacent angle detections during the next angle detection process. The angle change value is acquired using the angular velocity sensor in the terminal.
[0108] The calculation module is used to add the target opening angle and the angle change value to obtain the opening angle of the folding screen corresponding to the next angle detection.
[0109] Each module in the aforementioned angle detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the terminal in hardware form or independent of it, or stored in the memory of the terminal in software form, so that the processor can call and execute the operations corresponding to each module.
[0110] In one embodiment, a terminal is provided, the internal structure of which can be shown as follows: Figure 7 As shown, the terminal internally includes a processor, memory, input / output interfaces (I / O), and communication interfaces. The terminal also includes a folding screen and a folding screen hinge. Figure 7 (Not shown). The processor, memory, and input / output interface are connected via a system bus, and the communication interface is also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The terminal's memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The terminal's database stores population monitoring data. The terminal's input / output interface is used for exchanging information between the processor and external devices. The terminal's communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements an angle detection method.
[0111] In one embodiment, the terminal is also equipped with a PMIC (Personal Microcontroller Interface). Figure 7 (Not shown), the output of the PMIC is connected to the hinge of the folding screen;
[0112] The PMIC is used to obtain the target hinge impedance value corresponding to the folding screen hinge under the control of the processor.
[0113] In one embodiment, the output of the PMIC is connected at a position half the length of the folding screen hinge along the length of the hinge.
[0114] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the terminal to which the present application is applied. A specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0115] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of an angle detection method.
[0116] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to execute an angle detection method.
[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0118] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0119] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0120] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An angle detection method, characterized in that, An application to a terminal including a foldable screen, wherein the folding hinge of the foldable screen is connected to the output of the terminal's integrated power management circuit (PMIC), comprising: Using the PMIC, the target hinge impedance value corresponding to the folding screen hinge of the terminal is obtained; Based on the target hinge impedance value, the current target opening angle of the terminal's folding screen is obtained; The folding screen hinge is used to open and close the folding screen. When the folding screen hinge opens and closes the folding screen at different opening and closing angles, the state of each component inside the folding screen hinge is also different. The different states of each component inside the folding screen hinge result in different contact areas of each component. If the folding screen hinge as a whole is regarded as a resistor, its hinge impedance is also different.
2. The method according to claim 1, characterized in that, Along the length of the folding screen hinge, the output terminal of the PMIC is connected at the position where the length of the folding screen hinge is 1 / 2.
3. The method according to claim 2, characterized in that, The step of obtaining the target shaft impedance value using the PMIC in the terminal includes: The PMIC is controlled to apply a preset current to the folding screen hinge, and the analog-to-digital converter (ADC) included in the PMIC is used to collect the target voltage value corresponding to the folding screen hinge. The target shaft impedance value is obtained using the target voltage value and the preset current value.
4. The method according to claim 1, characterized in that, The step of obtaining the current target opening angle of the terminal's folding screen based on the target hinge impedance value includes: Based on the target shaft impedance value, the target opening angle corresponding to the target shaft impedance value is determined in a preset mapping relationship, wherein the mapping relationship includes the correspondence between each shaft impedance value and each opening angle.
5. The method according to claim 4, characterized in that, The method further includes: The mapping relationship is updated when the mapping relationship update conditions are met, and the mapping relationship update conditions are at least related to the aging degree of the terminal.
6. The method according to claim 1, characterized in that, The method further includes: During the next angle detection process, the angle change value of the foldable screen between two adjacent angle detections is obtained, and the angle change value is obtained using the angular velocity sensor in the terminal; The target opening angle and the angle change value are added together to obtain the opening angle of the foldable screen corresponding to the next angle detection.
7. An angle detection device, characterized in that, An application to a terminal including a foldable screen, wherein the folding hinge of the foldable screen is connected to the output of the terminal's integrated power management circuit (PMIC), comprising: The first acquisition module is used to acquire the target hinge impedance value corresponding to the folding screen hinge of the terminal using the PMIC. The second acquisition module is used to acquire the current target opening angle of the folding screen of the terminal based on the target pivot impedance value; The folding screen hinge is used to open and close the folding screen. When the folding screen hinge opens and closes the folding screen at different opening and closing angles, the state of each component inside the folding screen hinge is also different. The different states of each component inside the folding screen hinge result in different contact areas of each component. If the folding screen hinge as a whole is regarded as a resistor, its hinge impedance is also different.
8. A terminal, characterized in that, The device includes a foldable screen, a foldable screen hinge, a memory, and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 6.
9. The terminal according to claim 8, characterized in that, The terminal is equipped with a PMIC, and the output of the PMIC is connected to the hinge of the folding screen. The PMIC is used to obtain the target hinge impedance value corresponding to the folding screen hinge under the control of the processor.
10. The terminal according to claim 9, characterized in that, Along the length of the folding screen hinge, the output terminal of the PMIC is connected at the position where the length of the folding screen hinge is 1 / 2.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.