Screen opening and closing state detection method and device, electronic equipment and storage medium

By installing the sensor on the first screen of the foldable screen, the distance from the sensor to the second screen body is determined, and the problem of high space and high cost of detecting devices in existing technologies can be solved. Combining status detection.

CN119356971APending Publication Date: 2025-01-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310913090.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-24
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The method used in the prior art to detect the screen opening and closing state has the problem that the detection device takes up a large space and is costly.

Method used

By installing one or more sensors on the first screen body, such as a distance sensor, a specific absorption rate sensor or a camera, the distance from the sensor to the second screen body is determined, thereby determining the opening and closing status of the screen.

Benefits of technology

It achieves efficient detection of the screen opening and closing status, avoids space and cost problems caused by adding detection devices, and improves detection accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356971A_ABST
    Figure CN119356971A_ABST
Patent Text Reader

Abstract

The invention relates to a screen opening and closing state detection method and device, electronic equipment and a storage medium, the screen opening and closing state detection method comprises the steps that one or more pieces of detection information are determined through one or more sensors on a first screen body, and the detection information is used for representing the distance from each sensor to a second screen body; and determining opening and closing state information between the first screen body and the second screen body based on the one or more pieces of detection information. The detection information is determined through the sensor on the first screen body, the opening and closing state information between the first screen body and the second screen body can be determined according to the detection information, and therefore corresponding control over screen display is achieved according to the opening and closing state information. The detection information is obtained through one or more sensors arranged on the first screen body, and the problems that the occupied space is large and the cost is high due to the fact that detection devices are additionally arranged are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic devices, and in particular to a method and device for detecting a screen opening and closing state, an electronic device, and a storage medium. Background Art

[0002] In recent years, with the development of flexible display technology, foldable screens have been widely used in electronic devices such as mobile phones, so that electronic devices have more diverse display forms and enrich user experience. In the process of using foldable screens, it is usually necessary to detect the opening and closing state of the screen, so as to adjust the display state of each part of the screen accordingly.

[0003] However, the detection method using related technologies to detect the opening and closing status of the screen has the problem that the detection device occupies a large space and is costly. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a method, device, electronic device and storage medium for detecting the opening and closing status of a screen.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for detecting a screen opening and closing state is provided, wherein the screen includes a first screen body and a second screen body, and the first screen body and the second screen body can be folded and opened relative to each other, and the method for detecting the screen opening and closing state includes:

[0006] Determine one or more detection information through one or more sensors on the first screen, where the detection information is used to characterize the distance from each of the sensors to the second screen;

[0007] Based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body is determined.

[0008] In some embodiments of the present disclosure, the one or more sensors include a distance sensor, and determining one or more detection information by using the one or more sensors on the first screen includes:

[0009] The detection information corresponding to the distance sensor is determined based on a first detection signal and a second detection signal, wherein the first detection signal is a detection signal sent by the distance sensor along a preset direction, and the second detection signal is a detection signal after the first detection signal received by the distance sensor is reflected by the second screen.

[0010] In some embodiments of the present disclosure, determining the detection information corresponding to the distance sensor based on the first detection signal and the second detection signal includes:

[0011] Determine a time difference between the distance sensor sending the first detection signal and receiving the second detection signal;

[0012] The detection information is determined according to the time difference.

[0013] In some embodiments of the present disclosure, the first detection signal includes one of an ultrasonic signal, an infrared signal, and a laser signal, or a combination of at least two of them.

[0014] In some embodiments of the present disclosure, determining the opening and closing state information between the first screen body and the second screen body based on the one or more detection information includes:

[0015] Determine, according to the time difference and first preset configuration information, first angle information corresponding to the time difference, wherein the first preset configuration information is used to characterize a correspondence between the time difference and the angle information;

[0016] Determining, according to the first angle information, the opening and closing state information between the first screen body and the second screen body;

[0017] or,

[0018] The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes:

[0019] Determine a first distance between the distance sensor and the second screen in the preset direction according to the time difference;

[0020] Determine, according to the first distance and second preset configuration information, second angle information corresponding to the first distance, where the second preset configuration information is used to characterize a correspondence between distance and angle information;

[0021] Determining, according to the second angle information, information about the opening and closing state between the first screen body and the second screen body;

[0022] or,

[0023] The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes:

[0024] Determine a first distance between the distance sensor and the second screen in the preset direction according to the time difference;

[0025] Determine the opening and closing angle between the first screen and the second screen according to the first distance, a preset second distance, and a preset angle, wherein the preset angle is the angle between the preset direction and the first screen, the second distance is the vertical distance between the distance sensor and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis;

[0026] The opening and closing state information is determined according to the opening and closing angle.

[0027] In some embodiments of the present disclosure, the one or more sensors include a specific absorption rate sensor, and determining one or more detection information through the one or more sensors on the first screen includes:

[0028] Determine, according to capacitance information detected by the specific absorption rate sensor, a third distance between the specific absorption rate sensor and the second screen in a preset direction;

[0029] The detection information is determined according to the third distance.

[0030] In some embodiments of the present disclosure, determining the opening and closing state information between the first screen body and the second screen body based on the one or more detection information includes:

[0031] Determine, according to the third distance and third preset configuration information, third angle information corresponding to the third distance, wherein the third preset configuration information is used to characterize a correspondence between the distance and the angle information;

[0032] Determining, according to the third angle information, information about the opening and closing state between the first screen body and the second screen body;

[0033] or,

[0034] The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes:

[0035] Determine the opening and closing angle between the first screen and the second screen according to the third distance, a preset fourth distance, and a preset angle, wherein the preset angle is the angle between the preset direction and the first screen, the fourth distance is the vertical distance between the specific absorption rate sensor and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis;

[0036] The opening and closing state information is determined according to the opening and closing angle.

[0037] In some embodiments of the present disclosure, the one or more sensors include a camera, and determining one or more detection information through the one or more sensors on the first screen includes:

[0038] Determine a fifth distance between the camera and the second screen in a preset direction according to distance information in the image information captured by the camera;

[0039] The detection information is determined according to the fifth distance.

[0040] In some embodiments of the present disclosure, determining the opening and closing state information between the first screen body and the second screen body based on the one or more detection information includes:

[0041] Determine, according to the fifth distance and fourth preset configuration information, fourth angle information corresponding to the fifth distance, wherein the fourth preset configuration information is used to characterize a correspondence between distance and angle information;

[0042] Determining, according to the fourth angle information, information about the opening and closing state between the first screen body and the second screen body;

[0043] or,

[0044] Determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body, includes:

[0045] Determine the opening and closing angle between the first screen and the second screen according to the fifth distance, the preset sixth distance and the preset angle, the preset angle being the angle between the preset direction and the first screen, the sixth distance being the vertical distance between the camera and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis;

[0046] The opening and closing state information is determined according to the opening and closing angle.

[0047] In some embodiments of the present disclosure, the camera is an AON camera.

[0048] In some embodiments of the present disclosure, before determining the opening and closing state information between the first screen body and the second screen body based on the one or more detection information, the screen opening and closing state detection method further includes:

[0049] Determine whether there is an obstacle between the first screen and the second screen;

[0050] When it is determined that there is no obstacle between the first screen and the second screen, the opening and closing state information between the first screen and the second screen is determined based on the one or more detection information.

[0051] In some embodiments of the present disclosure, the one or more sensors include a specific absorption rate sensor, and determining whether there is an obstacle between the first screen and the second screen includes:

[0052] determining whether there is an obstacle between the first screen body and the second screen body according to capacitance information detected by the specific absorption rate sensor;

[0053] The one or more sensors include a camera, and the determining whether there is an obstacle between the first screen and the second screen includes:

[0054] According to the image information captured by the camera, it is determined whether there is an obstacle between the first screen and the second screen.

[0055] According to a second aspect of an embodiment of the present disclosure, a device for detecting a screen opening and closing state is provided, wherein the screen comprises a first screen body and a second screen body, wherein the first screen body and the second screen body can be folded and opened relative to each other, and the device for detecting a screen opening and closing state comprises:

[0056] A first determination module, the first determination module is used to determine one or more detection information through one or more sensors on the first screen, the detection information is used to characterize the distance from each of the sensors to the second screen;

[0057] A second determining module, the second determining module is used to determine the opening and closing state information between the first screen body and the second screen body based on the one or more detection information.

[0058] In some embodiments of the present disclosure, the screen opening and closing state detection device further includes:

[0059] A third determination module, the third determination module is used to determine whether there is an obstacle between the first screen and the second screen;

[0060] A fourth determining module is used to determine the opening and closing state information between the first screen and the second screen based on the one or more detection information when it is determined that there is no obstacle between the first screen and the second screen.

[0061] In some embodiments of the present disclosure, the sensor includes one or a combination of a distance sensor, a specific absorption rate sensor, and a camera.

[0062] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising a screen, the screen comprising a first screen body and a second screen body, the first screen body and the second screen body being capable of being folded and unfolded relative to each other, and the electronic device further comprising:

[0063] processor;

[0064] a memory for storing processor-executable instructions;

[0065] Wherein, the processor is configured to:

[0066] Determine one or more detection information through one or more sensors on the first screen, where the detection information is used to characterize the distance from each of the sensors to the second screen;

[0067] Based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body is determined.

[0068] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a screen opening and closing state detection method. The screen opening and closing state detection method includes:

[0069] Determine one or more detection information by one or more sensors on the first screen, wherein the detection information is used to characterize the distance from each of the sensors to the second screen;

[0070] Based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body is determined.

[0071] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by determining the detection information used to characterize the distance between the sensor and the second screen through the sensor on the first screen, the opening and closing state information between the first screen and the second screen can be determined according to the detection information, thereby realizing corresponding control of the screen display according to the opening and closing state information. The acquisition of detection information is completed by one or more sensors on the first screen, thereby avoiding the problem of large occupied space and high cost caused by adding detection devices.

[0072] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0074] Figure 1 The figure is a flow chart of a method for detecting a screen opening and closing state according to an exemplary embodiment.

[0075] Figure 2 is a schematic diagram of a screen and a sensor according to an exemplary embodiment.

[0076] Figure 3 is a schematic diagram of a screen and a distance sensor according to an exemplary embodiment.

[0077] Figure 4 The present invention is a flowchart showing how to determine one or more detection information by using one or more sensors on a first screen according to an exemplary embodiment.

[0078] Figure 5 The present invention is a flowchart showing a method of determining detection information corresponding to a distance sensor based on a first detection signal and a second detection signal according to an exemplary embodiment.

[0079] Figure 6 The present invention is a flowchart showing how to determine the opening and closing status information between a first screen and a second screen based on one or more detection information according to an exemplary embodiment.

[0080] Figure 7 It is a flowchart showing how to determine the opening and closing state information between a first screen and a second screen based on one or more detection information according to another exemplary embodiment.

[0081] Figure 8 It is a flowchart showing how to determine the opening and closing state information between a first screen and a second screen based on one or more detection information according to another exemplary embodiment.

[0082] Fig. 9 is a schematic diagram of a screen and a specific absorption rate sensor according to an exemplary embodiment.

[0083] Fig.10 is a flow chart showing how to determine one or more detection information by using one or more sensors on a first screen according to another exemplary embodiment.

[0084] Fig.11 It is a flowchart showing how to determine the opening and closing state information between a first screen and a second screen based on one or more detection information according to another exemplary embodiment.

[0085] Fig.12 It is a flowchart showing how to determine the opening and closing state information between a first screen and a second screen based on one or more detection information according to another exemplary embodiment.

[0086] Fig.13 is a schematic diagram of a screen and a camera according to an exemplary embodiment.

[0087] Fig.14 is a flow chart showing how to determine one or more detection information by using one or more sensors on a first screen according to another exemplary embodiment.

[0088] Fig.15 It is a flowchart showing how to determine the opening and closing state information between a first screen and a second screen based on one or more detection information according to another exemplary embodiment.

[0089] Fig.16 It is a flowchart showing how to determine the opening and closing state information between a first screen and a second screen based on one or more detection information according to another exemplary embodiment.

[0090] Fig.17 The invention is a flowchart of a method for detecting a screen opening and closing state before determining the opening and closing state information between a first screen body and a second screen body based on one or more detection information according to an exemplary embodiment.

[0091] Fig.18 The figure is a flow chart of a method for detecting a screen opening and closing state according to another exemplary embodiment.

[0092] Fig.19 It is a block diagram of a device for detecting a screen opening and closing state according to an exemplary embodiment.

[0093] Fig. 20 is a block diagram of an electronic device according to an exemplary embodiment.

[0094] In the figure:

[0095] 10-first screen; 20-second screen; 30-rotation axis; 40-sensor; 41-distance sensor; 42-absorption rate sensor; 43-camera; 50-first determination module; 60-second determination module; 101-processing component; 102-memory; 103-power component; 104-multimedia component; 105-audio component; 106-input / output interface; 107-sensor component; 108-communication component; 109-processor. DETAILED DESCRIPTION

[0096] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0097] With the development of flexible display technology, flexible displays such as curved screens and foldable screens have been widely used in electronic devices such as mobile phones, so that electronic devices have more diverse display forms and enrich the user experience. In the use of the foldable screen, it is necessary to detect the opening and closing state of the screen, adjust the display state of the inner and outer screens according to whether the screen is folded or unfolded, and realize different display functions according to the different unfolding angles. In the related art, an acceleration gyro sensor (a+G-sensor) is usually set behind the screen to judge the opening and closing angle by the initial position and acceleration of the screen, or a digital Hall sensor is set to detect the position to judge the opening and closing state. The two sensors can also be used in combination to judge the opening and closing state of the foldable screen.

[0098] However, the above detection method detects the opening and closing status of the screen. Due to the resonance, temperature drift, and easy integration error of the acceleration and gyroscope sensor, the digital Hall sensor has high hardware cost and is limited by the structure. There are problems such as large detection error, low detection reliability, large space occupied by the detection device and high cost.

[0099] Based on this, the exemplary embodiment of the present disclosure provides a method for detecting the opening and closing state of a screen, wherein the sensor on the first screen determines the detection information used to characterize the distance between the sensor and the second screen, and the opening and closing state information between the first screen and the second screen can be determined according to the detection information, thereby realizing corresponding control of the screen display according to the opening and closing state information. The acquisition of the detection information is completed by one or more sensors on the first screen, thereby avoiding the problem of large occupied space and high cost caused by adding detection devices.

[0100] In an exemplary embodiment, a method for detecting the opening and closing state of a screen is provided. First, the structure of the screen is introduced. Figure 2 As shown, the screen includes a first screen body 10 and a second screen body 20, and the first screen body 10 and the second screen body 20 can be relatively folded and unfolded around a rotation axis 30. Figure 1 As shown, the screen opening and closing state detection method includes:

[0101] S100: Determine one or more detection information through one or more sensors on the first screen, where the detection information is used to characterize the distance from each sensor to the second screen.

[0102] In step S100, the screen is as follows Figure 2 As shown, the corresponding detection information can be determined by one or more sensors 40 on the first screen 10, such as Figure 3 , Fig. 9 , Fig.13As shown, the sensor 40 may be, for example, a specific absorption rate sensor 42, a distance sensor 41, a camera 43, etc., and the detection information is used to characterize the distance between each sensor 40 and the second screen 20. The distance between the sensor 40 and the second screen 20 may be, for example, the shortest distance between the sensor 40 and the second screen 20, or the distance between the sensor 40 and the second screen 20 along a specific direction. It can be understood that the acquired detection information is the distance from the screen where the sensor 40 is located to another screen. When multiple sensors 40 are provided and located on different screens, for each sensor 40, the screen where the sensor 40 is located is the first screen 10, and the other screen outside the screen where the sensor 40 is located is the second screen 20, that is, for different sensors 40, the first screen 10 may be the same or different.

