Method and device for detecting folding angle of folding screen, equipment and storage medium

By obtaining the target temperature and target self-casual data of the electronic device and determining the target folding angle of the folding screen based on these data, the problem of inaccurate calculation of the folding angle in the prior art is solved, and high accuracy calculation under temperature changes is achieved.

CN119901201APending Publication Date: 2025-04-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311417427.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the prior art, using a touch screen to detect that the folding angle of the folding screen is easily affected by the external environment, resulting in inaccurate calculations. How to improve the accuracy of the folding angle calculation is an urgent problem.

Method used

By obtaining the target temperature and target self-casual data of the electronic device, the target folding angle of the folding screen is determined in combination with these data. This method improves the accuracy of the folding angle calculation when the temperature of the electronic device changes.

Benefits of technology

In the case of temperature changes, the accuracy of the calculation of folding angle is improved, and the calculation inaccuracy caused by external environmental influences is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119901201A_ABST
    Figure CN119901201A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and device for detecting the folding angle of a folding screen, equipment and a storage medium. According to the technical scheme, the electronic equipment with the folding screen obtains the target temperature and the target self-capacitance data at the current moment, and the target self-capacitance data is used for indicating the capacitance data of different channels to the ground in the folding screen; and determining a target folding angle of the folding screen at the current moment according to the target temperature and the target self-capacitance data. According to the method for detecting the folding angle of the folding screen, the target folding angle of the folding screen at the current moment is determined by the electronic equipment in combination with the target temperature and the target self-capacitance data, and the method can improve the accuracy of folding angle calculation under the condition that the temperature of the electronic equipment changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and relate to but are not limited to a method and apparatus, device, and storage medium for detecting the folding angle of a folding screen. Background Art

[0002] With the development of screen technology, more and more manufacturers are launching foldable screen electronic devices. Foldable screen electronic devices include a foldable screen and a middle frame. The middle frame supports the foldable screen and can switch the foldable screen electronic device between the folded state and the unfolded state. In the application process of foldable screen electronic devices, it is usually necessary to control the display state, operation method, etc. of the foldable screen electronic device according to its folding angle to match the user's usage habits, which requires real-time detection of the folding angle of the foldable screen.

[0003] In the current related technologies, most solutions for calculating the folding angle of the folding screen are implemented using sensors. However, the use of sensors increases costs, so research is being conducted on using touch screens as an angle detection solution.

[0004] However, the solution of using the touch screen to collect data to calculate the folding angle of the folding screen is easily affected by the external environment, resulting in the problem of inaccurate calculation of the folding angle using capacitance. Therefore, how to improve the accuracy of the folding angle calculation of the folding screen is an urgent problem to be solved. Summary of the invention

[0005] In view of this, the folding angle detection method, device, equipment, and storage medium provided in the embodiments of the present application can improve the accuracy of folding angle calculation when the temperature of the electronic device changes. The folding angle detection method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:

[0006] A method for detecting the folding angle of a folding screen provided in an embodiment of the present application is applied to an electronic device with a folding screen, and the method comprises: obtaining a target temperature and target self-capacitance data of the electronic device at a current moment, the target self-capacitance data being used to indicate capacitance data of different channels in the folding screen to ground; determining a target folding angle of the folding screen at the current moment based on the target temperature and the target self-capacitance data.

[0007] A device for detecting the folding angle of a folding screen provided in an embodiment of the present application is applied to an electronic device with a folding screen, and the device includes: an acquisition module, used to obtain a target temperature and a target self-capacitance data of the electronic device at a current moment, the target self-capacitance data being used to indicate capacitance data of different channels in the folding screen to ground; and a determination module, used to determine the target folding angle of the folding screen at the current moment based on the target temperature and the target self-capacitance data.

[0008] The computer device provided in an embodiment of the present application includes a memory and a processor, the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method for detecting the folding angle of the folding screen described in the embodiment of the present application is implemented.

[0009] The computer-readable storage medium provided in the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method for detecting the folding angle of the folding screen provided in the embodiment of the present application is implemented.

[0010] In the folding angle detection method, device, computer equipment and computer-readable storage medium of the folding screen provided in the embodiments of the present application, the electronic device combines the target temperature and target self-capacitance data to determine the target folding angle of the folding screen at the current moment. This method can improve the accuracy of folding angle calculation when the temperature of the electronic device changes, and solve the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0012] Figure 1 An exemplary structural diagram of a foldable screen electronic device provided by one embodiment of the present application;

[0013] Figure 2 A schematic diagram of a system architecture of an electronic device provided by an embodiment of the present application;

[0014] Figure 3 A schematic diagram of an implementation flow of a method for detecting a folding angle of a folding screen provided in one embodiment of the present application;

[0015] Figure 4 A schematic diagram of an implementation flow of a method for detecting a folding angle of a folding screen provided in another embodiment of the present application;

[0016] Figure 5 A schematic diagram of an implementation flow of a method for detecting a folding angle of a folding screen provided in yet another embodiment of the present application;

[0017] Figure 6 A schematic diagram of an implementation flow of a method for detecting a folding angle of a folding screen provided in yet another embodiment of the present application;

[0018] Figure 7 A schematic diagram of the structure of a touch screen system and a terminal system provided in one embodiment of the present application;

[0019] Figure 8A structural schematic diagram of a folding angle detection device for a folding screen provided by one embodiment of the present application;

[0020] Fig. 9 A structural schematic diagram of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0023] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0024] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0025] With the development of screen technology, more and more manufacturers are launching foldable screen electronic devices. These foldable screen electronic devices can be folded once when operated by the user with one hand, and can be unfolded into two or three folds when placed on the table, giving users a wider and more shocking screen visual experience.

[0026] Usually, folding screens use capacitive touch screens. Unlike resistive touch screens, capacitive touch screens do not rely on finger pressure to create and change voltage values ​​to detect coordinates. Capacitive touch screens work through any object that holds an electric charge, including human skin. Capacitive touch screens are made of materials such as alloys or indium tin oxides, and the charge is stored in a very fine micro-electrostatic network. When a finger clicks the screen, a small amount of current is absorbed from the contact point, causing a voltage drop in the corner electrode, and the purpose of touch is achieved by inducing the weak current of the human body.

[0027] In addition, the capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the capacitance data collected from the transmitting channel and the receiving channel to the ground is self-capacitance data, and the data collected from the transmitting channel and the receiving channel is mutual capacitance data. Currently, mutual capacitance data is used to determine whether the user's finger is in a pressed, moved, or lifted state. Self-capacitance data is used to determine other auxiliary functions, such as proximity sensing functions.

[0028] It should also be understood that the working principle of the capacitive touch screen is to trigger a scanning signal of a certain frequency at a fixed time, detect whether an object is pressed on the surface of the touch screen of the terminal device, and calculate the coordinates based on the capacitive signal for reporting. Specifically, the touch screen recognizes the coordinates of the object by calculating the current original capacitance value and the difference between it and the reference capacitance value. By calculating the area of ​​the capacitance difference, the peak value of the area is found to determine whether it is within a certain preset reporting threshold, thereby sending the reporting point coordinates from the terminal system. Among them, the capacitive sensing function of the touch screen uses the capacitive sensing principle of the touch screen to determine whether the object contacts the touch screen and then reports the state of the object, which mainly refers to the state of objects such as fingers and contact pens, which is mainly divided into pressing and lifting and movement after pressing, etc. The reported data includes: coordinate data, and event status.

[0029] During the application of foldable screen electronic devices, it is usually necessary to control the display state, operation method, etc. of the foldable screen electronic device according to its folding angle to match the user's usage habits. This requires real-time detection of the folding angle of the foldable screen.

[0030] In the current related technology, taking the folding screen including the first screen and the second screen as an example, the main screen of the folding screen uses a touch screen as a sensor to collect capacitance data changes, so as to calculate the folding angle of the first screen and the second screen according to the capacitance change, such as Figure 1 Shown is an exemplary structural diagram of the first screen, the second screen, and the folding angle.

[0031] That is to say, most current solutions for calculating the folding angle of folding screens use the capacitance data collected when the screen is 180 degrees as the baseline data, and then collect the capacitance data at different angles as the original data, and calculate the difference between the baseline data and the original data, and then filter and calculate the folding angle data. Since the use of sensor solutions to calculate the folding angle will increase costs, the use of touch screens as angle detection solutions is being studied.

[0032] However, the solution of using the touch screen to collect data to calculate the folding angle of the folding screen is easily affected by the external environment, resulting in the problem of inaccurate calculation of the folding angle using capacitance. Therefore, how to improve the accuracy of the folding angle calculation of the folding screen is an urgent problem to be solved.

[0033] In view of this, an embodiment of the present application provides a method for detecting the folding angle of a folding screen, which is applied to an electronic device with a folding screen, and the method specifically includes: obtaining the target temperature and target self-capacitance data of the electronic device at the current moment, and the target self-capacitance data is used to indicate the capacitance data of different channels in the folding screen to the ground; and then determining the target folding angle of the folding screen at the current moment according to the target temperature and the target self-capacitance data. In the method for detecting the folding angle of the folding screen, the electronic device combines the target temperature and the target self-capacitance data to determine the target folding angle of the folding screen at the current moment, which can improve the accuracy of the folding angle calculation when the temperature of the electronic device changes.