[0103] S200: Determine the opening and closing state information between the first screen and the second screen based on one or more detection information.

[0104] In step S200, based on the detection information, the opening and closing state information between the first screen body 10 and the second screen body 20 is determined, that is, the opening and closing state information between the first screen body 10 and the second screen body 20 is obtained according to the detection information used to characterize the distance between the sensor 40 and the second screen body 20. The opening and closing state information can be, for example, an angle value, or an angle level representing a range of different angle values, and the screen display can be controlled accordingly according to the opening and closing state information such as the angle value or the angle level.

[0105] When there are multiple sensors 40, the opening and closing state information can be determined for each of the multiple detection information obtained by the multiple sensors 40, and the multiple opening and closing state information can be integrated by, for example, taking an average value to obtain more accurate opening and closing state information.

[0106] In this embodiment, the sensor 40 on the first screen 10 determines the detection information used to characterize the distance between the sensor 40 and the second screen 20, and the opening and closing state information between the first screen 10 and the second screen 20 can be determined according to the detection information, so as to realize the corresponding control of the screen display according to the opening and closing state information. The acquisition of detection information is completed by one or more sensors 40 on the first screen 10, avoiding the problem of large occupied space and high cost caused by adding detection devices. In addition, the final opening and closing state information is determined based on multiple detection information, which reduces the detection error rate and improves the detection reliability.

[0107] In some embodiments, Figure 3As shown, the one or more sensors 40 include a distance sensor 41, which can be, for example, an ultrasonic sensor, an infrared sensor, a laser sensor, etc., which are arranged on the first screen 10. The ultrasonic sensor can also be used to turn off the screen display during a call, and the laser sensor can also be used to obtain the distance information of the object being photographed when taking pictures. Figure 4 As shown, one or more detection information is determined by one or more sensors 40 on the first screen 10, including:

[0108] S330. Determine detection information corresponding to the distance sensor based on the first detection signal and the second detection signal, where the first detection signal is a detection signal sent by the distance sensor along a preset direction, and the second detection signal is a detection signal after the first detection signal received by the distance sensor is reflected by the second screen.

[0109] In step S330, based on the first detection signal emitted by the distance sensor 41 to the second screen 20 and the second detection signal received by the distance sensor 41 after being reflected by the second screen 20, detection information characterizing the distance from the distance sensor 41 to the second screen 20 can be determined.

[0110] For example, reference Figure 4 As shown, before determining the detection signal corresponding to the distance sensor 41 based on the first detection signal and the second detection signal, the step of determining one or more detection information by the distance sensor 41 may also include:

[0111] S310, controlling the distance sensor to send a first detection signal along a preset direction.

[0112] In step S310, the distance sensor 41 is controlled to send a first detection signal along a preset direction. The preset direction is set at a certain angle with the first screen body 10, and the first detection signal can be reflected when it contacts other objects.

[0113] S320: Acquire a second detection signal received by the distance sensor after being reflected by the second screen.

[0114] In step S320 , the first detection signal is reflected by the second screen body 20 after reaching the second screen body 20 , and the first detection signal reflected by the second screen body 20 forms a second detection signal, which is received by the distance sensor 41 .

[0115] In this embodiment, when the sensor 40 includes a distance sensor 41 for detecting the distance, the detection information corresponding to the distance sensor 41 can be determined according to the first detection signal and the second detection signal, thereby realizing the determination of the detection information and providing a basis for determining the opening and closing state information, so that the corresponding control of the screen display can be realized according to the opening and closing state information. The distance sensor 41 is a sensor 40 for realizing other functions on the first screen body 10, which does not lead to an increase in occupied space and cost, and the distance sensor 41 has high detection accuracy, reduces the detection error rate, and improves the detection reliability.

[0116] In some embodiments, reference Figure 5 As shown, based on the first detection signal and the second detection signal, the detection information corresponding to the distance sensor 41 is determined, including:

[0117] S331 , determining a time difference between when the distance sensor sends a first detection signal and when it receives a second detection signal.

[0118] In step S331, the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal is first determined. The time difference is the sum of the time it takes for the first detection signal to reach the second screen 20 after being sent and the time it takes for the second detection signal formed after the first detection signal is reflected by the second screen 20 to reach the distance sensor 41.

[0119] S332. Determine detection information based on the time difference.

[0120] In step S332, after determining the time difference, for example, the obtained time difference can be directly used as detection information, and the transmission distance of the detection signal can be determined based on the time difference and the transmission speed of the detection signal, and the transmission distance or the distance level of the transmission distance can be used as detection information, thereby determining the detection information used to characterize the distance from the sensor 40 to the second screen 20.

[0121] In this embodiment, according to the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, the time length from the detection signal being sent by the sensor 40 to being received by the sensor 40 after being sent can be obtained, and the detection information used to characterize the distance from the sensor 40 to the second screen 20 can be determined according to the known information such as the time difference and the transmission speed of the detection signal, that is, the detection information is determined by the first detection signal and the second detection signal, which provides a basis for determining the opening and closing state information, so that the corresponding control of the screen display can be realized according to the opening and closing state information. The distance sensor 41 has high accuracy in obtaining the time difference, reduces the detection error rate, and improves the detection reliability.

[0122] In some embodiments, the first detection signal includes one of an ultrasonic signal, an infrared signal, a laser signal, or a combination of at least two of them.

[0123] Among them, when the first detection signal is an ultrasonic signal, the distance sensor 41 can be, for example, an ultrasonic sensor such as a mobile phone microphone, which detects the distance between the object to be measured and the ultrasonic sensor by sending and receiving ultrasonic signals. When the first detection signal is an infrared signal, the distance sensor 41 can be, for example, an infrared sensor, which can detect the distance between the object to be measured and the infrared sensor by sending and receiving infrared signals. When the first detection signal is a laser signal, the distance sensor 41 can be, for example, a time of flight (TOF) sensor, which can detect the distance between the object to be measured and the TOF sensor by sending and receiving laser signals.

[0124] In this embodiment, the first detection signal includes one or a combination of at least two of an ultrasonic signal, an infrared signal, and a laser signal sent by the distance sensor 41. The ultrasonic signal, the infrared signal, and the laser signal can all be reflected by the second screen 20, and the signal transmission speed after reflection is basically the same as that before reflection, and can all be used as the first detection signal to determine the detection information. Ultrasonic signals, infrared signals, and laser signals have strong anti-interference capabilities, which reduces the detection error rate and improves the detection reliability. The distance sensors 41 that can send ultrasonic signals, infrared signals, and laser signals are all conventional devices on the screen, avoiding the increase in occupied space and cost caused by adding other detection devices.

[0125] As mentioned above, the detection information may be the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, the signal transmission distance or distance level determined according to the time difference, etc. In some embodiments, the determined time difference is directly used as the detection information. Figure 6 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0126] S401. Determine first angle information corresponding to the time difference according to the time difference and first preset configuration information, where the first preset configuration information is used to characterize a correspondence between the time difference and the angle information.

[0127] In step S401, based on the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, and the first preset configuration information used to characterize the correspondence between the time difference and the angle information, the first angle information corresponding to the time difference can be determined, and the first angle information can be, for example, an angle value. The first preset configuration information can be, for example, in the form of a table, a mapping, a formula, etc., and the first preset configuration information can be obtained by, for example, analyzing experimental data measured experimentally. Exemplarily, the angle information corresponding to the 1S time difference in the first preset configuration information is 30°, then when the time difference is 1S, it can be determined that the first angle information corresponding to the time difference is 30°.

[0128] S402: Determine the opening and closing state information between the first screen body and the second screen body according to the first angle information.

[0129] In step S402, after determining the first angle information according to the time difference and the first preset configuration information, the opening and closing state information between the first screen 10 and the second screen 20 is determined according to the first angle information. For example, the angle value of the first angle information can be directly determined as the opening and closing state information, and the angle level to which the angle value belongs can also be determined according to the angle value of the first angle information, and the angle level can be used as the opening and closing state information.