[0034] It should be understood that the electronic devices involved in the embodiments of the present application may be mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, smart screens, artificial intelligence (AI) speakers, headphones, terminals in industrial control, terminals in self-driving, terminals in remote medical surgery, terminals in smart grids, terminals in transportation safety, terminals in smart cities, terminals in smart homes, personal digital assistants (PDAs), and other electronic devices with foldable screens, and the specific embodiments of the present application are not limited to this.

[0035] For example, Figure 2 A schematic diagram of the system architecture of an electronic device provided in one embodiment of the present application. Figure 2 As shown, the electronic device includes components such as a processor 210, a memory 220, a transceiver 230, a display unit 240, an input unit 250, a sensor 260, an audio circuit 270, and a power module 280.

[0036] The processor 210 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 220, and calling data stored in the memory 220, the processor 210 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0037] The memory 220 can be used to store software programs and modules. The processor 210 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 220. The memory 220 mainly includes a program storage area and a data storage area, wherein the program storage area can store operating devices, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, phone book, etc.), etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0038] The transceiver 230 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 230 can be one or more devices integrating at least one communication processing module, for example, an antenna and a baseband processor are integrated into the transceiver 230, or an antenna and a modem processor are integrated into the transceiver 230, etc., which are not limited here.

[0039] The display unit 240 may be used to display information input by the user or information provided to the user and various menus of the electronic device. The display unit 240 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0040] The input unit 250 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 250 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 250 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 250 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.

[0041] The electronic device may also include at least one sensor 260, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which can be used for applications to identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the electronic device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, a fingerprint sensor, etc., they will not be described in detail here.

[0042] The audio circuit 270 may include a speaker and a microphone, and may provide an audio interface between the user and the electronic device. The audio circuit 270 may transmit the received audio data to the speaker after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 270 and converted into audio data, and then the audio data is output to the processor 210 for processing, and then sent to another electronic device through the video circuit, or the audio data is output to the memory 220 for further processing.

[0043] The electronic device also includes a power module 280 for supplying power to various components. Optionally, the power module 280 can be logically connected to the processor 210 through a power management device, so that the power management device can manage charging, discharging, power consumption and other functions.

[0044] Although not shown, the electronic device may further include a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the present embodiment.

[0045] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0046] In order to make the purpose and technical solution of this application clearer and more intuitive, the following will be combined with the accompanying drawings and embodiments to describe in detail the detection method, device, equipment, and storage medium of the folding angle of the folding screen provided in the embodiments of this application. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.

[0047] Please refer to Figure 3 , is a schematic diagram of the implementation flow of a method for detecting the folding angle of a folding screen provided by an embodiment of the present application. The method can be applied to Figure 1 The foldable screen electronic device or Figure 2 The electronic equipment shown, such as Figure 3 As shown, the method may include the following steps 301 and 302:

[0048] Step 301, obtaining the target temperature and target self-capacitance data of the electronic device at the current moment, where the target self-capacitance data is used to indicate the capacitance data of different channels in the folding screen to the ground.

[0049] It should be understood that the target temperature of the electronic device at the current moment may be obtained by adding a temperature sensor in the electronic device, or may be obtained by using a temperature sensor built into the electronic device, and this application does not specifically limit this.

[0050] It should also be understood that the capacitance data of different channels in the folding screen to the ground is called self-capacitance data. For example, a capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the capacitance data collected from the transmitting channel and the receiving channel to the ground in some embodiments is self-capacitance data.

[0051] In some embodiments, the electronic device obtains the capacitance data of different channels in the folding screen to the ground at the current moment as the target self-capacitance data.

[0052] Step 302, determining the target folding angle of the folding screen at the current moment according to the target temperature and the target self-capacitance data.

[0053] In some embodiments, the electronic device can determine the target folding angle of the folding screen at the current moment based on the target temperature and the target self-capacitance data, combined with the mapping relationship between the temperature, self-capacitance data and the folding angle of the folding screen preset in the electronic device; it can also determine the target folding angle of the folding screen at the current moment based on the target self-capacitance data, combined with the mapping relationship between the self-capacitance data and the folding angle, and the mapping relationship between the temperature and the compensation angle; or it can be other ways, which are not limited to the present application.

[0054] It should be noted that the folding angle of the folding screen mentioned in the embodiment of the present application is based on Figure 1 The folding angle between the first screen and the second screen shown in the figure is used as an example for explanation. Of course, it can also be a folding angle in other directions, and this application does not limit this.

[0055] In this embodiment, the electronic device with a folding screen first obtains the target temperature and target self-capacitance data at the current moment, and then determines the target folding angle of the folding screen at the current moment based on the target temperature and target self-capacitance data. In this method, the electronic device combines the target temperature and target self-capacitance data to determine the target folding angle of the folding screen at the current moment, which can improve the accuracy of the folding angle calculation when the temperature of the electronic device changes.

[0056] Based on the above embodiments, Figure 4 A schematic diagram of the implementation flow of a method for detecting the folding angle of a folding screen provided in another embodiment of the present application is shown in FIG. Figure 4 As shown, the method may include the following steps 401 to 403:

[0057] Step 401, obtaining the target temperature and target self-capacitance data of the electronic device at the current moment, where the target self-capacitance data is used to indicate the capacitance data of different channels in the folding screen to the ground.

[0058] It should be understood that the target temperature of the electronic device at the current moment may be obtained by adding a temperature sensor in the electronic device, or may be obtained by using a temperature sensor built into the electronic device, and this application does not specifically limit this.

[0059] It should also be understood that, taking the folding screen as a capacitive touch screen as an example, the capacitive sensing of a capacitive touch screen is generally divided into two types, one is single-ended sensing, also known as self-capacitance, where both the horizontal and vertical electrodes are driven by a single-ended sensing method, i.e., the driving circuits for a row and a column are the same. The other is mutual capacitance, where one axis is driven by a set of alternating current (AC) signals, and the response passing through the touch screen is sensed by electrodes on other axes, called transverse sensing, because the electric field is transmitted from one electrode group (such as a row) to another electrode group (such as a column) in a transverse manner through the dielectric layer of the upper panel.

[0060] Among them, for mutual capacitance, its transmitting end and receiving end are different and cross vertically. Indium tin oxide (ITO) is used to make horizontal electrodes and vertical electrodes. The difference between it and the capacitor is that the place where the two groups of electrodes cross will form a capacitor, that is, the two groups of electrodes constitute the two poles of the capacitor respectively. When the finger touches the capacitive screen, it affects the coupling between the two electrodes near the touch point, thereby changing the capacitance between the two electrodes. When detecting the size of the mutual capacitance, the horizontal electrodes send out excitation signals in turn, and all the vertical electrodes receive the signals at the same time, so that the capacitance value of all the intersection points of the horizontal and vertical electrodes can be obtained, that is, the capacitance size of the entire two-dimensional plane of the touch screen. For self-capacitance, its transmitting end and receiving end are the same. ITO is used to make horizontal and vertical electrode arrays on the glass surface, and they form capacitors with the ground respectively. When the finger touches the capacitive screen, the capacitance of the finger will be superimposed on the capacitance of the screen body, increasing the capacitance of the screen body.

[0061] It should be noted that the embodiments of the present application are mainly described by taking the collection of self-capacitance data of the folding screen, that is, self-capacitance data as an example.

[0062] In some embodiments, the electronic device obtains the capacitance data of different channels in the folding screen to the ground at the current moment as the target self-capacitance data.

[0063] Step 402, searching for a target mapping relationship corresponding to the target temperature from the mapping relationship between the preset temperature, the self-capacitance data, and the folding angle of the folding screen.

[0064] In some embodiments, the mapping relationship between the preset temperature, the self-capacitance data, and the folding angle of the folding screen includes a mapping relationship of a table and a mapping relationship of a function.

[0065] The mapping relationship in the table is used to indicate a one-to-one correspondence between the temperature, the self-capacitance data, and the folding angle of the folding screen. The mapping relationship in the table can be determined by collecting the current folding angle of the folding screen, the corresponding temperature, and the self-capacitance data.

[0066] Optionally, the self-capacitance data at different temperatures can be the average value of the self-capacitance data of multiple channels in the folding screen, or the self-capacitance data of the folding channel of the folding screen, or the difference information between the folding channel of the folding screen and the adjacent channels. This application does not limit this specifically.

[0067] Exemplarily, the current folding angle of the folding screen ranges from 0 degrees to 180 degrees. Taking the temperatures of 25 degrees, 0 degrees and minus 20 degrees as examples, the folding angle and self-capacitance data at different temperatures are collected, and the following table 1 can be obtained:

[0068] Table 1

[0069]

[0070] It should be noted that the error of the folding angle obtained according to the mapping relationship in the table is about 10 degrees.