[0130] In this embodiment, based on the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, and the first preset configuration information used to characterize the correspondence between the time difference and the angle information, the first angle information corresponding to the time difference can be determined, and the opening and closing state information can be determined based on the first angle information, thereby realizing the conversion between the detection information and the opening and closing state information, so that the corresponding control of the screen display can be realized according to the opening and closing state information.

[0131] In other embodiments, the determined time difference is also directly used as the detection information, referring to Figure 7 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0132] S411. Determine a first distance between the distance sensor and the second screen in a preset direction according to the time difference.

[0133] In step S411 , a first distance between the distance sensor 41 and the second screen 20 in a preset direction is determined according to a time difference between the distance sensor 41 sending a first detection signal and receiving a second detection signal.

[0134] S412: Determine second angle information corresponding to the first distance according to the first distance and second preset configuration information, where the second preset configuration information is used to characterize a correspondence between the distance and the angle information.

[0135] In step S412, after determining the first distance between the distance sensor 41 and the second screen body 20 in the preset direction, the second angle information corresponding to the first distance is determined based on the first distance and the second preset configuration information used to characterize the correspondence between the distance and the angle information. The second angle information can be, for example, an angle value. The second preset configuration information can be, for example, in the form of a table, a mapping, a formula, etc. The second preset configuration information can be obtained by, for example, analyzing experimental data measured experimentally. Exemplarily, the angle information corresponding to the first distance of 10 cm in the second preset configuration information is 30°. When the first distance is 10 cm, it can be determined that the second angle information corresponding to the first distance is 30°.

[0136] S413, determining the opening and closing state information between the first screen body and the second screen body according to the second angle information;

[0137] In step S413, after determining the second angle information according to the first distance and the second preset configuration information, the opening and closing status information between the first screen 10 and the second screen 20 is determined according to the second angle information. For example, the angle value of the second angle information can be directly determined as the opening and closing status information, and the angle level to which the angle value belongs can be determined according to the angle value of the second angle information, and the angle level can be used as the opening and closing status information.

[0138] In this embodiment, the first distance between the distance sensor 41 and the second screen 20 in a preset direction is determined based on the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, and the second angle information corresponding to the first distance can be determined based on the time difference and the second preset configuration information used to characterize the correspondence between the first distance and the angle information, and the opening and closing state information is determined based on the second angle information, thereby realizing the conversion between the detection information and the opening and closing state information, so that the corresponding control of the screen display can be realized according to the opening and closing state information.

[0139] In other embodiments, the determined time difference is also directly used as the detection information, referring to Figure 8 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0140] S421. Determine a first distance between the distance sensor and the second screen in a preset direction according to the time difference.

[0141] In step S411 , a first distance between the distance sensor 41 and the second screen 20 in a preset direction is determined according to a time difference between the distance sensor 41 sending a first detection signal and receiving a second detection signal.

[0142] S422. Determine the opening and closing angle between the first screen and the second screen according to the first distance, the preset second distance and the preset angle. The preset angle is the angle between the preset direction and the first screen. The second distance is the vertical distance between the distance sensor and the rotation axis. The first screen and the second screen rotate relative to the rotation axis.

[0143] In step S422, refer to Figure 2 As shown, the preset angle is the angle between the preset direction and the first screen body 10, the first screen body 10 and the second screen body 20 can be relatively folded and opened around the rotation axis 30, and the second distance is the vertical distance between the distance sensor 41 and the rotation axis 30. After the first distance is determined, the first distance, the preset second distance and the preset angle are all determined values, that is, the lengths of two sides of the triangle and the angle of an included angle are determined, and the lengths of other sides of the triangle and the angles of other angles can be determined, so the opening and closing angle between the first screen body 10 and the second screen body 20 can be determined.

[0144] S423: Determine the opening and closing state information according to the opening and closing angle.

[0145] In step S423, after determining the opening and closing angle according to the first distance, the preset second distance and the preset angle, the opening and closing status information between the first screen and the second screen is determined according to the opening and closing angle. For example, the angle value of the opening and closing angle can be directly determined as the opening and closing status information, and the angle level to which the angle value belongs can be determined according to the angle value of the opening and closing angle, and the angle level can be used as the opening and closing status information.

[0146] In this embodiment, the first distance between the distance sensor 41 and the second screen 20 in a preset direction is determined based on the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, and the corresponding opening and closing angle can be determined based on the first distance, the preset second distance and the preset angle, and the opening and closing status information is determined based on the opening and closing angle, thereby realizing the conversion between the detection information and the opening and closing status information, so that the corresponding control of the screen display can be realized according to the opening and closing status information.

[0147] It should be noted that in addition to directly using the time difference between the distance sensor sending the first detection signal and receiving the second detection signal as detection information, other types of detection information can also determine the first distance between the sensor 40 and the second screen 20 to perform the above-mentioned steps of determining the opening and closing state information based on the first distance.

[0148] In some embodiments, Fig. 9As shown, the one or more sensors 40 include a specific absorption rate sensor 42 (Specific Absorption Rate Sensor, SAR Sensor), which is disposed on the first screen 10. The specific absorption rate sensor 42 can also be used to reduce the transmission power of the mobile phone when the user approaches the first screen 10 to control the radiation amount. Fig.10 As shown, one or more detection information is determined by one or more sensors 40 on the first screen 10, including:

[0149] S520: Determine a third distance between the specific absorption rate sensor and the second screen in a preset direction according to capacitance information detected by the specific absorption rate sensor.

[0150] In step S520, the capacitance information detected by the specific absorption rate sensor may be, for example, a relative change parameter of the antenna capacitance value, and the capacitance information changes according to the change of the distance between the specific absorption rate sensor 42 and the second screen body 20. Since the capacitance information changes according to the change of the distance between the specific absorption rate sensor 42 and the second screen body 20, the third distance corresponding to the capacitance information may be determined according to the capacitance information.

[0151] S530: Determine detection information according to the third distance.

[0152] In step S530, after determining the third distance between the specific absorption rate sensor 42 and the second screen body 20, the detection information characterizing the distance from the specific absorption rate sensor 42 to the second screen body 20 is determined. For example, the obtained third distance can be directly used as the detection information, and the distance level of the third distance can also be used as the detection information.

[0153] For example, reference Fig.10 As shown, before determining the third distance between the specific absorption rate sensor 42 and the second screen body 20 in a preset direction according to the capacitance information detected by the specific absorption rate sensor 42, the step of determining one or more detection information by the specific absorption rate sensor 42 may also include:

[0154] S510: Acquire capacitance information detected by a specific absorption rate sensor.

[0155] In this embodiment, when the sensor 40 includes a specific absorption rate sensor 42, the third distance between the specific absorption rate sensor 42 and the second screen body 20 can be determined based on the capacitance information detected by the specific absorption rate sensor, and the detection information can be determined based on the third distance, thereby realizing the determination of the detection information and providing a basis for determining the opening and closing state information, so that the corresponding control of the screen display can be realized based on the opening and closing state information. The specific absorption rate sensor 42 is a sensor 40 for realizing other functions on the first screen body 10, which does not lead to an increase in occupied space and cost, and the specific absorption rate sensor 42 has high detection accuracy, reduces the detection error rate, and improves the detection reliability.

[0156] As mentioned above, the detection information may be the third distance determined according to the capacitance information of the specific absorption rate sensor 42 or the distance level of the third distance. In some embodiments, the determined third distance is directly used as the detection information. Fig.11 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0157] S601: Determine third angle information corresponding to a third distance according to a third distance and third preset configuration information, where the third preset configuration information is used to characterize a correspondence between the distance and the angle information.

[0158] In step S601, after determining the third distance between the specific absorption rate sensor 42 and the second screen body 20, the third angle information corresponding to the third distance is determined according to the third distance and the third preset configuration information used to characterize the correspondence between the distance and the angle information. The third angle information can be, for example, an angle value. The third preset configuration information can be, for example, in the form of a table, a mapping, a formula, etc. The third preset configuration information can be obtained by, for example, analyzing experimental data measured experimentally. Exemplarily, the angle information corresponding to the third distance of 10 cm in the third preset configuration information is 30°. When the third distance is 10 cm, it can be determined that the third angle information corresponding to the third distance is 30°.

[0159] S602: Determine the opening and closing state information between the first screen body and the second screen body according to the third angle information;

[0160] In step S602, after determining the third angle information according to the third distance and the third preset configuration information, the opening and closing state information between the first screen 10 and the second screen 20 is determined according to the third angle information. For example, the angle value of the third angle information can be directly determined as the opening and closing state information, and the angle level to which the angle value belongs can be determined according to the angle value of the third angle information, and the angle level can be used as the opening and closing state information.

[0161] In this embodiment, the third distance is determined based on the capacitance information of the specific absorption rate sensor 42, and based on the third distance and the third preset configuration information used to characterize the correspondence between the third distance and the angle information, the third angle information corresponding to the third distance can be determined, and the opening and closing state information is determined based on the third angle information, thereby realizing the conversion between the detection information and the opening and closing state information, so that the corresponding control of the screen display can be realized according to the opening and closing state information.

[0162] In other embodiments, the determined third distance is also directly used as the detection information, referring to Fig.12 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0163] S611. Determine the opening and closing angle between the first screen and the second screen according to the third distance, the preset third distance and the preset angle, the preset angle is the angle between the preset direction and the first screen, the third distance is the vertical distance between the specific absorption rate sensor and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis.

[0164] In step S611, refer to Figure 2 As shown, the preset angle is the angle between the preset direction and the first screen body 10, the first screen body 10 and the second screen body 20 can be relatively folded and opened around the rotation axis 30, and the fourth distance is the vertical distance between the specific absorption rate sensor 42 and the rotation axis 30. After the third distance is determined, the third distance, the preset fourth distance and the preset angle are all determined values, that is, the lengths of two sides of the triangle and the angle of an included angle are determined, and the lengths of other sides of the triangle and the angles of other angles can be determined, so the opening and closing angle between the first screen body 10 and the second screen body 20 can be determined.

[0165] S612: Determine the opening and closing state information according to the opening and closing angle.

[0166] In step S612, after determining the opening and closing angle according to the third distance, the preset fourth distance and the preset angle, the opening and closing status information between the first screen body 10 and the second screen body 20 is determined according to the opening and closing angle. For example, the angle value of the opening and closing angle can be directly determined as the opening and closing status information, and the angle level to which the angle value belongs can be determined according to the angle value of the opening and closing angle, and the angle level can be used as the opening and closing status information.

[0167] In this embodiment, the third distance is determined according to the capacitance information of the specific absorption rate sensor 42, and the corresponding opening and closing angle can be determined according to the third distance, the preset fourth distance and the preset angle, and the opening and closing state information is determined according to the opening and closing angle, so that the conversion between the detection information and the opening and closing state information is realized, so that the corresponding control of the screen display can be realized according to the opening and closing state information. In some embodiments, Fig.13 As shown, the one or more sensors 40 include a camera 43, which is disposed on the first screen 10 and can be used to capture images. Fig.14 As shown, one or more detection information is determined by one or more sensors 40 on the first screen 10, including:

[0168] S720: Determine a fifth distance between the camera and the second screen in a preset direction according to distance information in the image information captured by the camera.

[0169] In step S720, the distance information may be the distance between the camera 43 and the object to be photographed, and when the foldable screen is folded, the distance information changes according to the distance between the camera 43 and the second screen body 20. Since the distance information changes according to the distance between the camera 43 and the second screen body 20, a fifth distance corresponding to the distance information may be determined according to the acquired distance information.

[0170] S730. Determine detection information according to the fifth distance.

[0171] In step S730, after determining the third distance between the specific absorption rate sensor 42 and the second screen body 20, the detection information characterizing the distance from the specific absorption rate sensor 42 to the second screen body 20 is determined. For example, the obtained fifth distance can be directly used as the detection information, and the distance level of the fifth distance can also be used as the detection information.

[0172] For example, reference Fig.14 As shown, before determining the fifth distance between the camera and the second screen in the preset direction according to the distance information in the image information captured by the camera, the step of determining one or more detection information by the camera 43 may also include:

[0173] S710, obtaining distance information from the image information captured by the camera. In this embodiment, when the sensor 40 includes a camera 43, the fifth distance between the camera 43 and the second screen body 20 can be determined based on the distance information and the detection information can be determined based on the fifth distance, thereby realizing the determination of the detection information and providing a basis for determining the opening and closing state information, so that the corresponding control of the screen display can be realized based on the opening and closing state information. The camera 43 is a sensor 40 for realizing other functions on the first screen body 10, which does not lead to an increase in occupied space and cost, and has higher detection accuracy than the absorption rate sensor 42, reduces the detection error rate, and improves the detection reliability.

[0174] As mentioned above, the detection information may be the fifth distance or the distance level of the fifth distance determined according to the distance information in the image information captured by the camera 43. In some embodiments, the determined fifth distance is directly used as the detection information. Fig.15 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0175] S801. Determine fourth angle information corresponding to the fifth distance according to a fifth distance and fourth preset configuration information, where the fourth preset configuration information is used to characterize a correspondence between the distance and the angle information.

[0176] In step S801, after determining the fifth distance between the camera 43 and the second screen 20, the fourth angle information corresponding to the fifth distance is determined according to the fifth distance and the fourth preset configuration information used to characterize the correspondence between the distance and the angle information. The fourth angle information may be, for example, an angle value. The fourth preset configuration information may be, for example, in the form of a table, a mapping, a formula, etc. The fourth preset configuration information may be obtained by, for example, analyzing experimental data measured experimentally. Exemplarily, the angle information corresponding to the fifth distance of 10 cm in the fourth preset configuration information is 30°. Then, when the fifth distance is 10 cm, it can be determined that the fourth angle information corresponding to the fifth distance is 30°.

[0177] S802: Determine the opening and closing state information between the first screen body and the second screen body according to the fourth angle information.

[0178] In step S802, after determining the fourth angle information according to the fifth distance and the fourth preset configuration information, the opening and closing state information between the first screen 10 and the second screen 20 is determined according to the fourth angle information. For example, the angle value of the fourth angle information can be directly determined as the opening and closing state information, and the angle level to which the angle value belongs can be determined according to the angle value of the fourth angle information, and the angle level can be used as the opening and closing state information.

[0179] In this embodiment, the fifth distance is determined based on the distance information of the camera 43, and based on the fifth distance and the fourth preset configuration information used to characterize the correspondence between the fifth distance and the angle information, the fourth angle information corresponding to the fifth distance can be determined, and the opening and closing state information is determined based on the fourth angle information, thereby realizing the conversion between the detection information and the opening and closing state information, so that the corresponding control of the screen display can be achieved according to the opening and closing state information.

[0180] In some other embodiments, the determined fifth distance is also directly used as the detection information, referring to Fig.16 As shown, based on one or more detection information, determining the opening and closing state information between the first screen body 10 and the second screen body 20 includes:

[0181] S811. Determine the opening and closing angle between the first screen and the second screen according to the fifth distance, the preset sixth distance and the preset angle, the preset angle is the angle between the preset direction and the first screen, the sixth distance is the vertical distance between the camera and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis.

[0182] In step S811, refer to Figure 2 As shown, the preset angle is the angle between the preset direction and the first screen body 10, the first screen body 10 and the second screen body 20 can be relatively folded and opened around the rotation axis 30, and the sixth distance is the vertical distance between the camera 43 and the rotation axis 30. After the fifth distance is determined, the fifth distance, the preset sixth distance and the preset angle are all determined values, that is, the lengths of two sides of the triangle and the angle of an included angle are determined, and the lengths of other sides of the triangle and the angles of other angles can be determined, so the opening and closing angle between the first screen body 10 and the second screen body 20 can be determined.