[0071] It should be understood that the mapping relationship of the function is used to indicate the functional relationship between the folding angle of the folding screen and the self-capacitance data at different temperatures. The functional relationship between the folding angle of the folding screen and the self-capacitance data is obtained by solving the equation based on the folding angle and self-capacitance data collected at different temperatures.

[0072] For example, at different temperatures, the functional relationship between the folding angle of the folding screen and the self-capacitance data may be the following mapping relationship:

[0073] Angle = T1 * func1 (cap);

[0074] Angle = T2*func2(cap).

[0075] Among them, T1 and T2 are different temperature data, func1 and func2 represent different function mapping relationships, cap is the current self-capacitance data, and Angle is the output folding angle of the folding screen.

[0076] In one possible implementation, the electronic device may search for a target mapping relationship corresponding to the target temperature from a mapping relationship in a table among preset temperatures, self-capacitance data, and the folding angle of the folding screen; or search for a target mapping relationship corresponding to the target temperature from a mapping relationship in a function among preset temperatures, self-capacitance data, and the folding angle of the folding screen.

[0077] Step 403, when the target mapping relationship exists, the target folding angle is obtained according to the target self-contained data and the target mapping relationship.

[0078] In some embodiments, when the electronic device determines that a target mapping relationship exists, when the mapping relationship among the preset temperature, self-capacitance data, and the folding angle of the folding screen is a tabular mapping relationship, the electronic device finds the corresponding folding angle in the target mapping relationship according to the target self-capacitance data to obtain the target folding angle; when the mapping relationship among the preset temperature, self-capacitance data, and the folding angle of the folding screen is a functional mapping relationship, the electronic device calculates the target folding angle according to the functional relationship between the target self-capacitance data and the target mapping relationship.

[0079] In a possible implementation, when the target mapping relationship does not exist, the electronic device obtains the target folding angle according to the preset mapping relationship between the self-capacitance data and the folding angle, and the target self-capacitance data. That is to say, the electronic device also presets a default mapping relationship between the self-capacitance data and the folding angle, and when there is no target mapping relationship corresponding to the target temperature in the mapping relationship between the preset temperature, the self-capacitance data, and the folding angle of the folding screen, the target folding angle is obtained based on the preset default mapping relationship between the self-capacitance data and the folding angle, and the target self-capacitance data.

[0080] In this embodiment, the electronic device with a folding screen first obtains the target temperature and target self-capacitance data at the current moment, and then searches for a target mapping relationship corresponding to the target temperature from the mapping relationship between the preset temperature, self-capacitance data, and the folding angle of the folding screen, and then obtains the target folding angle according to the target self-capacitance data and the target mapping relationship when the target mapping relationship exists. In this method, the electronic device is preset with a mapping relationship between the temperature, self-capacitance data, and the folding angle of the folding screen, and the target folding angle of the folding screen at the current moment is determined according to the mapping relationship combined with the target temperature and the target self-capacitance data, which can solve the problem of inaccurate calculation of the folding angle by the folding screen through the self-capacitance data collected by the touch screen when the temperature changes sharply or at low or high temperatures.

[0081] Based on the above embodiments, Figure 5 A schematic diagram of the implementation flow of a method for detecting the folding angle of a folding screen provided in another embodiment of the present application is shown in FIG. Figure 5 As shown, the method may include the following steps 501 to 504:

[0082] Step 501, obtaining the target temperature and target self-capacitance data of the electronic device at the current moment, where the target self-capacitance data is used to indicate the capacitance data of different channels in the folding screen to the ground.

[0083] It should be understood that the target temperature of the electronic device at the current moment may be obtained by adding a temperature sensor in the electronic device, or may be obtained by using a temperature sensor built into the electronic device, and this application does not specifically limit this.

[0084] It should also be understood that the capacitance data of different channels in the folding screen to the ground is called self-capacitance data. For example, a capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the capacitance data collected from the transmitting channel and the receiving channel to the ground in some embodiments is self-capacitance data.

[0085] In some embodiments, the electronic device obtains the capacitance data of different channels in the folding screen to the ground at the current moment as the target self-capacitance data.

[0086] Step 502, determining a first folding angle according to a preset mapping relationship between self-capacity data and folding angles, and target self-capacity data.

[0087] It should be understood that the mapping relationship between the preset self-capacitance data and the folding angle is obtained based on a plurality of self-capacitance data and corresponding folding angles collected at the same temperature.