[0183] S812: Determine the opening and closing state information according to the opening and closing angle.

[0184] In step S812, after determining the opening and closing angle according to the fifth distance, the preset sixth distance and the preset angle, the opening and closing status information between the first screen body 10 and the second screen body 20 is determined according to the opening and closing angle. For example, the angle value of the opening and closing angle can be directly determined as the opening and closing status information, and the angle level to which the angle value belongs can be determined according to the angle value of the opening and closing angle, and the angle level can be used as the opening and closing status information.

[0185] In this embodiment, the fifth distance is determined based on the distance information of the camera 43, and the corresponding opening and closing angle can be determined based on the fifth distance, the preset sixth distance and the preset angle, and the opening and closing status information is determined based on the opening and closing angle, thereby realizing the conversion between the detection information and the opening and closing status information, so that the corresponding control of the screen display can be achieved according to the opening and closing status information.

[0186] In some embodiments, the camera 43 is an AON camera.

[0187] Among them, the AON (Always On) camera is a front camera in full-time working state. Its main function is to perceive the environment, visually monitor user behavior, infer user intentions, and decide the status of the mobile phone. It can recognize the user's gaze, gestures, etc. to maintain screen brightness, control display rotation, etc. The AON camera can determine the distance between the AON camera and the second screen 20 through the distance information in the shooting information.

[0188] In some embodiments, reference Fig.17As shown, before determining the opening and closing state information between the first screen body 10 and the second screen body 20 based on one or more detection information, the screen opening and closing state detection method further includes:

[0189] S910, determining whether there is an obstacle between the first screen and the second screen;

[0190] S920: When it is determined that there is no obstacle between the first screen and the second screen, determine the opening and closing state information between the first screen and the second screen based on one or more detection information.

[0191] In step S910 to step S920, when there are other obstacles such as the palm of the user between the first screen body 10 and the second screen body 20, the distance represented by the detection information may be the distance between the sensor 40 and the obstacle. At this time, if the opening and closing state information is determined based on the detection information, the opening and closing state information will not reflect the actual opening and closing state between the first screen body 10 and the second screen body 20. It is necessary to first determine whether there is an obstacle between the first screen body 10 and the second screen body 20. When it is determined that there is no obstacle between the first screen body 10 and the second screen body 20, the opening and closing state information between the first screen body 10 and the second screen body 20 is determined based on the detection information according to the above method. When it is determined that there is an obstacle between the first screen body 10 and the second screen body 20, the detection information at this time can be invalidated or the detection information can be obtained again when there is no obstacle between the first screen body 10 and the second screen body 20.

[0192] In this embodiment, it is first determined whether there is an obstacle between the first screen body 10 and the second screen body 20. When it is determined that there is no obstacle between the first screen body 10 and the second screen body 20, the opening and closing state information between the first screen body 10 and the second screen body 20 is determined based on the detection information. This can ensure that the detection information truly represents the distance between the sensor 40 and the second screen body 20, thereby ensuring the accuracy of the opening and closing state information, avoiding interference of the obstacles between the first screen body 10 and the second screen body 20 with the screen opening and closing state detection, and improving the user experience.

[0193] In some embodiments, one or more sensors 40 include a specific absorption rate sensor 42, and determining whether there is an obstacle between the first screen 10 and the second screen 20 includes: determining whether there is an obstacle between the first screen 10 and the second screen 20 based on capacitance information detected by the specific absorption rate sensor 42.

[0194] Among them, the sensor 40 includes a specific absorption rate sensor 42, which can obtain capacitance information detected by the specific absorption rate sensor 42. The specific absorption rate sensor 42 can generate different capacitance information for the human body and different materials such as metal and glass. Therefore, it can be determined whether there is an obstacle between the first screen body 10 and the second screen body 20 according to the difference in capacitance information. For example, when the detected capacitance information represents that the material of the object to be detected is the material of the second screen body 20, it can be determined that there is no obstacle between the first screen body 10 and the second screen body 20. When the detected capacitance information represents that the material of the object to be detected is different from the material of the second screen body 20, it can be determined that there is an obstacle between the first screen body 10 and the second screen body 20.

[0195] In this embodiment, based on the capacitance information detected by the specific absorption rate sensor 42, it is possible to determine whether there is an obstacle between the first screen body 10 and the second screen body 20, thereby ensuring that the detection information truly represents the distance between the sensor 40 and the second screen body 20, thereby ensuring the accuracy of the opening and closing state information, avoiding interference with the screen opening and closing state detection caused by obstacles between the first screen body 10 and the second screen body 20, and improving the user experience.

[0196] In other embodiments, one or more sensors 40 include a camera 43, and determining whether there is an obstacle between the first screen 10 and the second screen 20 includes: determining whether there is an obstacle between the first screen 10 and the second screen 20 based on image information captured by the camera 43.

[0197] Among them, the sensor 40 includes a camera 43, which can obtain image information captured by the camera 43, and the camera 43 can generate different image information for the human body and other objects. Therefore, it can be determined whether there is an obstacle between the first screen 10 and the second screen 20 according to the different image information. For example, when the detected image information represents that the object to be detected is the second screen 20, it can be determined that there is no obstacle between the first screen 10 and the second screen 20. When the detected image information represents that the object to be detected is not the second screen 20, it can be determined that there is an obstacle between the first screen 10 and the second screen 20.

[0198] In this embodiment, based on the image information captured by the camera 43, it is possible to determine whether there is an obstacle between the first screen body 10 and the second screen body 20, thereby ensuring that the detection information truly represents the distance between the camera 43 and the second screen body 20, thereby ensuring the accuracy of the opening and closing state information, avoiding interference of obstacles between the first screen body 10 and the second screen body 20 with the screen opening and closing state detection, and improving the user experience.

[0199] In an exemplary embodiment, reference Fig.18 As shown, a method for detecting a screen opening and closing state is provided, including:

[0200] S10, controlling the distance sensor to send a first detection signal along a preset direction;

[0201] S20, controlling the distance sensor to receive the second detection signal reflected by the second screen;

[0202] S30, determining a time difference between the distance sensor sending a first detection signal and receiving a second detection signal;

[0203] S40, determining detection information according to the time difference;

[0204] S50, determining whether there is an obstacle between the first screen body and the second screen body according to capacitance information detected by the specific absorption rate sensor;

[0205] S60, when it is determined that there is no obstacle between the first screen and the second screen, determining a first distance between the distance sensor and the second screen in a preset direction according to the time difference;

[0206] S70, determining an opening and closing angle between the first screen body and the second screen body according to the first distance, a preset second distance, and a preset angle;

[0207] S80: Determine the opening and closing state information according to the opening and closing angle.

[0208] In this embodiment, by sending a first detection signal along a preset direction by the distance sensor 41 and receiving a second detection signal reflected by the second screen 20, the detection information can be determined based on the detection information corresponding to the first detection signal and the second detection signal of the distance sensor 41, and whether there is an obstacle between the first screen 10 and the second screen 20 can be determined. When it is determined that there is no obstacle between the first screen 10 and the second screen 20, the opening and closing state information between the first screen 10 and the second screen 20 is obtained based on the detection information, which can ensure that the detection information truly represents the distance between the sensor 40 and the second screen 20, thereby ensuring the accuracy of the opening and closing state information, and avoiding interference of obstacles between the first screen 10 and the second screen 20 on the detection of the opening and closing state of the screen. The first distance between the distance sensor 41 and the second screen 20 in a preset direction is determined based on the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal, and the corresponding opening and closing angle can be determined based on the first distance, the preset second distance and the preset angle, and the opening and closing status information is determined based on the opening and closing angle, thereby realizing the conversion between the detection information and the opening and closing status information, so that the corresponding control of the screen display can be realized according to the opening and closing status information.