[0088] In some embodiments, a mapping relationship between self-capacitance data and folding angle is preset in the electronic device, and the mapping relationship can be obtained by solving an equation. For example, assuming that there is a certain functional relationship between the self-capacitance data and the folding angle, such as a quadratic functional relationship, three sets of self-capacitance data and folding angles can be collected, brought into the quadratic functional relationship to solve the equation, and the functional relationship can be obtained. The mapping relationship can also be a table of self-capacitance data and folding angles collected in real time, and a mapping relationship of the table can be obtained, or other methods can be used, and this application does not limit this.

[0089] In some embodiments, when the mapping relationship between the preset self-capacitance data and the folding angle is a mapping relationship of a table, the electronic device searches the table according to the target self-capacitance data to obtain a first folding angle; when the mapping relationship between the preset self-capacitance data and the folding angle is a mapping relationship of a function, the electronic device calculates according to the target self-capacitance data and the function relationship to obtain the first folding angle.

[0090] Step 503, determining a target compensation angle according to a preset mapping relationship between temperature and compensation angle and a target temperature.

[0091] In some embodiments, at different temperatures, there is angle compensation data for the folding angle of the folding screen, that is, there is a mapping relationship between the temperature and the compensation angle, for example, it can be a mapping relationship in a table, as shown in Table 2 below:

[0092] Table 2

[0093] temperature 25 degrees 0 degrees -20 degrees Compensation Angle 10 degrees 5 degrees 10 degrees

[0094] Of course, other forms of mapping relationships are also possible, and this application does not specifically limit this.

[0095] In a possible implementation, the electronic device searches a preset mapping relationship between temperature and compensation angle according to the target temperature to obtain a corresponding target compensation angle.

[0096] Step 504: determine a target folding angle according to the sum of the first folding angle and the target compensation angle.

[0097] In some embodiments, by querying the mapping relationship between the preset temperature and the compensation angle, if the target compensation angle at the current target temperature exists, the target folding angle is determined according to the sum of the first folding angle and the target compensation angle.

[0098] Exemplarily, the first folding angle is 50 degrees, the target compensation angle is 10 degrees, and the target folding angle is 60 degrees.

[0099] In this embodiment, the electronic device first obtains the target temperature and target self-capacitance data at the current moment, and then determines the first folding angle according to the mapping relationship between the preset self-capacitance data and the folding angle, and the target self-capacitance data, and at the same time determines the target compensation angle according to the mapping relationship between the preset temperature and the compensation angle, and the target temperature, and finally determines the target folding angle according to the sum of the first folding angle and the target compensation angle. In this method, the electronic device performs compensation processing on the folding angle at the corresponding temperature according to the mapping relationship between the temperature and the compensation angle, which can improve the accuracy of the folding angle calculation when the temperature of the electronic device changes.

[0100] Based on the above embodiments, Figure 6 A schematic diagram of the implementation flow of a method for detecting the folding angle of a folding screen provided in another embodiment of the present application is shown in FIG. Figure 6 As shown, the method may include the following steps 601 to 604:

[0101] Step 601, obtaining the target temperature and target self-capacitance data of the electronic device at the current moment, where the target self-capacitance data is used to indicate the capacitance data of different channels in the folding screen to the ground.

[0102] It should be understood that the target temperature of the electronic device at the current moment may be obtained by adding a temperature sensor in the electronic device, or may be obtained by using a temperature sensor built into the electronic device, and this application does not specifically limit this.

[0103] It should also be understood that the capacitance data of different channels in the folding screen to the ground is called self-capacitance data. For example, a capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the capacitance data collected from the transmitting channel and the receiving channel to the ground in some embodiments is self-capacitance data.

[0104] In some embodiments, the electronic device obtains the capacitance data of different channels in the folding screen to the ground at the current moment as the target self-capacitance data.

[0105] Step 602, determining a second folding angle according to a preset mapping relationship between self-capacity data and a folding angle, and target self-capacity data.

[0106] It should be understood that the mapping relationship between the preset self-capacitance data and the folding angle is obtained based on a plurality of self-capacitance data and corresponding folding angles collected at the same temperature.

[0107] In some embodiments, a mapping relationship between self-capacitance data and folding angles is preset in the electronic device. The mapping relationship can be obtained by solving an equation, or by listing the self-capacitance data and folding angles collected in real time into a table to obtain a mapping relationship in the table. It can also be other methods, which are not specifically limited in the present application.

[0108] In some embodiments, when the mapping relationship between the preset self-capacitance data and the folding angle is a table mapping relationship, the electronic device searches the table according to the target self-capacitance data to obtain the second folding angle; when the mapping relationship between the preset self-capacitance data and the folding angle is a function mapping relationship, the electronic device calculates according to the target self-capacitance data and the function relationship to obtain the second folding angle.

[0109] Step 603, determining whether the target temperature is a preset temperature.

[0110] It should be understood that the preset temperature is some specific temperatures or a temperature range stored in advance in the electronic device.

[0111] Step 604: when the target temperature is the preset temperature, determine the target folding angle according to the sum of the second folding angle and the preset compensation angle.

[0112] In some embodiments, when the target temperature is a preset temperature, the target folding angle is obtained by summing the preset compensation angle in the electronic device and the second folding angle. In other words, a default value of the compensation angle may be stored in the electronic device, and when the target temperature is a preset temperature, the target folding angle is determined based on the default value of the compensation angle.

[0113] In this embodiment, the electronic device first obtains the target temperature and target self-capacitance data at the current moment, and then determines the second folding angle according to the mapping relationship between the preset self-capacitance data and the folding angle, and the target self-capacitance data, and then determines whether the target temperature is the preset temperature. When the target temperature is the preset temperature, the target folding angle is determined according to the sum of the second folding angle and the preset compensation angle. In this method, when the target temperature is the preset temperature, the electronic device performs compensation processing on the folding angle based on the preset compensation angle, which can improve the accuracy of the folding angle calculation when the temperature of the electronic device changes.

[0114] It should be noted that the folding screen in the above embodiment, that is, the touch screen, can also be called a touch screen system. The touch screen system can have its own memory and processor to perform data calculations and can also communicate with the terminal system. For example, please refer to Figure 7 , is a structural diagram of a touch screen system and a terminal system provided by an embodiment of the present application, wherein the touch screen system triggers an interrupt signal through the terminal pin INT, and then obtains data in the touch screen system through the terminal system; the terminal system sets the touch screen system through the serial bus interface (inter-integrated circuit, I2C) serial peripheral interface (serial peripheral interface, SPI) interface.

[0115] In some embodiments, the terminal device system is an Android system, for example, the Android system is divided into different software layers, such as upper layer applications and touch screen drivers. The upper layer applications are responsible for determining the current system status and then issuing different instructions; the touch screen driver is responsible for receiving the instructions issued by the layer application and communicating data with the touch device of the hardware device, that is, the touch screen system.

[0116] In summary, in the method for detecting the folding angle of the folding screen in the embodiment of the present application, the electronic device obtains the system temperature and transmits the temperature information to the touch screen system at a fixed time. The touch screen system further determines the target folding angle based on the current temperature information and the mapping relationship between different preset self-capacitance ranges and folding angles at different preset temperatures, thereby solving the problem of inaccurate calculation of the folding angle by the touch screen collecting self-capacitance data when the temperature changes sharply or at low or high temperatures.

[0117] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0118] Based on the foregoing embodiments, an embodiment of the present application provides a device for detecting the folding angle of a folding screen, which includes the modules included and the units included in the modules, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0119] Figure 8 A schematic diagram of a structure of a folding angle detection device for a folding screen provided in one embodiment of the present application, such as Figure 8 As shown, the folding angle detection device 800 of the folding screen includes an acquisition module 801 and a determination module 802, wherein:

[0120] The acquisition module 801 is used to obtain the target temperature and target self-capacitance data of the electronic device at the current moment, and the target self-capacitance data is used to indicate the capacitance data of different channels in the folding screen to the ground; the determination module 802 is used to determine the target folding angle of the folding screen at the current moment based on the target temperature and the target self-capacitance data.

[0121] In some embodiments, the determination module 802 is specifically used to: search for a target mapping relationship corresponding to the target temperature from the mapping relationship between a preset temperature, self-capacitance data, and the folding angle of the folding screen; and when the target mapping relationship exists, obtain the target folding angle according to the target self-capacitance data and the target mapping relationship.

[0122] In some embodiments, the mapping relationship between the preset temperature, self-capacitance data and the folding angle of the folding screen includes a mapping relationship of a table and a mapping relationship of a function; the mapping relationship of the table is used to indicate a one-to-one correspondence between the temperature, self-capacitance data and the folding angle of the folding screen; the mapping relationship of the function is used to indicate the functional relationship between the folding angle of the folding screen and the self-capacitance data at different temperatures.

[0123] In some embodiments, the functional relationship between the folding angle of the folding screen and the self-capacitance data is obtained by solving an equation based on the folding angle and self-capacitance data collected at different temperatures.

[0124] In some embodiments, the determination module 802 is further used to: when the target mapping relationship does not exist, obtain the target folding angle according to a preset mapping relationship between self-capacity data and folding angle, and the target self-capacity data.