[0209] In an exemplary embodiment, reference Fig.19As shown, a screen opening and closing state detection device is provided, the screen includes a first screen body 10 and a second screen body 20, the first screen body 10 and the second screen body 20 can be folded and opened relative to each other, the screen opening and closing state detection device includes a first determination module 50 and a second determination module 60, the first determination module 50 is used to determine one or more detection information through one or more sensors 40 on the first screen body 10, the detection information is used to characterize the distance from each sensor 40 to the second screen body 20; the second determination module 60 is used to determine the opening and closing state information between the first screen body 10 and the second screen body 20 based on one or more detection information.

[0210] In this embodiment, the detection information used to characterize the distance between the sensor 40 and the second screen 20 is determined by the first determination module 50, and the opening and closing state information between the first screen 10 and the second screen 20 is determined by the second determination module 60 according to the detection information, so as to realize the corresponding control of the screen display according to the opening and closing state information. The determination of the detection information is completed by one or more sensors 40 on the first screen 10, thereby avoiding the problem of large occupied space and high cost caused by adding detection devices. In addition, the final opening and closing state information is determined according to multiple detection information, which reduces the detection error rate and improves the detection reliability.

[0211] In one embodiment, when one or more sensors 40 include a distance sensor 41, the first determination module 50 is also used to: control the distance sensor 41 to send a first detection signal along a preset direction; control the distance sensor 41 to receive a second detection signal reflected by the second screen 20; and determine the detection information corresponding to the distance sensor 41 based on the first detection signal and the second detection signal.

[0212] In one embodiment, when the one or more sensors 40 include a distance sensor 41, the first determination module 50 is further used to: determine the time difference between the distance sensor 41 sending the first detection signal and receiving the second detection signal; and determine the detection information according to the time difference.

[0213] In one embodiment, when the one or more sensors 40 include a distance sensor 41, the second determination module 60 is further used to: determine first angle information corresponding to the time difference according to the time difference and the first preset configuration information, the first preset configuration information being used to characterize the correspondence between the time difference and the angle information; determine the opening and closing state information between the first screen 10 and the second screen 20 according to the first angle information;

[0214] In one embodiment, when one or more sensors 40 include a distance sensor 41, the second determination module 60 is further used to: determine a first distance between the distance sensor 41 and the second screen 20 in a preset direction based on a time difference; determine second angle information corresponding to the first distance based on the first distance and second preset configuration information, the second preset configuration information being used to characterize the correspondence between the distance and the angle information; and determine the opening and closing state information between the first screen 10 and the second screen 20 based on the second angle information.

[0215] In one embodiment, when one or more sensors 40 include a distance sensor 41, the second determination module 60 is further used to: determine a first distance between the distance sensor 41 and the second screen body 20 in a preset direction based on the time difference; determine an opening and closing angle between the first screen body 10 and the second screen body 20 based on the first distance, a preset second distance and a preset angle, the preset angle being the angle between the preset direction and the first screen body 10, the second distance being the vertical distance between the distance sensor 41 and the rotation axis 30, and the first screen body 10 and the second screen body 20 rotate relative to the rotation axis 30; determine the opening and closing state information based on the opening and closing angle.

[0216] In one embodiment, when one or more sensors 40 include a specific absorption rate sensor 42, the first determination module 50 is further used to: obtain capacitance information detected by the specific absorption rate sensor 42; determine a third distance between the specific absorption rate sensor 42 and the second screen body 20 in a preset direction based on the capacitance information; and determine detection information based on the third distance.

[0217] In one embodiment, when the one or more sensors 40 include a specific absorption rate sensor 42, the second determination module 60 is further used to: determine third angle information corresponding to the third distance according to the third distance and the third preset configuration information, where the third preset configuration information is used to characterize the correspondence between the distance and the angle information; determine the opening and closing state information between the first screen 10 and the second screen 20 according to the third angle information;

[0218] In one embodiment, when one or more sensors 40 include a specific absorption rate sensor 42, the second determination module 60 is further used to: determine the opening and closing angle between the first screen body 10 and the second screen body 20 based on the third distance, a preset fourth distance and a preset angle, the preset angle being the angle between the preset direction and the first screen body 10, the fourth distance being the vertical distance between the specific absorption rate sensor 42 and the rotation axis 30, and the first screen body 10 and the second screen body 20 rotate relative to the rotation axis 30; determine the opening and closing state information based on the opening and closing angle.

[0219] In one embodiment, when one or more sensors 40 include a camera 43, the first determination module 50 is also used to: obtain distance information in the image information taken by the camera 43; determine the fifth distance between the camera 43 and the second screen body 20 in a preset direction based on the distance information; and determine the detection information based on the fifth distance.

[0220] In one embodiment, when the one or more sensors 40 include a camera 43, the second determination module 60 is further used to: determine fourth angle information corresponding to the fifth distance according to the fifth distance and the fourth preset configuration information, where the fourth preset configuration information is used to characterize the correspondence between the distance and the angle information; determine the opening and closing state information between the first screen 10 and the second screen 20 according to the fourth angle information;

[0221] In one embodiment, when one or more sensors 40 include a camera 43, the second determination module 60 is further used to: determine the opening and closing angle between the first screen body 10 and the second screen body 20 based on a fifth distance, a preset sixth distance and a preset angle, the preset angle being the angle between the preset direction and the first screen body 10, the sixth distance being the vertical distance between the camera 43 and the rotation axis 30, and the first screen body 10 and the second screen body 20 rotate relative to the rotation axis 30; determine the opening and closing status information based on the opening and closing angle.

[0222] In some embodiments, the screen opening and closing state detection device also includes a third determination module and a fourth determination module. The third determination module is used to determine whether there is an obstacle between the first screen 10 and the second screen 20; the fourth determination module is used to determine the opening and closing state information between the first screen 10 and the second screen 20 based on one or more detection information when it is determined that there is no obstacle between the first screen 10 and the second screen 20.

[0223] In this embodiment, the third determination module is first used to determine whether there is an obstacle between the first screen body 10 and the second screen body 20. When it is determined that there is no obstacle between the first screen body 10 and the second screen body 20, the fourth determination module is used to determine the opening and closing state information between the first screen body 10 and the second screen body 20 according to the detection information. This can ensure that the detection information truly represents the distance between the sensor 40 and the second screen body 20, thereby ensuring the accuracy of the opening and closing state information, avoiding interference of the obstacles between the first screen body 10 and the second screen body 20 with the screen opening and closing state detection, and improving the user experience.

[0224] In some embodiments, the sensor 40 includes one or a combination of a distance sensor 41 , a specific absorption rate sensor 42 , and a camera 43 .

[0225] In this embodiment, the detection information is acquired by one or more sensors 40 on the first screen 10, thereby avoiding the problem of large occupied space and high cost caused by adding detection devices. In addition, the final opening and closing state information is determined based on multiple detection information, which reduces the detection error rate and improves the detection reliability.

[0226] In an exemplary embodiment, an electronic device is provided. The electronic device may be, for example, a mobile phone or a tablet computer with a foldable screen.

[0227] refer to Fig. 20 As shown, the electronic device may include one or more of the following components: a processing component 101 , a memory 102 , a power component 103 , a multimedia component 104 , an audio component 105 , an input / output (I / O) interface 106 , a sensor component 107 , and a communication component 108 .

[0228] The processing component 101 generally controls the overall operation of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 101 may include one or more processors 109 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 101 may include one or more modules to facilitate the interaction between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate the interaction between the multimedia component 104 and the processing component 101.

[0229] The memory 102 is configured to store various types of data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0230] The power component 103 provides power to various components of the electronic device. The power component 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.

[0231] The multimedia component 104 includes a screen that provides an output interface between the electronic device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 104 includes a front camera and / or a rear camera. When the electronic device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0232] The audio component 105 is configured to output and / or input audio signals. For example, the audio component 105 includes a microphone (MIC), and when the electronic device is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 102 or sent via the communication component 108. In some embodiments, the audio component 105 also includes a speaker for outputting audio signals.