[0125] In some embodiments, the determination module 802 is specifically used to: determine a first folding angle according to a mapping relationship between preset self-capacitance data and folding angles, and the target self-capacitance data; determine a target compensation angle according to a mapping relationship between preset temperature and compensation angles, and the target temperature; determine the target folding angle according to the sum of the first folding angle and the target compensation angle.

[0126] In some embodiments, the mapping relationship between the preset self-capacitance data and the folding angle is obtained based on a plurality of self-capacitance data and corresponding folding angles collected at the same temperature.

[0127] In some embodiments, the determination module 802 is specifically used to: determine the second folding angle according to the mapping relationship between the preset self-capacitance data and the folding angle, and the target self-capacitance data; determine whether the target temperature is the preset temperature; when the target temperature is the preset temperature, determine the target folding angle according to the sum of the second folding angle and the preset compensation angle.

[0128] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0129] It should be noted that in the embodiments of this application Figure 8 The division of modules in the folding angle detection device of the folding screen shown is schematic, which is only a logical functional division. There may be other division methods in actual implementation. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or they can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It can also be implemented in the form of a combination of software and hardware.

[0130] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0131] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0132] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0133] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0134] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, the resource pooling device provided in the present application can be implemented in the form of a computer program. The computer program can be Fig. 9The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.

[0136] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0137] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0138] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0139] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0140] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0141] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0142] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0143] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0144] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0145] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0146] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0147] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0148] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for detecting the folding angle of a folding screen, characterized in that: Applied to an electronic device with a folding screen, the method comprises: Acquire a target temperature and target self-capacitance data of the electronic device at a current moment, wherein the target self-capacitance data is used to indicate capacitance data of different channels in the folding screen to ground; A target folding angle of the folding screen at a current moment is determined according to the target temperature and the target self-capacitance data.

2. The method according to claim 1, characterized in that The determining, according to the target temperature and the target self-capacitance data, a target folding angle of the folding screen at the current moment includes: Searching for a target mapping relationship corresponding to the target temperature from a mapping relationship among a preset temperature, self-capacitance data, and a folding angle of the folding screen; In the case where the target mapping relationship exists, the target folding angle is obtained according to the target self-capacitance data and the target mapping relationship.

3. The method according to claim 2, characterized in that The mapping relationship between the preset temperature, the self-capacitance data and the folding angle of the folding screen includes a mapping relationship of a table and a mapping relationship of a function; The mapping relationship in the table is used to indicate a one-to-one correspondence between temperature, self-capacitance data, and the folding angle of the folding screen; The mapping relationship of the function is used to indicate the functional relationship between the folding angle of the folding screen and the self-capacitance data at different temperatures.

4. The method according to claim 3, characterized in that The functional relationship between the folding angle of the folding screen and the self-capacitance data is obtained by solving an equation based on the folding angle and self-capacitance data collected at different temperatures.

5. The method according to claim 2, characterized in that: The method further comprises: In the case that the target mapping relationship does not exist, the target folding angle is obtained according to a preset mapping relationship between the self-capacity data and the folding angle, and the target self-capacity data.

6. The method according to claim 1, characterized in that The determining, according to the target temperature and the target self-capacitance data, a target folding angle of the folding screen at the current moment includes: Determining a first folding angle according to a preset mapping relationship between the self-capacity data and the folding angle, and the target self-capacity data; Determining a target compensation angle according to a mapping relationship between a preset temperature and a compensation angle and the target temperature; The target folding angle is determined according to the sum of the first folding angle and the target compensation angle.

7. The method according to claim 6, characterized in that The mapping relationship between the preset self-capacitance data and the folding angle is obtained based on a plurality of self-capacitance data and corresponding folding angles collected at the same temperature.

8. The method according to claim 1, characterized in that The determining, according to the target temperature and the target self-capacitance data, a target folding angle of the folding screen at the current moment includes: Determining a second folding angle according to a preset mapping relationship between the self-capacity data and the folding angle, and the target self-capacity data; Determining whether the target temperature is a preset temperature; When the target temperature is the preset temperature, the target folding angle is determined according to the sum of the second folding angle and a preset compensation angle.

9. A device for detecting the folding angle of a folding screen, characterized in that: Applicable to an electronic device with a folding screen, the device comprises: An acquisition module, used to acquire a target temperature and a target self-capacitance data of the electronic device at a current moment, wherein the target self-capacitance data is used to indicate capacitance data of different channels in the folding screen to ground; A determination module is used to determine a target folding angle of the folding screen at a current moment according to the target temperature and the target self-capacitance data.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.