[0233] I / O interface 106 provides an interface between processing component 101 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0234] The sensor assembly 107 includes one or more sensors for providing various aspects of status assessment for the electronic device. For example, the sensor assembly 107 can detect the on / off state of the electronic device, the relative positioning of components, such as the display and keypad of the electronic device, and the sensor assembly 107 can also detect the position change of the electronic device or a component of the electronic device, the presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device and the temperature change of the electronic device. The sensor assembly 107 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 107 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 107 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0235] The communication component 108 is configured to facilitate wired or wireless communication between the electronic device and other devices. The device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 108 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 108 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0236] In an exemplary embodiment, the electronic device can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned screen opening and closing state detection method applied to the electronic device.

[0237] In an exemplary embodiment, a non-temporary computer-readable storage medium including instructions is also provided, such as a memory 102 including instructions, and the above instructions can be executed by a processor 109 of an electronic device to complete the above-mentioned screen opening and closing state detection method applied to the electronic device. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, and an optical data storage device. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the screen opening and closing state detection method shown in the above embodiment.

[0238] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0239] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for detecting the opening and closing state of a screen, wherein the screen comprises a first screen body and a second screen body, wherein the first screen body and the second screen body can be folded and opened relative to each other, characterized in that: The screen opening and closing state detection method comprises: Determine one or more detection information through one or more sensors on the first screen, where the detection information is used to characterize the distance from each of the sensors to the second screen; Based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body is determined.

2. The screen opening and closing state detection method according to claim 1, characterized in that: The one or more sensors include a distance sensor, and determining one or more detection information by using the one or more sensors on the first screen includes: The detection information corresponding to the distance sensor is determined based on a first detection signal and a second detection signal, wherein the first detection signal is a detection signal sent by the distance sensor along a preset direction, and the second detection signal is a detection signal after the first detection signal received by the distance sensor is reflected by the second screen.

3. The screen opening and closing state detection method according to claim 2, characterized in that: The determining the detection information corresponding to the distance sensor based on the first detection signal and the second detection signal includes: Determine a time difference between the distance sensor sending the first detection signal and receiving the second detection signal; The detection information is determined according to the time difference.

4. The screen opening and closing state detection method according to claim 3, characterized in that: The first detection signal includes one of an ultrasonic signal, an infrared signal, and a laser signal, or a combination of at least two of them.

5. The screen opening and closing state detection method according to claim 3, characterized in that: The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes: Determine, according to the time difference and first preset configuration information, first angle information corresponding to the time difference, wherein the first preset configuration information is used to characterize a correspondence between the time difference and the angle information; Determining, according to the first angle information, the opening and closing state information between the first screen body and the second screen body; or, The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes: Determine a first distance between the distance sensor and the second screen in the preset direction according to the time difference; Determine, according to the first distance and second preset configuration information, second angle information corresponding to the first distance, where the second preset configuration information is used to characterize a correspondence between distance and angle information; Determining, according to the second angle information, information about the opening and closing state between the first screen body and the second screen body; or, The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes: Determine a first distance between the distance sensor and the second screen in the preset direction according to the time difference; Determine the opening and closing angle between the first screen and the second screen according to the first distance, a preset second distance, and a preset angle, wherein the preset angle is the angle between the preset direction and the first screen, the second distance is the vertical distance between the distance sensor and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis; The opening and closing state information is determined according to the opening and closing angle.

6. The screen opening and closing state detection method according to claim 1, characterized in that: The one or more sensors include a specific absorption rate sensor, and determining one or more detection information through the one or more sensors on the first screen includes: Determine, according to capacitance information detected by the specific absorption rate sensor, a third distance between the specific absorption rate sensor and the second screen in a preset direction; The detection information is determined according to the third distance.

7. The screen opening and closing state detection method according to claim 6, characterized in that: The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes: Determine, according to the third distance and third preset configuration information, third angle information corresponding to the third distance, wherein the third preset configuration information is used to characterize a correspondence between the distance and the angle information; Determining, according to the third angle information, information about the opening and closing state between the first screen body and the second screen body; or, The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes: Determine the opening and closing angle between the first screen and the second screen according to the third distance, a preset fourth distance, and a preset angle, wherein the preset angle is the angle between the preset direction and the first screen, the fourth distance is the vertical distance between the specific absorption rate sensor and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis; The opening and closing state information is determined according to the opening and closing angle.

8. The screen opening and closing state detection method according to claim 1, characterized in that: The one or more sensors include a camera, and determining one or more detection information through the one or more sensors on the first screen includes: Determine a fifth distance between the camera and the second screen in a preset direction according to distance information in the image information captured by the camera; The detection information is determined according to the fifth distance.

9. The screen opening and closing state detection method according to claim 8, characterized in that: The determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body includes: Determine, according to the fifth distance and fourth preset configuration information, fourth angle information corresponding to the fifth distance, wherein the fourth preset configuration information is used to characterize a correspondence between distance and angle information; Determining, according to the fourth angle information, information about the opening and closing state between the first screen body and the second screen body; or, Determining, based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body, includes: Determine the opening and closing angle between the first screen and the second screen according to the fifth distance, the preset sixth distance and the preset angle, the preset angle being the angle between the preset direction and the first screen, the sixth distance being the vertical distance between the camera and the rotation axis, and the first screen and the second screen rotate relative to the rotation axis; The opening and closing state information is determined according to the opening and closing angle.

10. The screen opening and closing state detection method according to claim 8, characterized in that: The camera is an AON camera.

11. The screen opening and closing state detection method according to any one of claims 1 to 10, characterized in that: Before determining the opening and closing state information between the first screen body and the second screen body based on the one or more detection information, the screen opening and closing state detection method further includes: Determine whether there is an obstacle between the first screen and the second screen; When it is determined that there is no obstacle between the first screen and the second screen, the opening and closing state information between the first screen and the second screen is determined based on the one or more detection information.

12. The screen opening and closing state detection method according to claim 11, characterized in that: The one or more sensors include a specific absorption rate sensor, and the determining whether there is an obstacle between the first screen and the second screen includes: determining whether there is an obstacle between the first screen body and the second screen body according to capacitance information detected by the specific absorption rate sensor; The one or more sensors include a camera, and the determining whether there is an obstacle between the first screen and the second screen includes: According to the image information captured by the camera, it is determined whether there is an obstacle between the first screen and the second screen.

13. A device for detecting the opening and closing state of a screen, wherein the screen comprises a first screen body and a second screen body, wherein the first screen body and the second screen body can be folded and opened relative to each other, characterized in that: The screen opening and closing state detection device comprises: A first determination module, the first determination module is used to determine one or more detection information through one or more sensors on the first screen, the detection information is used to characterize the distance from each of the sensors to the second screen; A second determining module, the second determining module is used to determine the opening and closing state information between the first screen body and the second screen body based on the one or more detection information.

14. The screen opening and closing state detection device according to claim 13, characterized in that: The screen opening and closing state detection device also includes: A third determination module, the third determination module is used to determine whether there is an obstacle between the first screen and the second screen; A fourth determining module is used to determine the opening and closing state information between the first screen and the second screen based on the one or more detection information when it is determined that there is no obstacle between the first screen and the second screen.

15. The screen opening and closing state detection device according to claim 13 or 14, characterized in that: The sensor includes one or a combination of a distance sensor, a specific absorption rate sensor, and a camera.

16. An electronic device, comprising a screen, wherein the screen comprises a first screen body and a second screen body, wherein the first screen body and the second screen body can be folded and unfolded relative to each other, wherein: The electronic device further comprises: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Determine one or more detection information through one or more sensors on the first screen, where the detection information is used to characterize the distance from each of the sensors to the second screen; Based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body is determined.

17. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of the electronic device, the electronic device is enabled to execute a screen opening and closing state detection method, the screen opening and closing state detection method comprising: Determine one or more detection information by one or more sensors on the first screen, wherein the detection information is used to characterize the distance from each of the sensors to the second screen; Based on the one or more detection information, the opening and closing state information between the first screen body and the second screen body is determined.